faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 22 people (36%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

To keep date picker on top I used body onblur=self.focus but not able to select Month from combo box

Apr 7th, 2008 22:46
ha mo, Russ Locke, Raj Patel,


I won't give a code example because this is easy stuff. Declare a 
global variable on the page called something like TESTFOCUS = true;
Change the onblur to onblur="if(TESTFOCUS) self.focus();"
In the select tag for the month, set attributes:
onmouseover="TESTFOCUS=false;"
omouseout="TESTFOCUS=true;"
onchange="the stuff you are currently doing; TESTFOCUS=TRUE;"
You may need to stick a couple of "return false;" statements in places 
to control the event flow (such as the onchange), you'll figure that 
out by trial and error. It really depends on what you have the onchange 
doing and how you want the UI events to flow.
Good luck.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com