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

Re: Submit() only some variables in JS by Evertjan

Evertjan
Fri Feb 15 03:20:23 CST 2008

wrote on 15 feb 2008 in microsoft.public.inetserver.asp.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)

Re: Submit() only some variables in JS by Evertjan

Evertjan
Fri Feb 15 03:27:08 CST 2008

Evertjan. wrote on 15 feb 2008 in microsoft.public.inetserver.asp.general:

> wrote on 15 feb 2008 in microsoft.public.inetserver.asp.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='DataNoToBeSent'><br>
<input type='submit' value='a button'>
</form>

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

Re: Submit() only some variables in JS by Tim

Tim
Fri Feb 15 07:42:46 CST 2008

"Evertjan." <exjxw.hannivoort@interxnl.net> wrote:

>Come to think of it,
>just do not give those <input>
>a name and it won't be submitted,
>no js necessary.

Or set "disabled=true " for the ones you don't want to submit.
I'd add "id" attributes to Evertjan's form:

<form>
<input name='sendMe' value='myData' id="sendme"><br>
<input value='DataNoToBeSent' id="datano"><br>
<input type='submit' value='a button'>
</form>

Then if you want to submit only sendme, run this statement before
submitting:

document.getElementById("sendme").disabled = true;

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt

Re: Submit() only some variables in JS by jcvel

jcvel
Fri Feb 15 08:26:48 CST 2008

On Feb 15, 8:42=A0am, Tim Slattery <Slatter...@bls.gov> wrote:
> "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
> >Come to think of it,
> >just do not give those <input>
> >a name and it won't be submitted,
> >nojsnecessary.
>
> Or set "disabled=3Dtrue " for the ones you don't want tosubmit.
> I'd add "id" attributes to Evertjan's form:
>
> <form>
> <input name=3D'sendMe' value=3D'myData' id=3D"sendme"><br>
> <input value=3D'DataNoToBeSent' id=3D"datano"><br>
> <input type=3D'submit' value=3D'a button'>
> </form>
>
> Then if you want tosubmitonlysendme, run this statement before
> submitting:
>
> document.getElementById("sendme").disabled =3D true;
>
> --
> Tim Slattery
> MS MVP(Shell/User)
> Slatter...@bls.govhttp://members.cox.net/slatteryt

Thanks guy, all makes sense. I'll give atry and will reply my
findings.!!!

Re: Submit() only some variables in JS by jcvel

jcvel
Fri Feb 15 09:35:47 CST 2008

On Feb 15, 9:26=A0am, jc...@canada.com wrote:
> On Feb 15, 8:42=A0am, Tim Slattery <Slatter...@bls.gov> wrote:
>
>
>
>
>
> > "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
> > >Come to think of it,
> > >just do not give those <input>
> > >a name and it won't be submitted,
> > >nojsnecessary.
>
> > Or set "disabled=3Dtrue " for the ones you don't want tosubmit.
> > I'd add "id" attributes to Evertjan's form:
>
> > <form>
> > <input name=3D'sendMe' value=3D'myData' id=3D"sendme"><br>
> > <input value=3D'DataNoToBeSent' id=3D"datano"><br>
> > <input type=3D'submit' value=3D'a button'>
> > </form>
>
> > Then if you want tosubmitonlysendme, run this statement before
> > submitting:
>
> > document.getElementById("sendme").disabled =3D true;
>
> > --
> > Tim Slattery
> > MS MVP(Shell/User)
> > Slatter...@bls.govhttp://members.cox.net/slatteryt
>
> Thanks guy, all makes sense. I'll give =A0atry and will reply my
> findings.!!!- Hide quoted text -
>
> - Show quoted text -

I tried it and it worked by disabling the <input..>
Thanks yor your help
Juan