#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Trying to resolve "uncaught type errors"


    The following errors prevent my web app from working:

    "Uncaught TypeError: Cannot call method 'removeAttribute' of null"
    "Uncaught TypeError: Cannot call method 'appendChild' of null"
    Here's an example:
    http://bit.ly/10QO0mv

    The app should play the video playlist as soon as it's loaded, instead the video just hangs and never plays.
    The video will play if you click on the second video in the playlist and then click back on the first video.

    I need the first video to autoplay as soon as the page loads.

    I get the same error regardless if I place

    html Code:
    <script type="text/javascript" src="js/playlist_jquery.js"></script>

    between the HEAD tags or right before the closing BODY tag

    Some people have suggested to start playing the video once body is loaded or put your code inside an onload event like
    Code:
    $(document).ready(function() {
       // start video streaming once all resources are done loading
     });
    or
    Code:
    <script type="text/javascript">
    window.onload = function(){
        ...
    }
    </script>
    </head>
    <body>
    If that might resolve the errors and allow the video to autoplay, all of the code in the web page that executes the video and the video playlist is PHP, so what exactly should I put in the document.ready or onload event?

    (I can post the html and php if necessary)

    I would appreciate your help -
    DK
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0
    I was able to resolve the issue. I overlooked a setting in the SublimeVideo player.

IMN logo majestic logo threadwatch logo seochat tools logo