Salesforrce: JavaScript Remoting "Uncaught ReferenceError: Visualforce is not defined" - javascript

I'm using JavaScript Remoting in my Force.com site. This works well apart from a scenario I have noted where when I click on an apex:commandLink or apex:commandButton in a component which then opens my component where my JavaScript remoting function exists, when I then try to perform my Remoting action I get an error as follows.
Uncaught ReferenceError: Visualforce is not defined
I do not get this error when I do not previously click on am apex:CommandLink or apex:commandButton in a previous component. Has anyone come across this before & if so know how to stop the error from occurring?

I'm assuming you're using Visual Force Page (VFP). In your VFP definition, make sure to include the controller that has the methods for JS remoting
<apex:page controller="YourController" ... />

Related

dti content script.js causing problem in few JSP pages

dti content script.js causing problem in few JSP pages.
Browser Console Error:
Uncaught (in promise) unknow action dti_content_script.js
Uncaught (in promise) unknow action walkme_loading_content_script.js
Using jquery-1.7.2.min.js
Using Okta min.js https://global.oktacdn.com/okta-auth-js/4.5.0/okta-auth-js.min.js
Please let me know if you have any idea.
Needs to remove this error, its coming not every users. Its coming for few users only.

Error in event handler: TypeError: Cannot read property 'apply' of undefined when I load my pages

I am editing a codeIgniter application purchased online which have no support, everything is OK but javascript codes are not working, it keeps giving this error message
Error in event handler: TypeError: Cannot read property 'apply' of undefined
at w.g.P (chrome-extension://ngpampappnmepgilojfohadhhmbhlaek/content.js:22:354)
at w.g.na (chrome-extension://ngpampappnmepgilojfohadhhmbhlaek/content.js:4:214)
and when continue viewing the page it says
content.js:21 Uncaught Error: Attempting to use a disconnected port object
at w.g.ka (content.js:21)
But actually in my directories I don't see the page named content.js
How can I solve this error? and finally have my javascript functions working?
Thank you.
Thank you so much for contribution, I came to realize that problem was on my script arrangement, JavaScript had to start at the top of the page, so my problem solved by uninstalling IDM plugin from chrome and re-arranging the script.

How can I embed this snapppt javascript?

I'm trying to embed a javascript from snapppt.com into a cms page. It shows me in console that the script has been loaded, but there is nothing showing up.
This is the code i get from snapppt.com:
<script src='//snapppt.com/widgets/widget_loader/724028e3-d261-411c-8042-c1901fbc8ad7/carousel.js' class='snapppt-widget'></script>
Do I need anything in addition to this?
I've tried to use the script and i get error in the console
Uncaught TypeError: $ is not a function carousel.js:69
I think that you use the code correctly but there is some error in the script that you are loading

Javascript "Access is Denied" error when trying to use jquery plugin with jQuery 1.7.1

A jquery plugin named "binaryajax.js" exists that can be used to read and examine data from images. When I try to include this script in my page (just including it, without even using it), I get a javascript "Access is Denied" error in jQuery 1.7.1. No other jquery plugin I have ever used has had an error like this. I have seen no other reference to anyone else having this error except for me. I would like to be able to use this because I need to examine the EXIF orientation tag inside of an image file in javascript, but this error is preventing me from doing so. Can someone explain why I would be getting this and what I can do to make it work for me? Here is the reference to binaryajax.js:
http://www.nihilogic.dk/labs/binaryajax/binaryajax.js
All I am doing to get the error is to include the following in my page:
<script src="~/Scripts/binaryajax.js"></script>
What am I doing wrong, if anything?
EDIT:
Through much trial and error, I tracked down what is causing the error, although I still do not know how to correct it:
On my home page I have two links of the following format:
<a onclick="$('#home-form-settings').submit();">
Each one has click-event handlers that point to a form on the home page and will cause a submit of the form.
These links are not even on the page where I am including and trying to use binaryajax.js, but because they are on the home page they for some reason get included in every other page I visit in my asp.net MVC web application. If I remove these links, I do not get the Access Denied error but their presence is preventing me from using this plugin. Does that make sense?
How can I use the plugin on some other page and keep these links on the home page?

Object #<Text> has no method 'getBoundingClientRect' on XAJAX

recently, I'm getting very strange error using the libraries XAJAX. Everything seems to work correctly, but Chrome console gives me an error every time I run any element.
The page where I is happening is this:
http://es.woow360.com/
For example clicking on any tab business that appears in the search box it does is load a new panoramic generates this error:
Uncaught TypeError: Object #<Text> has no method 'getBoundingClientRect'
WombatUtils.getElementRect
M
U
Y
CrossbrowserMutationObserver.n
d.callbackWrapper
xajax.dom.assign xajax_core.js:210
(anonymous function) xajax_core.js:318
xajax.command.handler.call xajax_core.js:315
xajax.executeCommand xajax_core.js:404
xajax.tools.queue.process xajax_core.js:150
xajax.responseProcessor.xml xajax_core.js:165
xajax.responseReceived xajax_core.js:399
oRequest.request.onreadystatechange xajax_core.js:356
Here you have the link to the file where error occurs:
http://es.woow360.com/xajax/xajax_js/xajax_core.js
It's very strange. Until recently it worked fine.
But now fails.
It fails only on this page, also I have other pages that use the same library, and gives the same error.
Even in other domains, where I have loaded the library XAJAX gives the same error.
Not to be that.
The strange thing is that except for the error message, everything works fine.
Any idea?
Thank you!
I've got the same errors/warnings. Add-less chrome extension was the issue. Try to review extensions of your chrome.

Categories