473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Stylesheet not Loading and Javascript Errors Before Refresh

I am having an issue (maybe two issues) in my application regarding a
stylesheet not loading and I am getting Javascript Errors. If I clean out a
client's temporary internet files and then browse to the site, the page is
displayed without a stylesheet. If I continue to use the app, general
Javascript Errors like "Object Expected" start occurring. If I click
refresh, the page and the stylesheet displays fine and there are no
Javascript errors.

The issue does not occur if a client first browses to my development
workstation (XP Pro). It only occurs when I move the code to our production
server (Win 2003, Compression Turned On, Anonymous Access) and it only seems
to happen on WinNT client machines (both IE6 and 5.5). I am using asp.net
1.1 and my stylesheets are included like <LINK href="css/UI.css"
type="text/css" rel="Stylesheet">. I have tried adding Media=Screen and I
have verified that the mime type is text/css even though these solutions
would only fix the CSS problem, not the JS problem. I do use include
javascript files and they are included like <SCRIPT language="javascript"
src="include/common.js"></SCRIPT>. I also use .Net Validators and the pages
w/ the validators seem to have the issue. I have double checked and the
aspnet_client folder exists and is in the proper place.

Have you seen this before or have any ideas for a solution? It seems as
though the page is being loaded, but none of the included files are. But
when refreshed (or cntrl+f5) is clicked, all the files load and the page
works perfectly fine.
Nov 19 '05 #1
3 2739
Hi,

Thanks for your posting. Regarding on the problem you mentioned, it seems
caused by the client side browser didn't correctly load the linked resource
files in the page at the first request. I've found that there is a kb
article mentioned the similiar problem on IE, you can have a look to see
whether this helps:

#Internet Explorer Incorrectly Displays Web Pages
http://support.microsoft.com/?id=825057

You can found that the kb mentioned that such problem is likely caused by

*The Advanced setting Do not save encrypted pages to disk is selected.
*The Web page uses the HTTPS protocol.
*You have turned on HTTP compression for .css and .js files on the Web
server.

Hope helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 19 '05 #2
Thank you for the link to the kb article. Compressing the .css and .js files
was the issue. We excluded these files in the Metabase and it fixed the
issue.
"Steven Cheng[MSFT]" wrote:
Hi,

Thanks for your posting. Regarding on the problem you mentioned, it seems
caused by the client side browser didn't correctly load the linked resource
files in the page at the first request. I've found that there is a kb
article mentioned the similiar problem on IE, you can have a look to see
whether this helps:

#Internet Explorer Incorrectly Displays Web Pages
http://support.microsoft.com/?id=825057

You can found that the kb mentioned that such problem is likely caused by

*The Advanced setting Do not save encrypted pages to disk is selected.
*The Web page uses the HTTPS protocol.
*You have turned on HTTP compression for .css and .js files on the Web
server.

Hope helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3
You're welcome.

Have a good day!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Collins | last post by:
Hello, I am currently having a problem with IE version 5.0 on windows. When you first enter the site I am working on the Layout is OK. When you click on any of the links, the layout is screwed...
3
by: Jacques Chaurette | last post by:
Hello all , thanks in advance for any help. While looking for a solution to how to replace the grey box while an applet loads, a search of Google got me an article by Glenn s. Peffers that claims to...
4
by: th1421 | last post by:
Hi, I'm new to FireFox. I am currently trying to convert my website to be compatible with it. Doing so I’m trying to process some XML/XSLT pages (preferably without using JavaScript). When I...
2
by: Jake Barnes | last post by:
I'm helping to build a site where people recovering from addiction are suppose to able to share their stories with each other, and encourage each other toward greater sobriety. One idea that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.