Solved

Open java script calendar on double click instead of single click

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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 …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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)

751 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