Solved

How to disable the CalenderDateInput.js control in my jsp page?

Posted on 2008-10-01
5
345 Views
Last Modified: 2012-05-05
Hi,

In my jsp page, i am calling CalanderDateinput.js , for showing the current systemdate , i want that to be non-editable . i mean, the user should not edit that. So how can i make it non-editable, just make it readonly? any ideas?

Thanks!
0
Comment
Question by:jyothisree
[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
  • 2
5 Comments
 
LVL 9

Expert Comment

by:ftaco96
ID: 22619585
What does your code look like?
0
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 500 total points
ID: 23119740
   Hi!

If you want the CalendarDateInput.js still generate the date then
you could either make the input field where the date is written to hidden or dissabled
http://www.java2s.com/Code/Java/JSP/Form-Hidden-Field.htm
http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html

Otherwise if you want to get rid of the .js file you simply use another method to generate the
systemtime and put it into an hidden field on the server side.

http://www.java2s.com/Code/Java/JSP/Date-Calendar.htm

Regards,
  Tomas Helgi
0
 
LVL 9

Expert Comment

by:ftaco96
ID: 25459682
I respectfully object to a "Delete with no refund" on the grounds that TomasHelgi actually made a valid expert comment that may have actually worked for the user.

I think a "Forced Accept" with TomasHelgi getting the points is more appropriate.
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

Gain an elementary understanding of Blockchain technology.
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

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