PDA

View Full Version : pass variables to web object


qwer
08-09-2007, 01:59 PM
my problem is that when i try to load url with variables like (when i set it as the first url, not by code) :
"AutoPlay\Docs\Web Events\web_event.htm?category=Man&address=North&name=Last"
it gives me an error but when i try to load
"AutoPlay\Docs\Web Events\web_event.htm", it works fine.
when i open the url with explorer it also works fine.

when i try to load it with variables it loads but it disregards the variables.
does anyone explain to me what i'm doing wrong?

4090987414711
08-09-2007, 03:19 PM
"AutoPlay\Docs\Web Events\web_event.htm?category=Man&address=North&name=Last"

Might it be cos u had the space inbetween the word name?

qwer
08-09-2007, 03:34 PM
no, it's just a problem with the paste.
i want to add that i try to get the variables using javascript.
does anyone have an example for something like this?

Escher
09-03-2007, 03:24 PM
I realize that this is a little late, but I have passed info to various server-side apps via url reference. This is the format that I use:


File.OpenURL("http://example.net/cgi-bin/sample_app.cgi?full_name="..full_name.."&username="..username.."&con_type="..con_type.."&sdrive=".._SourceDrive, SW_SHOWNORMAL);


It works without issue. I have also been able to pass the info as a command-line arg to specific browsers:

File.Run(_ProgramFilesFolder.."\\Internet Explorer\\iexplore.exe", "http://example.net/cgi-bin/sample_app.cgi?full_name="..full_name.."&username="..username.."&con_type="..con_type.."&sdrive=".._SourceDrive, "", SW_MAXIMIZE, false);


Hope this helps,

Art