Posted by petermichaux on 10/01/06 02:11
dorayme wrote:
> In article
> <1159665105.259688.133730@m7g2000cwm.googlegroups.com>,
> petermichaux@gmail.com wrote:
>
> > I am converting an old page to STRICT.
> >
> > When validating the page I learned that I can't have a link like the
> > following. The '&' and '=' characters are not allowed? How can I make
> > this link validate?
> >
> > <a
> > href="http://www.foo.com/cgi-bin/test.pl?ACCOUNT=1006458&THE_BUTTON=display_pa
> > ge&PAGE_TYPE=MI_PPC#ASDF">
>
> Best to post the url for this as email and ng postings can pay
> tricks on url presentations
I'm not sure what you mean. The URL has a '?' followed by parameters
like this
ACCOUNT=1006458&THE_BUTTON=display_page
http://www.foo.com/cgi-bin/test.pl?ACCOUNT=1006458&THE_BUTTON=display_page&PAGE_TYPE=MI_PPC#ASDF
The ampersands and equals signs are apparently not allowed with the
strict doctype.
> > I also learned that I can't use the "target" attribute in STRICT pages
> > like the following. What do I do to get around this? Do I have to write
> > JavaScript in the onclick attribute? That wouldn't be so good if
> > JavaScript is off.
> >
> > <a href="http://www.7Search.com/" target="new">7Search.com</a>
> >
>
> Not heard of "new" as a value here? Don't use strict if you need
> target. You using frames?
I'm not using frames. The target is for a new window that may already
be open. For example, if I have the following in a page then the first
click opens a new window. More clicks change that same new window.
<p><a href="http://www.google.com" target="foo">google.com</a></p>
<p><a href="http://www.yahoo.com" target="foo">yahoo.com</a></p>
How to convert this kind of behavior to strict doctype?
Thanks,
Peter
[Back to original message]
|