b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Off Topic » Post 1427916 | Search
This is a question Off Topic

Are you a QOTWer? Do you want to start a thread that isn't a direct answer to the current QOTW? Then this place, gentle poster, is your friend.

(, Sun 1 Apr 2001, 1:00)
Pages: Latest, 836, 835, 834, 833, 832, ... 1

« Go Back | See The Full Thread

Ahhh, yes, you're right, you scan through the A tags in jQuery using a simple jQuery('a') selector...
.. followed by an each(function(){}) containing code that makes sure there is an indexOf "http" existing (!== -1) to make sure there is a full qualifde url, rather than an internal link. THEN, then, you make sure that the href does _not_ contain the company's main domain name. This will give you all the urls that are left, which will be all external links, give them a target of _blank and scan through changing the href to include an output such as /external?from=$_SERVER['server_name'].$_SERVER['request_uri']&goingTo=[origional href]. That way you we can track who's clicking on what and where that's external, and not only that, it will open up all external links into a new window/tab thus keeping the main site active in the user's browser.

GOOD THINKING, TPH.
(, Fri 11 Nov 2011, 13:10, 3 replies, latest was 14 years ago)
Always here to help.
ALWAYS.
ALLLLLLLLLWAYS.
(, Fri 11 Nov 2011, 13:15, Reply)
Hello Gonz
'Mark Morrisons Prison Shoes' suggests I talk to you about massage parlours.
(, Fri 11 Nov 2011, 13:17, Reply)
jQuery is for fags.
That is all.
(, Fri 11 Nov 2011, 14:08, Reply)
lazy attempt at trolling is lazy.

(, Fri 11 Nov 2011, 14:25, Reply)
Don't expect anything energetic out of me on a Friday afternoon Mr Gonz.

(, Fri 11 Nov 2011, 14:31, Reply)

« Go Back | See The Full Thread

Pages: Latest, 836, 835, 834, 833, 832, ... 1