Solved

javascript or JS calander

Posted on 2004-04-12
7
752 Views
Last Modified: 2010-08-05
I have looked for mouse over JS calander, not the new window pop up calendar.
When the user mouse over the link or button, the calendar is showed up and it can be selected month day and year. Pretty straght forward question.

Thank you
0
Comment
Question by:riskyricky1972
7 Comments
 
LVL 4

Accepted Solution

by:
g_damodar earned 100 total points
ID: 10811184
0
 
LVL 7

Expert Comment

by:mark-b
ID: 10815954
This is best of breed that I have seen:  http://dynarch.com/mishoo/calendar/
0
 
LVL 2

Expert Comment

by:iloya
ID: 10820329
Its is easy to convert a pop up calendar into a mouse over calendar using a hidden DIV element and loading the calendar in that DIV.  Only problem is that you'll have to do some extra coding for positioning but again you can always have a reusable function that does that.  I am ready to help you write such code if you give me more details
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:riskyricky1972
ID: 10823718
Where can I download js file. Plus when it does not offer mouseout function.

iloya: You can want to check mark-b web links

0
 
LVL 7

Expert Comment

by:mark-b
ID: 10825887
You can download the calendar I mentioned at: http://prdownloads.sourceforge.net/jscalendar/jscalendar-0.9.6.zip?download

As far as mouseOut and mouseOver goes- here's one way you can do it with this calendar:

1)  For the mouseover, when you call the Calendar.setup constructior, add the value pair:
              eventName     : "mouseover"

For example: In the test-position.html (root directory the distribution) change:

            Calendar.setup({
              inputField    : "cal-field-1",
              button         : "cal-button-1",
              align           : "Tr"
            });

to

            Calendar.setup({
              inputField    : "cal-field-1",
              button         : "cal-button-1",
              align           : "Tr",
              eventName  : "mouseover"
            });

This will make the mouseover on the '...' button pop up the calendar.

2) For the mouseout, you will have to modify the calendar.js file:

 a) Add a js function in this file (calendar.js):

    Calendar.calMouseOut = function(ev) {
      var el = Calendar.getTargetElement(ev);
      if ( el && el.id == 'someId' ) {
        window.calendar.callCloseHandler();
        Calendar.stopEvent(ev);
      }
    };

 b) Find the function in the calendar.js file that has this signature:
       Calendar.prototype.create = function (_par) :
 
     There is a block of code in this function that looks like this:

     if (this.isPopup) {
        div.style.position = "absolute";
        div.style.display = "none";
     }

     we need to add two lines in this block to fire the mouseout event:

     if (this.isPopup) {
        div.style.position = "absolute";
        div.style.display = "none";
->    div.id='someId';
->    calendar.addEvent(div, "mouseout", Calendar.calMouseOut);
     }

That's it.  Now the calendar will pop up when the mouse is over the button and it will disappear when the mouse is moved out of the calendar.
0
 
LVL 7

Expert Comment

by:mark-b
ID: 10978379
Did this work for you or is there a problem?
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10993255
riskyricky1972  Last 10 Grades Given: C C C C C C C C C C
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple PHP - search by location postcode/zip code 8 31
video playback resume on webpages 2 65
Technology stack suggestions 4 61
Snap images to the bottom of a div 5 65
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to dynamically set the form action using jQuery.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now