|
|
|
|
![]() ![]() |
May 30 2006, 03:11 PM
Post
#1
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 2 Joined: 30-May 06 Member No.: 13,724 |
Hi,
I actually want to create a HTML page which has the capablity of reading a QueryString (x.html?querystring=test) and then using a hidden frame pass on the data to an ASP Script on another server. For obtaining the QueryString i use the following:- CODE <script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } } </script> <script> alert( getQueryVariable("QueryString") ); </script> Now my problem is to create a dynamic frame(hidden) who's location chnges according to the QueryString like CODE http://someserver.com/sample.asp?QuerySting=TheValueGivenToTheHTMLFile |
|
|
|
May 30 2006, 07:49 PM
Post
#2
|
|
|
Advanced Member Group: Members Posts: 157 Joined: 16-May 06 Member No.: 13,476 |
This might not be the answer you're looking for, but why not make the JavaSscript page in ASP instead of JS? I mean, ASP can parse query strings too, and can even do so in a better way than JS, and besides, with ASP no one can see any processing you're doing to the query string.
|
|
|
|
May 31 2006, 09:09 AM
Post
#3
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 2 Joined: 30-May 06 Member No.: 13,724 |
This might not be the answer you're looking for, but why not make the JavaSscript page in ASP instead of JS? I mean, ASP can parse query strings too, and can even do so in a better way than JS, and besides, with ASP no one can see any processing you're doing to the query string. Hi! Well, i am currently now hosted on a website which allows ASP scripting, so my asp scripts are on another server so what you are saying i cannot do!! (PS. By the way how do you see how many points have you collected till now.) |
|
|
|
May 31 2006, 12:19 PM
Post
#4
|
|
|
Advanced Member Group: Members Posts: 157 Joined: 16-May 06 Member No.: 13,476 |
You can see here the number of points you have gathered so far. If I remember correctly, Astahost doesn't support ASP, but ASP sucks anyways. Use PHP! Sorry to tell you this, but ASP is really annoying and bad to use! PHP is so much better...
I'm really sorry for this answer, but I know both languages, and even PHP, that is often criticized as a really lousy language, is far superior to ASP. If you really want in on the current trends, check out Rails, as it seems really good (even though I've never tried it). And write a few messages here on there on the Astahost forums, and you'll see that in a few days you'll already have incredible hosting that supports PHP and Rails (and maybe even ASP, again, I'm not sure). |
|
|
|
Jun 24 2008, 03:58 AM
Post
#5
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
I have button in asp.Net form and I want to save result of a javascript function in a gridview by using event of button_onclicked
-question by franky |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 03:49 AM |