Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send a Table in Form Submit

 
anand phulwani
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I have a table in which the user adds rows through javascript,after he has added the required rows,he clicks on the submit button,i need to send the table data as a post request to the server,how is that possible,can i send the table itself or is there any other way,i can do that by AJAX but i need to know to submit without using javascript.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lol, you are creating he tables with JavaScript but you can not ue it to submit?

you need to add hidden form elements.

Eric
[ June 11, 2007: Message edited by: Eric Pascarello ]
 
anand phulwani
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Eric,

Please advice me if i have got the right correct thing,what you wished to say,whenever the user adds a row thorugh javascript,the details get entered into an input control which is simulataneously created in the form element and the control is hidden,when the user clicks on the submit button the details get submitted with the form.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is what I said in the fewest words possible.

Eric
 
anand phulwani
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a tonne,eric,it is always great to have people like you moderating the ranch and offering a helping hand whenever possible,keep the good work going,my best wishes are always with you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic