/    Sign up×
Community /Pin to ProfileBookmark

javascript code not work in firefox

This code is basically for popup the calender it works properly in IE? but not works in Fire Fox..:mad:

cal.html

<head>
<script language=”javascript” src=”date/popcalendar.js”></script>
</head>
<body>
<input type=”text” name=”arrival” value=”<?=$arrival;?>” size=”20″ style=”width:100px” class=”inputBox”/>
<script type=”text/javascript” language=”javascript”>

if(!document.layers) {
document.write(‘<a href=”Javascript:void(0);” onclick=”popUpCalendar(SearchForm.arrival,SearchForm.arrival, SearchForm.departure, ‘yyyy-mm-dd’);”><img src=”date/cal.gif” border=”0″ align=”absmiddle” alt=”Change Date”></a>’);
}

</script>

</body>

popcalendar.js
I have uploaded the file with this thread..

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 08.2009 — IE referencing methods used[COLOR="Blue"]document.[/COLOR]SearchForm.arrival,[COLOR="Blue"]document.[/COLOR]SearchForm.arrival, [COLOR="Blue"]document.[/COLOR]SearchForm.departure
Also function showElement uses antiquated methods.
×

Success!

Help @rushiags 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.18,
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,
)...