Getting error in this code?

Posted by Iluvdotnetfunda under JavaScript on 4/18/2012 | Points: 10 | Views : 1191 | Status : [Member] | Replies : 5
Hello Friends,

Please help me in this datepicker control in javascript.

<input id="demo1" type="text" size="25"><a href="javascript:NewCal('demo1','ddmmyyyy')"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>


I am getting an error as 'object expected'

Thanks
iluvdotnetfunda




Responses

Posted by: Gsm_Gsv on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
Is the control going to JavaScript before getting exception?

---------------------------------------
Live the life you've dreamed

Regards
MADHU

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Iluvdotnetfunda on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

control image is displaying but it is not going to javascript.

Thanks

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsm_Gsv on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
ok.. Then, there will be some error in javascript. check with semicolons and closing braces. If there is a single mistake in javascript, your javascript will not be executed.


---------------------------------------
Live the life you've dreamed

Regards
MADHU

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

add the javascript link in the header part

------------------------------------------------
Learn throughout life

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Iluvdotnetfunda on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Gsm_Gsv,

Ok let me check .

Thanks

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response