Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] To DOM or not -- calendar popup


  • From: moseley at hank.org (Bill Moseley)
  • Subject: [Javascript] To DOM or not -- calendar popup
  • Date: Wed Mar 29 12:59:04 2006

Ok, so I have a form with a text input field that holds date strings.

Next to the field I have an image of a calendar which runs a
javascript popup.  That should not display if javascript is not
available.

So, do I:

1) Wrap the calendar image and link in a <div style="display: none">
and enable it in a later script block?

2) or in the script search for the input field and then append the
<img>  to the field's parent node list?[1]

Seems like 2 is the "correct" way to go, but seems like a bit more
work.


[1] Hum, or would you append to the <input> field?



-- 
Bill Moseley
moseley@xxxxxxxx