I wrote js code for wordpress website, and unfortunetly it is not working in safari and every browser in mac system. I don't know why. My scripts should react for 'click' event and charge input value. In windows evrything is ok, but in safari, mac, iphone not.
I'm not sure where is a error, in safari console i can't see any mistake. My code is a little long, so if you want help me, i can send you link for my website.
<button id="checkBank" class="checkNumberButton" type="submit"><span>Sprawdź</span></button>
document.querySelector("#checkBank").addEventListener("click", function () {my code here}
Where i can find information about difference between apple system and windows?
You forgot to close addEventListener. This should work (works on my Mac)
document.querySelector("#checkBank").addEventListener("click", function () {alert("test")});
https://jsfiddle.net/hpeyr870/
Related
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.
Looking for ideas on how to debug instances where JS doesn't work on Safari mobile, works fine on desktop, and then in desktop when I open the Safari console and run the page again using Safari-iOS 9.3-iPhone (which is the version people have had issues on) on a mobile screen it still is working fine.
Thanks!
use can use safari remote debug, you can find a detail steps online
https://gist.github.com/fernandozamoraj/4788c233441be54c825b83a6e73d7205
When I run the script on jsbin it shows an error but no details. I've ran it through jslint but that didn't help much. I did this from my iPad.
I realize that the script has some rookie errors. Try not to focus on that. My question is why it works on Google Chrome on my Windows 10 Box but not on Safari browser on iPad (iOS 10.2.1).
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
I am using Aurora 14.0a2 as my default browser (its the early release of firefox)
I have went into my about:config and have changed the value of services.sync.prefs.sync.dom.disable_window_move_resize; to false
Yet when I run my website the resizeTo(); function still doesn't work
here is my code:
jsfiddle_link
function onload(){
window.resizeTo(600,800);
}
I also tried it in other browsers:
Chrome (no surprise it didn't work since chrome never supports it)
opera
IE 8
Safari
None of which worked
I also tried making a link from a different website linking my website then clicking on it but it did not do the trick
any ideas?
I think the resize functionality of javascript would only work when you open it on popup windows and not when your openning it on a main browser window try checking on this link http://www.javascripter.net/faq/windowresizeto.htm it has the sample that I think would help you.