JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 4th, 2013, 12:49 PM
n2learning n2learning is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 2 n2learning User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 25 sec
Reputation Power: 0
jQuery - 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:
Original - 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

Reply With Quote
  #2  
Old January 5th, 2013, 02:34 PM
n2learning n2learning is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 2 n2learning User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 25 sec
Reputation Power: 0
I was able to resolve the issue. I overlooked a setting in the SublimeVideo player.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > jQuery - Trying to resolve "uncaught type errors"

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap