SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Wizard silver trophy
    Join Date
    Aug 2003
    Location
    Southern California
    Posts
    4,686
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    IE Specific: Javascript Does Not Execute Replacement on <a>

    We run a social sharing button and recently after upgrading to a dynamic javascript inclusion we've noticed that many version of Internet Explorer are not running / rendering out script at all. Chrome, Firefox, Safari, iOS, and anything else handle the button just fine.

    Because this sits on third party sites which can run a host of scripts [not to mention load time considerations] we're not able to take advantage of jquery or something else along those lines.

    Here's the code installed on a page:

    This in turn will pull up an iFrame in place of the link which connects to our processing server with variables from the link passed over to form the button.

    Code:
    (function(){	
    	var lnksNodeList = document.getElementsByTagName("a");
    	var lnks = Array.prototype.slice.call(lnksNodeList);
    	for (var i = 0; i < lnks.length; i++) {		
    		lnk = lnks[i]; ...
    It doesn't seem like IE is recognizing the replacement request at all as the output is simply the original, unformated text link.

    Any suggestions on where to start?
    Last edited by Ted S; May 30, 2012 at 22:00.
    - Ted S


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •