Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

911 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

27 Experts available now in Live!

Get 1:1 Help Now