Board Logo

Error: Browser trying to call line in js (' + this.fields[1] + ')
skyloaf - 1/15/2004 at 04:32 AM

If it helps, browser returns:

The requested URL /newsite/scripts/' + this.fields[1] + ' was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

What am I doing wrong? I'm sure it's something totally basic.


mariagwyn - 1/30/2004 at 09:07 PM

I have a similar problem, and though I don't know javascript, I have narrowed it down to the following:

When I downloaded the file, the menu.js file, under the section titled "function mitem_init...document.write" contains the following line:
+'o" href="Menu/%27%20%2B%20this.fields%5B1%5D%20%2B%20%27" style="position: absolute; top: '

This line looked suspiciously like the error link that my meny was creating. So, as an experiment, I replaced it with the following line:
+'o" href="" style="position: absolute; top: '
which my main website. It worked, in that it changed everyone of my 0-level menu links to that site. However, the problem still exists that it is not letting the links I have entered into the menu_items file take effect.

So, along with skyloaf, I could use some help.


p.s., I am happy to attach a file if necessary.

rock - 2/2/2004 at 08:30 AM

Could you attach your items.js and tpl.js files and mention menu version?

skyloaf - 2/4/2004 at 03:55 PM


I took out all the numbers and percentage figures ("%56%67", etc.) stuff around the term "this.fields" and replaced it with the apostrophe mark and plus sign, as it appears in the error.

I think the numbers and percentage marks are created by the browser and somehow got changed in the code when I brought it into Dreamweaver. It works now.

Back to forum: