Solved

Open java script calendar on double click instead of single click

Posted on 2013-02-06
5
546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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)

756 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