Solved

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

Posted on 2011-03-10
3
431 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now