How to destroy a CFGRID when using IE7 ?

Posted on 2009-02-09
Last Modified: 2013-12-20
I'm doing a CFLAYOUT with tabs on top.  Each of those layouts contains another layout - left and right.  On the left is a menu, on the right is the "body" where everything happens.

If I pick menu options on the left that cause the right to open with pages contain CFGRIDs or other cfajax functions, RAM usage climbs quickly.  Once you've opened X pages so that IE has loaded 30 style sheets, it stops loading sheets and grids, etc., stop working.  This is a documented issue with IE that it caps at 30 style sheets and is an issue with Adobe that on reloads it doesn't destroy the old stylesheet before sending in a new one.

My question:  How can I programmatically destroy the grids, etc., as I'm unloading the page or getting ready to load the next page, so I don't run into this?
Question by:drgdrg
    LVL 36

    Accepted Solution

    found this...

    "and I'm manually killing the style sheet after destroying the grid:


    LVL 1

    Author Comment

    Thanks... I had found that but either it isn't helping in this situation or isn't being invoked properly.

    I have my hyperlinks on the left and am doing:
    A href="javascript:Ext.util.CSS.removeStyleSheet('foo');ColdFusion.navigate('rightside.cfm?id=report.reminders.stats','remindersright');">Reminder Stats< /A>

    ... the idea being to kill the sheet first and then load the new page (Coldfusion.navigate) in the first scripts place.  While the new page does load, it doesn't clear the first stylesheet.  Either it doesn't do wht is expected OR I could be invoking it in the wrong way / wrong place.
    LVL 36

    Expert Comment

    i doubt that the style sheet is called actually foo (but I could be wrong)

    check out your attached css using firebug or similar and check the -real- css sheet names
    LVL 1

    Author Comment

    It actually is foo ... one of the articles talked about the stock style sheets used by CF8 and how it failed to name one of the sheets, which never got deleted.  The article suggested naming the sheet, so I did, "foo" ... hence, the foo.

    Good idea, though

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
    The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now