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 

updating value via button instead of selecting date...

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



Joined: 26 May 2006
Posts: 14
Location: Germany

PostPosted: Thu Jun 01, 2006 8:54 am    Post subject: updating value via button instead of selecting date... Reply with quote

I think this PopCalendarXP is a great product!!!!!

For our application of this.. the selecting of the date does not seem very intuitive...

As of right now.. you have to select the time first and then select the date. We lets assume for now that all users are ignorant. (its true LOL) They select the date before the time and the window closes. Status: Date is added and time is unmodified (if not previously selected) default time (current ) is selected.

also... the "X" to close the box closes without updating.

How our implementation needs to operate:
Date and time selection should not close the window. there should be a button "Save" and a button "Close" (without saving) Keeping the "X" is ok for this. But for cosmetics.. Would rather that two buttons exist. (also would be nice to change the style of these buttons..)

How can this be done? Thanks much for your time Smile

AWSOME product. .BTW.. I am using the Fancy Theme with Time Option.

Suggestion: Is there an easier way to turn on like the time plug-in? Like set as an option instead of having to paste in code from another js file? Or does this create other problems?

_________________
______________________
Terry Remsik
remsikt@gmail.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Thu Jun 01, 2006 12:38 pm    Post subject: Reply with quote

I understand an option is easier than copy code between plugins - but our goal is to minimize the download size so that user don't have to waste bandwidth (or waiting too long if they were on a dial-up line) on functions they don't need.

As for your requirement, could you please take a look at the datetime theme - which doesn't close the calendar unless you manually close it. If that meets most of your needs, we can simply add a save button by modifying the gsBottom option in the plugins_time.js file to the following:

Code:
gsBottom=('<table align="center" border="0" cellpadding="0" cellspacing="0" width="1"><tr><td>&nbsp;</td><td><input type="text" name="hourF" size="2" maxlength="2" class="TimeBox" onchange="updateTimeStr()" onfocus="this.value=\'\'"></td><td><img onmousedown="incHour();" '+imgPlusStr+'><br><img onmousedown="decHour();" '+imgMinusStr+'></td><td nowrap>'+_hour_marker+'&nbsp;</td><td><input type="text" name="minF" size="2" maxlength="2" class="TimeBox" onchange="updateTimeStr()" onfocus="this.value=\'\'"></td><td><img onmousedown="incMin();" '+imgPlusStr+'><br><img onmousedown="decMin();" '+imgMinusStr+'></td>'+(_is24H?'':'<td>'+_time_marker+'&nbsp;</td><td><input type="Text" name="ampm" size="2" maxlength="2" class="TimeBox" readonly onfocus="flipAmPm();this.blur()"></td>')+'<td>&nbsp;&nbsp;</td><td valign="middle"><a href="javascript:void(0)" onclick="fHideCal();return false;"><img border="0" src="close.gif" title="Close" alt="Close" align="middle"></a></td><td>&nbsp;</td></tr><tr><td><input type="button" value="save" onclick="fUpdSelect(gdSelect[0],gdSelect[1],gdSelect[2]);fHideCal();return false;"></td></tr></table>');
if(NN4)_nn4_css.push("TimeBox");

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



Joined: 26 May 2006
Posts: 14
Location: Germany

PostPosted: Thu Jun 01, 2006 1:36 pm    Post subject: Reply with quote

ok.. good.. I got the button on.. np ... but the calendar still closes when u select a day of the week (#).

var gbAutoClose=false is set... i dont understand why it closes when the days are clicked...

_________________
______________________
Terry Remsik
remsikt@gmail.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stripeman



Joined: 26 May 2006
Posts: 14
Location: Germany

PostPosted: Thu Jun 01, 2006 1:50 pm    Post subject: Reply with quote

ok.. i think i see the prob... in plugins.js on line 25... ( fAfterSelected(y,m,d,e) )
there is no condition checking to see if gbAutoClose is set.. before executing
fHideCal();

so i simply changed like 25 to read this:

if (gbAutoClose==true) fHideCal();

_________________
______________________
Terry Remsik
remsikt@gmail.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stripeman



Joined: 26 May 2006
Posts: 14
Location: Germany

PostPosted: Wed Aug 09, 2006 10:19 am    Post subject: Reply with quote

Is there a way to put an arg or var up to make this a true false option ?

also..

is there an easier way to turn this button on besides having ot hack the code everytime there is an update ?

Thanks again!

_________________
______________________
Terry Remsik
remsikt@gmail.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Aug 09, 2006 12:31 pm    Post subject: Reply with quote

the gbAutoClose is the option to toggle the calendar on/off after you selecting a date, unless you modified the original engine.

Please checkout the datetime theme from the original download package, it functions well without any hack, as shown on our online demo . (Maybe the version you were using was tempered or outdated?)

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



Joined: 26 May 2006
Posts: 14
Location: Germany

PostPosted: Wed Aug 09, 2006 12:46 pm    Post subject: Reply with quote

will check thanks...
_________________
______________________
Terry Remsik
remsikt@gmail.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
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