Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 20th, 2005, 09:27 AM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Calling Events.

Hi,

I have written a function on Blur event of a text box, which is readonly, and further I am setting value for that box progratly,
so now the prob is that events such as Blur/Focus etc. are never called, can anyone focus on that???

Thanks in advance.

Rupen Anjaria.
We can't avoid problems, but ofcourse can solve it.
Reply With Quote
  #2 (permalink)  
Old July 21st, 2005, 02:26 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Events are not normally fired by programmatic invocation of methods. This is because you can fire them yourself if you so wish but it would mean cancelling them or looping for ever in some cases. For example if you wanted to change the value in textbox when the value changed it would be impossible.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #3 (permalink)  
Old July 21st, 2005, 04:13 AM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Hi Joe,

Thanks for reply, By looking at ur profile, I just get eager and want to ask you a problem which is I think again IMPOSSIBLE to solve, But I hope you can suggest me a better way to come out of it.

Please go through this link..
   http://p2p.wrox.com/topic.asp?TOPIC_ID=31530

Thanks in advance.


Rupen Anjaria.
We CAN'T avoid problems, but of course can solve it.
Reply With Quote
  #4 (permalink)  
Old August 8th, 2005, 05:15 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Rupen!!
Try this
<script>
var i=0
function blr()
{
document.myform.bl.value= 'Example'+i++;
}
</script>
<form name="myform">
<input type=text value="original" name="bl" onblur="blr()" readOnly>
</form>
Hope this will help you

Cheers :)

vinod
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Events bschleusner C# 2005 2 February 26th, 2007 05:25 AM
Events with StringCollectionEditor, how? jacob Visual Studio 2005 1 April 11th, 2006 06:01 AM
Events Question nhdw Beginning VB 6 2 February 23rd, 2004 04:00 PM
help with Events egiblock JSP Basics 0 October 6th, 2003 11:39 PM



All times are GMT -4. The time now is 11:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.