Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 18th, 2004, 12:39 AM
raipe raipe is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 raipe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Avoid reloading the stylesheet for frame

Hi!

I am using javascript document.write() in one frame to dynamically change the content of another frame.
This rewriting is done quite often and the page(frame) is written every time from scratch (i.e.
starting from <HTML>). I also have to add <LINK> element to load the stylesheet
used by that frame.

Problem is this:
Because the page is rewritten quite often it is not good to reload the stylesheet every
time because it always takes some time.

How can I get around this problem? Is the only way to write the stylesheet inside
the header of the frame instead of loading a stylesheet file?

I am quite new to HTML and javascript.

Thanks.

Reply With Quote
  #2  
Old June 18th, 2004, 02:08 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Stylesheets are cached on the users computer by default, so I wouldn't worry about the css loading each time.

It sounds like your site could be written more efficiently, perhaps you could look into a server-side language?
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old June 18th, 2004, 04:25 AM
raipe raipe is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 raipe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't see how any server-side language can fit to my problem.
The thing is that once all the pages all loaded once there is no need
to get more data from server.

The dynamically created frame contais text-based tree hierarchy.
Like this:
object 1
__sub object 1
__sub object 2
____sub sub object 1
____sub sub object 2
__sub object 3
...

The hierarchy to show depends of the state of activeX component
that is in another frame. User can freely expand and collapse items
in hierarchy and this happens quite often.

But if css files are cached, I quess there is no problem.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > Avoid reloading the stylesheet for frame


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT