Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Saturday, June 25th, 2005

Time Event
11:43a
Javascript
I'm running in J2EE world (JSP/JSTL/Servlets the like), and am having problems pulling a field back from my page, or, I'm having problems actually locking the element.

If I use the disabled property, a null (or no object) is returned back to the backend (servlet). However the front end acts like I want it too. If I use the readonly property, I can never seem to enter text in even if using javascript to change the property to false. Suggestions?

code-snippetsCollapse )

x-posted to Imagejava_dev and Imagejavascript

Update and Solution: To properly reference the readonly attribute in javascript, captilization matters. I'm now referencing elem.readOnly and it works beautifully.

Current Mood: Image confused

<< Previous Day 2005/06/25
[Calendar]
Next Day >>
About LiveJournal.com
Image