Re: [WSG] How to send two values to javascript

2007-11-15 Thread Michael Horowitz

Now firebug gives the error
showSubcategory2(document.getElementById(

Code is


Code samples  I've been able to review

select name=subcategory id = subcategory 
onchange=showSubcategory2(document.getElementById('category').value,this.options[this.selectedIndex].value);



I know this will be simple at the end.

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



Brian Cummiskey wrote:

Michael Horowitz wrote:
select name=subcategory id = subcategory 
onchange=showSubcategory2(document.getElementById('category').value,document.getElementById('subcategory').value) 





try this:

select name=subcategory id=subcategory 
onchange=showSubcategory2(document.getElementById(category).value, 
this.options[this.selectedIndex].value);




***
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] Idiot's guide to JavaScript

2007-11-15 Thread James Jeffery
 http://domscripting.com/book/ is very good too.

Thats the one i purchased yesterday. Very good read!

On Nov 14, 2007 10:02 PM, Olly Hodgson [EMAIL PROTECTED] wrote:
 On Nov 14, 2007 9:44 PM, Chris Knowles [EMAIL PROTECTED] wrote:
  Rob Mason wrote:
 
   I am looking for a really basic, plain English guide to JavaScript.
 
  I highly rate this book - easy to read and understand:
  http://www.quirksmode.org/book/

 http://domscripting.com/book/ is very good too.


 --
 Olly
 http://thinkdrastic.net/



 ***
 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] How to send two values to javascript

2007-11-15 Thread Michael Horowitz

So here is the current issue.

I am able to send a value.  When sending two something strange is happening
select name=category id=category 
onchange=showSubcategory(document.getElementById('category').value) 
//(this works fine)



select name=subcategory id = subcategory 
onchange=showSubcategory2(document.getElementById('category').value,document.getElementById('subcategory').value)


Here you can see I am grabbing category and subcategory.  I then format 
my url


function showSubcategory2(category,subcategory)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert (Browser does not support HTTP Request)
return
}
var url=getsubcategory2.php
url=url+?category2=+category
url=url+subcategory2=+subcategory
url=url+sid=+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open(GET,url,true)
xmlHttp.send(null)

However it shows in firebug as
http://yourcomputerconsultant.net/getsubcategory2.php?category2=HUMAN%20RESOURCESsubcategory2=undefinedsid=0.9278353600691835

Two things Human Resources is my subcategory and nothing appears in 
subcategory2.




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



Casey Farrell wrote:

Try using single quotes, as in:

select name=category 
onchange=showSubcategory(document.getElementById('category').value) 
Michael Horowitz wrote:

Having trouble so I went to testing with one element like this

select name=category 
onchange=showSubcategory(document.getElementById(category).value)  
and firebug shows a syntax error.


I tried it again taking oub the 

select name=category 
onchange=showSubcategory(document.getElementById(category).value)


and then received the error message this document has not properties.


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



Olly Hodgson wrote:

On Nov 14, 2007 10:37 PM, Michael Horowitz
[EMAIL PROTECTED] wrote:
 

I have examples using one value

onchange=showSubcategory(this.value)

from a form to a script.

What if I need to send two values one from the current element in the
form and one from another element



onchange=showSubcategory(this.value,
document.getElementById(anotherElement).value);


  



***
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]
***



Re: [WSG] Navigation - Pseudo Standards?

2007-11-15 Thread John Hancock

Hi Christie,

The 'average joe/average jane' site visitor would expect the site  
navigation at the top (and possibly some links at the bottom), with  
the product navigation usually on the left. The exceptions to this  
usually involve multi-level, drop-down or drop-line menus which are  
under the header section of the page. Amazon has been a good example  
of this. Is there an overriding reason for using two side columns?  
This would usually cut out 800x600 viewers unless you want to do some  
really nifty javascript style switching to turn it into a bottom/top  
column for smaller screen resolutions.


kind regards,

John Hancock
Identity
[EMAIL PROTECTED]
t: +61 2 8012 0274
f: +61 2 9799 6135

On 15/11/2007, at 5:02 PM, Christie Mason wrote:

We're having an internal discussion about the placement of site  
navigation
(Contact Us, etc) vs Product Navigation (Search, Category 1,  
Category 2,

etc) in a 3 column layout with

