473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

javascript error: Object expected

Hello,

I am stuck with a weird javascript problem.... ;-(
Maybe it's somehting very simple, but I am really stuck in it, right
now.

What's the matter....
When place my website at a different hosting provider my webpage menu
generates the javascript error:

Line: 26
Char: 1
Error: Object expected
Code: 0

I still uses AllWebMenus for building the menu. But I can't find the
error metioned regarding
line 26.

I hope someone can get me on the right track again...

greets,
Erik-Jan Bakker

Here are some details

==========================
This is my source of the webpage:
==========================
<html>
<head>
<title>Menu</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link rel="stylesheet" href="Groot.css" type="text/css">
</head>

<body bgcolor="#8fcfc2" text="#000000"
background="afbeeldingen/menupand.jpg" link="#000000" vlink="#000000"
alink="#000000">

<!-- ******** BEGIN ALLWEBMENUS CODE FOR grootmenu ******** -->
<img name='awmMenuPathImg-grootmenu' id='awmMenuPathImg-grootmenu'
src='./awmmenupath.gif' alt=''>
<script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]',
awmBN='500'; awmAltUrl='';</script>
<script src='grootmenu.js' language='JavaScript1.2'
type='text/javascript'></script>
<script type='text/javascript'>awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR grootmenu ******** -->
</body>
</html>

