angularjs error in console log for jsfiddle - javascript

I am working on an Angular grid project and i am facing a minor error while using angular-grid.
Heres the error- Module 'angularGrid' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
So i thought i am missing out on something. I checked a JSfiddle and was not able to view the output there. So i checked the console for errors. here also the same error is displayed.
JSfiddle is not even edited by me. I am just viewing the link. Yet i get the same error.
http://jsfiddle.net/9b5gnjf1/8/
<md-toolbar class="md-whiteframe-z2">
<div class="md-toolbar-tools">Toolbar</div>
Just adding the above 2 lines from the link so that stackoverflow lets me paste the jsfiddle link. without any code written, it doesnot allow to post the link here.
anyone knows what kind of error is this and how to solve it ?

There's a 404 error resolving the external link to the javascript file that the angular-grid module lives in.
Looks like either it's a bad link, or the rawgit servers are down.
You can either wait and hope the link comes back to life, or replace the broken external resource with a working one.

Related

How do I solve the ReferenceError in my API calls from my UI?

I have done a microsoft tutorial called Web API with Javascript
I now have a UI made with Javascript and HTML which looks like this:
How do I use the UI? I keep getting a Reference Error. Is there a specific syntax I am supposed to follow when I add and edit something via APIs?
In the future, please copy and paste error messages into your question. I would normally copy and paste the error message in my answer, but I don't want to type it all out :)
The errors (red) mean that you're trying to use JavaScript that is not defined yet. The warnings (yellow) are the reason why.
The second warning says that it could not load the JavaScript. That explains the errors. The first warning might be the reason why. It's saying that the MIME type is empty, when it should be application/javascript.
But you said in the comments that the site.js file is empty when you try to access it directly. Did you save all the JavaScript in step 4 of that tutorial to site.js?
And what are you using as a web server? IIS Express?

JavaScript failed to load resource: file not found, but the file is a Laravel auto-generated view

This is a problem that I just now encountered. When I go to certain pages within my application, I see an error in the dev console that says:
inject.preload.js:373 GET blob:http://my-app-name.test/ba65127c-383e-45b7-8159-9b52ea288658 0 ()
So, when I go to inject.preloader.js, and I find the line that is throwing the error, it says Failed to load resource: net::ERR_FILE_NOT_FOUND.
That's fine. I know how to normally fix that error. But since I'm working with laravel for the first time, I believe that the file it's talking about is one of the files Laravel automatically generates in App/storage/frameworks/views/. And if that's the case, how do I fix this error?
The error doesn't actually impact anything. The pages it appears on are all functioning normally as far as I can tell, and there don't seem to be any issues in the blade files.
I was just curious if anyone else had encountered an issue like this before. I haven't changed my blade template used for the headers and scripts, and the only thing I changed in the page that is throwing the error is adding a bootstrap 4 modal.
I can link to a github repo if needed.
I don't know why this fixed it, but I moved my javascripts includes in the master.blade.php template, and it's not a problem anymore.

Uncaught TypeError: $ is not a function in Django admain page

I was using Django 1.9 to build my comment-check application, but I suddenly found parts of CSS/javascript didn't display on the Django admin page while I was on the adjustment about urls and views.
enter image description here
enter image description here
As you can see, all admin pages like picture one except the detail content pages like picture two works well. And in the content pages, Chrome developer tool console show these messages
RelatedObjectLookups.js:160 Uncaught TypeError: $ is not a function
at RelatedObjectLookups.js:160
at RelatedObjectLookups.js:189
(anonymous) #RelatedObjectLookups.js:160
(anonymous) #RelatedObjectLookups.js:189
For sure, I don't want to paste the code from RelatedObjectLookups.js becasue I never edited any statements in this js file(maybe). This file's location is here by default:
myapp\static\admin\js\admin
I didn't get any 404 status code or other error response from the server. Most importantly, when I tried to check whether it was the specific case in this app so I opened my other django projects admin pages, this problem still persisted. Even though I reinstall the Django in virtualenv cannot solve it.
It is the first time I ask question in here, also I'm not a native English speaker and just a python beginner. This task confused me for few hours and still found a solution. So I hopes someone can give me some advice. Thx.
​
I am also an beginner and stucked by this issue. After long hours of battle i come to know the problem and solved it.
I am not sure it will work for you or not.
In your case please check out the following things:
1) Mainly this issue comes when javascript is not properly linked to file.
such as in my case stellar.js was not properly used or linked in html so browser throws "TypeError: stellar is not a function"
2) This also case of improper static_cdn file load of django. When you fire a command for "collectstatic" some times old files stays over there. First delete those files from static_cdn and fire command "collectstatic"
I hope this would help you

d3: HTTP404 NOT FOUND error

I have just started learning d3 and am trying to point localhost at the html file I created. It shows a blank page and HTTP404 NOT FOUND error, despite me adding some text to the source code.
Source code
Error message
Please help me figure out what I am doing wrong!
I suspect you have a subdirectory mismatched between your html referencing the d3 Javascript file and the actual location. One simple solution is to replace it with CDN - i.e., get it from a publicly available location instead of your own server. To do that, replace:
src="d3/d3.v3.js"
with:
src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.9.1/d3.min.js"
for the latest version 4.9.1.

Facebook errors when using multiple .js api

I have two Facebook API on my webpage, one is https://connect.facebook.net/en_US/all.js and the other one is http://static.ak.fbcdn.net/connect.php/js/FB.Share
Now if I have both of these, then there is error: FB.init is not a function
Without the FB.Share API, everything is fine.
EDIT: .js file order caused the error. Now there is "e.root is undefined" error.
EDIT2: fixed it.
I have never found anything missing from all.js, so that should suffice. What are you looking for in the second library?
There must be conflicting items across the two scripts that is causing a failure when ran in tandem.
Just delete that second, first one covers everything

Categories