/    Sign up×
Community /Pin to ProfileBookmark

Javascript works on IIS but not Apache server

I have some DHTML/javascript based menus that I have created for a site. Initially, I created and tested the site on IIS and everything worked fine. However, when the site was exported to an Apache based site, I keep getting a runtime error, line 16, object expected.

The apache based site/page that has the error is:
[url]http://www.jncdata.com/services/index.html[/url]

The IIS based site/page that works is
[url]http://www.rads-inc.com/services/index.html[/url]

Thanks in advance for any assistance.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceApr 29.2005 — Client-side errors have nothing to do with the server operating system. One problem is that I found the following in the beginning of one of your documents:
[code=html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- Created with the CoffeeCup HTML Editor 2005 -->
<!-- http://www.coffeecup.com/ -->
<!-- Brewed on 3/5/2005 9:31:57 AM -->
<head>
<title>JNC Product Listings</title>
</head>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- Created with the CoffeeCup HTML Editor 2005 -->
<!-- http://www.coffeecup.com/ -->
<!-- Brewed on 3/5/2005 9:31:57 AM -->
<head>
<title>JNC Service Listings</title>
</head>

<body>
...etc...
[/code]

Otherwise, your error is occurring in your [b]onload[/b] function. The [b]initializeMenu()[/b] function cannot be found. Thus, I'd say that your [b]administratorMenu.js[/b] source is not available in the correct place on the Apache server.
Copy linkTweet thisAlerts:
@freedo5authorMay 04.2005 — Yep, that did it. I transferred this from a IIS server to Apache. The file names were different cases than what was being called from the HTML. Thanks.
Copy linkTweet thisAlerts:
@phpnoviceMay 04.2005 — ...and did you remove the doubled HEAD section?
×

Success!

Help @freedo5 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.11,
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,
)...