CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Triggering an onXXXXX event of the element that will be changed.

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related
View previous topic :: View next topic  
Author Message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Wed May 24, 2006 3:29 pm    Post subject: Triggering an onXXXXX event of the element that will be changed. Reply with quote

I want to trigger the onChange Event of the Text Field that the calendar will be changing the value of.

I was wondering if I could get some help with this.

I have a date field that when the value is changed, it automatically sets the date value of two other fields. I need to do this when they select a date from the calendar as well, but I am having trouble where to call the onChange event from.

Thanks for any help.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed May 24, 2006 4:10 pm    Post subject: Reply with quote

You just need the following code in plugins.js:
Code:
function fAfterSelected(y,m,d) {
  if (gdCtrl.onchange) gdCtrl.onchange();
}

Also, you may take a look at the following FAQ for other related usage.
http://www.calendarxp.net/forum/viewtopic.php?t=30

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Thu May 25, 2006 8:28 pm    Post subject: Reply with quote

This helped, thank you! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group