This is a discussion on "confirm dialog not working properly in IE..." within the JavaScript Forum section. This forum, and the thread "confirm dialog not working properly in IE... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
confirm dialog not working properly in IE...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
confirm dialog not working properly in IE...
hi,
I currently have this script that i have placed on my page to catch whether a user clicks the delete link and if so displays an confirm dialog.. function ValidateEdit(ConfMessage) { var agree = confirm(ConfMessage); if(agree()) { return false; } } the link that i want to use this function is as follows... <a href="pagename.cfm" class="ViewUsersLink" onclick="return ValidateEdit();">delete</a> In firefox this works perfectly. if using IE... it doesnt catch and prevent the user from deleting the item if they choose no... any ideas ?? thanks |
|
|
|
||||
|
Re: confirm dialog not working properly in IE...
This line is wrong
if (agree()) agree is not a function, it is a variable. use if (agree){ return false; } etc.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] XmlHttpRequest not working properly | djeyewater | JavaScript Forum | 3 | Jan 31st, 2008 20:33 |
| Form with confirm password field | dhossai | JavaScript Forum | 28 | Dec 16th, 2007 05:12 |
| Javascript modal dialog title problem | nitinmukesh123 | JavaScript Forum | 4 | May 28th, 2007 03:58 |
| background-repeat: repeat y not working properly | AdRock | Web Page Design | 12 | Feb 25th, 2007 22:17 |