Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Really need some help, form onsubmit appears to not work in Firefox

45 views
Skip to first unread message

Bryan Garaventa

unread,
Jul 7, 2009, 3:49:18 AM7/7/09
to dev-...@lists.mozilla.org
Hi, if you have any ideas about this issue, I'd really appreciate your help. I've been trying to fix this off and on for the last six months, and am having no luck.

I've created an ajax jQuery driven AWS shopping site at
http://gutterstar.net/amazon.php

When this site is viewed in IE, it appears normally. The main page contains the embedded section where jQuery dynamically loads the content whenever any selection is made.

When the page first loads, a JS statement at the bottom of the page activates the submit button of a partially hidden form. This initial data is the first to populate the page, which is random unless parameters are included in the url. The script uses a click() method to accomplish this, and the form has an onsubmit handler to handle the ajax request.

When this page is opened in Firefox though, for some reason, the onsubmit handler, which always returns false, is always ignored, and the action url is always used to direct the browser to a new page.

Can you see why this is happening? This is really driving me nuts.

Thanks, and best wishes,
Bryan Garaventa

Martin Honnen

unread,
Jul 7, 2009, 7:17:56 AM7/7/09
to

When I load the above URL with Firefox 3.0 the browser's error console
shows two script errors:

Error: setting a property that has only a getter
Source File: http://gutterstar.net/ajax/amazon.js
Line: 79

Rename that variable named 'history', it interferes with the browser's
history object.


--

Martin Honnen
http://msmvps.com/blogs/martin_honnen/

0 new messages