By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

How to correct the error "crossobj has no properties" in mozilla

P: n/a

URL:
***
http://www.webdeveloping.nl/forum/sh...dcad70f5454595
879ad73140b&threadid=2037&goto=nextoldest

*** Sent via Developersdex http://www.developersdex.com ***
Jan 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VK

rajesh wrote:
URL:
***
http://www.webdeveloping.nl/forum/sh...dcad70f5454595
879ad73140b&threadid=2037&goto=nextoldest


Please do not start new topic with each reply.
Reply to the original thread which you have started.

It is a very obscure (let's stick to this word) script, so the global
answer would be: it may work in Internet Explorer because IE is trying
to understand some code where any other browser would give up on the
first line. For the same reason it may fall in Firefox or any other
browser.

As a durty fix try to replace this ugliness:
....
crossobj=(dom)?document.getElementsByName("calenda r").style:
ie?document.all.calendar:document.calendar
....

to
....
crossobj = (document.getElementById) ?
document.getElementById("calendar") : null;
....

and make sure that you nave on your page a <div> (or whatever a hey is
that) with id="calendar"

For a more conventional (though not perfect of course) popup calendar
sample you may look at:
<http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm>

Jan 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.