I have big trouble using “exeoutput.SetGlobalVariable” in Chromium (originally I wanted to used ajax and POST to post a variable to a PHP-script, but I finally found out that that was broken and then tried to use global variables, but it seems like that is also broken). I can not set a variable/get it back again. I try using e.g.
But I get only “undefined”. I’ve tried in many different ways - now used 3 hours for this and getting increasingly frustrated. Is there maybe a new version of exeoutput coming soon?
AJAX will be definitively fixed in next version. We are switching to a new implementation of Chromium engine.
It’s strange that SetGlobalVariable doesn’t work for you. Please try the AJAX demo of the Global Demonstration to see it if works for you.
The associated code is:
function testAJAX()
{
exeoutput.SetGlobalVariable('postdata', 'name=John&location=Boston', false);
$.ajax({ type: "POST", url: "Request.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data returned by Script: " + msg ); } });
}