View previous topic :: View next topic |
Author |
Message |
Stripeman
Joined: 26 May 2006 Posts: 14 Location: Germany
|
Posted: Thu Jun 01, 2006 8:54 am Post subject: updating value via button instead of selecting date... |
|
|
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
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 |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Thu Jun 01, 2006 12:38 pm Post subject: |
|
|
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> </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+' </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+' </td><td><input type="Text" name="ampm" size="2" maxlength="2" class="TimeBox" readonly onfocus="flipAmPm();this.blur()"></td>')+'<td> </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> </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 |
|
|
Stripeman
Joined: 26 May 2006 Posts: 14 Location: Germany
|
Posted: Thu Jun 01, 2006 1:36 pm Post subject: |
|
|
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 |
|
|
Stripeman
Joined: 26 May 2006 Posts: 14 Location: Germany
|
Posted: Thu Jun 01, 2006 1:50 pm Post subject: |
|
|
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 |
|
|
Stripeman
Joined: 26 May 2006 Posts: 14 Location: Germany
|
Posted: Wed Aug 09, 2006 10:19 am Post subject: |
|
|
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 |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Aug 09, 2006 12:31 pm Post subject: |
|
|
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 |
|
|
Stripeman
Joined: 26 May 2006 Posts: 14 Location: Germany
|
Posted: Wed Aug 09, 2006 12:46 pm Post subject: |
|
|
will check thanks...
_________________ ______________________
Terry Remsik
remsikt@gmail.com |
|
Back to top |
|
|
|