PDA

View Full Version : Submit URL without opening browser window


mwielbut
01-04-2003, 11:40 PM
I hava a java servlet which processes some action when a URL in the form:
httpL//somehost.com/servlet/myServlet?action=skipSong

is submitted to it.

I also have a flash movie that I user to interact with this servlet.

I know that I can use getURL() to send the URL, but it opens it in a browser window. I would like to send the URL command without expecting any server response and not have to deal with a browser.
The main problem is that the URL is supposed to remain hidden from the user. If the URL opens in a browser window it will be visible to the user.

Oh, and one more thing. I am creating a Projector file so any JavaScript solution, would be useless I guess.

Thanks!

jimburton
01-05-2003, 01:16 AM
you can use loadVariables or LoadVars.send/LoadVars.sendandLoad all of which can send a http request "silently" or in the background and also load the results of the request if appropriate and act on them...

mwielbut
01-05-2003, 04:37 PM
Great! thanks,
I actually got it to work with my XML load funtions. I user the servlet responses for gathering other data via XML, so I just threw that URL in and it worked. I'm sure your methods would have worked too.
Thanks for the fast reply.