[program-l] Re: HTML: Links

  • From: "Jacob Kruger" <jacob@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Mon, 15 Oct 2012 17:15:10 +0200

Yeah, makes sense - or else substitute something like a javascript alert just 
asking why the user clicked on a link, or something...<smile>

Anyway, think it might have more application if, for example you'd used a PHP 
get() function call to remotely retrieve someone else's content, and output it 
as part of your page, and then wanted to rather control any use of links in 
that content then - also not necessarily the most righteous implementation, but 
anyway - for example, have messed around implementing a sort of cleaned up 
inclusion of site specific google search results, but then instead of just 
including a google results frame, you can quite easily retrieve the results 
page, and then sort of parse it, to extract actual links, page descriptions, 
etc., but in your own context - but, again, this isn't necessarily the 
nicest/most honest way to operate...<smile>

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

  ----- Original Message ----- 
  From: Corbett, James 
  To: 'program-l@xxxxxxxxxxxxx' 
  Sent: Monday, October 15, 2012 5:06 PM
  Subject: [program-l] Re: HTML: Links


  Jacob:



  Thanks. I'm sort of under the opinion if the client wants a link to be 
disabled then don't display the link. .and on an official note, WCAG 2.0 AA 
4.1.2 would seem to be in violation.



  Jim 



  From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] 
On Behalf Of Jacob Kruger
  Sent: October 15, 2012 10:44 AM
  To: program-l@xxxxxxxxxxxxx
  Subject: [program-l] Re: HTML: Links



  Using jQuery, you can add a click event handler for all links, or a specific 
one, where you then turn off the standard event:

  event.preventDefault();



  Stay well


  Jacob Kruger
  Blind Biker
  Skype: BlindZA
  '...fate had broken his body, but not his spirit...'

    ----- Original Message ----- 

    From: Corbett, James 

    To: Program-L (Program-l@xxxxxxxxxxxxx) 

    Sent: Monday, October 15, 2012 3:48 PM

    Subject: [program-l] HTML: Links



    Hi:



    Would it be possible to have a html link disabled?



    .just a weird request that came across my desk this morning.



    Jim 



    James Corbett

    IT Developer - Analyst

    ITB/Solutions/BP&A/DevCentre/Developer Tools and Horizontal Initiatives 
Services 

    613 941-9355 | facsimile / télécopieur 613-954-9222

    James.Corbett@xxxxxxxxxxxxx 

    Canada Revenue Agency | 875 Heron Rd Rm H4-177, Ottawa ON K1A OL8

    Agence du revenu du Canada | 875 chemin Heron, ch H4-177 Ottawa ON K1A 0L8

    Government of Canada | Gouvernement du Canada



    "Be yourself; everyone else is already taken."

    Oscar Wilde






Other related posts: