I was looking into this today also and saw that the 3rd param doesn't do jack except crash everything if you try to use it.  I was using the _blank attribute to create the app in a new browser window and couldn't figure out how to set the size of the browser itself.  Like with _javascript_ where you can specify the width and height of the window.  Anyone know how to do this with the getUrl() method, or should I be using something else?

Thanks,
Jonathan

Matt Chotin wrote:

I think this is probably a bug which I'll go ahead and file.  If you leave off the last parameter it will be sent as a GET.  If you need to send POST look into LoadVars.send().

 

Matt

 

-----Original Message-----
From: sbyrne_dorado [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 10, 2004 4:23 PM
To: [email protected]
Subject: [flexcoders] getURL 3rd parameter?

 

I'm trying to understand the parameters of the Application.getURL
method.  The first parameter is a String URL, and I get that.  The
second is a target window (also a String I *guess* -- the
documentation does not explicitly say so).

The third parameter is a mystery.  It's described as a method, that's
either the GET or POST method.  The parameter is called "variables".
I believe that while the docs ambiguously call it a method, the
context in which that term is interpreted is that of HTML Forms, and
so it's either  a string "GET" or a string "POST" value.  However,
when I try using "GET", the compiler complains

    There is no property with the name 'POST'

and when I specify the method as "POST", the compiler complains:

    There is no property with the name 'GET'

As near as I can tell, there is no correct way to specify this value.

Please help me understand what should be specified here.  There are no
usage examples that I can find in the documentation, so maybe nobody
else knows quite how to use it either ;)





-- 
Jonathan Baney
Enterprise Data Modeler
Thunderbird Consulting Application Engineering: A division of ITS
Mesa Community College




--------------030407050009050302060509--

Reply via email to