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

V

VK

rajesh said:

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("calendar").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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top