Link to home
Start Free TrialLog in
Avatar of Wayne Barron
Wayne BarronFlag for United States of America

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Avatar of Wayne Barron

ASKER

Thank You Hielo.
Worked like a charm.
I tried everything around this solution, but not this one.

Works a charm.
Carrzkiss