Forum Moderators: open

Message Too Old, No Replies

dom issues w/Firefox alt. innerHTML

replace innerhtml

         

kevison

7:38 pm on Jul 19, 2007 (gmt 0)

10+ Year Member



I am trying to add some functionality to an existing website. I have a page that has an input field and a select field. When the user select out of the select drop down, if they choose the option with no price, no problem. If they choose the other option with a bonus service, then I add some extra html with inputs. I was doing this with a div or span and then doing the innerHTML to add the additional INPUT tags. This works for IE but not for firefox for some reason.

So I thought No problem I will the HTML DOM and code for firefox using the DOM. Well did so on my little test page and it seems to work..., implementing it on the main production page it doesnt work.

On my form i have the action set to add.asp and an on_submit pointing to a js function to check to make sure my qty field has a value before heading to add.asp.

When hitting the submit button and breaking in the js function I checked to see if I had my input tags that are dynamically generated and I do... however when I put breaks in the add.asp the input tags do not show up(ie: request("inputtagname"). So from one page to another only these dynamically added input tags and their values vanish.

Anyone ever heard of this happening with Firefox and with Opera as well.

Thanks in advance

XtendScott

4:47 am on Jul 21, 2007 (gmt 0)

10+ Year Member



If you had example script it would help.

Also it might be a little better to post the question in the JavaScript section here: [webmasterworld.com...]