Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2008
Posts: 18
Reputation: e_velkova is an unknown quantity at this point 
Solved Threads: 0
e_velkova e_velkova is offline Offline
Newbie Poster

correct?

 
0
  #1
Jul 10th, 2008
Hi!
Could you tell me, if this is correct:

onclick="javascript: if(!confirm('Confirm delete?')) return false;"

Many thanks
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: correct?

 
0
  #2
Jul 10th, 2008
you do realise that JavaScript and Java are not the same thing, do you?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,341
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 250
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: correct?

 
0
  #3
Jul 10th, 2008
Seemingly not.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,592
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 710
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: correct?

 
0
  #4
Jul 10th, 2008
Moved to the correct forum.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 312
Reputation: Thirusha is an unknown quantity at this point 
Solved Threads: 48
Thirusha's Avatar
Thirusha Thirusha is offline Offline
Posting Whiz

Re: correct?

 
0
  #5
Jul 10th, 2008
I dont see any problems with the snippet of code.
Are u getting any errors?
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 18
Reputation: e_velkova is an unknown quantity at this point 
Solved Threads: 0
e_velkova e_velkova is offline Offline
Newbie Poster

Re: correct?

 
0
  #6
Jul 10th, 2008
Thank you very much for the reply, Thirusha!!!
Unfortunately, yes - it just doesn't want to load it And i don't know what to do...
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 312
Reputation: Thirusha is an unknown quantity at this point 
Solved Threads: 48
Thirusha's Avatar
Thirusha Thirusha is offline Offline
Posting Whiz

Re: correct?

 
0
  #7
Jul 10th, 2008
I have tested it on a button like this: (it works both in IE6 and FF3)

  1. <input type="button" name="tbutton" id="tbutton" value="testbutton" onclick="javascript: if(!confirm('Confirm delete?')) return false;" />

It then pops up a confirmation box.

Can u provide your code, maybe something else is breaking first and thats why that part doesnt work.
Last edited by peter_budo; Jul 10th, 2008 at 9:55 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC