<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: On AJAX submit - external javascript calls die?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die</link>
		<description>Gravity Support Forums Topic: On AJAX submit - external javascript calls die?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:34:38 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/on-ajax-submit-external-javascript-calls-die" rel="self" type="application/rss+xml" />

		<item>
			<title>tobaccordshow on "On AJAX submit - external javascript calls die?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die#post-23641</link>
			<pubDate>Mon, 18 Apr 2011 21:43:33 +0000</pubDate>
			<dc:creator>tobaccordshow</dc:creator>
			<guid isPermaLink="false">23641@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Worked like a charm. Thanks for this!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "On AJAX submit - external javascript calls die?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die#post-23603</link>
			<pubDate>Mon, 18 Apr 2011 16:04:10 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">23603@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What's happening is that when the form is reloaded via AJAX, the previous submit button is replaced by a new submit button in the DOM and your javascript is not bound to this new object. To bind your javascript to the submit button with every AJAX form load use this GF jquery event:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tobaccordshow on "On AJAX submit - external javascript calls die?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die#post-23602</link>
			<pubDate>Mon, 18 Apr 2011 16:00:25 +0000</pubDate>
			<dc:creator>tobaccordshow</dc:creator>
			<guid isPermaLink="false">23602@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would show you the site, but it's password protected. Email me at the address I registered with and I'll give you credentials so you can see it work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tobaccordshow on "On AJAX submit - external javascript calls die?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die#post-23599</link>
			<pubDate>Mon, 18 Apr 2011 15:53:34 +0000</pubDate>
			<dc:creator>tobaccordshow</dc:creator>
			<guid isPermaLink="false">23599@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, not a multi page form.&#60;/p&#62;
&#60;p&#62;If the AJAX form returns with errors, there's the opportunity to, of course, click again and submit. That's where the JS dies.&#60;/p&#62;
&#60;p&#62;Small update to my script: I have two binds now on the jQuery onmouseclick and onmouseup. It's to give that illusion that you pressed and released the button. It works great on the first click (and then you see the AJAX spinner appear). After it returns with errors, the JS never triggers again. No errors. Just doesn't trigger.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "On AJAX submit - external javascript calls die?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die#post-23590</link>
			<pubDate>Mon, 18 Apr 2011 14:49:08 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23590@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Shouldn't the initial click of the submit button be all that is necessary for the action since that click submits the form anyway? What do you mean it works great on the initial click but not afterwards? Are you referring to a multi-page form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tobaccordshow on "On AJAX submit - external javascript calls die?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/on-ajax-submit-external-javascript-calls-die#post-23586</link>
			<pubDate>Mon, 18 Apr 2011 14:44:40 +0000</pubDate>
			<dc:creator>tobaccordshow</dc:creator>
			<guid isPermaLink="false">23586@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've got a very simple jQuery call to toggle a class of active on submit button click:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;#39;#submit_button&#38;#39;).bind(&#38;#39;click&#38;#39;,function() {
$(this).toggleClass(&#38;#39;active&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It works great on the initial click. Then the js call does not occur afterwards. Is there anything I need to do to override GF js calls?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
