"N Nair" <email-protected RemoveThis @mydomain.tld> wrote in message
news:vpu0mv9oasil4b@corp.supernews.com...
> Blnukem wrote:
>
> > I am trying to use the DHTML which calls a .js script on my server,
> which is
> > running Apache server on Windows NT4 OS behind a linksys router. The
> script
> > works fine for me when I view the page in my web browser from my hard
> drive.
> > The script does not work or even appear when I view the page when it is
> > being served by Apache web server. My question is, could this problem
> be due
> > to settings in my httpd.conf file and if so, what lines could I add
> to the
> > httpd.conf to allow the script to work properly?
>
>
> It is highly unlikely that this problem has anything to do with your
> httpd/router/DMZ setup. Right-Click and 'View Source' on your browser.
> Find out how your script is sourced. <script language="javascript"
> src="/js/test.js"> for example. Type in the value of the src attribute
> next to the hostname ( here, it would be
> <a style='text-decoration: underline;' href="http://myserver.mydomain.com/js/test.js" target="_blank">http://myserver.mydomain.com/js/test.js</a> ). If it works from your
> localhost, but not anywhere else, there may by something in the src
> attribute that is specific to your localhost enviroment. ( as in
> localhost/js/test.js or 127.0.0.1/js/test.js )
>
> Find out what the server says. Move the js file around OR change your
> src attribute to point to the where the file is OR give it access
> permissions so your browser can request for the script and retrieve it
> successfully from the server.
>
I have tried the following with no luck
<script type='text/javascript' src='java/menu.js'></script>
<script type='text/javascript' src='/java/menu.js'></script>
<script type='text/javascript' src='../java/menu.js'></script>
<script type='text/javascript'
src='www.FullDomainPath.com/java/menu.js'></script><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: DHTL and Java