PDA

View Full Version : LoadVars.send target question


Diabolus
01-30-2003, 04:05 PM
Hi,

I'm using loadvars.send in my project, and I have a question about the target parameter. I'm using the POST method.


I have to use 'new window' as target because when I use _self or this, the flash either resets or becomes black. The problem with new window is that it's annoying and ugly to have to pop up a window just to pass some data to the server.

I was wondering if there was a 'silent' way of doing this.
The only thing I could think of was to make a frame in my flash-embedded html page, and target it. Out of curiosity I was wondering what was the 'correct' way.


Txs
D

khamstra
01-30-2003, 04:19 PM
sendAndLoad works for me.

khamstra

Immulsifier
02-01-2003, 11:15 PM
Something like the following works well for me and will not generate a popup window.

myData = new LoadVars();

myData.uid = _level0.user_vars.uid;
myData.tid = _level0.tid;

myData.onLoad = loadHandler;
myData.sendAndLoad("moderator.php?method=deletetopic&random="+random(9999999), myData, "POST");