![]() |
|
Proxo JS Library - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Forum Related (/forumdisplay.php?fid=37) +--- Forum: Proxomitron Program (/forumdisplay.php?fid=4) +--- Thread: Proxo JS Library (/showthread.php?tid=844) |
Proxo JS Library - z12 - Aug. 26, 2006 11:56 AM While working on some js, it occured to me that it would be handy if there was a Proxomitron js Library available to draw upon. Such a library would have the benefit of allowing the user injected js to be modified to add features/functions regardless of the config being used. The key to making this work would be in creating a root level proxo namespace. This would allow js to be added without having to worry about conficting names. For example, I recently decided that I wanted to add a flyover to appear when I moved my mouse over links that had the href modified. To accomplish this, I added the js in a proxo.flyover namespace. If I wanted to isolate the namespace even further, I could have used a namespace such as proxo.z12.flyover or maybe just z12.flyover. It seems to me that there are several objects/functions that would be good canidates to put under a common proxo namespace. These could be shared by all js authors to avoid code duplication. Comments appreciated. Mike RE: Proxo JS Library - sbk - Nov. 19, 2006 03:05 PM yeah. great idea. (i know hardly anything about scripts). I'd been thinking of something similar, a local storage of "approved" scripts for sites that insert many scripts (eg, yahoo mail). I guess the easiest way to apply the local script is by substituting ptron path instead of yahoo's path for the script files. (but trouble with yahoo mail is that they change things too often. revising the "approved scripts" becomes obnoxiously frequent task) anyway, just a vague concept for me. but you reminded me of it... |