[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - value is null or not an object
Page 1 of 1

value is null or not an object

PostPosted: Tue Jun 05, 2007 2:19 pm
by essexgou
Hi,

The calendar works fine within the demo page onn my server. However, when I integrate it into my form, I get the following error message '

line 1306 char 2 'value' is not an object.

The input in my form is:
<input type="text" value="01.01.2007" readonly name="datevisited"><input type="button" value="Calendar" onclick="displayCalendar(document.forms[0].datevisited,'dd.mm.yyyy',this)">

The javascript and css files are linked fine, so what can I do to fix this problem?

I really need to get this calendar working asap, so any help would be really appreciated.

Thanks.

PostPosted: Tue Jun 05, 2007 4:16 pm
by Batalf
Hi and welcome to the forum :)

It could be the argument:

document.forms[0].datevisited

Maybe you have more than one form on your page. Try

document.forms[1].datevisited

or

document.formName.datevisited

where formName is the name of your <form> tag.

PostPosted: Tue Jun 05, 2007 7:44 pm
by essexgou