PDA

View Full Version : getURL and POST/GET....again.


Trashcan
11-10-2005, 12:19 PM
Ok, this is what I have been able to read up on / have discovered for my self:

getURL only supports 508 chars as javascript.
getURL sends EVERY var in _root when using POST/GET
something about always using GET if you are not embedding the flash in a browser. IE if you are making a flash projector, you'll always use GET, even if you write POST... not too sure about this, but it appears to be like it.
By using GET/POST as a parameter in getURL, the new window will be active. This is very usefull when you can't use javascript to creating a new window (flash projector). IE getURL("http://www.dagbladet.no", "_blank", "POST"); this can be used instead of those pesky bat files and fscommand.

Now I have a lot of vars in my _root folder. When I GET, all the vars goes along and you can see them in the url. Suddenly I appear to have too many vars in my _root for getURL to handle. When I use getURL I get a new window, but its blank. it looks like there is either a limit on the length of URL in Internet Explorer or getURL can only post so many vars.

So my long avaited question is: how can I decide what vars getURL posts? Can I? Do I have to move all my vars to different fram(will that even work?), or maybe to a new movieclip.... any ideas???

Armegalo
08-22-2007, 11:33 AM
try placing the getURL command into a frame within an object instead of on the root. That way, it only send the variables in that object :cool: