Re: [WSG] Javascript web standards was How to send two values to javascript

2007-11-15 Thread Michael Horowitz
I appreciate that.  Just wanted to let people know I solved the issue 
with / quotes.


I would appreciate people explaining more about what the changes are in 
good practices for web standards that people were criticizing the 
tutorials on.  I've ordered one of the recommended books but wanted some 
background in the change in coding practices.  As a newbie to javascript 
I figure I can learn it right the first time


Michael Horowitz
Your Computer Consultant
http://yourcomputerconsultant.com
561-394-9079



Mark Harris wrote:
With respect to all involved, this is the Web Standards Group, not the 
JavaScript 101 group. Could I suggest, Michael, that you look for a 
more appropriate venue as you continue on your (laudable) quest to 
learn something new? Thanks.


Regards

Mark Harris
Technology Research and Consultancy Services Ltd


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Javascript web standards was How to send two values to javascript

2007-11-15 Thread Kit Grose

No sweat.

Basically the whole concept of the standards-based web is to build up  
the site in *layers*.


You have the content layer defined in XHTML, often generated through  
server-side scripting languages such as PHP. Without any further  
enhancement, this should display fully readable and useful in a web  
browser.


The next layer is the presentation layer defined in CSS and usually  
also using things like background images. If you stopped developing  
at this point, the website should still be fully functional and useful.


After that comes the behaviour layer (defined in Javascript) that  
introduces things like transitions and animations and AJAX and all  
that good stuff.


The basic concept then, is that the behaviour layer is not written  
until two stages after the content layer. It makes no sense to have  
onclick, onchange and onmouseover events defined in the content layer  
(or in the XHTML) since that's a totally separate layer.


So instead, like external CSS replacing inline 'style' attributes,  
external Javascript files replace the inline event handler attributes  
(onclick etc.).


That means adding, changing or removing a behaviour is all done in  
the behaviour layer and it's never going to adversely affect someone  
who has Javascript turned off.



Hope that helps,

Kit

On 16/11/2007, at 8:33 AM, Michael Horowitz wrote:

I appreciate that.  Just wanted to let people know I solved the  
issue with / quotes.


I would appreciate people explaining more about what the changes  
are in good practices for web standards that people were  
criticizing the tutorials on.  I've ordered one of the recommended  
books but wanted some background in the change in coding  
practices.  As a newbie to javascript I figure I can learn it right  
the first time


Michael Horowitz
Your Computer Consultant
http://yourcomputerconsultant.com
561-394-9079



Mark Harris wrote:
With respect to all involved, this is the Web Standards Group, not  
the JavaScript 101 group. Could I suggest, Michael, that you look  
for a more appropriate venue as you continue on your (laudable)  
quest to learn something new? Thanks.


Regards

Mark Harris
Technology Research and Consultancy Services Ltd


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***inline: emailsignature.jpg




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***