Current location: Hot Scripts Forums » General Web Coding » JavaScript » i need to pass value of one page to another but using only javascript


i need to pass value of one page to another but using only javascript

Reply
  #1 (permalink)  
Old 12-29-03, 03:44 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up i need to pass value of one page to another but using only javascript

hi,
i need to send the value of one page to another but by using only javascript...
people if u could help me out with this.

thx in advance***
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 05:46 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

It may not be the best solution, but if you wnat to pass your variables page-to-page, you can actually use "fake" GET method.

So to speak, you can set a parameter in an anchor like this:

Code:
<a href="path/to/foo.html?bar=hogehoge">
And then later access the value via window.location.href element. You will get the entire URL, but now you can take out the bar=hogehoge part with substring or something and use it in the script. This will work the best for html or alike extensions, and not .php, .cgi, etc...

Hope this gives you some idea. If it's a popup, you can do some interactions between the parent and popup with window.opener (to refer to parent) or subWin (or whatever you assigned your popup window to).

Cheers.
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 12-30-03, 03:55 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
hi thx 4 the help

i guess that too should work, i got a solution for my prob..
thx 4 the help.
regards,
traceMe
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
How do I have a page automatically refesh ONLY ONCE! mysticonline JavaScript 3 12-23-03 04:49 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM
echo foriegn html in static page fergusom Everything Java 4 11-10-03 02:35 AM


All times are GMT -5. The time now is 11:39 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.