Results 1 to 2 of 2

Thread: Client Side JavaScript and the Request Object

  1. #1

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Client Side JavaScript and the Request Object

    I know that you can gather data from a cookie with client-side javascript so is it also possible to get data from the Request object? (This is what it is called in ASP anyway).

    Reason I need this is:
    I have a page that sometimes has a variable passed by the GET method of a form - I need to get the value of this variable in client-side JavaScript.

    Any ideas?

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    Store the variable in the location (i.e. "www.realisticgraphics.com/index.htm?MyVar=MyValue")

    Then you can retreive that value through the location.search property.
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

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