[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
Advertisement

value is null or not an object

Moderators: Calcifer, slothy

value is null or not an object

Postby essexgou » Tue Jun 05, 2007 2:19 pm

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.
essexgou
 
Posts: 6
Joined: Wed May 30, 2007 6:12 pm

Postby Batalf » Tue Jun 05, 2007 4:16 pm

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.
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby essexgou » Tue Jun 05, 2007 7:44 pm

essexgou
 
Posts: 6
Joined: Wed May 30, 2007 6:12 pm


Return to Calendar script questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron