Solved

Open java script calendar on double click instead of single click

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

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
CSS Scroll Issue 3 77
Allow space in this pattern 2 46
reveal text field based on selected 10 24
link rel have Width and height 2 0
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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)
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…

947 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

21 Experts available now in Live!

Get 1:1 Help Now