| Navigation |Content | Navigation |

Some feel the site navigation should be in the left column with  
products in

the right column, others feel the opposite.







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

Re: [WSG] Idiot's guide to JavaScript

2007-11-15 Thread Ross Bruniges
Where true!

As a general rule of thumb if you are looking for online tutorials and examples 
that are teaching good modern JavaScript go find another one if it tells you to 
use things like:

document.write
inline event handlers (like onclick)
browser sniffing

This is quite a simple list but a good one to get started with! 

Ross Bruniges

- Original Message 
From: Nick Fitzsimons [EMAIL PROTECTED]
To: wsg@webstandardsgroup.org
Sent: Thursday, 15 November, 2007 10:34:09 AM
Subject: Re: [WSG] Idiot's guide to JavaScript

On 14 Nov 2007, at 22:56, Lars Michael Sørensen wrote:

 I recommend http://www.tizag.com/javascriptT/ - they have a lot of
 other tutorials as well. Very easy to follow, all the way through.

I would recommend avoiding that tutorial - it teaches some techniques  
which should never be used by anybody with an interest in making  
usable and accessible sites. Generally speaking it will get you to  
the level we were at when Netscape Navigator 3 was the target  
browser, which was over ten years ago. There are much better  
techniques available for modern scripting.

I would recommend (in no particular order - look through them in a  
shop and pick an author whose style you like): DOM Scripting by  
Jeremy Keith, ppk on JavaScript by Peter-Paul Koch, David  
Flanagan's JavaScript: The Definitive Guide and Chris Heilmann's  
Beginning JavaScript with DOM Scripting and Ajax.

Also, Chris H has an online course at http://onlinetools.org/ 
articles/unobtrusivejavascript/ which will help you unlearn the bad  
things learnt from the tiza.com tutorial ;-).

Regards,

Nick.
-- 
Nick Fitzsimons
Member, WaSP DOM Scripting TF
http://webstandards.org/action/dstf/
http://www.nickfitz.co.uk/

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






  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


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



RE: [WSG] Navigation - Pseudo Standards?

2007-11-15 Thread Christie Mason
This is a dynamic, database driven site to present product information on
around 2500 B2B products.  Top Navigation is the product Division, bottom
will probably be a repeat of the site navigation, Product navigation is
drill down product categories (top level would be around 25 entries).

I know that Amazon does product drill down navigation on the left but it
seems that many B2B sites list product nav on the right
see
http://www.thomasnet.com/products/hydraulic-hoists-38410809-1.html
http://www.theonlinecatalog.com/cmhnc/store/index.asp?DEPARTMENT_ID=32

Site layout does fine in 800X600 because it's a liquid design, not a static
layout with blank space on both sides.

Christie Mason

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of John Hancock
Sent: Thursday, November 15, 2007 5:54 AM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Navigation - Pseudo Standards?


Hi Christie,


The 'average joe/average jane' site visitor would expect the site navigation
at the top (and possibly some links at the bottom), with the product
navigation usually on the left. The exceptions to this usually involve
multi-level, drop-down or drop-line menus which are under the header section
of the page. Amazon has been a good example of this. Is there an overriding
reason for using two side columns? This would usually cut out 800x600
viewers unless you want to do some really nifty javascript style switching
to turn it into a bottom/top column for smaller screen resolutions.


kind regards,


John Hancock
Identity
[EMAIL PROTECTED]
t: +61 2 8012 0274
f: +61 2 9799 6135


On 15/11/2007, at 5:02 PM, Christie Mason wrote:


  We're having an internal discussion about the placement of site navigation
  (Contact Us, etc) vs Product Navigation (Search, Category 1, Category 2,
  etc) in a 3 column layout with

  | Navigation |Content | Navigation |

  Some feel the site navigation should be in the left column with products
in
  the right column, others feel the opposite.










***
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] Navigation - Pseudo Standards?

2007-11-15 Thread Stuart Foulstone

On Thu, November 15, 2007 12:42 pm, Christie Mason wrote:
 This is a dynamic, database driven site to present product information on
 around 2500 B2B products.  Top Navigation is the product Division, bottom
 will probably be a repeat of the site navigation, Product navigation is
 drill down product categories (top level would be around 25 entries).

 I know that Amazon does product drill down navigation on the left but it
 seems that many B2B sites list product nav on the right
 see
 http://www.thomasnet.com/products/hydraulic-hoists-38410809-1.html


