I test the coldfusion program in IE9. However, I find some problems.
However, when I submit the form, it shows me error "cannot find form.attach".
I find that IE8 can pass it correctly. But it fails in IE9.
Can anyone help me to solve this problem?
In our coding, we only create some textbox within a div component in a sub-windows(windows.open). Then, use appendChild to add this div to our form (parent windows). I have checked the input fields are added correctly.
Then, only submit the whole form when press submit button.
However, it cannot find form.attach.
Okay, how about this. Try dumping the entire Form scope out from your CF page. What do you see? This will show you every form field that was submitted with the request.
<cfdump var="#form#" />
Is your field there? If not, then it is not being submitted. You can use something like Fiddler to examine the http headers to verify it is being sent or not.
Yes, I have checked it.
The variable exists in IE8.
However, it does not exist in IE9.
I tried to change the method "AppendChild" to "innerHTML". The field still cannot be submitted.
It seems IE9 cannot support dynamic form field.
Is there any method to solve this problem?
Apparently there are issues with using appendChild in IE9 http://msdn.microsoft.com/en-us/library/ms535934%28v=vs.85%29.aspx
It looks like IE9 only supports it if you are running in standards mode.
There are actually several posts that talk about this issue. Like this one http://stackoverflow.com/questions/436710/element-appendchild-chokes-i n-ie
Europe, Middle East and Africa