Hi,
I am trying to create an XML data set that has dynamic post variables.
Everytime something is pressed on the page a variable changes and I then want
to reload the XML data set using the new variable.
I know I can just pull in an XML with all possible variables and filter client
side but this would make it way too large.
Does anyone know what I may need to do.
I tried this:
var myVar = 0;
var dss = new Spry.Data.XMLDataSet ( '../../cgi-bin/server_details.pl' ,
'top' , { method: 'POST' , postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted: "true",
sortOnLoad: "plugins/plugin/order", sortOrderOnLoad: "descending", useCache:
false, loadInterval: 10000 } );
onclick="myVar=1";
But the script doesn't understand the post variables sent (it does when I
remove the . myVar part and put in a static value). I think it isn't sending
that dynamic variable with the post variables.
Any ideas anyone?
Thanks