Solved

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

Posted on 2011-03-10
3
441 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 31

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

726 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