HTML Loader not working on certain pages - javascript

I am designing a website and am having some issues on certain computers. Most computers show the site perfectly, but certain computers just load a blank grey screen.
My work computer is one that has an issue,
The website is http://holidayinnkilgoretx.com and loads fine on the home page and photo page, but when I go to http://holidayinnkilgoretx.com/raa.php it messes up. Please let me know If i have something wrong in my code which is causing this. I checked all divs and closing tags etc.
It also only has the issue in google chrome.
Thank You

Getting the following load errors from Google developer tools which you should look into:
Resource interpreted as Script but transferred with MIME type text/html: "http://holidayinnkilgoretx.com/js/jquery.imagesloaded.min.js".
raa.php:315
Uncaught SyntaxError: Unexpected token <
js/jquery.imagesloaded.min.js:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
jquery.min.js:5
Uncaught TypeError: Cannot call method 'create' of undefined

Related

Telerik Error - Parameter name: panelsCreated[6]

I have a simple page that uses telerik:RadAjaxManager.
For some reason on page load I'm getting this error in browser console:
I googled it, and found lots of articles where they say I need to switch off debug mode in web.config. So it would hide the error, but it doesn't solve it at all.
Any suggestions?

Resolving Unexpected token < in Chrome for Custom 403 Page

I saw some previous topics related to this but was unable to find a related solution.
On my WordPress blog, WeLearnChess.com, I created a custom 403 error page, and now I am getting a seemingly related syntax error in Chrome. I enabled script debugging in the wp config file and checked with developer tools in Chrome, and I get this error:
Uncaught SyntaxError: Unexpected token < inaccessible:1
This appears to refer to my custom 403 page (http://www.welearnchess.com/inaccessible/). I have BulletProof Security Pro installed, so, to create the custom 403, I replaced the default 403 code with the following line of code via the BPS custom code field:
ErrorDocument 403 http://www.welearnchess.com/inaccessible/
From various tutorials that I saw online, this seems like it should be correct, but I'm new to this so perhaps I've made a mistake that is causing the error. Another interesting point is that, after a hard browser refresh, sometimes the syntax error temporarily changes from :inaccessible to :index or maybe it was:index1 (I'm having trouble reproducing it now).
So, have I done something incorrect with my 403 custom code that could be causing the aforementioned error? Thanks in advance for any assistance you can provide, and please let me know if I need to clarify the question further.
You plugin directory is throwing a 403 error, which means when including <script> tags with src like http://www.welearnchess.com/wp-content/plugins/ultimate-social-deux/public/assets/js/min/us.script-min.js?ver=6.0.4 get redirected to your custom 403 page which is http://www.welearnchess.com/inaccessible/. There are a few instances of this for plugins: ultimate-social-deux, zf-wordpress-category-accordian, rain - where their assets that should be publicly accessible are 403ing. Which means, instead of the actual script your custom page is loaded in the script tag, which is as expected, is invalid JavaScript and hence the errors in your console.

jquery conflict with my website

I layout'd a page and on my server which is it hostgator works extremely fine, using the jQuery mobile components:
http://brunolustro.com/roger/teste/cadastro.html
But my friend who is programming the page wanted me to insert the newest CDNs from either jQuery and jQuery Mobile:
And this is what the page looks like when I insert those codes:
http://brunolustro.com/roger/test/cadastro.html
Do you know how to fix this?
Regards,
Bruno
When working with JavaScript or jQuery on your website - if something isn't working as you intend - the first thing you should do is check the browser console to see if anything is being logged there.
To check the browser console:
Hit F12 on your keyboard. When the developer tools open, choose the console tab, its placed in the toolbar at the top of the new window.
In the console you will see a few errors in red with error codes (404). A 404 means the requested file wasn't found.
This tells us that your reference to jQuery isn't correct. This could be because the file path you've written isn't correct, or that you haven't deployed those files correctly to your site.
Check your file paths you've referenced and make sure the file is on your server. Once both are correct - the errors should go away.
Here's a link to view more about developer tools: https://developer.chrome.com/devtools#console
Check following files in your "test/js" and "teste/js" folders, because i've got 404 not found error:
jquery-2.0.3.min.js
modernizr-2.6.2.min.js
jquery.mobile-1.4.5.min.map

Javascript JSONP on Googlechrome

I have a code, from here:
http://www.onlinesolutionsdevelopment.com/blog/web-development/javascript/jsonp-example/
I tested it on Firefox with two domains, it works perfectly. But when I tried it on Google Chrome I get this warning:
Resource interpreted as Script but transferred with MIME type text/html:
and this error:
Uncaught SyntaxError: Unexpected token <"
I haven't tried it on IE yet, but it's not a big deal. I can't figure out what seems to be the problem, and I'm kinda new to this kind of stuff.
Note: I dont want to use JQuery
After spent some time on this, I discovered that my problem is not on my script , but its on my freewebhosting added script, then i tried to disabled their script, and it works fine, but anyways thank you guys.

Debugging an error message in Firebug

I get this error message in Firebug:
Permission denied for <http://googleads.g.doubleclick.net> to call method Location.toString
It comes from this page:
http://www.comehike.com/outdoors/trees/add_spotted_trees.php?hike_id=108
The login credentials for this page are:
test#comehike.com | password
When I look at it in Firebug, using the Console --> Errors view, I see that error first, followed by a number of other errors, but I can't really double-click on the errors to see what line they are coming from, and the line isn't written there as far as I can see. There are some line references on the page, but they lead to pretty random spots.
Any ideas how to debug such a thing? I am new to JS and FireBug.
Thanks,
Alex
The Location.toString error is usually due to some ad-serving javascript code, trying to get a text version of the current page's location. Firefox denies access to this information to 3rd party scripts by default, since 3rd party scripts should have no business knowing exactly what page you're on.
Basically it's an attempt by ad networks to work around some clients not sending referers, by trying to grab the location data directly.
In firebug under the "bug" icon (upper left when open) you'll see a pause button (in the console tab). This will cause the page to stop loading and jump to the exact error in the script.
However, when I visited the page I do not see any errors.
body' onLoad is:
initializeTreeHike( , );
You don't need to use comma if you wish to pass no parameters to the function.
When I follow the provided link in Firefox 4.0 with Firebug 1.7, I don't receive the error you encountered. What I do receive however is the following:
Syntax error: initializeTreeHike( , );
It appears this is coming from line 326 in add_spotted_trees.php in the following line:
<body onload="initializeTreeHike( , );"
Perhaps you meant to pass in empty strings as parameters?

Categories

Resources