![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| JavaScript JavaScript are you needing help with functions in your script, free help is offered here for all JavaScript problems so if you have an JavaScript error in your code just ask. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I need to have a static html page basically pass all GET arguments from one page to another. For example, I'm on page A. It has "x=12&y=45". There's a link on page A that goes to page B. Page B has a link to page C. Basically what page B needs to do is pass the "x=12&y=45" to page C. It doesn't need to do anything other than pass it. How can I do this? | |||
| Advertisements |
| | #2 | ||
| "Shabam" <chalupa@yomama-nospam.com> wrote in message news:vdCdndUURKGsGLbeRVn-uQ@adelphia.com... > I need to have a static html page basically pass all GET arguments from one > page to another. For example, I'm on page A. It has "x=12&y=45". There's > a link on page A that goes to page B. Page B has a link to page C. > Basically what page B needs to do is pass the "x=12&y=45" to page C. It > doesn't need to do anything other than pass it. > > How can I do this? Is this what you're looking for? JavaScript must be enabled for this to work. http://localhost/page1.htm?x=12&y=45 <html> <head> <title>page1.htm</title> <script type="text/javascript"> function next() { location.href = "page2.htm" + location.search; } </script> </head> <body> <a href="javascript:next()">page2</a> </body> </html> <html> <head> <title>page2.htm</title> <script type="text/javascript"> function next() { location.href = "page3.htm" + location.search; } </script> </head> <body> <a href="javascript:next()">page3</a> </body> </html> <html> <head> <title>page3.htm</title> <script type="text/javascript"> alert(location.search); </script> </head> <body> </body> </html> | |||
| | #3 | ||
| ["Followup-To:" header set to alt.comp.lang.javascript.] On 2005-09-17, Shabam <chalupa@yomama-nospam.com> wrote: > I need to have a static html page basically pass all GET arguments from one > page to another. For example, I'm on page A. It has "x=12&y=45". There's > a link on page A that goes to page B. Page B has a link to page C. > Basically what page B needs to do is pass the "x=12&y=45" to page C. It > doesn't need to do anything other than pass it. > > How can I do this? pass them using get, and grab from document.location.query using javasccript. you'll need to unescape() them before using them. -- Bye. Jasen | |||
| Featured Websites | ||||
|
![]() |
| Tags: argument, page, pass |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I pass data to an HTML page so that it can edit it? | Tom Thackrey | PHP | 1 | 07-01-2007 3:37 PM |
| How to pass data to HTML page without cookies? | Robert Oschler | PHP | 1 | 07-01-2007 3:37 PM |
| Pass an argument to Load data Infile | Dale | Database | 0 | 05-31-2007 8:42 PM |
| paypal again but not an argument, well not yet :) | 2003.07@lastname.org.uk | Ebay Technical Questions | 2 | 05-30-2007 2:15 AM |
| paypal again but not an argument, well not yet :) | Ian Cox | Ebay Technical Questions | 2 | 05-30-2007 1:37 AM |
| Featured Websites | ||||
|