Thanks for the note and good luck at Google! Any chance you could put a link on your site about the MIT license? I think it would be helpful for those that would like to leverage your code. Let me know if it is an oversight on my part as I can’t seem to find a link.
Most obvious is to
document.write(’blaah javascript escaped html’);
or yourelement.innerHTML = ‘blaah javascript escaped html’;
or
————————-
[always]
[noscript]
[script inline-element]
[script block-element]
function style_display(doc, mode, id){ // general sample
el = doc.getElementById(id);
if(el && (mode==’inline’ || mode==’block’ || mode==’none’)){
// look more: http://www.quirksmode.org/css/display.html
// style.visibility is not the way todo things
el.style.display = mode;
}
}
style_display(document,’inline’,'blah1′);
style_display(document,’block’,'blah2′);
// this is not a perfect way to handle things, cause it can break existing css easiliy
// or requires you to modify it… but hey
Most obvious is to use
document.write(’blaah javascript escaped html’);
or yourelement.innerHTML = ‘blaah javascript escaped html’;
or something like: http://pastebin.com/m4886c9e5
adam | 04-Sep-08 at 1:25 pm | Permalink
How do you license your examples? Are they LGPL? I can’t find anything on your site that says.
Thanks!
hedger | 11-Sep-08 at 12:26 am | Permalink
Hi, Adam:
The license is MIT.
feel free to take my codes.
adam | 18-Sep-08 at 5:49 am | Permalink
Thanks for the note and good luck at Google! Any chance you could put a link on your site about the MIT license? I think it would be helpful for those that would like to leverage your code. Let me know if it is an oversight on my part as I can’t seem to find a link.
Thanks again!
v2ike6udik | 19-Sep-08 at 9:50 am | Permalink
http://www.hedgerwow.com/360/dhtml/html-yesjs.html
Previous is complete BS.
This is complete BS.
Most obvious is to
document.write(’blaah javascript escaped html’);
or yourelement.innerHTML = ‘blaah javascript escaped html’;
or
————————-
[always]
[noscript]
[script inline-element]
[script block-element]
function style_display(doc, mode, id){ // general sample
el = doc.getElementById(id);
if(el && (mode==’inline’ || mode==’block’ || mode==’none’)){
// look more: http://www.quirksmode.org/css/display.html
// style.visibility is not the way todo things
el.style.display = mode;
}
}
style_display(document,’inline’,'blah1′);
style_display(document,’block’,'blah2′);
// this is not a perfect way to handle things, cause it can break existing css easiliy
// or requires you to modify it… but hey
v2ike6udik | 19-Sep-08 at 9:54 am | Permalink
http://www.hedgerwow.com/360/dhtml/html-yesjs.html
Previous is complete BS.
Most obvious is to use
document.write(’blaah javascript escaped html’);
or yourelement.innerHTML = ‘blaah javascript escaped html’;
or something like: http://pastebin.com/m4886c9e5
wow power leveling | 18-Feb-09 at 11:28 pm | Permalink
A burden of one’s choice is not felt
alpha | 02-Apr-09 at 10:24 pm | Permalink
For cheap wow power leveling,go www.uppowerleveling.com