Re: [css-d] Quick XHTML Strict Question

2007-05-18 Thread Rodrigo Castilho Galvão Ferreira
For example:

- HTML:

a href=http://www.yahoo.com/; rel=externalEXTERNAL LINK TO YAHOO!/a
a href=http://www.aol.com/; rel=externalEXTERNAL LINK TO AOL/a
a href=http://www.google.com/; rel=externalEXTERNAL LINK TO GOOGLE/a


- JQuery solution:

$('[EMAIL PROTECTED]external]').attr('target', '_blank');

or

$('[EMAIL PROTECTED]http://;]').attr('target', '_blank');



...Other ways exist to make the cake :)






On 5/18/07, Spellacy, Michael [EMAIL PROTECTED] wrote:
 Hi All!

 Not really a CSS question so forgive me, but why is target=_blank not
 valid when using XHTML Strict Doctype? Just curious.

 Thanks!
 Spell
 __
 css-discuss [EMAIL PROTECTED]
 http://www.css-discuss.org/mailman/listinfo/css-d
 IE7 information -- http://css-discuss.incutio.com/?page=IE7
 List wiki/FAQ -- http://css-discuss.incutio.com/
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



-- 
Rodrigo Castilho Galvão Ferreira
www.rodrigocastilho.com
www.rodrigocastilho.com.br
www.rodcast.com.br
www.rod.cast.nom.br
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Quick XHTML Strict Question

2007-05-18 Thread Kevin Murphy
Because Target is not part of the XHTML spec.

If you want something that is XHTML compliant, you need to use  
JavaScript. Here is what I use to accomplish the same task works  
on javascript enabled browsers or not.

a href=http://www.google.com; onclick=window.open 
(this.href,'google','width=800,height=600,toolbar=1,location=1,directori 
es=1,status=1,menubar=1,scrollbars=1,resizable=1'); return  
false;Google/a

If you remove the width and height, then it just opens as a default  
size.

-- 
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326


On May 18, 2007, at 9:24 AM, Spellacy, Michael wrote:

 Hi All!

 Not really a CSS question so forgive me, but why is target=_blank  
 not
 valid when using XHTML Strict Doctype? Just curious.

 Thanks!
 Spell
 __
 css-discuss [EMAIL PROTECTED]
 http://www.css-discuss.org/mailman/listinfo/css-d
 IE7 information -- http://css-discuss.incutio.com/?page=IE7
 List wiki/FAQ -- http://css-discuss.incutio.com/
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Quick XHTML Strict Question

2007-05-18 Thread Spellacy, Michael
Got plenty of responses to this off list. Thanks everyone. Sorry for
going off topic.

Spell  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Spellacy,
Michael
Sent: Friday, May 18, 2007 12:24 PM
To: css-d@lists.css-discuss.org
Subject: [css-d] Quick XHTML Strict Question

Hi All! 

Not really a CSS question so forgive me, but why is target=_blank not
valid when using XHTML Strict Doctype? Just curious. 
 
Thanks!
Spell
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org
-- http://www.evolt.org/help_support_evolt/
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/