Results 1 to 2 of 2

Thread: Can anyone help make my scripts IE friendly? (JavaScript)

  1. #1

    Thread Starter
    Hyperactive Member Datacide's Avatar
    Join Date
    Jun 2005
    Posts
    309

    Question Can anyone help make my scripts IE friendly? (JavaScript)

    I have a few related custom scripts I've written that work perfectly in Firefox and Chrome. I need to try and get them working in IE as well. Any insight what I need to change and why would be greaetly appreciated. This is the first script:

    Code:
    <script type="text/javascript">
    
      function getJs(src, callback) {
        if (src && typeof src === "string") {
          var el = document.createElement("script");
          el.type = "text/javascript";
          el.src = src;
          document.head.appendChild(el);
          el.onload = function(e) {
            (callback && callback instanceof Function) ? callback(e) : void(0);
          }
        }
      }
    
      function DelayExecute() {
        setTimeout( function(){addVideoRows()}, 2000 );
      }
    
      ScriptURL = "http://www.upmygame2.com/getAthleteVideos.do?athleteId="+ProfileID+"&alias=demo";
    
      getJs(ScriptURL); DelayExecute();
    
      function addVideoRows() {
        var ListHTML="";
        for (var i = 0; i < umgVideos.length; i++) {
          ListHTML += "<p><b>"+umgVideos[i].uploadDate + " &#8212 <a href='/player?videoid=" + umgVideos[i].id +"'>" + umgVideos[i].title + "<\/a><\/b><br><i>Assigned to: " + DirArray[umgVideos[i].extCoachId][0] + "<\/i><\/p>";
        }
        if (ListHTML == ""){ListHTML="No videos found.";}
        document.getElementById("VideoList").innerHTML = ListHTML;
      }
    
      </script>
    
    <div id="VideoList">Looking for uploaded videos, please wait...</div>
    PHP in your FACE!

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Can anyone help make my scripts IE friendly? (JavaScript)

    You could debug the scripts, in IE using F12. Then you can see where the problem is and you can google that or ask here again.
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

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



Click Here to Expand Forum to Full Width