Solved

Open java script calendar on double click instead of single click

Posted on 2013-02-06
5
532 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

705 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

19 Experts available now in Live!

Get 1:1 Help Now