EllisLab text mark
Advanced Search
     
CI form validation witth jquery .ajax and contentType
Posted: 30 October 2012 06:21 PM   [ Ignore ]
Joined: 2012-10-24
2 posts

Hi,

I have a form in a jquery dialog modal. I’m ajax posting this to my controller which does a CI form validation and responds back. I noticed IE9 wasn’t working when pressing the submit button however FireFox was fine. I found a suggestion that said to try adding “contentType: “application/json; charset=utf-8” - I did this and it appears to submit properly now, but my CI form validation doesn’t seem to work at all. If I rem it out, it works again in FF.

Does anyone have any suggestions on what could be the issue?