Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

DHTL and Java

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache and frontpage  
Author Message
blnukem

External


Since: Oct 28, 2003
Posts: 5



(Msg. 1) Posted: Tue Oct 28, 2003 3:09 pm
Post subject: DHTL and Java
Archived from groups: alt>apache>configuration (more info?)

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?


Note: I have checked all the error log and there is nothing there. I set
router to DMZ on the servers IP also.
Internet Explorer error on bottom of the browser reads error: "Error access
is denied"

Thanks in advance
Blnukem

 >> Stay informed about: DHTL and Java 
Back to top
Login to vote
user2535

External


Since: Oct 28, 2003
Posts: 2



(Msg. 2) Posted: Tue Oct 28, 2003 6:01 pm
Post subject: Re: DHTL and Java [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: DHTL and Java 
Back to top
Login to vote
blnukem

External


Since: Oct 28, 2003
Posts: 5



(Msg. 3) Posted: Wed Oct 29, 2003 10:04 am
Post subject: Re: DHTL and Java [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"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 
Back to top
Login to vote
nandagopalnair

External


Since: Oct 07, 2003
Posts: 8



(Msg. 4) Posted: Sat Nov 01, 2003 1:33 pm
Post subject: Re: DHTL and Java [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Blnukem wrote:
 >
 >
 > 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>
 >
 >

Uhm.. The script doesn't do its job, but were you successful in
retriving the script through the browser? ( IE will try to save it to
disk, but netscape will display it a plaintext )

What is the directory structure you have under your document root? Where
is the HTML page that calls the script located?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DHTL and Java 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Using Java to modify Apache...? - Has anyone found any Java-based utilities or code to modify the Apache configuration? I need to write something that will modify (parts of) the apache configuration (httpd.conf) and then re-start the server so that the changes are recognized. Thanks.
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]