Solved

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

Posted on 2008-10-01
5
340 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
  • 2
5 Comments
 
LVL 9

Expert Comment

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

17 Experts available now in Live!

Get 1:1 Help Now