=========================
This is my source of grootmenu.js:
=========================
//----------DHTML Menu Created using AllWebMenus PRO ver
3.1-#500---------------
var awmMenuName='grootmenu';
var awmLibraryPath='/awmData-grootmenu';
var awmImagesPath='/awmData-grootmenu';
var awmSupported=(navigator.appName +
navigator.appVersion.substring(0,1)=="Netscape5" || document.all ||
document.layers || navigator.userAgent.indexOf('Opera')>-1)?1:0;
if (awmAltUrl!='' && !awmSupported)
window.location.replace(awmAltUrl);
if (awmSupported){
var awmMenuPath;
if (document.all) mpi=document.all['awmMenuPathImg-grootmenu'].src;
if (document.layers)
mpi=document.images['awmMenuPathImg-grootmenu'].src;
if (navigator.appName +
navigator.appVersion.substring(0,1)=="Netscape5" ||
navigator.userAgent.indexOf('Opera')>-1)
mpi=document.getElementById('awmMenuPathImg-grootmenu').src;
awmMenuPath=mpi.substring(0,mpi.length-16);
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Gec ko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1)));
document.write("<SCRIPT
SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>");
var n=null;
awmzindex=1000;
}
var awmSubmenusFrame='mainframe';
var awmSubmenusFrameOffset;
var awmOptimize=0;
function awmBuildMenu(){
if (awmSupported){
awmImagesColl=['groot-sub.gif',10,10,'groot-sub2.gif',10,10];
awmCreateCSS(1,2,1,'#FFFFFF','#000000',n,'14px
Arial',n,'none',2,n,0,4)
awmCreateCSS(0,1,0,n,'#FFFFFF',n,n,n,'outset',2,'# C0C0C0',0,0)
awmCreateCSS(1,2,0,'#FFFFFF','#008E89',n,'bold 12px
Arial',n,'none',1,n,5,1)
awmCreateCSS(0,2,0,'#008E89',n,n,'bold 12px Arial',n,'none',1,n,5,1)
awmCreateCSS(1,2,0,'#FFFFFF','#008E89',n,'bold 12px
Arial',n,'none',1,n,5,0)
awmCreateCSS(0,2,0,'#008E89',n,n,'bold 12px Arial',n,'none',1,n,5,0)
var s0=awmCreateMenu(0,0,0,0,1,0,0,5,0,30,30,0,0,1,0,n ,"",n,1,1,1,0,n,n);
it=s0.addItem(2,3,3,"De Letselschade
Site",n,n,"","",n,n,n,"letselschadesite.htm","main frame");
it=s0.addItemWithImages(4,5,5,"Letselschade
algemeen",n,n,"",n,n,n,0,0,0,0,1,1,"",n,n,n,n,n);
it=s0.addItemWithImages(4,5,5,"Groot Expertisebureau
b.v.",n,n,"",n,n,n,0,0,0,0,1,1,"",n,n,n,n,n);
it=s0.addItemWithImages(4,5,5,"Nieuwsbrieven",n,n, "",n,n,n,0,0,0,0,1,1,"",n,n,n,n,n);
it=s0.addItem(2,3,3,"Kosten",n,n,"","",n,n,n,"kost en.htm","mainframe");
it=s0.addItemWithImages(4,5,5,"Overige
diensten",n,n,"",n,n,n,0,0,0,0,1,1,"",n,n,n,n,n);
it=s0.addItem(2,3,3,"Reaktie",n,n,"","",n,n,n,"rea ktie.htm","mainframe");
s0.pm.buildMenu();
}}
Jul 20 '05 #1
7 44504
Erik-Jan Bakker wrote on 09 nov 2003 in comp.lang.javascript:
I still uses AllWebMenus for building the menu. But I can't find the
error metioned regarding
line 26.

I hope someone can get me on the right track again...


ErikJan,

als ik alle false line-returns uit de js file haal, blijft aleen over, dat
de functie awmCreateCSS() niet gedefinieerd is.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
VK
Check all paths are correct after transferring to the new server.

1. <script src='grootmenu.js' language='JavaScript1.2'
type='text/javascript'></script>
2. var awmMenuName='grootmenu';
3. var awmLibraryPath='/awmData-grootmenu';
4. var awmImagesPath='/awmData-grootmenu';
Jul 20 '05 #3
"VK" <sc**********@yahoo.com> wrote in message news:<3f***********************@news.freenet.de>.. .
Check all paths are correct after transferring to the new server.

1. <script src='grootmenu.js' language='JavaScript1.2'
type='text/javascript'></script>
2. var awmMenuName='grootmenu';
3. var awmLibraryPath='/awmData-grootmenu';
4. var awmImagesPath='/awmData-grootmenu';


All these paths are correct.
I have checked them again.
Jul 20 '05 #4
Erik-Jan Bakker hu kiteb:
"VK" <sc**********@yahoo.com> wrote in message
news:<3f***********************@news.freenet.de>.. .
Check all paths are correct after transferring to the new server.

1. <script src='grootmenu.js' language='JavaScript1.2'
type='text/javascript'></script>
2. var awmMenuName='grootmenu';
3. var awmLibraryPath='/awmData-grootmenu';
4. var awmImagesPath='/awmData-grootmenu';


All these paths are correct.
I have checked them again.


Where do you have it online?
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #5
"Fabian" <la****@hotmail.com> wrote in message news:<bo*************@ID-174912.news.uni-berlin.de>...
Erik-Jan Bakker hu kiteb:
"VK" <sc**********@yahoo.com> wrote in message
news:<3f***********************@news.freenet.de>.. .
Check all paths are correct after transferring to the new server.

1. <script src='grootmenu.js' language='JavaScript1.2'
type='text/javascript'></script>
2. var awmMenuName='grootmenu';
3. var awmLibraryPath='/awmData-grootmenu';
4. var awmImagesPath='/awmData-grootmenu';


All these paths are correct.
I have checked them again.


Where do you have it online?
--

At vuurwerk.nl
Jul 20 '05 #6
>

At vuurwerk.nl

Actually, I couldnt find an AllWebMenus menu in the link you supplied.
However, the error you mention has definitely to do with a missing
file /directory. Are you 100% sure you have uploaded the files in the
right locations? Have you checked the correct case for the file and
directory names? (check out the fact that the awmData-menuname
directory has a capital D which you will need to specify...).

If you still have any problems do not hesitate to contact us at
support @likno.com

Best regards

Lisa Lasch
Likno Development Team
Jul 20 '05 #7
li**@likno.com (Lisa Lasch) wrote in message news:<15**************************@posting.google. com>...


At vuurwerk.nl

Actually, I couldnt find an AllWebMenus menu in the link you supplied.
However, the error you mention has definitely to do with a missing
file /directory. Are you 100% sure you have uploaded the files in the
right locations? Have you checked the correct case for the file and
directory names? (check out the fact that the awmData-menuname
directory has a capital D which you will need to specify...).

If you still have any problems do not hesitate to contact us at
support @likno.com

Best regards

Lisa Lasch
Likno Development Team


Problem solved!

Instead of :
var awmLibraryPath='/awmData-grootmenu';
var awmImagesPath='/awmData-grootmenu';

I used:
var awmLibraryPath='';
var awmImagesPath='';

and placed all the necessary files in the root of the site.
Now it works fine.

I know this is a workaround, but it helps me out.
I checked serveral times de directory names and I am sure
it was alright (also with a capital "D"). Strange isn't it?
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Danny | last post by:
Hi I don't understand why I keep getting "Error: Object expected" I tried different things and haven't been able to solve it. I'm a newbie so I'm not sure what I'm doing wrong. The debugger breaks...
11
by: westplastic | last post by:
This one is driving me insane. The script works perfect on Firefox, but Internet Explorer keeps complaining about "Error Object Expected" and stuff like that. I've run it through Firefox's Java...
1
by: avanti | last post by:
HI, I have an ASP page with some Javascript code. The JS has several functions and only some of them work. Here is part of the code: <html xmlns="http://www.w3.org/1999/xhtml"> <head...
0
by: manojkm84 | last post by:
hi i have a very wierd error its like this i using .net 2005 c#....theres a webgrid in a page.....n when i try clicking on ny link in it it gives this error.. Line:317 Char:1...
5
by: Diego Ruiz | last post by:
Hi!! my english is not too good, but i'll try it I have a javascript code: function executeCommands(inputparms) { // Instantiate the Shell object and invoke its execute method. ...
7
by: juliejam | last post by:
Hello all, I am new here and hope some kind, smarter than me person can help. I am getting the error object expected with the following code: function click(e); here the error says it...
4
by: jiyesong | last post by:
I get the following error on a website at home, but not at work. Error: object expected Could it be an internet setting?
7
by: barbara09 | last post by:
here's the code i am using: <script language="JavaScript" type="text/javascript"> <!-- begin function TimedPop() { url = "promotional-shirts.html"; width = 320; // width of window in pixels...
3
by: vas12 | last post by:
Hi, I have seen emails with this particular message but they do not help me. I get this error only in IE 6 & 7. Firefox, Safari and Opera work fine. Can some one point out what I am doing...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.