Forum Replies Created
-
AuthorPosts
-
Zac GordonKeymaster
Thanks Thorsten! I may modify this to just have one correct answer to make more clear..
Zac GordonKeymasterThanks Thorsten!
Technically when talking about nodes, the language of “value” is appropriate, but I see what you mean about the possible use of the word “markup” when referring to elements from the HTML perspective.
Zac GordonKeymasterThanks Thorsten!
Yes, as you point out, was just showing a process with more steps including things had covered, but will throw this up as an example as well 🙂
Once we get into building the project we will take an approach like the one you have suggested 🙂
Thanks!
Zac GordonKeymasterGreat catch Thorsten! Just added a note the the lesson page and updated the Code Example!
Zac GordonKeymasterHi Nicole!
It looks like you did not have the appropriate access to the course, you should be all set now!
Zac
Zac GordonKeymasterHi Casper!
This is strange. There is no functionality that would allow the Mark Complete button to be triggered once a video is complete. However, I know once a lesson is marked complete, it is not currently possible to mark it as uncomplete. Would that be functionality you want?
You should also have navigation options at the top of the page to move to next or previous lesson.
Zac GordonKeymasterGreat! Glad you got it!!!
Zac GordonKeymasterThanks so much Christina! We’ll fix these up and add a note once they’re done 🙂
Zac GordonKeymasterThat’s the one! Thanks Rheinard!!! Just updated the link 🙂
Zac GordonKeymasterYup. Like this:
var jon1, jon2, jon3; jon1 = document.getElementsByClassName("content")[0]; jon2 = jon1.getElementsByTagName("article")[0]; jon3 = jon2.getElementsByTagName("a")[0]; console.log (jon3.innerHTML);
Notice that var is only used when declaring the variable, not when assigning it in this case.
You will see this method used a lot as you go forward 🙂
Zac GordonKeymasterI think you may have just misspelled “content” 😉
You’ve got it though!
The one important thing to fix is that you want to define all variables up at the top at once rather than as you go.
var jon1, jon2, jon3;
Also, always try to use variable names that describe what they are storing. So this might be more appropriate:
var content, article, link;
Hope that helps and A+ for effort!!!
Cheers 🙂
ZacZac GordonKeymasterOh great 🙂 Just post back up if you have any questions!!!
Zac GordonKeymasterAhaha, glad it’s working now and you’ve got a cup of Joe.
Yeah, I choose JSBin over others in part because the guy who created Redux used it in his course, so hopefully we will not experience too many issues with it.
Zac GordonKeymasterHey Michael! I’m seeing a slow loading as well, but it is working for me now. Since all of the code is commented out it shouldn’t be anything in the actual code that is causing it to run. It does eventually load, but you’re right that it’s taking a while. Is hopefully something that will pass quickly.
Zac GordonKeymaster+1 Thorsten, thanks!
Yes Jessica, you do need to click the Mark Complete button to fill in the dots tracking progress 🙂
Zac GordonKeymasterThanks Thorsten! Good point this is technically possible, although according to the WordPress coding standards it would not be a valid use for a Switch statement.
June 12, 2016 at 11:32 pm in reply to: 1.2 quiz #2: Which of the following is NOT a type of operator in JavaScript? #6980Zac GordonKeymasterHi Paul!
Please check out the list of JS Operators that I link to in the video notes: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators
Technically Symbols are a Data Type.
Hope that helps!
Zac
Zac GordonKeymasterHey Thorsten!
Thanks for the tip 🙂
We’ve added this to our list of styling issues to tackle.
Cheers,
ZacZac GordonKeymasterHey folks! A quick update here that we now have video playback speed built into the players now and I’m in the process of upgrading all the videos 🙂
Thanks for the patience!!!
Zac GordonKeymasterHey Jon!
The reason is that getElementsByTagName returns an array.
Anything that has “elements” with the plural “s” returns an array, even if there is only one object in that array.
So if you did this it would work:
var jon = document.getElementsByTagName( 'h1' )[0];
Does that explain it?
Zac GordonKeymasterHey @andrew just sent you an email with details!
Zac GordonKeymasterHey Michael!
Not sure exactly, but I have definitely noticed while working on this course that I had to refresh JSBin from time to time, so I wouldn’t stress as long as it started working once you refreshed the page and there was not an error message. I found the same thing. That said, I still preferred using JSBin to start off with. Once you get into the code editor in later videos it should cease to be an issue 🙂
PS – Thanks so much!!! Welcome!!! Whoohoo!!!
Zac GordonKeymasterHey Jonathan!
First: Great job and I’m proud of you for giving this a stab 🙂 As the teacher I appreciate the effort you put in!
So.. with that said, check out this solution: https://jsbin.com/cuqiba/8/edit?js,output
Third: To make sure you really get it, try figuring out this similar example on your own: https://jsbin.com/wayapuf/edit?html,js,output
Let me know how it goes! This should help begin to solidify the benefit of querySelector.
Cheers,
ZacZac GordonKeymasterAll fixed! Thanks Karen!!!
Zac GordonKeymasterYup 🙂 Just me here although I have some help from some Pros with Part IV: Real World Projects, but more on that later 😉
For the everything else though it’s just me taking you step by step through it all 🙂
-
AuthorPosts