This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes onblur on textbox  is executing after closing the popup with X button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onblur on textbox  is executing after closing the popup with X button" Watch "onblur on textbox  is executing after closing the popup with X button" New topic
Author

onblur on textbox is executing after closing the popup with X button

vijaya bharath
Ranch Hand

Joined: Jun 10, 2005
Posts: 66
Hi,


My problem is
i have validation for empty string entry in a text box for onblur event in a popup
if i place the cursor in the textbox , make no entry in textbox and click on X(close at the right corner) of popup window, its closing the popup and giving the validation alert for the textbox.

but i have to develop as it should prompt the user to enter values in textbox and it should not close the popup.

Can any one please help me regarding this,iam very new to javascript.


Regards,<br />Vijaya Bharath.<br />SCJP1.4 <br />SCWCD5.0
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
You can try looking into onbeforeunload.

Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: onblur on textbox is executing after closing the popup with X button
 
It's not a secret anymore!