Results 1 to 4 of 4

Thread: retrieving variables from javascript function to another page

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Unhappy retrieving variables from javascript function to another page

    Is there a way to pass a variable from a javascript function to another page? I want to retrieve the value of this variable using the request object.

    Any advice will be greatly appreciated. Thanks.

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Use a cookie?

  3. #3
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    Sounds like you have to create a form... and pass the values to an ASP. Then you will be able to use the Object Request.

    If you dont want to use an ASP. You can still do the form in the first one.. and then in the second page... create a JavaScript function to substract the vars and values from the url string
    "The difference between mad and genius is the success"

  4. #4
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    You can parse the querystring client side though, you don't have to necessarily use a server-side language... so javascript can be used.

    Take a look here.

    http://www.jamesrking.com/left_brain...uerystring.asp
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width