• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

How to destroy a CFGRID when using IE7 ?

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?
0
drgdrg
Asked:
drgdrg
  • 2
  • 2
1 Solution
 
SidFishesCommented:
found this...

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

Ext.util.CSS.removeStyleSheet('foo');"

http://www.coldfusionjedi.com/index.cfm/2008/8/5/Ajaxbased-CFGRID-and-IE-issue


0
 
drgdrgAuthor Commented:
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.
0
 
SidFishesCommented:
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
0
 
drgdrgAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now