HighDots Forums  

Submit a value

Javascript JavaScript language (comp.lang.javascript)


Discuss Submit a value in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jan
 
Posts: n/a

Default Submit a value - 09-21-2003 , 10:13 AM






Hi,
Problem:
I have asigned a number (34) in javascript to ANB10
then i want to submit with:

<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

but when I submit the form I see on my mail:
totale prijs ANB10 !!
instead of : totale prijs 34??

HOW come
and what is the solution?

Thanks jan



Reply With Quote
  #2  
Old   
p cooper
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 10:18 AM







do it all with JS.
form.totaleprijs.value=ANB10

jan wrote:

Quote:
Hi,
Problem:
I have asigned a number (34) in javascript to ANB10
then i want to submit with:

INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10

but when I submit the form I see on my mail:
totale prijs ANB10 !!
instead of : totale prijs 34??

HOW come
and what is the solution?

Thanks jan




Reply With Quote
  #3  
Old   
jan
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 10:39 AM



I tried this:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
ANB10=88
form.formpje.totaleprijs.value=ANB10
</script>

but then: "form not defined"
the NAME of the form is: formpje.

jan

"p cooper" <pdconetwofour_numbers_ (AT) yahoo (DOT) co.uk> schreef in bericht
news:Mijbb.1124$nd2.11211928 (AT) news-text (DOT) cableinet.net...
Quote:
do it all with JS.
form.totaleprijs.value=ANB10

jan wrote:

Hi,
Problem:
I have asigned a number (34) in javascript to ANB10
then i want to submit with:

INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10

but when I submit the form I see on my mail:
totale prijs ANB10 !!
instead of : totale prijs 34??

HOW come
and what is the solution?

Thanks jan






Reply With Quote
  #4  
Old   
Bryan Field-Elliot
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 10:55 AM



jan wrote:
Quote:
I tried this:

SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
ANB10=88
form.formpje.totaleprijs.value=ANB10
/script

but then: "form not defined"
the NAME of the form is: formpje.

Try this instead:

document.formpje.totaleprijs.value=ANB10;



--

Bryan Field-Elliot
http://netmeme.org



Reply With Quote
  #5  
Old   
jan
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 11:07 AM



I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??

jan

"Bryan Field-Elliot" <bryan (AT) netmeme (DOT) org> schreef in bericht
news:JRjbb.305645$2x.89352 (AT) rwcrnsc52 (DOT) ops.asp.att.net...
Quote:
jan wrote:
I tried this:

SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
ANB10=88
form.formpje.totaleprijs.value=ANB10
/script

but then: "form not defined"
the NAME of the form is: formpje.


Try this instead:

document.formpje.totaleprijs.value=ANB10;



--

Bryan Field-Elliot
http://netmeme.org




Reply With Quote
  #6  
Old   
Bryan Field-Elliot
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 11:14 AM



jan wrote:
Quote:
I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??

What next, hmmm..Well, this looks suspect:


<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

Take out the space in the field name, like this:


<INPUT NAME = "totaleprijs" TYPE = "HIDDEN" VALUE=ANB10>


--

Bryan Field-Elliot
http://netmeme.org



Reply With Quote
  #7  
Old   
jan
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 03:22 PM



YES this it!
Thanks
jan

"Bryan Field-Elliot" <bryan (AT) netmeme (DOT) org> schreef in bericht
news:I7kbb.305781$2x.89165 (AT) rwcrnsc52 (DOT) ops.asp.att.net...
Quote:
jan wrote:
I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??


What next, hmmm..Well, this looks suspect:


INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10

Take out the space in the field name, like this:


INPUT NAME = "totaleprijs" TYPE = "HIDDEN" VALUE=ANB10


--

Bryan Field-Elliot
http://netmeme.org




Reply With Quote
  #8  
Old   
Bryan Field-Elliot
 
Posts: n/a

Default Re: Submit a value - 09-21-2003 , 03:44 PM



jan wrote:
Quote:
YES this it!
Thanks
jan

Super!


--

Bryan Field-Elliot
http://netmeme.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.