473,385 Members | 1,409 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,385 software developers and data experts.

@import causing IE 6 to crash

Has anyone encountered a situation where the @import is causing IE 6
to crash?

I have a css file, let's call it test.css, that has only two lines in
it.

@import url("file1.css");
@import url("file2.css");

Both imports were successful in that there were http requests to get
the two files. But when they come back, it could be the parsing that
is causing the browser to fail, but it crashes IE. This happened to me
and a few other people regularly during testing. I fixed it for myself
and others when I moved the files to a different server (could be a
XSS problem in our web app), but this did not fix the problem for
others. Still crashing consistently at the same spot.

Btw this crashs IE 7 a bit less often, and never Firefox, at least in
my tests. And when I ditch the @import and include all the selectors
in test.css, no crash.

I am not concluding this is definitely a css problem. But I want to
ask you all here whether anyone has seen this before.

TIA.
Jun 27 '08 #1
5 1952
On 15 May, 00:27, q353...@gmail.com wrote:
I am not concluding this is definitely a css problem. But I want to
ask you all here whether anyone has seen this before.
Post a URL.

@import works for me, so yours must be doing something different. Give
us a URL and we might be able to see what it is.
Jun 27 '08 #2
On May 15, 5:50 am, Andy Dingley <ding...@codesmiths.comwrote:
On 15 May, 00:27, q353...@gmail.com wrote:
I am not concluding this is definitely a css problem. But I want to
ask you all here whether anyone has seen this before.

Post a URL.

@import works for me, so yours must be doing something different. Give
us a URL and we might be able to see what it is.
Unfortunately this is part of a web application for which you'll need
a username and PIN to access, and I can't give those out, not even
test ones.

What I can do is include the code. Small piece of code, no secrets
here.

html{margin:0;padding:0;width:100%;height:100%;ove rflow:hidden}
body{font:9pt Helvetica,Verdana,sans-serif;background:#898989;margin:
0;padding:0;width:100%;height:100%;overflow:hidden }
#cssLoaded{text-align:center}
#content{font:9pt Helvetica,Verdana,sans-serif;color:#FFFFFF;width:
100%;height:100%;background:#898989}
#logoframediv{background:url("logo.gif") no-repeat; width:186px;height:
186px;margin-top:50px;margin-left:auto;margin-right:auto;text-
align:center;visibility:visible;display:block}
#welcomeLabel{margin-left:auto;margin-right:auto;font-size:
18pt;color:white;text-align:center;visibility:visible;display:block}
#containerTable{visibility:visible;text-align:center;}
#infoTable{margin-left:auto; margin-right:auto;visibility:visible}
#tRow{color:white;text-align:left;visibility:visible}
#tLabel{padding:2px;width:120px;visibility:visible }
#tData{padding:2px;font-weight:bold;visibility:visible; white-
space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap;
white-space:-o-pre-wrap; word-wrap:break-word;}
#mRow{color:white;text-align:left;visibility:visible}
#mLabel{padding:2px;width:120px;visibility:visible }
#mData{padding:2px;font-weight:bold;visibility:visible; white-
space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap;
white-space:-o-pre-wrap; word-wrap:break-word;}
#mgRow{color:white;text-align:left;visibility:visible}
#mgLabel{padding:2px;width:120px;visibility:visibl e}
#mgData{padding:2px;font-weight:bold;visibility:visible}

These are the contents of file1.css from my original example. But some
tests from earlier today blew my original assertions out of the water.
I tried it without using @import. Instead, I changed the content of
test.css so it is the same as file1.css and called test.css (I
excluded file2.css in this test) My IE 7 still crashed. On the face of
it this would rule out the @import but rather implicate the contents I
included above. But it's never that simple, is it.

Again, TIA.
Jun 27 '08 #3
q3*****@gmail.com wrote:
On May 15, 5:50 am, Andy Dingley <ding...@codesmiths.comwrote:
>On 15 May, 00:27, q353...@gmail.com wrote:
>>I am not concluding this is definitely a css problem. But I want to
ask you all here whether anyone has seen this before.
Post a URL.

@import works for me, so yours must be doing something different. Give
us a URL and we might be able to see what it is.

Unfortunately this is part of a web application for which you'll need
a username and PIN to access, and I can't give those out, not even
test ones.

What I can do is include the code. Small piece of code, no secrets
here.

