Re: [css-d] a html 4.01 strict problem

2007-11-26 Thread Yolanda van Nieuwkoop
Hi jaklitsch maya,

You could use a java script
in the head put:
script type=text/javascript src=external.js
in the body where you want the link to open in a new window
a rel=external href=http://www.xxx.com/;xxx/a


the javascript sits in the same map as the html
is called external.js and it reads:


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName
(a);
 for (var i=0; ianchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute(href) 
   anchor.getAttribute(rel) == external)

 anchor.target = _blank;
 }
}
window.onload = externalLinks;


It validates and it works
-- 
Yolanda

** thought of today:
The leaf is driven by the wind;
Woe to it as to its fate;
It is old--this year it was born

On Nov 23, 2007 5:59 AM, jaklitsch maya [EMAIL PROTECTED] wrote:

 I have always used the target=_blank when I wanted
 to open a document in a new window.

 I included the following code on a membership page

 --Please download and print the a
 href=pdf/membershipAp.pdf target=_blankspan
 class=strongMembership Application/span/a  --

 I just found out that this causes my validation to
 fail. I guess I could change it to transitional, but I
 want to avoid it if possible.
 It did say that there was a css solution, but it was
 not to specific and with what it said for me to figure
 it out.

 I cannot use a submit form as the small nonprofit
 cannot use an online money clearing service but needs
 its application to be mailed in.
 I have several css books but none seem to deal with
 this problem. I wonder why.

 Thanks,

 Maya Jaklitsch
 http://www.evolt.org/help_support_evolt/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] a html 4.01 strict problem

2007-11-23 Thread David Hucklesby
On Thu, 22 Nov 2007 20:59:17 -0800 (PST), jaklitsch maya wrote:
 I have always used the target=_blank when I wanted
 to open a document in a new window.

 I included the following code on a membership page

 --Please download and print the a
 href=pdf/membershipAp.pdf target=_blankspan
 class=strongMembership Application/span/a --

 I just found out that this causes my validation to fail.
[...]

 I have several css books but none seem to deal with
 this problem. I wonder why.

Hi Maya,
The reason is that this problem cannot be solved with CSS.

There are JavaScript solutions. But, being a lazy sort of chap,
I simply add a footnote or sidenote to a PDF link informing the reader
how to open a new tab or window from their browser.

Let the user decide.  :)

Cordially,
David
--

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] a html 4.01 strict problem

2007-11-22 Thread jaklitsch maya
I have always used the target=_blank when I wanted
to open a document in a new window.

I included the following code on a membership page

--Please download and print the a
href=pdf/membershipAp.pdf target=_blankspan  
class=strongMembership Application/span/a  --

I just found out that this causes my validation to
fail. I guess I could change it to transitional, but I
want to avoid it if possible.
It did say that there was a css solution, but it was
not to specific and with what it said for me to figure
it out.

I cannot use a submit form as the small nonprofit
cannot use an online money clearing service but needs
its application to be mailed in. 
I have several css books but none seem to deal with
this problem. I wonder why.

Thanks,

Maya Jaklitsch


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] a html 4.01 strict problem

2007-11-22 Thread Jukka K. Korpela
jaklitsch maya wrote:

 --Please download and print the a
 href=pdf/membershipAp.pdf target=_blankspan
 class=strongMembership Application/span/a  --

 I just found out that this causes my validation to
 fail. I guess I could change it to transitional, but I
 want to avoid it if possible.

And you probably also want to remove the problem by not trying to force 
a new window to open. Then what's left is JavaScript.

 It did say that there was a css solution,

No, you misunderstood. What it - presumably the W3C Markup Validator - 
said is this:

How to fix: check the spelling and case of the element and attribute, 
(Remember XHTML is all lower-case) and/or check that they are both 
allowed in the chosen document type, and/or use CSS instead of this 
attribute.

It does not claim that there is a CSS counterpart to every non-Strict 
attribute. For the target attribute, there isn't.

Jukka K. Korpela (Yucca)
http://www.cs.tut.fi/~jkorpela/ 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/