ASP not reading a dynamically set Javascript value

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

    ASP not reading a dynamically set Javascript value


    I have an Active Server Page with embedded Javascript that allows th
    user to update certain values dynamically.

    e.g. window.document .myForm.myTextb ox.value = "some new value";

    However, when the user clicks Submit and the Form is processed on th
    server, the Request object doesn't recognize the new values set by th
    Javascript code. The values come back as "".

    Has anyone seen this behavior? How can it be rectified?

    Thanks in advance!

    Regards

    --
    imxu
    -----------------------------------------------------------------------
    imxuf's Profile: http://www.highdots.com/forums/member.php?userid=18
    View this thread: http://www.highdots.com/forums/showthread.php?t=148290

  • Evertjan.

    #2
    Re: ASP not reading a dynamically set Javascript value

    imxuf wrote on 07 jun 2005 in comp.lang.javas cript:
    [color=blue]
    > I have an Active Server Page with embedded Javascript that allows the
    > user to update certain values dynamically.
    >
    > e.g. window.document .myForm.myTextb ox.value = "some new value";
    >
    > However, when the user clicks Submit and the Form is processed on the
    > server, the Request object doesn't recognize the new values set by the
    > Javascript code. The values come back as "".
    >
    > Has anyone seen this behavior? How can it be rectified?
    >[/color]

    Impossible.

    ASP does not know about <form>s.

    If "some new value" shows up in the textbox, it will be sent to the server
    onsubmit in the same way as when you type in "some typed value".

    Could you test if this differs?

    =============== ==

    NB: when submitted
    <form> is detected as request.queryst ring("myTextbox ")
    while
    <form method=post> as request.form("m yTextbox")
    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)

    Comment

    Working...