aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Send a Table in Form Submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Send a Table in Form Submit" Watch "Send a Table in Form Submit" New topic
Author

Send a Table in Form Submit

anand phulwani
Ranch Hand

Joined: Sep 10, 2005
Posts: 242
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.


Thanks and Regards, Anand
SCJP 5.0 310-055 73%, SCWCD 1.4 310-081 78%, IBM DB2 9 Fundamentals 000-730 62%
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Sep 10, 2005
Posts: 242
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
That is what I said in the fewest words possible.

Eric
anand phulwani
Ranch Hand

Joined: Sep 10, 2005
Posts: 242
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Send a Table in Form Submit
 
Similar Threads
JavaScript DataStructures
Strange behaviour when i select for than 3 checkbox on my page.
Strange behaviour when i select for than 3 checkbox on my page.
Multiple submissions
expand table row