|
[req] Toggle scripts
|
|
Feb. 26, 2009, 10:13 PM
Post: #2
|
|||
|
|||
RE: [req] Toggle scripts
(Feb. 26, 2009 08:52 PM)lnminente Wrote: Note: I don't know anything about javascript. I think some scripts must be loaded with the page and executed with the body onload. But other scripts not executed in the beginning could work using this filter or something similar? I agree. As a rule of thumb, scripts in the <head> block can't be hot-swapped, but those in the <body> block can. At least that's what i seem to remember when playing with it, after ProxRocks asked for it, at CC a few years back. The method i'd use would be similar to "<iframe>: Toggle Third Party iFrames". That is, moving the src value to a dummy attribute, and replacing the real src value with a dummy URL. As to the dummy attribute, for iframes "longdesc" is working well, for scripts i would suggest "for". Then, clicking the toggle would invoke a function that swaps "for" with "src". I don't think writing that function would require deep JS knowledge, which i don't have either. Maybe you could just copy over the respective function from proxjs-full.js. The function is called "inToggleC", and you'd need to replace "t.longDesc" with "t.htmlFor || t.getAttribute("for")". |
|||
|
« Next Oldest | Next Newest »
|
| 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
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)