Solved

Open java script calendar on double click instead of single click

Posted on 2013-02-06
5
542 Views
Last Modified: 2013-02-10
Hi,

Please help me out in looking a calendar for jsp file having the functionality of opening the calendar on double click of the text box (which will store the date ) instead of single click.

The below calendar meets my css layout.
http://www.epoch-calendar.com/support/epoch/setup.html


If i get the clue of implementing the double click functionality would be of great help.

Thanks in advance
0
Comment
Question by:Rocking
  • 3
5 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 38860794
open epoch_classes.js
replace the two EventHandler(self.tgt,'focus',popupFocus); instances
by : EventHandler(self.tgt,'dblclick',popupFocus);
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 38860807
Or maybe this (not tested)?

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
 var popupcalendar, flatcalendar;
 $('#dateTextbox').dblclick( function() {
 /*get a handle on the containing elements for the calendar*/
 var popupElement = document.getElementById('popup_box');
 /*Initialize the calendar*/
 popupcalendar = new Epoch('popupcal','popup',popupElement,false);
});
</script>

Open in new window

0
 
LVL 82

Expert Comment

by:leakim971
ID: 38860967
my code work
0
 

Author Comment

by:Rocking
ID: 38863767
@leakim971

replace the two EventHandler(self.tgt,'focus',popupFocus); instances
by : EventHandler(self.tgt,'dblclick',popupFocus);

I didn't file any such method in the js file,Please see the attached file.

Can u send me the js file in which u ask to modify the code,wanna hav a look?
epoch-classes.js
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 38863802
go to the site to found the latest one (the one used of course..;)

OR

replace onfocus by ondblclick in your version

I don't know what is new in the latest version or bad in your version
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

822 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