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 

[PopCalendarXP]Why the date picker doesn't show up on my page but works well in the demo?

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q.
View previous topic :: View next topic  
Author Message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Tue Feb 15, 2005 7:35 pm    Post subject: [PopCalendarXP]Why the date picker doesn't show up on my page but works well in the demo? Reply with quote

Since version 9.0.236, the engine has built-in support to hide the calendar panel if user clicks on places other than the trigger element. Nonetheless, you're required to mark down the trigger element explicitly by either giving it a css class name of "PopcalTrigger" or name it directly as "popcal". e.g.
Code:
<a href="javascript:void(0)" onmousedown="if(self.gfPop)gfPop.fPopCalendar(document.demoform.dc);return false;"><img class="PopcalTrigger" align="absmiddle" src="calbtn.gif" width="34" height="22" border="0" alt=""></a>


If you choose the name way, you can name it anything as long as it contains the "popcal" string, e.g. "popcal1", "popcal2".

If you choose the css way, you don't need to define the PopcalTrigger in your css file - it's just a marker with no css meaning. And even if you already had a class assigned to that tag, you could still append the marker to it - by separating them with a blank. e.g.
Code:
<img class="MyImgClass PopcalTrigger" align="absmiddle" src="calbtn.gif">


The marker wouldn't change the appearance at all, but if you don't mark it the calendar may not be able to show up. The engine needs to know the trigger tag so that it will show, instead of hide, the calendar upon clicking. Most of the time the trigger is just an image, but could also be a textfield, a button or anything you use to receive the mouse click.

Please note that the css approach doesn't work with Netscape4 browser since NN4 doesn't support multiple css names. To take NN4 into account, you must either rename the MyImgClass rule into PopcalTrigger, or choose the 2nd option to name it directly as popcal. e.g.
Code:
<img class="MyImgClass" name="popcal" align="absmiddle" src="calbtn.gif">

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
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 -> CalendarXP F.A.Q. 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