467,219 Members | 1,267 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,219 developers. It's quick & easy.

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


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

*** Sent via Developersdex http://www.developersdex.com ***
Jan 12 '06 #1
  • viewed: 1921
Share:
1 Reply
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.

Similar topics

5 posts views Thread by Brad | last post: by
17 posts views Thread by David C. Ullrich | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.