JavaScript Video Tutorial Pt 8





The interactive transcript could not be loaded.



Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Feb 26, 2011

Best JavaScript Book : http://goo.gl/zodRHD

I go over a bunch of JavaScript tricks and explain how JavaScript Error Handling works by showing you Try, Throw and Catch. Also discuss other ways to dynamically update a page.

Code is Here: http://bit.ly/gWIeiI

Comments • 42

Zainub Amod
I can't find where you declared errMsg, is it that you don't need to declare it, just parameter pass it?
View reply
Hide replies
Sloba Slobodan
i em having trable with all of your tutorials they often do not work
Thank you for putting together all of your different tutorials Mr. Banas. I do appreciate all of the work you've put into them. I just have a quick question about this one though: What is the purpose of the "return true;" and "return false;" statements in the editNodeText() function? After I completed your tutorial I removed them and they didn't appear to have an affect on the program's operations. Are they just there so the functions can be used as a true/false checks in other contexts? Thank you for your very nice work regardless.
View reply
Hide replies
Derrick Ruan
Hi, Derek, thanks for your amazing videos. But one thing I am not sure is whether the "While (helpid!=null)  helpid.removeChild(helpid.firstChild)" should be with the parenthesis as ""While (helpid!=null)  {helpid.removeChild(helpid.firstChild)}"" ? However, both works well. So why ? Thanks.
View reply
Hide replies
Oren Milman
hi Derek, thanks for a great tutorial, as always :) btw, i noticed some duplicate code in the cleaning of the helpId element.. wouldn't it be a better practice to define a function like cleanElem, and call it twice (once inside the try, and once inside the catch)?
hi derek your videos are really great and helpful. I have been learning a lot Thanks :)
Dhruv Ramani
Derek, If i want to get an element by id and change it's font-family, I do this :-         document.getElementById("foo").style.font-family="Helvetica"; But I get an error with this.
View all 2 replies
Hide replies
YouTube != YOOTOOB Tutorial != TOOTOURIAL
Achin Sharma
This is terrible code. Not just js but html too. For starters it uses inline js. You should be teaching event listeners. It also doesn't use the new html5 doctype. Tutorials should always be latest available info.
View all 4 replies
Hide replies
if(helpId) is better than if(helpId != null) clarify me if i am wrong
When autoplay is enabled, a suggested video will automatically play next.

Up next

to add this to Watch Later

Add to

Loading playlists...