Everything was working fine yesterday. I have not touched the code nor made any changes. To clarify what isn't working, when I type my term to search and hit "find" or "enter" nothing happens. The bulk of the code that makes that work is the JavaScript with the exception of the call to the input on the HTML.
Here is the jsbin. Any ideas would be appreciated. I also tried a new API key and that doesn't work either.
Instead of your line:
video.src = video_url;
you need the following line:
$('#video').attr('src', video_url);
I determined the issue. Googles AJAX API was down. Thank you for your help!
Related
Recently i came across the PerformanceObserver,
(https://developers.google.com/web/updates/2016/06/performance-observer
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver)
It provide option for tracking longtask, I added in my code and got some longtask, result looks like this
There is no information about where it happening and what triggers it. Please help me to understand what is long task and how to fix it.
Thanks
Im new to coding, so if you can keep that in mind when explaining. Struggling with the Youtube pageToken & nextPageToken. I cannot figure out how to call more results once I have my first group. I see the nextPageToken code, but confused on how to use it to get the next set.
The YT api doc page says I need a string in the nextPageToken, but what does it have to say & how do I call it?
Sorry if Im unclear, like I said, Im new & learning how to explain my issues.
I have found your the issue and managed to fix it.
You never pass the pgToken when calling getNextVids() So for some reason it isn't updating.
Swap:
function getNextVids(vidSearch, pgToken){
For:
function getNextVids(vidSearch){
and all should work fine.
Also you don't need the onclick attribute on your next button as you have jQuery dealing with that event.
<button class='next'>Next page</button>
CodePen Demo
I hope this helps you.
Happy Coding!
I've been trying to get the dayClick in the FullCalendar plugin to work, but when I click nothing is happening. Can't figure out what it is I'm doing wrong. I click on a day, but no alert message. jsfiddle below. What am I doing wrong.
http://jsbin.com/bicawa/2/edit
I don't really know this library but you had two non-related issues in your code:
The moment script tag was placed before jQuery, my guess it should be placed after.
You had four slashes in your moment src (i.e. src="https:////...")
After fixing these two issues I got the console.log to work, but for some reason the alert() still wasn't working.
alert is turned off in JSBin. You shouldn't debug with alert because it stops code execution. While JSBin is a great tool for building quick samples, it makes debugging harder.
And as #idoberko2 says: You should put jQuery as first included script.
Here is a working JSBin
http://jsfiddle.net/J74VS/4/
I can't get it to work properly, I'm just trying to create a basic fiddle of a tinyscrollbar.
The problem was the missing css. I mistakenly thought all you need is $("#scrollbar1").tinyscrollbar() to activate it.
Working fiddle.
So heres my problem:
The code only works, when I leave the page to a different url (in the same browser window) and then press the back button.
What could be the reason for such an odd behavior? Any hints where and what to look for?
I know its not a specific question but a general one, because i hope to get guidance so someone can hint me to the "desease" by me describing the symptons (Dr.House-style) so I get a good start for finding the bug.
So i hope this is ok to ask.
Anyhow, if it needs to be specific, here is the code that is acting so strangely:
2 scripts (FitVids.js, Vimeo.js) together kill Calling a function to play video, resulting in: VimeoAPI is not a function
I would assume that means that VimeoAPI is not a function. :) You may be spelling it wrong, capitalizing it wrong, or it may not be defined yet. Try posting your code clearly on your post.