Senior Member
how to call to a web page with params!?
i want to open from my swf (that run's in an html page) ,in the same page with params like this :
page2.html?languge=Eng
when i try to do it like this it isnt working :
getURL("page2.html?languge=Eng");
thnaks in advance
Peleg
PHP Code:
varstosend = new LoadVars ();
varstosend . languge = "Eng" ;
varstosend . load ( "page2.html" );
Senior Member
Er ... no.
(I just use the PHP tag in FlashKit because it formats the code nicely. That code is actionScript, you can use whatever you want on the server to return the web-page.)
Senior Member
well i used your code and nothing is happening :(
well i used your code and nothing is happening
it even not changing the page!
Sorry, my mistake.
I used .load instead of .send
Change:
PHP Code:
varstosend . load ( "page2.html" );
To:
PHP Code:
varstosend . send ( "page2.html" , "_blank" );
You could have found this out for yourself by reading up the LoadVars object.
Senior Member
nope still not working:(
cani send u the example and u check it out?
Sorry, this is not hard, you are not trying. I have given you all the code. It works.
Senior Member
ok maybe we miss something!
i want that the file i call to will appear in the dress bar with the value
language=Eng
and it look like :
PHP Code:
page2 ? language = Eng
i attach the exmple i did as u explained me , and u will that in the openning window
there is no param!
thnaks again for your time
Peleg
Attached Files
Put some effort in.
The code works perfectly as is. The problem is with your assumptions and with your lack of effort. You not trying.
This forum is supposed to help you to learn. It is not to get others to do your work for you. The problem is so simple that I will not answer another post on the subject.
Senior Member
what?
when i press the button i did the only thing i see in the adress bar is :
PHP Code:
funandlearnning . html
instead of
PHP Code:
funandlearnning . html ? language = Eng
unless your saying that the languge variable is like in post method and is hidden!
in that case it isnt helping me!
beacuse in the
PHP Code:
funandlearnning . html
file i have a parser that extracts for me the variables withought no need of the server to read the params for me!
thnaks again peleg
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width