GetSimple Support Forum
GetSimple credits link - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: GetSimple credits link (/showthread.php?tid=2275)



GetSimple credits link - jyoz22 - 2011-10-12

I suggest that the get_site_credits tag be edited in the next version of get simple. I would prefer to see the link back to the GetSimple website occur in a new window, so the user doesn't leave the website.

I know I can easily insert create my own link back to the website that opens in a new window. However, I think this is something that may be preferred by others as well.

I'm not sure if others feel this way too, or just me so I'd love to hear what others have to say.

Thanks


GetSimple credits link - JWH_Matthew - 2011-10-12

I agree, this is a best practice typically.


GetSimple credits link - ccagle8 - 2011-10-12

agreed... made the change in the SVN


GetSimple credits link - n00dles101 - 2011-10-12

target="_blank" will fail validation.

Better to use:

<base target="_blank" /> in the header ???


GetSimple credits link - JWH_Matthew - 2011-10-13

n00dles101 wouldn't that change all the links on the page?


GetSimple credits link - n00dles101 - 2011-10-13

well whatdya know , so it does... 8)

never noticed it before.... scrub that idea so...


GetSimple credits link - JWH_Matthew - 2011-10-13

How about setting the
Code:
rel="external"
then adding a little bit of java to do the rest:
Code:
function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; } } window.onload = externalLinks;

Not sure how this will validate just saw it on a quick google search


GetSimple credits link - Connie - 2011-10-13

OWS_Matthew Wrote:then adding a little bit of java to do the rest:

that's not Java, that's Javascript ;=)
a common misunderstanding ...


GetSimple credits link - hameau - 2011-10-13

n00dles101 Wrote:target="_blank" will fail validation.
You have to decide if you want to satisfy the validator or the site owner/user, I suppose.

If you select an appropriate DTD, target="_blank" can validate; otherwise one is at the mercy of disabled JS and pop-up blockers and will have no idea how the site will work for a visitor.


GetSimple credits link - JWH_Matthew - 2011-10-14

Good catch Connie, sorry about that!


GetSimple credits link - ccagle8 - 2011-10-16

agreed Nick - i just added target="_blank" because I am not concerned with the fact that it doesn't validate in strict environments... HTML5 all the way!