Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> JavaScript Frames & Querystring
Funtoosh
post May 30 2006, 03:11 PM
Post #1


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
seec77
post May 30 2006, 07:49 PM
Post #2


Advanced Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
Funtoosh
post May 31 2006, 09:09 AM
Post #3


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 2
Joined: 30-May 06
Member No.: 13,724



QUOTE(seec77 @ May 30 2006, 07:49 PM) *

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.)
Go to the top of the page
 
+Quote Post
seec77
post May 31 2006, 12:19 PM
Post #4


Advanced Member
Group Icon

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).
Go to the top of the page
 
+Quote Post
iGuest
post Jun 24 2008, 03:58 AM
Post #5


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting Screen Resolution using Javascript.(8)
  2. How To Create A Popup Window With Javascript?(19)
  3. javascript vs java(12)
  4. Javascript: Disable Mouse Right-click In Browser(16)
  5. Best Way To Learn Javascript(9)
  6. Javascript: Text To Texbox And Back To Text(2)
  7. Unobtrusive Javascript Image Rollovers(0)
  8. Dynamicdrive: Good Site For JavaScript Codes(5)
  9. Downloads With Javascript?(7)
  10. Javascript: Simple Slidedown Menu(2)
  11. JavaScript: Simple Dropdown Menu(1)
  12. Calling Of Functions Between Mulitple External Javascript Files(2)
  13. Javascript: Browser Detection Script(0)
  14. JavaScript: Hide And Show Any Element With CSS(5)
  15. Ever Needs To Find Out A Table Height Or With With JavaScript(2)
  1. Create And Import JavaScript Modules For A Large Script(2)
  2. Vertical Marquee Using JavaScript(0)
  3. JavaScript Off Redirect Script(2)
  4. I Need Help With Javascript.(7)
  5. Problems With Dynamically Loading Javascript(2)
  6. Add Text To Textarea(6)
  7. Javascript Question(4)
  8. Javascript: How Do I Create Embedded Pop-up Windows?(7)
  9. Problem With Javascript Alert();(9)
  10. Include Function For Javascript(7)
  11. Fun With Javascript And Forms(2)
  12. Javascript Help Needed : Alert(z) Works Fine But Document.write Not(2)
  13. Javascript Changes Aren't Working.(6)


 



- Lo-Fi Version Time is now: 11th October 2008 - 03:49 AM