This site does not have a Product navigation menu on the right - products
are located via the search function rather than navigation.

The site has a list links to other related categories, which, as such,
could be seen as content rather than product navigation structure.



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



Re: [WSG] Idiot's guide to JavaScript

2007-11-15 Thread Lars Michael Sørensen
thanks for the info. Now I can start all over... :-/

/lmss
2007/11/15, Nick Fitzsimons [EMAIL PROTECTED]:
 On 14 Nov 2007, at 22:56, Lars Michael Sørensen wrote:

  I recommend http://www.tizag.com/javascriptT/ - they have a lot of
  other tutorials as well. Very easy to follow, all the way through.

 I would recommend avoiding that tutorial - it teaches some techniques
 which should never be used by anybody with an interest in making
 usable and accessible sites. Generally speaking it will get you to
 the level we were at when Netscape Navigator 3 was the target
 browser, which was over ten years ago. There are much better
 techniques available for modern scripting.

 I would recommend (in no particular order - look through them in a
 shop and pick an author whose style you like): DOM Scripting by
 Jeremy Keith, ppk on JavaScript by Peter-Paul Koch, David
 Flanagan's JavaScript: The Definitive Guide and Chris Heilmann's
 Beginning JavaScript with DOM Scripting and Ajax.

 Also, Chris H has an online course at http://onlinetools.org/
 articles/unobtrusivejavascript/ which will help you unlearn the bad
 things learnt from the tiza.com tutorial ;-).

 Regards,

 Nick.
 --
 Nick Fitzsimons
 Member, WaSP DOM Scripting TF
 http://webstandards.org/action/dstf/
 http://www.nickfitz.co.uk/

 ***
 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]
***



[WSG] Skip nav links, tab through

2007-11-15 Thread Paul Collins
Hi all,

I've added a hidden skip navigation link to my site, that I want to
show up when you tab through each page. I'm using the method described
on the webaim site:
http://www.webaim.org/techniques/skipnav/#focus

Problem is, I realised that you can't actually tab through the links
on a page using Firefox or Safari. I am guessing this has to do with
Tabbed Browsing shortcuts?!

Does anyone know a better way of doing this, so when someone tabs
through your site they get the Skip Navigation link displayed?

Cheers


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



RE: [WSG] Skip nav links, tab through

2007-11-15 Thread Steve Green
There's no reason why you shouldn't be able to tab through the links in
Firefox. Links are not on the tab sequence in Safari by default, but you can
turn that on in the Preferences. I have no idea if users actually do in
practice.

Steve

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Collins
Sent: 15 November 2007 14:45
To: wsg@webstandardsgroup.org
Subject: [WSG] Skip nav links, tab through

Hi all,

I've added a hidden skip navigation link to my site, that I want to show
up when you tab through each page. I'm using the method described on the
webaim site:
http://www.webaim.org/techniques/skipnav/#focus

Problem is, I realised that you can't actually tab through the links on a
page using Firefox or Safari. I am guessing this has to do with Tabbed
Browsing shortcuts?!

Does anyone know a better way of doing this, so when someone tabs through
your site they get the Skip Navigation link displayed?

Cheers


***
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] Skip nav links, tab through

2007-11-15 Thread Ross Bruniges
I do think that the latest version of Firefox (v 2.0.0.9) may have a problem 
with tabbing as I've not been able to tab through stuff either since 
upgrading...

this might be a bug; it may just be me being stupid but it's certainly a bit of 
a pain in the arse!

- Original Message 
From: Steve Green [EMAIL PROTECTED]
To: wsg@webstandardsgroup.org
Sent: Thursday, 15 November, 2007 3:13:09 PM
Subject: RE: [WSG] Skip nav links, tab through

There's no reason why you shouldn't be able to tab through the links in
Firefox. Links are not on the tab sequence in Safari by default, but
 you can
turn that on in the Preferences. I have no idea if users actually do in
practice.

Steve

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On
Behalf Of Paul Collins
Sent: 15 November 2007 14:45
To: wsg@webstandardsgroup.org
Subject: [WSG] Skip nav links, tab through

Hi all,

