Skip to main content
August 28, 2012
Question

Form submission in IE9

  • August 28, 2012
  • 1 reply
  • 1350 views

Hi All,

I test the coldfusion program in IE9. However, I find some problems.

I use javascript to add new input box (type=hidden, name="attach") in the form. Before submit the form, I use document.getElementsByName("attach") to check its existence. It shows me there is one item with the name "attach".

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?

    This topic has been closed for replies.

    1 reply

    Miguel-F
    Inspiring
    August 28, 2012

    Could you share your javascript and form code so we can have a look?

    August 28, 2012

    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.

    Miguel-F
    Inspiring
    August 28, 2012

    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.