Hi Kanugula, > Some design questions. > 1) Since the example/Atom1.html run in IFrame, should we distruct objects > when the page in the IFrame is unloaded?. I guess refreshing a page cleans > the browser cache. So need to unload the objects. >
There is no special consideration regarding object destruction beyond the normal application hygiene. An application should do a proper clean-up whether it is loaded in an IFrame or a normal browser window. There is nothing special about the IFrame here. In qooxdoo, you do the clean-up in the 'destruct' section of a class definition. See for more info: http://qooxdoo.org/documentation/0.7/destructor_support This prevents global name space pollution in the interpreter, but has nothing to do with the browser cache. The interpreter might garbage-collect an object, but the source file can still be in the cache. Refreshing the page usually refreshes all source files (if necessary), but unloading objects is done whenever the old page is left. > 2) Since Atom1.html downloads demo.js everytime, when the user clicks on it, > is there a way that we can move it to the parent and access it from there? > It increases the performance. > I don't think that demo.js is downloaded everytime. My Firefox 2 issues the GET requests with an if-modified-since header, and receives a 304 Not Modified from the server. This applies to reloads as well as to loading a new page that also requires demo.js (e.g. Atom_2.js). So although there is always a request for demo.js it is only reloaded when it really has changed. If this is not the case, the cached version is used. Cheers, Thomas ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