I've added a hidden skip navigation link to my site, that I want to
 show
up when you tab through each page. I'm using the method described on
 the
webaim site:
http://www.webaim.org/techniques/skipnav/#focus

Problem is, I realised that you can't actually tab through the links on
 a
page using Firefox or Safari. I am guessing this has to do with Tabbed
Browsing shortcuts?!

Does anyone know a better way of doing this, so when someone tabs
 through
your site they get the Skip Navigation link displayed?

Cheers


***
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]
***






  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


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



Re: [WSG] Skip nav links, tab through

2007-11-15 Thread Paul Collins
Thanks for your help everyone. For some reason my version of Firefox
and Safari are both not tabbing through links. They just keep tabbing
around the form fields on the actual browser.

Anyway, I will check it on another machine.  Thanks Thierry and Jamie,
I have added the :focus element now, so should be all good once I can
test on another machine.

Thanks everyone.


On 15/11/2007, Jamie Stewart [EMAIL PROTECTED] wrote:
 Hi Paul,

 I've actually seen this before,  and this approach is pretty much ideal, the
 only tweak you have to make is as well as having a:active you also need
 a:focus and this will fix your issue.

 ul.skipNav li a:focus, ul.skipNav li a:active { /* your active styles*/}

 Hope this helps

 Cheers
 Jamie.

 On 15/11/2007, Steve Green  [EMAIL PROTECTED] wrote:
  There's no reason why you shouldn't be able to tab through the links in
  Firefox. Links are not on the tab sequence in Safari by default, but you
 can
  turn that on in the Preferences. I have no idea if users actually do in
  practice.
 
  Steve
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
  Behalf Of Paul Collins
  Sent: 15 November 2007 14:45
  To: wsg@webstandardsgroup.org
  Subject: [WSG] Skip nav links, tab through
 
  Hi all,
 
  I've added a hidden skip navigation link to my site, that I want to show
  up when you tab through each page. I'm using the method described on the
  webaim site:
  http://www.webaim.org/techniques/skipnav/#focus
 
  Problem is, I realised that you can't actually tab through the links on a
  page using Firefox or Safari. I am guessing this has to do with Tabbed
  Browsing shortcuts?!
 
  Does anyone know a better way of doing this, so when someone tabs through
  your site they get the Skip Navigation link displayed?
 
  Cheers
 
 
 
 ***
  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]
 ***


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



Re: [WSG] Testing emails for Outlook 2007

2007-11-15 Thread Paul Collins
Thanks again for your replies on this guys, just got back on my email.
It might be worth investing 10 bucks in campaign monitor just to see
what they recommend.

Cheers

On 07/11/2007, Chris Knowles [EMAIL PROTECTED] wrote:
 Tim Palac wrote:
  Paul,
 
  You might also check out Campaign Monitor - they have a new service
  where, for 10 bucks, they'll show you where your email fails to pass
  spam filters and also gives you screenshots of what it looks like in all
  the various email programs including Outlook 2007.  Enjoy!
 

 I was going to suggest the same - and they also have free templates that
 are already tested:
 http://www.campaignmonitor.com/resources/templates.aspx



 --
 Chris Knowles


 ***
 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] Skip nav links, tab through

2007-11-15 Thread Jamie Stewart
Hi Paul,

I've actually seen this before,  and this approach is pretty much ideal, the
only tweak you have to make is as well as having a:active you also need
a:focus and this will fix your issue.

ul.skipNav li a:focus, ul.skipNav li a:active { /* your active styles*/}

Hope this helps

Cheers
Jamie.

On 15/11/2007, Steve Green [EMAIL PROTECTED] wrote:

 There's no reason why you shouldn't be able to tab through the links in
 Firefox. Links are not on the tab sequence in Safari by default, but you
 can
 turn that on in the Preferences. I have no idea if users actually do in
 practice.

 Steve



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul Collins
 Sent: 15 November 2007 14:45
 To: wsg@webstandardsgroup.org
 Subject: [WSG] Skip nav links, tab through

 Hi all,

 I've added a hidden skip navigation link to my site, that I want to show
 up when you tab through each page. I'm using the method described on the
 webaim site:
 http://www.webaim.org/techniques/skipnav/#focus

 Problem is, I realised that you can't actually tab through the links on a
 page using Firefox or Safari. I am guessing this has to do with Tabbed
 Browsing shortcuts?!

 Does anyone know a better way of doing this, so when someone tabs through
 your site they get the Skip Navigation link displayed?

 Cheers


 ***
 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]
