#1
| |||
| |||
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"> Code: JavaScript Code: function insertEvent(FichierAMD, Source, Cible, ParentNoeud){ var source = Source; alert(source); var conteneur = ParentNoeud; alert(container); } 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 |
#2
| |||
| |||
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"> and also surprising as it may seem, a Firefox is a panda and not a fox ^ |
#3
| |||
| |||
Thank you for your swift response, Indeed it was input button instead. |
#4
| |||
| |||
You may also need to lowercase the C, especially if you use an XHTML doctype. |
![]() |
|
Tags: firefox3, onclick |
Thread Tools | Search this Thread |
|
![]() | ||||
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 |