Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-09-2008
Member
 
Join Date: Nov 2005
Posts: 930
Onclick and Firefox3

I'm experiencing a very strange behaviour in Firefox.
I have a button with a onclick

Code: HTML

Code:
<button type="button" style="border:solid 0px #FFFFFF; width= 70px; height= 33px; background:transparent; cursor:pointer; " onclick="insertEvent('ValiderDonnees.php', 'Donnee', '', 'Valider')"><img src="../Images/Valider.png" alt="Valider" width="70" height="33" border="0">
The script is
Code: JavaScript
Code:
function insertEvent(FichierAMD, Source, Cible, ParentNoeud){
var source = Source;
alert(source);
var conteneur = ParentNoeud;
alert(container);
}
This works very well with IE, Safari, Opera but not in FF irrespective of the OS (Mac or Windows).
With a onclick alert ( "Hello") everything is working properly.
page is located or the button is loaded via a routine ajax! How can this be explained. Thank you for your help
Reply With Quote
  #2  
Old 02-09-2008
Member
 
Join Date: Dec 2007
Posts: 1,592
I think you will have to save input as tag and not button ^ ^

HTML Code:
<input type="button" style="border:solid 0px #FFFFFF; width= 70px; height= 33px; background:transparent; cursor:pointer; " onclick="insertEvent('ValiderDonnees.php', 'Donnee', '', 'Valider')"><img src="../Images/Valider.png" alt="Valider" width="70" height="33" border="0">
Firefox is very strict it does not pass errors and so much mistakes.

and also surprising as it may seem, a Firefox is a panda and not a fox ^
Reply With Quote
  #3  
Old 02-09-2008
Member
 
Join Date: Nov 2005
Posts: 930
Thank you for your swift response,
Indeed it was input button instead.
Reply With Quote
  #4  
Old 02-09-2008
Member
 
Join Date: Dec 2007
Posts: 1,542
You may also need to lowercase the C, especially if you use an XHTML doctype.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Onclick and Firefox3"
Thread Thread Starter Forum Replies Last Post
CSS Button onclick event href="#" onclick=" Cornnelius Software Development 6 14-05-2010 11:20 PM
onClick - change href Neutrals Software Development 6 12-05-2010 09:25 AM
A Href And OnClick Button Endowed Software Development 5 11-05-2010 10:24 PM
Onclick event with DIV tag ISAIAH Software Development 5 03-03-2010 04:45 PM
Retrieve a value with onclick Sujit15 Software Development 5 05-01-2009 03:47 PM


All times are GMT +5.5. The time now is 07:42 AM.