PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

IE9.js not working after AJAX submit

  1. Lea Cohen
    Member

    Hi

    I am using the http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js script, in order to enable some css styling of the submit button in IE8.

    However, after submitting an erroneous form, the submit button loses the styling that was enabled by that script.

    What can I do to make stay?

    Posted 11 years ago on Wednesday October 24, 2012 | Permalink
  2. Can you share a link to the page where your form is embedded please?

    In general though, when a script fails to load after a validation error, you need to enqueue it again using the gform_post_render hook http://www.gravityhelp.com/documentation/page/Gform_post_render

    Posted 11 years ago on Thursday October 25, 2012 | Permalink
  3. Lea Cohen
    Member

    Thank you.

    Here is a link. The site is in Hebrew, so I'll try to guide you: The form is on the left side, and the blue button on it is the submit button. Please view it in IE8, then click the submit button without entering any input. What you should see is that the button moves to the right of the form, and loses its padding.

    Regarding the gform_post_render hook - I already have such a hook, so all I need to know is what to write in it in order to trigger the IE9.js script. could you help me with that?

    Posted 11 years ago on Thursday October 25, 2012 | Permalink
  4. Hi Leac,

    After submitting the form in error, the styling did not appear to be lost? http://grab.by/h2pu

    Posted 11 years ago on Thursday October 25, 2012 | Permalink
  5. Lea Cohen
    Member

    That's funny. I check a few computers with Internet Explorer 8 on them, and all of them showed me that styling disappeared: http://grab.by/h5B4

    Posted 11 years ago on Sunday October 28, 2012 | Permalink
  6. I am also having a hard time replicating this. It seems to work for me using IE9 on IE8 mode.
    http://grab.by/hbha

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink
  7. Hi, Lea,

    I was able to see the issue in IE8. The best thing to do for this is to disable AJAX for the form; it is such a small form that you really don't need it enabled. That way you do not have to worry about reinitializing the script.

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink