Hashchange or Popstate Issue in Google Chrome? - javascript

Can someone please help me with the following? The hashchange seems to happen, but as soon as I want to go back into some of the following menus the browser gets stuck. I'm currently using Chrome v49.0.2623.112 m. It seems to be working fine on Internet Explorer, but this project will be running off an android device using Chrome.
**MainMenu** = "/VoxeoCXP/DialogMapping/VSN/TelkomKioskService#System?vID=*643434c3c90606f2dffa96317fd0c04907adf2101613e36cbc80909f59df7be2015010fc0561bc7a*"
**MenuItem1** = "/VoxeoCXP/DialogMapping/VSN/TelkomKioskService#System?vID=*643434c3c90606f26f7ab6112fe0f0f907adf2101613e36cbc80909f59df7be2015010fc0561bc7a*"
**MenuItem2** = "/VoxeoCXP/DialogMapping/VSN/TelkomKioskService#System?vID=*643434c3c90606f2bf9af6417f20e02907adf2101613e36cbc80909f59df7be2015010fc0561bc7a*"
**MenuItem3** = "/VoxeoCXP/DialogMapping/VSN/TelkomKioskService#System?vID=*643434c3c90606f20f9aa6510ff0d08907adf2001613e36cbc80909f59df7be2015010fc0561bc7a*"
I am new to JQuery and had to allow the script and my CSS files to run locally, but even when I run it "remotely" it gives the same issue. Can anyone please help me with this? Thanks

Related

My site doesnt open from iPhone (iOS 11)?

I have some problems with my website. My site is coded in HTML,CSS and JS.
Everywhere works perfect, Desktop (all browsers), Android (All browsers), in iPhone(iOS.11) doesn't work!!!
I think there may be two problems:
1. When i open the site, i have Loading Page script, and in iPhone it stops there and doesnt open the site.
2. The problem may also be with the new iOS 11, because with earlier iOS(10) was working very well.
Any suggestion, or any site which i can check my errors (debugg) or..?
google didn't solve my problem so i decided to ask, but still can't find the problem!!!
Thanks.
If you have an OSX available you can enable remote debug and see what's happening, most likely something is breaking based on something not being available.

Chrome does not support adding searchEngine through javascript 'window.external.AddSearchProvider(url)'

I am here to clarify an issue am facing in chrome alone and the issue is - 'I can't able to add My Site in chrome search engine via Javascript window.external.AddSearchProvider(xml_url) , However,on earlier times, it worked properly without any issues.'
I am not doing auto-adding my site to search engine with help of '<link>' tag (however, this too does not worked for me)
The 'window.external.AddSearchProvider(xml_url) works fine in firefox as earlier,,, The problem is only with the chrome, since, chrome supported earlier, and don't know the root cause of not able to add now. Please help me to figure out the issue by which i cant able to add in chrome Search Engine.
Thank you :)
Unfortunately window.external.AddSearchProvider is obsolete. It is working in Firefox but is no longer supported.
The <link> tag that you add in your site's <head> is for Autodiscovery of search plugins feature, this will list your site search engine in the configurations of the browser.
In chrome will list at chrome://settings/searchEngines

Hammer JS v2.0.4 not recognizing 'panstart' or 'panmove' in Chrome 37.0 only

I wanted to learn Hammer JS by building a simple program to drag an element around the screen, pretty much just like the same on the Hammer homepage.
I used the code posted on the Hammer github page, which seems to be the same code used on the homepage. I was testing the work in Chrome (37.0 / OSX). After working with it for a while and being unable to get the element to move, I opened the same page in Safari and FF. It worked perfectly in both of those browsers.
To pare things down, I added just the required to code to see an event trigger:
var mover = document.getElementById("mover");
var mc = new Hammer.Manager(mover);
mc.add(new Hammer.Pan({ threshold: 0, pointers: 0 }));
mc.on("panstart panmove", function(ev) {
console.log(ev);
});
Nothing gets logged in Chrome, but I get proper logging as expected in Safari and FF. I extended the event listener to include 'pan, panend, pancancel, panleft, panright, panup, pandown'. These events WOULD log in Chrome, so it seems like only panstart and panmove were being ignored.
So this code will run on the hammer.js page in Chrome, so clearly Chrome does see the panstart and panmove events in that browser, it's just not happening in my code. Which means somehow I am missing something, despite copying the code over from their site. I checked we were on the same Hammer version, but I am not sure sure what else from here I need to check.
Has anyone else encountered and solved this problem? Or perhaps knows what I am doing wrong to create this issue?
Thanks.
In the Hammer site say clearly "for better performance on slower devices your should try to keep you callbacks as simple as possible." I think that's the same with Browsers!
Maybe your problem is
var mover = document.getElementById("#mover");
Why do you type "#mover" instead of "mover"? The "#" sign it's for JQuery and you are using plain javascript. It confuses me that in some browsers this works, so I imagine your ElementID start in fact with the "#"...
Let me know if it helped, please!

How to add my own script in Firefox?

I changed browser from Opera to FF.
At the beginning I don't want Greasemonkey or other plugin.
I want to add my own JavaScript to some site.
I found this topic:
Manually adding a Userscript to Google Chrome
I tried this method with some changes which seems obviously for FF to me, but it didn't work. It's difficult to debug what going wrong because I don't get any error messages.
Could you give me some advice what I should check?

Any way to debug JS issue in IE9?

I have a JS script which works in every browser except IE 9. I am not thrown any errors in my IDE or on the page itself but the loading icon just seems to continuously rotate instead of loading the image.
Page can be seen at:
http://www.nacdbenefits.com/jmarston4
I have used tools like Firebug in Firefox before to recognize some issues but this one is stumping me. Anybody had a similar issue before?
you can use IETester

Categories

Resources