Re: [WSG] unobtrusive js help

2007-03-02 Thread Bob Schwartz
Michael, Another point. All the sites I do have something in them updated at least once a year, so the copyright (current year) would reflect the year of last revision. On 3/2/07, Paul Novitski <[EMAIL PROTECTED]> wrote: Please generate the notice server-side -- or hard-code it into the h

Re: [WSG] unobtrusive js help

2007-03-02 Thread Bob Schwartz
Michael, Thank you for the information. If we were in a perfect world it just might be reasonable to try and be as legal as possible, but reality is that the copyright notice is almost useless in that it only gives a (false) sense of protection, to actualy be protected is another matter.

Re: [WSG] unobtrusive js help

2007-03-02 Thread Bob Schwartz
Paul, Unobtrusive javascript doesn't just mean separation of the script from the markup, it is also the use of javascript that doesn't break the page when scripting is disabled. http://onlinetools.org/articles/unobtrusivejavascript/chapter1.html Further thoughts on this statement: Leaving

Re: [WSG] unobtrusive js help

2007-03-02 Thread Michael Cordover
On 3/2/07, Paul Novitski <[EMAIL PROTECTED]> wrote: Please generate the notice server-side -- or hard-code it into the html -- so it shows up for everyone viewing the content. In addition to Paul's technically valid note (with which I, a noscript user, wholeheartedly agree), there's also a lega

Re: [WSG] unobtrusive js help

2007-03-02 Thread Bob Schwartz
Paul, I agree with you and as I am trying to learn this stuff I'm going one step at a time in the hopes that I can one day "drop the crutches" I needed an example of how to put a js string in a text string. The next step will be to try and figure out how (I have some examples that I am pl

Re: [WSG] unobtrusive js help

2007-03-02 Thread Tim
On 02/03/2007, at 6:34 PM, Paul Novitski wrote: At 3/1/2007 02:32 AM, Bob Schwartz wrote: I am in the process of converting my javascript library to nonobtrusive js. ... At 3/1/2007 06:44 AM, Bob Schwartz wrote: I'll start with the easy one first: var d=new Date();yr=d.getFullYear();if (yr

Re: [WSG] unobtrusive js help

2007-03-02 Thread Paul Novitski
At 3/1/2007 02:32 AM, Bob Schwartz wrote: I am in the process of converting my javascript library to nonobtrusive js. ... At 3/1/2007 06:44 AM, Bob Schwartz wrote: I'll start with the easy one first: var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write ("© "+yr); myplace which

Re: [WSG] unobtrusive js help

2007-03-01 Thread Mordechai Peller
Nick Fitzsimons wrote: On 1 Mar 2007, at 20:03:30, Mordechai Peller wrote: Nick Fitzsimons wrote: window.onload = function() { var year = new Date().getFullYear(); var text = "© " + year + " myplace"); var p = document.createElement("p"); p.appendChild(document.createTextNode(text

Re: [WSG] unobtrusive js help

2007-03-01 Thread Nick Fitzsimons
On 1 Mar 2007, at 20:03:30, Mordechai Peller wrote: Nick Fitzsimons wrote: window.onload = function() { var year = new Date().getFullYear(); var text = "© " + year + " myplace"); var p = document.createElement("p"); p.appendChild(document.createTextNode(text)); document.getEleme

Re: [WSG] unobtrusive js help

2007-03-01 Thread Mordechai Peller
Nick Fitzsimons wrote: On 1 Mar 2007, at 14:44:59, Bob Schwartz wrote: var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write("© "+yr); myplace which gives me: © 2007 myplace Here's my pathetic attempt: window.onload = function() { var para = document.createElement("p"); var tx

Re: [WSG] unobtrusive js help

2007-03-01 Thread Nick Fitzsimons
On 1 Mar 2007, at 16:52:11, Bob Schwartz wrote: Nick, Thanks. Now that I see how you have done it, I may be able to guess my way through the others I have to do. Is there a "(" missing in the second line of your version? No, but there's a ")" where there shouldn't be :-) var text =

Re: [WSG] unobtrusive js help

2007-03-01 Thread Bob Schwartz
Rolf , Thanks for the info. On Mar 1, 2007, at 6:53 AM, Bob Schwartz wrote: On 01/03/07, Mordechai Peller <[EMAIL PROTECTED]> wrote: Bob Schwartz wrote: > I am in the process of converting my javascript library to > nonobtrusive js. > > Where could I go for help in converting these? Here, f

Re: [WSG] unobtrusive js help

2007-03-01 Thread Bob Schwartz
Nick, Thanks. Now that I see how you have done it, I may be able to guess my way through the others I have to do. Is there a "(" missing in the second line of your version? On 1 Mar 2007, at 14:44:59, Bob Schwartz wrote: var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write ("©

Re: [WSG] unobtrusive js help

2007-03-01 Thread Rolf SF
On Mar 1, 2007, at 6:53 AM, Bob Schwartz wrote: On 01/03/07, Mordechai Peller <[EMAIL PROTECTED]> wrote: Bob Schwartz wrote: > I am in the process of converting my javascript library to > nonobtrusive js. > > Where could I go for help in converting these? Here, for one place. Can you be more s

Re: [WSG] unobtrusive js help

2007-03-01 Thread Nick Fitzsimons
On 1 Mar 2007, at 14:44:59, Bob Schwartz wrote: var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write ("© "+yr); myplace which gives me: © 2007 myplace Here's my pathetic attempt: window.onload = function() { var para = document.createElement("p"); var txt1 = document.createTex

Re: [WSG] unobtrusive js help

2007-03-01 Thread Bruce
t;Bob Schwartz" <[EMAIL PROTECTED]> To: Sent: Thursday, March 01, 2007 9:44 AM Subject: Re: [WSG] unobtrusive js help Thanks Mordechai, I'll start with the easy one first: var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write ("© "+yr); myplace which give

Re: [WSG] unobtrusive js help

2007-03-01 Thread Bob Schwartz
Have one of them, DOM Scripting, which got me to where I am, I'll check out the other two. Thanks You will find these books very helpful http://www.amazon.co.uk/DOM-Scripting-Design-JavaScript-Document/dp/ 1590595335/ref=pd_ka_1/202-6135156-2275021? ie=UTF8&s=books&qid=1172759335&sr=8-1 ht

Re: [WSG] unobtrusive js help

2007-03-01 Thread Bob Schwartz
Thanks Mordechai, I'll start with the easy one first: var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write ("© "+yr); myplace which gives me: © 2007 myplace Here's my pathetic attempt: window.onload = function() { var para = document.createElement("p"); var txt1 = document.cr

Re: [WSG] unobtrusive js help

2007-03-01 Thread Darren West
You will find these books very helpful http://www.amazon.co.uk/DOM-Scripting-Design-JavaScript-Document/dp/1590595335/ref=pd_ka_1/202-6135156-2275021?ie=UTF8&s=books&qid=1172759335&sr=8-1 http://www.amazon.co.uk/JavaScript-Anthology-Essential-Tricks-Hacks/dp/0975240269/ref=pd_ka_1/202-6135156-227

Re: [WSG] unobtrusive js help

2007-03-01 Thread Mordechai Peller
Bob Schwartz wrote: I am in the process of converting my javascript library to nonobtrusive js. Where could I go for help in converting these? Here, for one place. Can you be more specific about the problems? *** List Guideline

[WSG] unobtrusive js help

2007-03-01 Thread Bob Schwartz
I am in the process of converting my javascript library to nonobtrusive js. I bought a few books and with them, managed to convert most, but I still have a few that defy my very limited skills. Where could I go for help in converting these? Thanks. **