...

View Full Version : Dynamically Add Rows To Table - PHP Posting



css-quest
10-10-2012, 12:39 PM
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 (http://www.codingforums.com/showthread.php?t=273952).

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!!

xelawho
10-10-2012, 03:07 PM
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 (http://www.codingforums.com/showthread.php?p=1278015#post1278015) 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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum