cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript Menu on FP server

N/A

JavaScript Menu on FP server

Hello. I have a natty little javascript menu that I have downloaded from www.dynamicdrive.com.

It works fine from my D:\drive

It works fine when you go directly to it on the Force9 Frontpage server (try it yourself at: http://fp.thelarkins.f9.co.uk/managing_it.htm )

You'll see the menu titled "Quick Menu". I'm very happy with it.

However if I go to my domain ( www.nescient.co.uk ) and then click through to the same page I get an error as follows:

Line: 39
Char: 2
Error: Access is Denied
Code: 0
URL: http://fp.thelarkins.f9.co.uk/managing_it.htm

Try going to http://www.nescient.co.uk and then on the left click "Business" and then "Managing I.T."

If you are like me then the natty menu will not be there and you will get an error.

Please can someone help - I want the menu to work when people click through to it.

Hope someoneout there has more brains than me! Smiley
3 REPLIES
N/A

JavaScript Menu on FP server

what is the code on this line ?
N/A

JavaScript Menu on FP server

When you go to http://fp.thelarkins.f9.co.uk/managing_it.htm line 39 is as below (I've included a few lines either side for convenience - but you can check the whole thing yourself). Of course when you view the page by going to http://fp.thelarkins.f9.co.uk/managing_it.htm the error does not occur
.....................................................................
31 <script type="text/javascript">
32 var emailarray9415= new Array 105,110,102,111,64,110,101,115,99,105,101,110,116,46,99,111,46,117,107)
var postemail9415=''
33 for (i=0;i<emailarray9415.length;i++)
34 postemail9415+=String.fromCharCode(emailarray9415)
35
36 document.write('<a href="mailto:'+postemail9415+'?subject=Information...">Email: Information</a>')
37
38 </script>
39 &• <script type="text/javascript">
40 var emailarray7715= new Array(115,97,108,101,115,64,110,101,115,99,105,101,110,116,46,99,111,46,117,107)
41 var postemail7715=''
42 for (i=0;i<emailarray7715.length;i++)
43 postemail7715+=String.fromCharCode(emailarray7715)
44
45 document.write('<a href="mailto:'+postemail7715+'?subject=Sales...">Email: Sales</a>')
46
47 </script>
.........................................................................
.........................................................................

When you view the source code when you have "clicked through" from http://www.nescient.co.uk/ then line 39 is as follows (this is just some "<!--" comments which you can see in full if you view the source at http://www.nescient.co.uk/ and click "business" and then "Managing I.T." ).

.........................................................................
4. Now just save the file as index.htm and upload it to ftp.plus.net, if you need help with this
.........................................................................
.........................................................................

The only thing at the www.nescient.co.uk server is a redirect to fp.thelarkins.f9.co.uk - where the real site is.

Let me know if I can give you any more info.
N/A

Solved!

Thanks for reading this far!

I have found the problem in the script that I downloaded - I had set one of the variables incorrectly so that it was looking for a frame on a web page which has no frames!

Thanks for your time splink! Cheesy