Forums

This topic is locked

Accessing Javascript from different server

Posted 06 Apr 2004 15:08:37
1
has voted
06 Apr 2004 15:08:37 A B posted:
Hi there! i am using the following code in order to make a menu at the top of my page. However one of my pages opens code stored on a different server. How would i be able to recode the javascript below in order to access the relevant .js file from the other server????
The code is currently as follows:

<img name='awmMenuPathImg-newMenu_sub' id='awmMenuPathImg-newMenu_sub' src='../../awmmenupath.gif' alt=''>
<script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]', awmBN='460'; awmAltUrl='';</script>
<script src='../../newMenu_sub.js' language='JavaScript1.2' type='text/javascript'></script>
<script type='text/javascript'>awmBuildMenu();</script>

Replies

Replied 07 Apr 2004 02:48:53
07 Apr 2004 02:48:53 Phil Shevlin replied:
Have you tried putting in absolute addresses:

<img name='awmMenuPathImg-newMenu_sub' id='awmMenuPathImg-newMenu_sub' src='www.domain.com/awmmenupath.gif' alt=''>
<script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]', awmBN='460'; awmAltUrl='';</script>
<script src='www.domain.com/newMenu_sub.js' language='JavaScript1.2' type='text/javascript'></script>
<script type='text/javascript'>awmBuildMenu();</script>


Replied 07 Apr 2004 17:33:48
07 Apr 2004 17:33:48 A B replied:
Ok i had to create a virtual directory on the other server, and use that path!

But now i can see the .js script is running but i get a permissions error!!!! when trying to use the .js function. How can i handle the permissions error? it does not give me any option to debug or find what permissions are needed!!!

HELPPPPPPPP!!!!!!!!!!!!!
Replied 08 Apr 2004 02:38:52
08 Apr 2004 02:38:52 Phil Shevlin replied:
I don't have an answer for you. Its an NT issue. The IUSR account on the one server probably needs permission to read files from the other server and vice-versa. But I'n no network tech.

Reply to this topic