Jump to content

Recommended Posts

Posted

Wow, you seem to be the right place for me!

 

For some reason when I try to update my site, I get an error message regarding my js menus. There has been no problem until today when my update stops to tell me that my *.js has been modified. Since I didn't modify it, I'm not sure where to find the error.

 

Here is a sample:

//----------DHTML Menu Created using AllWebMenus PRO ver 3.1-#516---------------

var awmMenuName='awards';

var awmLibraryPath='/allwebmenus';

var awmImagesPath='/allwebmenus';

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-awards'].src;

if (document.layers) mpi=document.images['awmMenuPathImg-awards'].src;

if (navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || navigator.userAgent.indexOf('Opera')>-1) mpi=document.getElementById('awmMenuPathImg-awards').src;

awmMenuPath=mpi.substring(0,mpi.length-16);

while (awmMenuPath.search("'")>-1) {awmMenuPath=awmMenuPath.replace("'", "'");}

var nua=navigator.userAgent,scriptNo=(nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:((nua.indexOf('Konqueror')>-1)?6:1))));

document.write("<script SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>");

var n=null;

awmzindex=900;

}

 

var awmSubmenusFrame='';

var awmSubmenusFrameOffset;

var awmOptimize=0;

function awmBuildMenu(){

if (awmSupported){

awmCreateCSS(1,2,0,'#FFFFFF','#5A75A7',n,'bold 12px sans-serif',n,'none',0,n,0,0);

awmCreateCSS(0,1,0,n,'#5A75A7',n,n,n,'none',0,'#C0C0C0',0,0);

awmCreateCSS(1,2,0,'#FFFFFF','#5A75A7',n,'italic 10px sans-serif',n,'none',1,n,0,1);

awmCreateCSS(0,2,0,'#FFFFFF','#5A75A7',n,'italic 10px sans-serif',n,'none',1,n,0,1);

var s0=awmCreateMenu(0,0,0,0,1,0,0,0,0,3,134,0,0,1,0,"Awards Program","",n,1,1,1,0,n,n,100);

it=s0.addItem(2,3,3,"   Purpose   ",n,n,"","",n,n,n,"awards/purpose.htm",n);

it=s0.addItem(2,3,3,"   Categories   ",n,n,"","",n,n,n,"awards/categories.htm",n);

it=s0.addItem(2,3,3,"   Nominations;  ",n,n,"","",n,n,n,"awards/nomination.htm",n);

it=s0.addItem(2,3,3,"   Award Recipients   ",n,n,"","",n,n,n,"awards/recipient.htm",n);

s0.pm.buildMenu();

}}

 

 

I'm baffled at why I'm now getting an error message.

 

thanks so much

Posted

Have you compared the file on your system to the file on the server? Are they identical? It could simply be that the time stamp is different and it's assuming there was some change to the file.

Posted

Thanks Bruce, that's a great suggestion. Being a very tedious program, I compared the file on my computer with the file on the server.

 

Just to emphasize that I went line by line and found them to be identical.

 

Any other suggestions?

Posted

The error message I get when I try to publish is:

 

"Server error; The page awards.js has been modified by (unknown) on 20 Nov 2005 16:08:15 - 0500."

 

What has me baffled is that I didn't modify it and as far as I know, I'm the only one with access.

 

Thanks for any help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...