Submit() only some variables in JS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jcvel@canada.com

    Submit() only some variables in JS

    Hi All:
    1. Is there any way of submitting only several variables froma form in
    JS ?
    I have some constraints in the server side, so I would like to have a
    button and when clicked, submit only certain variables.
    2. Creating a new form changes my formatting. Is there a way of
    creating a form and superimposing it on top of another ?

    Yes I am new to JS. Thanks for your help

    JC
  • Evertjan.

    #2
    Re: Submit() only some variables in JS

    wrote on 15 feb 2008 in microsoft.publi c.inetserver.as p.general:
    Hi All:
    1. Is there any way of submitting only several variables froma form in
    JS ?
    You cannot submit a clientside variable, only it's content. [semantics]
    I have some constraints in the server side, so I would like to have a
    button and when clicked, submit only certain variables.
    2. Creating a new form changes my formatting. Is there a way of
    creating a form and superimposing it on top of another ?
    Done by a "superimposter" ??

    You can make a second hidden form,
    copy the data you want to submit into that,
    and submit that form with javascript.

    Yes I am new to JS. Thanks for your help
    Probably first learn some js on simpler tasks?

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Evertjan.

      #3
      Re: Submit() only some variables in JS

      Evertjan. wrote on 15 feb 2008 in microsoft.publi c.inetserver.as p.general:
      wrote on 15 feb 2008 in microsoft.publi c.inetserver.as p.general:
      >
      >Hi All:
      >1. Is there any way of submitting only several variables froma form in
      >JS ?
      >
      You cannot submit a clientside variable, only it's content. [semantics]
      >
      >I have some constraints in the server side, so I would like to have a
      >button and when clicked, submit only certain variables.
      >2. Creating a new form changes my formatting. Is there a way of
      >creating a form and superimposing it on top of another ?
      >
      Done by a "superimposter" ??
      >
      You can make a second hidden form,
      copy the data you want to submit into that,
      and submit that form with javascript.
      Come to think of it,
      just do not give those <input>
      a name and it won't be submitted,
      no js necessary.

      <form>
      <input name='sendMe' value='myData'> <br>
      <input value='DataNoTo BeSent'><br>
      <input type='submit' value='a button'>
      </form>

      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      Working...