I have linked all Javascript files like this with HTML and all that is working, but when I started linking file 25, it is not getting linked and error is telling MIME checking is enabled. I tried everything but nothing is happening.
Please give me a solution for fix this and above image is the error of my code.
Related
the chrome dev tool gives me a error. actually i'm trying to get an http ressource from an https webpage :
i don't know where these files are called to change the target. i guess we can know with the chrome dev tool but can't find how. i would like to know which file is firing the call, which line... (if i get only the filename, it's fine)
someone can help ?
The blue box in the picture below represents the link to the exact line that caused the error. The format is filename:XX, where filename is the name of the file where the script originated, and XX is the line of code within that file.
Click the link to see that line of code in the Sources panel. If the file is minified, click the Format button to pretty-print it.
I'm suddenly getting a 404 error on the file undefinedpageWebRequest.js file my website tries to load. I have no idea what the .js is for, why the 404 is showing up (I didn't delete any files from FTP?) and I also can't find anything about the file on Google.
Also when I run my page through Google Mobile tool I get about 6 errors. How can I go around and fix this? I have no idea where to begin in the first place.
https://search.google.com/search-console/mobile-friendly?hl=nl&id=FjRctNhGZy3ybi6o1aAmug&view=fetch-info
Website URL: www.melvinosenga.nl/home
The .js file your webpage is loading is the following one:
https://www.smartsuppchat.com/loader.js
And I guess it is a requirement for a plugin you have installed in your Wordpress site, which is most likely dead.
If you are not using the plugin you should uninstall it, and if it doesn't work you can search for the line where it is called in the headers and remove it by-hand(not very neat, I would do this as a last option).
In the other errors you have there is a Image error and some missing fonts, you should check that and refill the fonts that are missing.
Let me know if I can help you in any of this procedures.
Background:
I have a html and javascript program with which I want to use to get data from an excel file (file is located on my computer, in the same folder as my code and file type is csv although ideally I'd rather read xlsm if possible however I suspect csv is easier). I then want to be able to use this data to do a bunch of things. Ideally I want to be able run this in an iframe within a google earth (the desktop application) bubble however getting it running in any one browser would be okay. So far I have been trialing it in Chrome, IE, and an iframe in Google Earth but I've run into problems.
So apparently even though these files are on my computer in the same folder as my html and javascript this is considered a cross domain request. I am unable to change the server in any way and I have heavy restrictions on what I can download to such an extent that you can just assume that downloading something is not a solution. Doing some research I came across JSONP so I have been trying to use this method to get the data. However I'm running into issues trying to get it working and I'm not sure why.
Code:
This is the relevant code in my html file:
<script type="text/javascript" src="file:\\\O:\user name\folder name\filename.csv?callback=mycallback"></script>
Error:
This is the error I get in Chrome:
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///O:/user%20name/folder%20name/filename.csv?callback=mycallback
I am not sure why the file is not being found. Any suggestions? I was wondering if the spaces in the foldernames are causing the issue? I hope this is not the case as I am unable to change the "user name" folder name to not have a space :-/. Thanks for any help.
I want to test my uploaded file whether it is a plain/text file or not. For this I'm using the following code:
private function isUploadedFileTextFile() {
return finfo_file(
finfo_open(FILEINFO_MIME_TYPE),
$_FILES['file']['tmp_name']
) == 'text/plain';
}
It was working in most of the cases but when I try to upload a js file which starts with comments (and the same with CSS) then it says it is plain/text and it lets my file to be uploaded.
I've read about a bug in finfo_file ( https://bugs.php.net/bug.php?id=53035 ) and I've also heard that this finfo_open is not really reliable because it's trying to figure out the mime type based on the content, but I'm curious, what would you suggest to do in order to allow only plain/text files to be uploaded? (i.e. exclude these script files and stylesheets also)
edit 1: Strange that the $_FILES['file']['type'] shows correctly that it is application/x-javascript but I've heard I should not rely on this either. Or should I use double check?
Thanks!
I am trying to use django-filebrowser. I have installed in correctly according to the instructions, but i get a JS error every time i try to upload a file.
I should note that i am able to browse to 'filebrowser/browse/', create directories etc.
The problem is that when i chose to upload a file, i can see in the html source that a file 'CollapsedFieldsets.js' is included but cannot be found.
The location of this file is supposed to be here: django-install/django/contrib/admin/media/js/admin/ but the file is nowhere to be found.
django-filebrowser references this JS file in filebrowser/templates/upload.html
The error i get is:
invalid object initializer
$('#id_file').uploadify({
That probably happens because the file in question cannot be found.
I am using Django 1.3 and that file is not included in the download.
Please help!
I may have got the same trouble some days ago when I was using django-filebrowser. I can also create the directory, but when I click the 'browse' button, it fails with the same error that you got: 'CollapsedFieldsets.js' can not be found.
at last, I found that:
MEDIA_URL = 'http://domain/static/'
FILEBROWSER_URL_FILEBROWSER_MEDIA =MEDIA_URL+ 'filebrowser/'
because the MEDIA_URL has no 'www', so when I visit my website with no 'www', the filebrowser works well; but if with 'www', I will still get the error.
I am not sure this answer is right, hope it can help you.