PDA

View Full Version : Java Calendar Popup Mod.



Caleb
10-05-2004, 09:04 PM
Exactly what it what it says. But not allot of support. this is kinda the bare bones of what you will need. the calender works perfect. the css is great. the language is nice. but getting it into your listing forms or email forms. your just going to have to know what your doing.

neparealtor.com
10-06-2004, 01:10 AM
Nice little feature to have. On line 27 of modules\calendar\index.php\index.php
you have

button : "cal-button-1",
when it should be

button : "cal-button-1"

Notice that little comma there, gives out a few errors.

Caleb
10-06-2004, 03:57 AM
Sweet thanks got it. make sure the rest of you make that fix too.

I really dont know alot about java, as i am just starting to mess with it.
99% of this was written by someone else i just made a few adjustments.
credit to the source. i spent a long time looking for this exact mod.

flipside72
10-06-2004, 04:37 PM
when i fist saw the calendar heading inthe mods section i thought someone had beaten me to it.... but here's a different idea.

i put a calendar mod in OR iin this area of my site: in the news section (http://cmi2004.frostyhost.com/news.php) it works a little differently.. but will be a nice addition to jumping to a date with your script added on.
what i'm trying to accomplish is individual calendars like this on each on of the listings and giving the User the ability to make updates to only their calendar.... the biggest problem so far is the massive amount of tables because all the data put in the calendar is stored in mySQL!... i've got permissions set by drawing the UserID from the current login... which isn't a problem.

for now it will just sit in the news section with updates/schedules/events. if anyone is interested, the script i'm using is (once again... with that special gravy modding going on :D ) myevent 1.1 from mywebland.com (http://www.mywebland.com) check it out.. they have some pretty nice scripts that need only a little minor tweaking to work with your websites..... PS. check out the forums for some fixes.. you'll encounter plenty of them in the initial installation.

Caleb
10-07-2004, 06:59 AM
this will allow you to grab the calender from anywhere. bad thing is the code is particular to the variable. good thing is it works in both IE and FF note that you have to use both the ID tag and the NAME tag. see before. this is a must change in order for you guys to get this to work right!!!!




<script type="text/javascript" src="../modules/calendar/calendar.js"></script>
<script type="text/javascript" src="../modules/calendar/calendar-setup.js"></script>
<script type="text/javascript" src="../modules/calendar/lang/calendar-en.js"></script>
<style type="text/css"> @import url("../modules/calendar/calendar-blue2.css"); </style>


<input type="text" name="date_available" id="date_available" />
<img src="../modules/calendar/img.gif" id="cal-button-1" style="cursor: pointer; border: 1px solid black;" title="Date selector"
onmouseover="this.style.background='';" onmouseout="this.style.background=''" />
<!-- <button type="submit" id="cal-button-1">...</button> -->
<script type="text/javascript">
Calendar.setup({
inputField : "date_available",
button : "cal-button-1"
});
</script>