Solved

Submit Form via LINK to AJAX (FireFox Beta does not work NOW, use to)

Posted on 2011-03-10
3
437 Views
Last Modified: 2012-05-11
Hello All;

This USE to work in FF, all the way up until they made a change in the new FF Beta.
This works in IE and Chrome, and Older FF.

<form name="HelpForm_1" action="Add-Ons/HelpContent.asp?rhcid=6" method="post" onsubmit="xmlhttpPost('Add-Ons/HelpContent.asp?rhcid=6', 'HelpForm_1', 'HelpDiv_1', '<img src=\'graph/pleasewait.gif\'>'); return false;" onClick="showhelp('HelpID_1');">
 
<a title="How do I edit information in my Profile?" language="Javascript" onmouseover="window.status='How do I edit information in my Profile?';return true" onmouseout="window.status=''; return true" class="HelpButton" href="javascript:submit(xmlhttpPost('Add-Ons/HelpContent.asp?rhcid=6', 'HelpForm_1', 'HelpDiv_1', '<img src=\'graph/pleasewait.gif\'>'));">How do I edit information in my Profile?</a>

<input type="hidden" name="Type" value="Help" />
<input type="hidden" name="hid" value="1" />
</form>

Open in new window


This as you can see is displaying the information via AJAX.
I have tried several different things that I have found online
Example:
<a href="#" onClick="javascript:document.yourFormName.submit();return false">link</a>

But, this will display the actual page, not display in the AJAX <div>

Any other thoughts or suggestions on this one?
(And this is not the only issue that I have on my site(s) with the new FF change, What a blasted mess, they really need to stop messing with the browser)

Carrzkiss
0
Comment
Question by:Wayne Barron
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 35104961
try changing:
 href="javascript:submit(xmlhttpPost('Add-Ons/HelpContent.asp?rhcid=6', 'HelpForm_1', 'HelpDiv_1', '<img src=\'graph/pleasewait.gif\'>'));"

to:
 href="#" onclick="xmlhttpPost('Add-Ons/HelpContent.asp?rhcid=6', 'HelpForm_1', 'HelpDiv_1', '<img src=\'graph/pleasewait.gif\'>'); return false;"
0
 
LVL 11

Expert Comment

by:Ovid Burke
ID: 35107105
To simplify your AJAX implementation, I would suggest you use jQuery or MooTools. In any event can you post the code for your functions xmlhttpPost and showHelp?
0
 
LVL 30

Author Closing Comment

by:Wayne Barron
ID: 35107390
Thank You Hielo.
Worked like a charm.
I tried everything around this solution, but not this one.

Works a charm.
Carrzkiss
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question