I've been trying to re-implement an HTML5 image uploader like the one on the Mozilla Hacks site, but that works with WebKit browsers. Part of the task is to extract an image file from the canvas object and append it to a FormData object for upl...
I'm trying to simulate a keyboard event in Safari using JavaScript.  I have tried this:  var event = document.createEvent("KeyboardEvent"); event.initKeyboardEvent("keypress", true, true, null, false, false, false, false, 115, 0...
I have a bog-standard login form - an email text field, a password field and a submit button on an AIR project that's using HTML/jQuery.  When I hit Enter on the form, the entire form's contents vanish, but the form isn't submitted.  Do...
I have a piece of JS code to generate random numbers and output them as variables to be used here in place of the rotation values  @-webkit-keyframes rotate {     0% {-webkit-transform: rotate(-10deg);}     100% {-webkit-transform: rotate(10deg);}...
I am getting the below error when i try to set a hash value to the parent url from iframe which contains another domain url:     Unsafe JavaScript attempt to access frame with URL "URL1" from frame with URL "URL2". Domains, protocol...
I have a webpage with an iframe.  I'd like to access the contents of the iframe using CasperJS.  In particular, I need to click buttons and fill a form.  How can I do that?  The main webpage is main.html:  <html><body> <a id='...
Is it posible to make logging to the console synchronous? I often run into situations where the code execution is faster than dumping the structures. That resolves in outputting already changed objects.  I sure can walk through the code with debugger...
I have a Cocoa app that uses a WebView to display an HTML interface. How would I go about calling an Objective-C method from a Javascript function within the HTML interface?...
I would like to implement same functionality as Gmail has nowadays. When new email arrives or new chat comes, notification popup appears and if you click it, the tab with Gmail gets focussed.   I have this code:  var n = window.webkitNotifications.cr...
I was trying to answer an issue with custom drop down, but challenged by an inconsistent behavior in Chrome and FF.  DEMO: http://jsfiddle.net/fyeht/ [Added scroll event for more clarity]  See below image, The list items can be navigated using arrow...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.