Javascript 'Interactive Map' working intermittently on Chrome - javascript

I have created this map (in adobe edge - it uses javascript):
http://lpff.org.uk/Book-a-Pitch/All
It loads first time in Safari (mac). On Chrome (mac) it -sometimes- doesn't work the first load, if you click refresh then it works.
On the first load in Chrome I get these Javascript errors:
Uncaught TypeError: Cannot call method 'bindElementAction' of undefined index_edgeActions.js:16
Uncaught TypeError: Object # has no method 'okToLaunchComposition'
How can I get it to work first time - and what's causing this strange behaviour?

Related

ajaxToolkit AutoCompleteExtender Chrome error

Facts:
ajaxToolkit AutoCompleteExtender in this specific screen works fine in IE, and Firefox
ajaxToolkit AutoCompleteExtender works fine in Chrome, in a different screen, same application
But not here. Right now I am getting errors like this:
Uncaught Error: Sys.InvalidOperationException: Type
AjaxControlToolkit.Animation.Animation has already been registered.
and
Uncaught Error: Sys.ScriptLoadFailedException: The script
'http://abc/def/ScriptResource.axd?d=uZ7YXSkj4n5b51-4hy2B1kBoyWBzAKQobQalIia8aju5_q790-3ZI8fdE9mfezSEesp77ToyxGv7_erOfA-X853srHT0dJkwMzZ98t3kSUkbkMEhd1StAYZDits_77x15a31Dr-0FO4ytW-aNwix2qkS_181&t=634263938860000000'
failed to load. Check for: Inaccessible path. Script errors. (IE)
Enable 'Display a notification about every script error' under
advanced settings. Missing call to
Sys.Application.notifyScriptLoaded().
Anyone ever had any issues like this?
Scriptresource.axd is not something I tried to change before, so I am feeling totally lost.
So after a lot of debugging, I removed the UpdatePanel from the screen, and it is working fine in Chrom, Firefox, and IE as well.

Interact.js problems with Google Chrome v55

We have been using interact.js for a while now in our angular web application. I recently updated google chrome to v55. Since this happened, I'm getting the following error in the console every time I enter the browser window (probably mouseenter event):
interact.js:637 Uncaught TypeError: Cannot read property 'pageX' of undefined
at getXY (interact.js:637)
at getPageXY (interact.js:654)
at setEventXY (interact.js:598)
at Interaction.setEventXY (interact.js:1307)
at Interaction.pointerMove (interact.js:1757)
at HTMLDocument.<anonymous> (interact.js:3307)
The error occurs regardless of wether we ever call interact(). I added outputs to every code line where we call interact() but even on pages where we do not call interact() a single time, the error comes up in the console log whenever the mouse enters the browser window.
I don't get this error in any other browser and I did not get it before I updated Google Chrome.
I tried changing the version of interact.js and found out that the error does not occur until v1.2.4 (latest version is 1.2.5).
Has anyone got the same or a similar problem and knows how to bypass this?
I just found out it is a known issue for interact.js and chrome v55:
https://github.com/taye/interact.js/issues/457

Error : mousedown is not a function

No matter what web page I'm on, whenever I right click on the page I get this error on the console:
Uncaught TypeError: $(...).rmousedown is not a function
at HTMLDocument.document.onmouseup (mouseTrack.js:196)
What is the cause of this? Doesn't seem to cause any issues, but I'm curious where this comes from. I'm running chrome Version 55.0.2883.87 m (64-bit)
rmousedown() may not available in JS. I think this is a type mistake, you can try with mousedown() instead rmousedown().

jRecorder throwing Uncaught TypeError: getFlashMovie(...).jSendFileToServer is not a function

I'm working with jRecorder.
It was working so fine but suddenly starts throwing
TypeError: getFlashMovie(...).jSendFileToServer is not a function
Here is the link, you can see the error in console after recording and then click Upload your recording.
Issue Resolved, What I was doing wrong was z-index of #flasharea, I played with id flasharea which contains the adobe flash setting popup.

Node.js Application Doesn't Run in Safari or Internet Explorer

A board game we made using Node.js, Javascript and jQuery works correctly on both Chrome and Firefox, but it doesn't seem to start the Javascript in Internet Explorer or Safari.
Here's a link to the uploaded version:
http://burningfreak.com/zb/freelance/wordwars/
I've tried it both from localhost and from the website, and I get the same results. Chrome and Firefox are fine. IE and Safari load the html and css, but large sections are blank (including the game board).
Is there something special we need to do to get it running on those browsers? I'm not even sure what area of the code to look at, and search results have not yielded anything directly related.
To see the error causing the problem in Safari, you can use the Error Console. This is available in the "Develop" menubar menu that is by default hidden. Enable it through Safari -> Preferences -> Advanced, then check "Show Develop menu in menu bar". A new menu titled "Develop" appears in the menubar at the top of the screen. From there, choose "Show Error Console" and then load your page. You will see this error:
[Error] TypeError: 'undefined' is not a function (evaluating 'Number.parseInt(gameData[1])')
(anonymous function) (app.js, line 1042)
dispatch (jquery.min.js, line 3)
handle (jquery.min.js, line 3)
trigger (jquery.min.js, line 3)
(anonymous function) (jquery.min.js, line 3)
each (jquery.min.js, line 2)
each (jquery.min.js, line 2)
trigger (jquery.min.js, line 3)
(anonymous function) (app.js, line 1018)
This boils down to the Number.parseInt() function, which, according to MDN ..
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt
.. is "experimental technology", and not supported on most browsers. Luckily, there is a "parseInt()" function without the "Number.", which is not experimental at all. Most likely removing the "Number." will at least move you forward nicely:
var playerNum = parseInt(gameData[1]);
Another issue you will notice is that the apps keeps polling on this non-existing URL:
http://burningfreak.com/socket.io/?EIO=2&transport=polling&t=1406517881111-30

Categories

Resources