/    Sign up×
Community /Pin to ProfileBookmark

jscript runtime error

i’ve used the code for picking up the date & displaying on my page using the date-picker.js available at
[url]http://javascript.internet.com/calendars/popup-date-picker.html#source[/url]
if some one has used this script please help me with this error
Microsoft JScript runtime error: ‘self.opener.document.calform.datebox’ is not an object

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@PittimannAug 09.2004 — Hi!

Either you forgot to insert the required form into your opener document:

<form name=calform>

<input type=text name="datebox" size=15>[COLOR=blue]<a href="javascript:show_calendar('calform.datebox');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="show-calendar.gif" width=24 height=22 border=0></a>[/COLOR]

</form>

or you have got a form there and its' name and/or the input's name is/are different. If you don't want to touch the script code, your form's name MUST be "calform" and the name of the input field for the date MUST be "datebox".

The blue part above does not necessarily have to be that image and does not need to be inside the form.

Cheers - Pit
Copy linkTweet thisAlerts:
@swatidauthorAug 09.2004 — thanx..it has worked...i hadnt changed the form id...

i need another help...i want a popup box to show messgs...other than alert,confirm & prompt...r they any other inbuilt popups in jscript?
Copy linkTweet thisAlerts:
@PittimannAug 09.2004 — Hi!

You're welcome.

You could place information you want to display when a certain event occurs in a span or div which initially is invisible and make it visible whenever you want by playing with its' visibility or display property.

Cheers - Pit
×

Success!

Help @swatid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...