Hello, i dont know why this instruccion works when i write it in this way:
lv = new LoadVars();
lv.sVar1 = "value1";
lv.sVar2 = "value2";
lv.onLoad = onLoadCallBack;
lv.sendAndLoad("http://localhost/tiempo/flash/rsstoflash.php?" + new Date(), lv, "POST");
But if a put this code into a function in this way:
function carga() {
lv = new LoadVars();
lv.sVar1 = "value1";
lv.sVar2 = "value2";
lv.onLoad = onLoadCallBack;
lv.sendAndLoad("http://localhost/tiempo/flash/rsstoflash.php?" + new Date(), lv, "POST");
}
carga();
The compiler told me:
Error opening URL 'file:///C|/webserver/www/tiempo/flash/undefined' Error opening URL 'file:///C|/webserver/www/tiempo/flash/undefined' Error opening URL 'file:///C|/webserver/www/tiempo/flash/undefined'
Any idea?