Software :: Javascript Key Recognition
Oct 26, 2010
I have a Javascript file that detects key codes, but it is set to react to Windows keyboard keys. How would I adapt it to work with a Mac keyboard? Code: // Hotkeys document.addEventListener('keydown', function(e){ if(e.shiftKey && !e.ctrlKey && e.altKey){ switch(e.keyCode){ // Edit styles with Alt+Shift+E case 69: editStyles(); break; // Unblock elements with Alt+Shift+U case 85: unblockEle(); break; // Block element with Alt+Shift+B case 66: blockEle(); break; // Unblock latest element with Alt+Shift+L case 76: unblockEle(true); break; // Block elements (don't use nth-child) with Alt+Shift+W case 87: blockEle(true); break; } } }, false); The Alt key is the problem. I guess the Alt/Option key on a Mac keyboard is not the same as the Alt key for Windows. What name would I give to have that key recognized?
View 4 Replies
ADVERTISEMENT
Apr 4, 2012
how do i turn off popup blocker?
Info:
MacBook Pro
View 2 Replies
View Related
May 22, 2012
Requirement is to add a fixed url, [URL] as bookmark to safari - browser on click of a hyperlink.
For Example: Following works in IE and Firefox but does nto work in Safari.
<a href="javascript:if(document.all)window.external.AddFavorite('http://facebook.com','facebook'); else if(window.sidebar)window.sidebar.addPanel ('facebook','http://facebook.com','');">bookmark http://safari.com</a>
Info:
Windows XP
View 1 Replies
View Related
Aug 6, 2009
So I rebooted my Mac after installing some software updates. I then go to YouTube... but there is a problem, it looks funny. I can't watch any videos because it says "Hello, either you have JavaScript shut off or you don't have the latest version of Flash Player Installed"
1. I tried installing Flash again, nothing
2. Checked Javascript, same thing happened.
Firefox works well I guess.
View 2 Replies
View Related
Jun 23, 2009
I purchased a Mac Pro two years ago and had additional ram installed at COMP USA (had an APPLE dealer in the store) The ram upgrade gave me a total of 9 gig. When I check (About This Mac) it confirms the 9 gig of ram. I was setting my preferences in Adobe CS 4 and when allocating the percent of ram to be dedicated to CS4 my choice was centered around 3 gig. Same as my Mac Book Pro. I elected 70% of 3 gig of ram.
View 3 Replies
View Related
Feb 21, 2009
I'm new to macs and I am pulling a prank on a friend. I am trying to run a javascript function everything he submits a forum. I have written my javascript already but I have no idea where to start.
View 4 Replies
View Related
Mar 19, 2010
I've been trying to get on youtube for days on both firefox and safari and it seems as though my javascript is turned off or something. When I go to check the settings in my browsers it says its on but youtubes site won't even load for me not just the videos but the whole site. And then when I go to other sites with videos that would pop up they don't show up?
View 11 Replies
View Related
Jun 9, 2010
Firefox has been my main browser b/c Safari 4 was slower for me and also no Noscript. Safari 5 though is noticable faster for me and I'd like to go back. Malicious javascript is still a concern, even if remote. I use clicktoflash, but that only blocks flash. Is there a plugin or extension that will block javascript on a page unless I allow it or whitelist it?
View 2 Replies
View Related
Mar 13, 2012
New Safari 5.1.4 made my website javascript time counters frozen and not working. I am using jQuery library on my site.
You can see the preview of the problemhere: [URL]
What is the problem with this new Safari update and how can it be solved?
Info:
Safari 5.1.4 and iMac 24, Mac OS X (10.7.3)
View 3 Replies
View Related
Mar 25, 2012
I cannot properly access most sites using javascript.This has affected Safari, Chrome, Firefox. How do I revert to previous version?
Info:
iMac, Mac OS X (10.6.1)
View 14 Replies
View Related
Jun 26, 2012
Recently, I was abroad with my MacBook Pro running Lion. I noticed I was no longer able to do a LOT of the website reddit. I noticed many other sites seemed to be "broken" and buttons not working, messages poping up, etc. I realized it seemed Javascript was off... but it wasn't. I checked firefox settings and it was indeed on. I tried Google Chrome and Safari to find, they too, did not work with javascript anymore.Javascript is an in-browser thing. I have NO idea how this problem occured.
Well I got home and turned on my iMac. Everything worked fine. Did some software updates and then Adobe Flash wanted to update, so I let it. I had updated Flash while I was abroad too. Today I've noticed that my iMac, is also, not working with Javascript anymore.
This has made things extremely inconvienant for me. I have no idea how to fix this, and I'm forced to use my Windows computer to login to sites, post things, and even use some favorite sites like reddit fully. I have tried Googling this problem and I find nothing recent that seems useful. I would imagine if this has infected two of my computers it must have happened to more people. Strangely... I don't find anything.
Info:
iMac (Late 2009, 21.5"), Mac OS X (10.6.3)
View 8 Replies
View Related
Jun 30, 2014
MacBook Pro 10.9.3
Every time I try to open a specific website, it pulls up an error saying "This site requires the use of JavaScript. Please check your Internet settings.". Javascript is enabled on Safari, but still won't work. I've tried opening it in Firefox and Google Chrome... same thing! I tried to uninstall and reinstall, no luck.
View 1 Replies
View Related
Feb 19, 2007
Does anyone use the Speech Recognition features built into OS X?
View 24 Replies
View Related
Sep 2, 2010
I think what I'm talking about are javascript links...when you go to, for example, [URL] I'm talking about the links in the box on the right labeled "Most Watched Video." None of the links IN THAT BOX work for me. By "work" of course I mean go anywhere or do anything. It's as if I'm clicking in an area of a page without links.
This happens for me in other sites with similar links. What gives?!
I've checked Firefox and am running the latest version of javascript. I'm also running the latest version of Firefox 3.6.8. I'm on a Mac OSX 10.4.11 - old system software, I realize, but I simply haven't been able to afford moving beyond this (plus my Mac is a Macbook, 2GB RAM, 80GB HD - old unit).
View 1 Replies
View Related
Feb 11, 2010
Performed 3 tests using Sunspider.
Chrome (5.0.307.7 beta)
Test 1: 409
Test 2: 405
Test 3: 397
Safari (4.0.4)
Test 1: 496
Test 2: 495
Test 3: 493
In terms of personal experience, Chrome feels a lot faster now. [URL]
View 20 Replies
View Related
Feb 16, 2012
I am trying to save the source code of the javascript alert in safari but the menu items blank out.
Info:
Mac OS X (10.6.8), safari
View 3 Replies
View Related
Jun 26, 2014
Apple macbook pro 13"
Maverick os 10.9.3
For security reasons:
Should I tick the box to enable Java script in my web content (in Safari Preferences)?
View 6 Replies
View Related
Apr 11, 2012
I was trying to watch a show on Slice.ca and it kept telling me that my JavaScript wasn't enabled and I was unable to watch the video. a few days before I was able to use the site perfectly, but after downloading the new Java update it wont work. When I go into my preferences on safari, it says that java-scrip is in fact enabled, so I'm not sure why the website isn't recognizing that it is enabled.
Info:
MacBook Pro, Mac OS X (10.6.8)
View 2 Replies
View Related
Jan 19, 2011
I recently spilled coffee on my mid 2010 2.4ghz macbook pro. After drying out, the computer worked fine, although the battery was not recognized. Since apple does not cover water damage i bought a replacement battery and installed it today. After starting up the problem is not solved. there is still an X through the battery indicator and if i unplug the laptop it shuts down instantly. When i turn it on, the status LED on the front blinks 6 times before the laptop actually boots up. I have reset the SMC, NVRAM and PRAM.
Any help or input would be greatly appreciated.
View 10 Replies
View Related
Aug 19, 2007
Is there anyway to log on with voice recognition? Like if the password is "Apple", it will only log on to your wave pattern?
View 18 Replies
View Related
Jun 27, 2009
I try to 'calibrate' it and have repeated the stupid lines time after time, clearly and slowly in a quiet environment, but they never flash or indicate that it is calibrated.
View 9 Replies
View Related
Jan 25, 2010
How many of you use the Speech Recognition built into the iMac? And of those who do use it, do you use the built in mic or do you use a 3rd party microphone?
View 1 Replies
View Related
Sep 10, 2010
Is it possible to get facial recognition software for the MacBook Pro? I was looking at it on the Alienware M17X and thought it was pretty cool.
View 1 Replies
View Related
Aug 31, 2009
What is it with Apple and still not having implemented automatic recognition of external display when hooking up to the MBP. Seriously? Do we really need to close/ open the lid in order to shut off the MBP screen. Why does it work in Windows (via Bootcamp) and not in OS-X? I was hoping this would be fixed in SL but still no.
View 1 Replies
View Related
Oct 4, 2009
I have recorded a voice interview and is wondering if there is a quick way to type these recording out? maybe something that analyse the recording file or something that type when you speak?
View 7 Replies
View Related
Nov 13, 2010
i just ordered the macbook air 11 inch. but i was just looking around and seen that sony also has a great 11 inch laptop. the vaio x. it has 10 HOUR BATTERY for an 11 inch laptop and weighs in at 1.6 pounds. Now dont get me wrong i would not get it because i dont like windows, but it seems like this laptop doesn't get the recognition it deserves.
View 24 Replies
View Related
Jan 27, 2009
I thought perhaps the face recognition algorithm might work if I named my cats in a few pictures, but so far it has not. Would be cool if they updated it to work on cats and dogs.
View 12 Replies
View Related
Jun 14, 2009
how to use Snow Leopard's Chinese handwriting recognition
View 9 Replies
View Related
Sep 13, 2009
I know it wouldn't be 100% secure given the iSight resolution and all, as well as other factors such as lighting, etc.Just thought it'd be a nice novelty to keep unwanted users off my Mac when I'm not around.
View 10 Replies
View Related
Sep 14, 2009
I may need to have surgery to remove a cyst (too much typing) below the index finger on my strong hand and I am thinking of trying Voice Recognition Software for the weeks I am recovering. But alas no microphone jack. I never ever use a microphone for anything, so I don't know Is there such thing as a USB mic.
View 3 Replies
View Related