{"id":376,"date":"2010-07-29T19:28:46","date_gmt":"2010-07-30T02:28:46","guid":{"rendered":"http:\/\/www.onvural.net\/melih\/thoughts\/?p=376"},"modified":"2010-07-29T19:28:46","modified_gmt":"2010-07-30T02:28:46","slug":"jquery-form-submit-ie-bug","status":"publish","type":"post","link":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/07\/29\/jquery-form-submit-ie-bug\/","title":{"rendered":"jQuery, form submit() IE bug"},"content":{"rendered":"<p>Ran into a really bizarre bug today.<\/p>\n<p>There is a lot of chatter about the form.submit() <a title=\"jQuery submit\" href=\"http:\/\/api.jquery.com\/submit\/\" target=\"_blank\">functionality<\/a> in jQuery on its API page. There&#8217;s also some results you&#8217;ll find on StackOverflow and the like about the functionality just not working. Two interesting bugs seem to be cropping up here&#8230;<\/p>\n<p>1) An input field with name or id of &#8220;submit&#8221; seems to somehow break the functionality of the submit function.<\/p>\n<p>2) It didn&#8217;t work at all for me in IE. I didn&#8217;t have any of the problems that were pointed out in the thread there, but nonetheless, it continued to throw an error in IE. Which got me thinking&#8230; how do folks debug JS code in IE? I would love a legitimate way to walk through and debug JS code without needing to buy Visual Studio.<\/p>\n<p>Anyway, the solution of finding the submit button and clicking it as opposed to submitting the form fixed it. Final code looks like:<\/p>\n<p>$(&#8220;#signupForm&#8221;).find(&#8220;button[name$=&#8217;submitBtn&#8217;]&#8221;).click();<\/p>\n<p>Very weird given that I&#8217;ve never had an experience like this in jQuery, which I think is a huge compliment to the library.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ran into a really bizarre bug today. There is a lot of chatter about the form.submit() functionality in jQuery on its API page. There&#8217;s also some results you&#8217;ll find on StackOverflow and the like about the functionality just not working. Two interesting bugs seem to be cropping up here&#8230; 1) An input field with name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[2,1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pQyAq-64","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":386,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/08\/18\/scuba-class-fail\/","url_meta":{"origin":376,"position":0},"title":"SCUBA class fail","date":"August 18, 2010","format":false,"excerpt":"I did everything wrong at\u00c2\u00a0SCUBA class today. Funny because I thought that I did everything else quite well today. I got to class late because I got into a really good discussion with Jason and Andrew about how to work through some new questions that we're posing at work. It's\u2026","rel":"","context":"In &quot;just thinking out loud&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":255,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/02\/08\/another-bug-bites-the-dust\/","url_meta":{"origin":376,"position":1},"title":"Another bug bites the dust","date":"February 8, 2010","format":false,"excerpt":"I've been working on an interesting project lately that I hope to share with everyone soon. I keep running into the oddest of problems trying to get things going. It's almost as if just getting the whole thing started is the biggest challenge. After that... it's going to be a\u2026","rel":"","context":"In &quot;Technology&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1691,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2016\/04\/04\/moving-faster-than-the-documentation\/","url_meta":{"origin":376,"position":2},"title":"Moving faster than the documentation","date":"April 4, 2016","format":false,"excerpt":"I've decided to hop back into the game, and build a new app. I'm not announcing what it is yet because it's no where near ready, but I really like the idea. I've also decided to be really trendy, and use the latest in software development tools. This kills many\u2026","rel":"","context":"In &quot;Becoming a PM&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":250,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2010\/01\/21\/being-restful-aint-that-easy\/","url_meta":{"origin":376,"position":3},"title":"Being RESTful ain't that easy","date":"January 21, 2010","format":false,"excerpt":"This is a more technical post, and so if you aren't interested in some nuances of browsers and Internet architecture, then you should pass on this one. It's okay, you won't hurt my feelings. Man, we ran into a doozy today. We had one report from a user that people\u2026","rel":"","context":"In &quot;Technology&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":85,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2008\/02\/21\/chronicling-my-visualizaton-project-start-with-an-error\/","url_meta":{"origin":376,"position":4},"title":"Chronicling My Visualizaton Project - Start with an error","date":"February 21, 2008","format":false,"excerpt":"It seems that you can't claim that a project has started until there is a bug of some sort that has nothing to do with any code that you have written. In fact, it's a bug in you setting up your system, which often tends to convince folks that the\u2026","rel":"","context":"In &quot;School Year 07-08&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":995,"url":"https:\/\/www.onvural.net\/melih\/thoughts\/2014\/03\/11\/introducing-bug-hikes\/","url_meta":{"origin":376,"position":5},"title":"Introducing bug hikes","date":"March 11, 2014","format":false,"excerpt":"So it turns out that having a yard, and being by the park, has inspired a whole new activity for the kids... bug hikes! The kids went out yesterday, and found a mole in the woods. They look for spiders, ants, bees, and anything else that crawls. Genevieve is totally\u2026","rel":"","context":"In &quot;Fatherhood&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts\/376"}],"collection":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/comments?post=376"}],"version-history":[{"count":0,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/posts\/376\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/categories?post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onvural.net\/melih\/thoughts\/wp-json\/wp\/v2\/tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}