Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL question...

Status
Not open for further replies.

tamak

Programmer
Sep 6, 2006
19
US
I have an app I've built that loads data from an xml file... Im trying to build a getURL trigger for a button that uses a piece of data from the xml file - using the following to refer to the 'data'...

Code:
evtobj.target.selectedItem.ID

... I cant seem to get the 'getURL' string right though...the following doesnt work at all and generates errors in Actionscript:

Code:
getURL("../show_building.asp?id="+evtobj.target.selectedItem.ID, "_blank", "post");


how should this string look to be able to pass the variable in the querystring/URL???
 
If you trace like below what do you get? That's the first thing to determine.
Code:
var url:String = "../show_building.asp?id="+evtobj.target.selectedItem.ID;
trace(url);
getURL(url, "_blank", "POST");


Kenneth Kawamoto
 
Sorry - should have included that, the response says the variable is 'undefined'...


Trace responds with:

Code:
../show_building.asp?id=undefined
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top