Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > Javascipt calendar > Bugs
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2006, 01:41 PM
plingscore_jonas plingscore_jonas is offline
Junior Member
 
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 7
Default A tiny bug and some changes

I found an unused variable: scfd that caused Mozilla to report a JavaScipt error.
By removing
Code:
cfd=scfd;
in cdayf()-function the problem was solved.

Also in cdayf()-function:
- I changed the following
Code:
ccm=sccm;
an replaced it with
Code:
sccm=ccm;
which made me able to browse back in time.

To make it work even better I made the dip-variable in the prepcalendar()-function always to return false.

// Jonas
Reply With Quote
  #2  
Old 03-04-2007, 10:57 PM
orves orves is offline
Junior Member
 
Join Date: Mar 2007
Posts: 2
Default edit on bug

when you edit "ccm=sccm;" into "sccm=ccm" you will be able to get back in time but! you can not select any dates that have been past in the current month.

For example; it is now 04 march 2007 , when you browse back to february 2007 you are not able to select 03 february 2007.

So keep that in mind if you want to browse back in time.

Orves
Reply With Quote
  #3  
Old 03-06-2007, 10:19 PM
plingscore_jonas plingscore_jonas is offline
Junior Member
 
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 7
Default

Quote:
Originally Posted by orves
when you edit "ccm=sccm;" into "sccm=ccm" you will be able to get back in time but! you can not select any dates that have been past in the current month.

For example; it is now 04 march 2007 , when you browse back to february 2007 you are not able to select 03 february 2007.

So keep that in mind if you want to browse back in time.

Orves
..well it works fine for me..in all browsers, so I´m pretty happy with the solution. I´m not sure why it doesent work for you.. strange.

// Jonas
__________________
- Oh I´m sorry, I thought you where a woman! - I AM a woman..
Reply With Quote
  #4  
Old 03-16-2007, 03:06 PM
CoRbO CoRbO is offline
Junior Member
 
Join Date: Mar 2007
Location: France,Bretagne,Lorient
Posts: 1
Default Calendar tiny bug and back in time solution

Hi everybody.
First, thanks for this script which is very usefull for me.I don't want to change the source but here are the modification I made to be able to go back in time (including Years):
in prepcalendar function:
under
Code:
dip=((d-cd < sd)&&(cm==sccm)&&(cy==sccy));
write
Code:
dip = false;
Then in caddm function:
replace
Code:
ccy++;
by
Code:
sccy++;
and
Code:
prepcalendar('',ccm,ccy);
by
Code:
prepcalendar('',ccm,sccy);
Then in csubm function:
replace
Code:
ccy--;
by
Code:
sccy--;
and
Code:
prepcalendar('',ccm,ccy);
by
Code:
prepcalendar('',ccm,sccy);
Finally, as said in an other post, in cdayf function:
replace
Code:
ccm=sccm;
by
Code:
sccm=ccm;
and comment
Code:
cfd=scfd
Here it is and it works fine for me.
so let me know if it works for you...

P.S: Sorry for my english but I'm french...

Last edited by CoRbO : 03-16-2007 at 03:10 PM. Reason: enable notification
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:35 AM.