Post Reply 
[req] Toggle scripts
Mar. 04, 2009, 05:40 PM
Post: #8
RE: [req] Toggle scripts
sidki;
(Mar. 02, 2009 05:44 PM)sidki3003 Wrote:  It's not my project, so lnminente may perceive that differently.
True, that. However, you were the one who made the initial statement about reloading, so I responded directly. The way I figure it, everyone benefits, but I gave you my normal courtesy of directly addressing the first person to bring up a given instance. That's all, I swear! Wink

Quote:Usually the idea of "toggle filters" is to change layout by manipulating the DOM (of the loaded document). If you reload the page, no matter if via script or manually, such changes are lost.
Urmmm, I think we have a difference of opinion here. To me, toggling a filter to make its effect appear or disappear would sort of require that the page be re-rendered by the browser, no? (Or at least some portion of the page, perhaps such as an iframe.) And the idea of a toggle is that it be forced to assume a new state, be that the default state or otherwise. This new state really should be "saved" across page refreshes, or so I would think - else it would never be a toggle! The manner of doing so is best left up to the filter's author of course, I don't think there's any one 'best' way to do that.

createElement also requires a page refresh in order for the browser to render it. And while I'm at it, for those not at sidki's level of understanding, all this page refreshing is required because the browser has to calculate where to render each item (DOM element) on the screen. It can't simply leave in place everything already on the screen, untouched. That would definitely make for a messy rendition! Sad


While I'm certain that I've properly explained the basics of what happens for the mainstream browser (not to mention a small torrent of wannabe's), by no means have I given any shrift to the avant-garde stuff. It is entirely possible that one or more out-of-the-way browsers may have a method of rendering parts of the screen without touching the remaining items, but such has not come to my notice. But just to cover my butt, I'll quote A.C. Clarke: "When a noted scientist says that something might be possible, he is almost certainly right. When he says that something is absolutely impossible, he almost certainly wrong."

HTH


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[req] Toggle scripts - lnminente - Feb. 26, 2009, 08:52 PM
RE: [req] Toggle scripts - sidki3003 - Feb. 26, 2009, 10:13 PM
RE: [req] Toggle scripts - lnminente - Feb. 26, 2009, 10:42 PM
RE: [req] Toggle scripts - sidki3003 - Feb. 26, 2009, 10:58 PM
RE: [req] Toggle scripts - Oddysey - Mar. 02, 2009, 03:48 PM
RE: [req] Toggle scripts - sidki3003 - Mar. 02, 2009, 05:44 PM
RE: [req] Toggle scripts - lnminente - Mar. 03, 2009, 05:37 AM
RE: [req] Toggle scripts - Oddysey - Mar. 04, 2009 05:40 PM
RE: [req] Toggle scripts - lnminente - Mar. 12, 2009, 03:30 PM
RE: [req] Toggle scripts - whenever - Apr. 01, 2009, 12:52 PM
RE: [req] Toggle scripts - sidki3003 - Apr. 01, 2009, 01:42 PM
RE: [req] Toggle scripts - whenever - Apr. 01, 2009, 03:00 PM
RE: [req] Toggle scripts - sidki3003 - Apr. 01, 2009, 03:28 PM
RE: [req] Toggle scripts - whenever - Apr. 01, 2009, 04:03 PM
RE: [req] Toggle scripts - sidki3003 - Apr. 01, 2009, 04:35 PM
RE: [req] Toggle scripts - lnminente - May. 07, 2009, 07:46 PM

Forum Jump: