referencing parameters in JS, POST vs. GET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Berger

    referencing parameters in JS, POST vs. GET

    I would like to reference the "name=value " parameters sent to my page
    (submit'ted from a previous page with a <form>.) in my javascript.

    I can do it if my second form is called with a "get" using the
    window.location .search property, etc.

    I don't know where these parameters are if my second page is called with a
    "post"...

    Thanks
    Mike


  • kaeli

    #2
    Re: referencing parameters in JS, POST vs. GET

    In article <vqfhr44dm8lgfa @corp.supernews .com>,
    mbergerREMOVETH IS@skypoint.com enlightened us with...[color=blue]
    >
    > I can do it if my second form is called with a "get" using the
    > window.location .search property, etc.
    >
    > I don't know where these parameters are if my second page is called with a
    > "post"...[/color]



    AFAIK, you can't get POST params from client-side javascript. POST is
    submitted to the server. Actually, so is GET. Javascript can parse the
    URL, which is what lets it get the params from a GET that are in that
    URL.


    -------------------------------------------------
    ~kaeli~
    Jesus saves, Allah protects, and Cthulhu
    thinks you'd make a nice sandwich.


    -------------------------------------------------

    Comment

    Working...