html{margin:0;padding:0;width:100%;height:100%;ove rflow:hidden}
body{font:9pt Helvetica,Verdana,sans-serif;background:#898989;margin:
0;padding:0;width:100%;height:100%;overflow:hidden }
#cssLoaded{text-align:center}
#content{font:9pt Helvetica,Verdana,sans-serif;color:#FFFFFF;width:
100%;height:100%;background:#898989}
#logoframediv{background:url("logo.gif") no-repeat; width:186px;height:
186px;margin-top:50px;margin-left:auto;margin-right:auto;text-
align:center;visibility:visible;display:block}
#welcomeLabel{margin-left:auto;margin-right:auto;font-size:
18pt;color:white;text-align:center;visibility:visible;display:block}
#containerTable{visibility:visible;text-align:center;}
#infoTable{margin-left:auto; margin-right:auto;visibility:visible}
#tRow{color:white;text-align:left;visibility:visible}
#tLabel{padding:2px;width:120px;visibility:visible }
#tData{padding:2px;font-weight:bold;visibility:visible; white-
space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap;
white-space:-o-pre-wrap; word-wrap:break-word;}
#mRow{color:white;text-align:left;visibility:visible}
#mLabel{padding:2px;width:120px;visibility:visible }
#mData{padding:2px;font-weight:bold;visibility:visible; white-
space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap;
white-space:-o-pre-wrap; word-wrap:break-word;}
#mgRow{color:white;text-align:left;visibility:visible}
#mgLabel{padding:2px;width:120px;visibility:visibl e}
#mgData{padding:2px;font-weight:bold;visibility:visible}

These are the contents of file1.css from my original example. But some
tests from earlier today blew my original assertions out of the water.
I tried it without using @import. Instead, I changed the content of
test.css so it is the same as file1.css and called test.css (I
excluded file2.css in this test) My IE 7 still crashed. On the face of
it this would rule out the @import but rather implicate the contents I
included above. But it's never that simple, is it.

Again, TIA.
Priceless!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #4
Jonathan N. Little wrote:
>
Priceless!
Indeed. A classic.

I have software that I can set up to automatically send the same email
out every few days.

Perhaps if we write instructions on how to ask a question so that the
knowledgeable and helpful people here would be able to help nubes - and
post it every few days, this might help?

Can you point me to a FAQ or similar so I can pinch the content?

Regards

Ian
Jun 27 '08 #5
Ian Hobson wrote:
Can you point me to a FAQ or similar so I can pinch the content?
http://www.html-faq.com/
alt.html FAQ: Frequently Asked Questions

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #6

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

Similar topics

2
by: Raj Batra | last post by:
Hi, I've created a dll that you can import into python. The function calls an ostringstream class. Calling this function repeatedly in python will cause a Microsoft Visual C++ Debug Library...
0
by: Stormbringer | last post by:
I am using latest python 2.4 under Windows. I have a file where I have a bunch of functions, but none with a special name and nothing outside the functions, no import etc In the main module...
0
by: Silby | last post by:
Hi, Yesterday i fired up vs .net to finish up something i was coding, but on opening the project vs crashed and stopped responding. My c++ projects still work fine oddly enough. After failing to...
0
by: John Phelan | last post by:
I had a very large number of query statements that I had converted to SQL a long time ago aticipating that I would some day upsize my application. Every now and then when I do an import to a new...
0
by: Atul | last post by:
I have a .Net Managed C++ wrapper control for a MFC control. When using the ..Net control in a Visual Studio 2005 Beta 2 C# project and running in Debug mode, I get a crash saying something like...
3
by: Brad | last post by:
I have an aspx web page which initially displays fine. When I postback the resulting response back to the client output is causing InternetExplorer 6 to crash. I've disabled the server side code...
6
by: John Lynagh via .NET 247 | last post by:
Hi there, I am having serious problems with my web.config file. When the authentication lines are added below my application crashes. When they are removed it works fine. Is there syntax error below...
9
by: badboybrown | last post by:
Hello, Is it possible to step through the "Create MDE" process and see what is causing Access to crash? I tried, unsuccessfully, many times to create an MDE from my database. But, randomly, I...
4
by: j_depp_99 | last post by:
The program below fails on execution and I think the error is in my pop function but it all looks correct.Also could someone check my code as to why my print function is not working? I havent...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.