Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2012, 11:39 AM   PM User | #1
css-quest
New Coder

 
Join Date: Nov 2010
Posts: 42
Thanks: 7
Thanked 0 Times in 0 Posts
css-quest is an unknown quantity at this point
Dynamically Add Rows To Table - PHP Posting

Hi folks,

I've created my form with the functionality included to dynamically add rows to a table using a script as posted within another thread here.

However when I click 'Submit' in the form page it's supposed to load the form submit PHP page (with validation parser) to post the values to the server and send as an email. This doesn't happen, instead, clicking Submit loads a blank (white) page with no content.

Can anyone advise why? Thanks!!
css-quest is offline   Reply With Quote
Old 10-10-2012, 02:07 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
if you are using the code from post 17 in that thread you should have a look at it in IE. IE8 (and below, at least) cannot make nested table elements using innerHTML - you would be better to use document.createElement("td") - you can then manipulate the innerHTML of the td as there are no more nested elements. You can also append an incrementing variable (like your newno) directly to the newly created rows, rather than use the replace workaround (see my post here for an example).

If you ended up going with jQuery's clone() that's probably all different. Maybe you should post the latest version of your code?

Last edited by xelawho; 10-10-2012 at 02:30 PM..
xelawho is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 07:29 PM.


Advertisement
Log in to turn off these ads.