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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help... problems getURL??

Status
Not open for further replies.

dcampo

Programmer
Jun 13, 2006
71
EC
Hi.

Sorry if I write bad the English!!!

I have this code:

function arreglarTexto(texto_str:String):String {
texto_str = unescape(texto_str);
return texto_str.substr(0, texto_str.length-23);
}
var poema_lv:LoadVars = new LoadVars();
var host:String = new String();
poema_lv.onLoad = function(exito) {
if (exito) {
host = arreglarTexto(poema_lv.toString());
} else {

host = "Error !!!";
}
};
poema_lv.load("data.txt");
stop();


The file "data.txt" have this:
In this example, I capture the name of host of any web site. When I use the function getURL in Button, I do this:

getUrl(host,_SELF,"POST");

When I do click in the Button, the web page don't (not) load
because there's an error!! In the URL of the web page, appear this content:

type+Function%5D&poema%
5Flv=http%253A%252F%252Flocalhost%
253A2296%252Fweb%255Fsql%252Fflash%
255Fasp%252Easpx%253Fvalor%3D1%2
6onLoad%3D%255Btype%2520Function
%255D&host=http%3A%2F%2Flocalhost
%3A2296%2Fweb%5Fsql%2Fflash%5Fasp
%2Easpx%3Fvalor%3D1&texto%5Fcapturado=
&valor%5Fcapturado=http%3A%2F%2Flocalhost%3A2296%
2Fweb%5Fsql%2Fflash%5Fasp%2Easpx%3Fvalor%3D1

Why don't appear only the statement :
Where is the problem??

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top