***

RE: [WSG] Skip nav links, tab through

2007-11-15 Thread Thierry Koblentz
 I've added a hidden skip navigation link to my site, that I want to
 show up when you tab through each page. I'm using the method described
 on the webaim site:
 http://www.webaim.org/techniques/skipnav/#focus

 Problem is, I realised that you can't actually tab through the links
 on a page using Firefox or Safari. I am guessing this has to do with
 Tabbed Browsing shortcuts?!

 Does anyone know a better way of doing this, so when someone tabs
 through your site they get the Skip Navigation link displayed?


Change this:
#skip a:active
{
position:static;
width:auto;
height:auto;
}

To this:
#skip a:active,
#skip a:focus
{
position:static;
width:auto;
height:auto;
}

But IMO (FWIW) these links should not be hidden.

-- 
Regards,
Thierry | http://www.TJKDesign.com






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



Re: [WSG] How to send two values to javascript

2007-11-15 Thread Michael Horowitz
Still fighting with this. 


Since I've taken the variables out of the javascript it is called like this

select name=subcategory id = subcategory onchange=showSubcategory2()

But firebug keeps showing the error as

missing ) after argument list
showSubcategory2(document.getElementById()

I'm looking forward to getting the book next week but this is driving me 
up the wall.


Related question why is it bad web standards to use onchange and the 
like.  Up until know everything I've seen online makes that type of use 
normal.


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



Kit Grose wrote:
The issue is that selects themselves don't have values. You notice the 
value is on the option tag, not the select.


So you can't just get the .value of the element with ID 'subcategory'; 
you need to get the value of the currently selected item OF that 
select box. That can be done as an inline declaration, but shouldn't be.


The best bet is to get both values within the showSubcategory2 
function. Remove both parameters to the showSubcategory2 function and 
calculate them in the function:


HTML:
select name=subcategory id = subcategory 
onchange=showSubcategory2()

JavaScript:
function showSubcategory2() {
var categorySelect = document.getElementById('category');
var subcategorySelect = document.getElementById('subcategory');

var category = 
categorySelect.options[categorySelect.selectedIndex].value;   
var subcategory = 
subcategorySelect.options[subcategorySelect.selectedIndex].value;


xmlHttp = GetXmlHttpObject();

if (xmlHttp == null) {
alert (Browser does not support HTTP Request);
return;
}

var url = getsubcategory2.php;
url = url + ?category2=+category;
url = url + subcategory2=+subcategory;
url = url + sid=+Math.random();
xmlHttp.onreadystatechange = stateChanged;
xmlHttp.open(GET, url, true);
xmlHttp.send(null);
}


...or better yet, remove the onchange attribute from your select tag 
completely and implement the onchange unobtrusively as I detailed last 
time.


Hope that helps,

Kit


***
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 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] Skip nav links, tab through

2007-11-15 Thread Tee G. Peng


On Nov 15, 2007, at 7:13 AM, Steve Green wrote:


 Links are not on the tab sequence in Safari by default, but you can
turn that on in the Preferences. I have no idea if users actually  
do in

practice.


I still unable to figure out how Safari tab feature works. I already  
have  it turned on but when I 'tab', the feature never work for any  
sites but the Safari menu (address bar and bookmark bar) only. I  
don't know what I am missing, as I obviously  can get the tabbing  
work in Firefox.


tee



***
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]
***

Re: [WSG] Skip nav links, tab through

2007-11-15 Thread Tee G. Peng



On Nov 15, 2007, at 5:42 PM, Philippe Wittenbergh wrote:




You need to turn FKA (Full Keyboard Access)  'on' in System  
Preferences  Keyboard and Mouse.

Also for Safari and Camino:
Safari: Preferences  Advanced: see the checkbox.
Camino: Preferences   Web Features: see the checkboxes at the bottom.


Thanks Steve and Philippe,

Finally got it working. I didn't check the 'Advanced' as I am average  
user :-)

So much for the universal access of Apple!

Glad to know Camino has this feature too (I swear I checked it) as  
this is my default browser for web browsing.





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