473,506 Members | 17,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot serve javascript files

2 New Member
I have a web site deployed on IIS. It is a simple static site for test purposes with only one html page and a javascript file.

HTML page code:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head></head>
  3. <script language="javascript" src="jsFile.js"></script>
  4. <body onload="onBodyLoad()">
  5. </body>
  6. </html>
  7.  
Javascript code

Expand|Select|Wrap|Line Numbers
  1. function onBodyLoad()
  2. {
  3. alert(1);
  4. }
  5.  
This works normal as expected that when body loads, an alert "1" is displayed.

However when i deploy this site on another machine on my LAN, (say B) which also happens to be proxy server, the problem occurs.
I access the URL of website on B from some other machine say A. Proxy for machine A is set to be ON ie every computer on LAN is also accessed via proxy server.
The problem is that no alert message is displayed, instaed the javascript error message "Object Expected" is displayed. If i see the Temporary Internet Files folder, the js file is not there. However when proxy is set to OFF, things work fine.
Not only js files, any externaly linked files in the page , like any stylesheets are also not found in Temporary Internet Files and nor does the styles defined therein applied on html page.

I think i have explained properly. See if anyone can help
Jan 11 '07 #1
0 3506

Sign in to post your reply or Sign up for a free account.

Similar topics

10
3686
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or...
11
8743
by: Mark J. McGinty | last post by:
Greets, One site I've written allows the user to install an IE extension menu (not malware at all) by downloading/merging a short .REG file. Worked like a peach on Win2K Server, now that I...
21
2571
by: Hattuari | last post by:
I'm learning C++ after having spent several years in the computer industry doing both system administration and engineering. I've written code in Perl, Bash, Pascal, Ada, C, Mathematica (hundreds...
3
1297
by: Peter | last post by:
Hello: I've just asked a question about the includes, and I appreciate your help very much. However, this still doesn't work for me. What am I doing wrong? I have a script that should go...
8
5451
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
22
3946
by: petermichaux | last post by:
Hi, I'm curious about server load and download time if I use one big javascript file or break it into several smaller ones. Which is better? (Please think of this as the first time the scripts...
2
2906
by: kbutterly | last post by:
Good afternoon, I have what appears to be a caching issue, but i'm a bit of a newbie at http headers so it may be something else. I have a small asp.net 2.0 application that is called to serve...
4
2297
by: Alice | last post by:
How can I make php script serve up an *.html file 'server-parsed' for SSI's? The goal is to pre-process all *.html files with php script, but the SSI's need to be handled too. Problem with...
0
2166
by: jianxin9 | last post by:
Hi everyone, I don't have a lot of experience with ASP and I was hoping someone could help me. I want to use our ASP form along with some javascript code to create a form where our patrons can...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.