473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

onkeyup and onblur conflict if used in the same tag

hi everyone,

i just want to share my experience....,that never use alert when u are calling 2 functions in the same tag using onkeyup or onblur events,........becoz wht ever function u r going to call in onkeyup,,,if there is any alert msg is there then...first the onblur function is called due to alert the focus is coming out of the of the tag and this will automatically call the onblur function.....


Alind
Oct 6 '07 #1
3 2257
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

Instead of an alert, you can use a span/div to display your message. This can be less annoying and shouldn't remove the focus.
Oct 6 '07 #2
Welcome to TSDN!

Instead of an alert, you can use a span/div to display your message. This can be less annoying and shouldn't remove the focus.

now i am doing that only using span to display err....., neway thanks for replying...

but my prob.. is that now

when i am re-assigning the focus..., then the error msg is gone...,

so it just display an error msg for some millisecounds or u can say that...

no one can see that msg....,

here a brief description of wht i am doing

I am checking the length of a field on blurr, but i want that if the field length is less than some minimum length..it should show some msg in span..

but...without losing focus...,as on blur means focus is lost....
so everything works fine...., but that error msg to display on blurr is gone....
Oct 8 '07 #3
dmjpro
2,476 2GB
now i am doing that only using span to display err....., neway thanks for replying...

but my prob.. is that now

when i am re-assigning the focus..., then the error msg is gone...,

so it just display an error msg for some millisecounds or u can say that...

no one can see that msg....,

here a brief description of wht i am doing

I am checking the length of a field on blurr, but i want that if the field length is less than some minimum length..it should show some msg in span..

but...without losing focus...,as on blur means focus is lost....
so everything works fine...., but that error msg to display on blurr is gone....

Post your Code here :-)
And let the experts to analyze .

Debasis Jana
Oct 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Lee | last post by:
I have this function that doesn't work. I pass it the td element and an id, and it makes an input field inside the td. That part workds. What doesn't work is that I want to add an "onkeyup" on...
14
lotus18
by: lotus18 | last post by:
Hello all I have these records on my Day Table for my complete database table please click here 1. M 2. T 3. W 4. TH 5. F 6. S
3
by: empiresolutions | last post by:
i am using the following AJAX request method. Most of you probably use this script allready as it seems to be everywhere online. I use it often with out issue... until now. What I'm finding is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.