Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2007, 02:37 PM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Programmatically call onChange handler

I am using a popup calendar to populate an input field. When the contents of this field change I need the onchange event handler to fire. It will fire if I manually type the date into the field but not if I populate the field using javascript. How can I programatically call the handler?


 
Old September 3rd, 2007, 09:24 AM
Friend of Wrox
 
Join Date: Oct 2004
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

Hi Langdale!!

You will need to modify the popup calendar code ,whenever u click on the date of the popupdate calendar, ur clicked date is set to the parent window field within the same popup window javascript code ,modify it so that it will also call the onchange events.
or u can also call parent window javascript function for the same from the popup window.

Hope this will help you,jst try ,it will work 100%


Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
onChange Event mcinar Javascript 11 May 11th, 2007 09:38 AM
Call Standard Module Error Handler from From mod johndickerson VB Databases Basics 4 April 20th, 2007 01:53 PM
Call Standard Module Error Handler from Form mod johndickerson BOOK: Beginning Access 2003 VBA 0 April 19th, 2007 11:12 AM
"onchange" not fired fskilnik Dreamweaver (all versions) 2 January 2nd, 2006 05:23 PM
'onChange' crmpicco Javascript How-To 2 January 28th, 2005 05:37 AM





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