Hi all,
I am putting my hands on my very first plugin, btw. I am quite new to JavaScript in total (my world was PHP before).
I was quite sure, that everything is set up quite well, but on runtime, all I get is a black screen (I am still on the last real stable version).
This is the action script I set up:
//////////////////////////////////////
// Actions
pluginProto.acts = {};
var acts = pluginProto.acts;
acts.ParamGet = function (myparam)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
this.ParamValue = pair[1];
}
}
};
For instance Class I set up this:
/////////////////////////////////////
// Instance class
pluginProto.Instance = function(type)
{
this.type = type;
this.runtime = type.runtime;
this.ParamValue = "";
};
I am also not yet familiar with the error console in Chrome and Firefox (never needed for PHP), I do hope someone can figure out what is my fault?
Here is a live example:
ubivis.de/test
This should show up a textfield with the value of parameter "test"