|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Virtual memory used by IE is increasing when creating and hiding
Hi,
I have used cfwindows on my web page and I wanted to load the URL dynamically for that. But I was unable to do so. Then I made to create cfwindows when I need a new one. The problem here is when I am creating new windows the virtual memory gets filled up when I was created about 200 cfwindows. I was tried with refreshing the page when the cfwindow is closed but the virtual memory is still there intil I close the main window ... My primary question is "Is there a way to create cfwindows on IE without increasing the virtual memory ??" I have two requests here. If one of those is possible to do then I can come up with an solution. 1. Is there a way to change the URL of cfwindows onshow ? 2. Is there a way to delete the cfwindow objects instead of hide ?? (I have tried getWindowObject and to dispose it. It seems working but the virtual memory issue is still there) Thank you. |
|
#2
|
|||
|
|||
|
You can destroy a window by simply calling close() on it. You can try just calling close() on the window that CF creates, based on the ID you specify, or you can use ColdFusion.Window.getWindowObject(name) to get a reference to the actual EXT window object and then do anything you want with it that the EXT API supports. Hopefully that helps. (The CF docs have some more detailed info on the window and the other JS functions that CF exposes for working with EXT).
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums Last edited by kiteless : February 19th, 2008 at 09:16 AM. |
|
#3
|
|||
|
|||
|
Thank you very much kiteless.
There is not a method as close() on cfwindow only hide() is there. I have get the windowObject and destroyed it but it seems not working. Still the vitual memory usage is getting higher. ![]() |
|
#4
|
|||
|
|||
|
I don't think Firefox has the same virtual memory problem as in IE. This won't help you for IE users, just something to keep in mind. For IE, try:
ColdFusion.Window.getWindowObject(winName).destroy(); Peter |
|
#5
|
|||
|
|||
|
Another thing to keep in mind is refreshOnShow=true. I'm not sure if you can do this in the the JavaScript command: ColdFusion.Window.create, but you can use this with <cfwindow>. With this in mind, you might not need to create dynamically named windows. Also, check out this link:
http://blog.dkferguson.com/index.cfm/2008/2/6/alter-window-close-function Peter |
|
#6
|
|||
|
|||
|
or this link:
http://www.thinkinglemur.com/index.cfm/2007/11/25/ColdFusion-8-CFWindow-caching-problem |
|
#7
|
|||
|
|||
|
I would expect that this bug (the inability to destroy the windows) should be fixed in the next updater.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Virtual memory used by IE is increasing when creating and hiding |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|