If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / New link targeted "_blank" on sidebox informations

New link targeted "_blank" on sidebox informations

Locked

Started by olivier72 on 30 May 2009, 4:16 PM · Views: 1,147

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 May 2009, 4:16 PM
#1
olivier72 avatar

olivier72

New Zenner

Join Date:
Mar 2009
Location:
France
Posts:
58
Plugin Contributions:
0

Post #1 by olivier72

Hi,

I have two problems ...

I can't write a good script in the file includes/modules/sideboxes/information.php to open this page with this syntax

http://www.fieramilano.it/portal/page?_pageid=36,38905&_dad=portal&_schema=PORTAL

... Validator W3C said it is not good >>>

And i want to open this new link "Accesso Fieramilano" in sidebox "Information" on new target='_blank'

Thank for help
Regards

30 May 2009, 6:07 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

Try replacing your "&" with "&".

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 May 2009, 7:41 AM
#3
olivier72 avatar

olivier72

New Zenner

Join Date:
Mar 2009
Location:
France
Posts:
58
Plugin Contributions:
0

Post #3 by olivier72

Hi,

This syntax solve the problem on W3C validator.
I could look for a long time, I thought write something more complex ... no,no, simple and effective

For the target = "_blank" I working on it.
In fact, I think differently this morning.
_blank is problematic, the user leave my site ... I'm creating a new page.
In case of problem I will return ...

Thanks to kuroi for your reply

Regards

31 May 2009, 8:21 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #4 by kuroi

I think that you'll find that there isn't a solution to the validation of target="_blank" when using XHTML Transitional as the basis for validation.

The logic here is that control over whether a new window (or tab) should be launched should rest with the visitor, not the site owner, and attempts to force the issue (e.g. by use of the target attribute) are therefore invalid.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 May 2009, 1:02 PM
#5
olivier72 avatar

olivier72

New Zenner

Join Date:
Mar 2009
Location:
France
Posts:
58
Plugin Contributions:
0

Post #5 by olivier72

Hi,

There are many useful tags that disappear in xhtml, especially strict
A few standard does not hurt, on the contrary ...

Target = "_blank" is unfortunate. I think it keeps the thread of the main site and any accessories links in "_blank" ...

The W3C validator accepts this formulation, even in xhtml/sctrit
to have the same result

<a href="http://www.***.com/" onclick="window.open('http://www.***.com/', '_blank', 
'http://www.***.com/');return false">
www.***.com</a>

To return on my second problem, I rewrote
includes / templates / template_default / templates / tpl_shippinginfo_default.php
to have something regular and properly implemented in the sitemap and Information Sidebox.
This works correctly :blink:,
I am not sure that my page is written in the rules of art. It works and passes to the validator, then all is well ...

Thank you for your presence.
Regards