Showing posts with label cross-browser. Show all posts
Showing posts with label cross-browser. Show all posts

Sunday, May 13, 2012

What is the Rolls-Royce way to deploy a Java applet?


I know how to deploy an applet using applet , object , embed tags and JavaScript , but I'm after the best approach (in terms of end user experience).

Detecting a image 404 in javascript


After a user uploads a file we have to do some additional processing with the images such as resizing and upload to S3. This can take up to 10 extra seconds. Obviously we do this in a background. However, we want to show the user the result page immediately and simply show spinners in place until the images arrive in their permanent home on s3.

How to check if a css rule exists


I need to check if a css rule exists because I want to issue some warnings if a css file is not included.

Thursday, April 19, 2012

Getting URL of executing JavaScript file (IE6-7 problem mostly)


Hey all, I've been trying to throw together a generic function that retrieves the absolute URL of an executing JavaScript file on a web page:

Thursday, April 12, 2012

Get the browser viewport dimensions with Javascript


I want to provide my visitors the ability to see images in high quality, is there any way I can detect the window size (or better yet, the viewport size - see green area ) of the browser with Javascript?

Friday, April 6, 2012

Cross-browser method for detecting the scrollTop of the browser window


What is the best cross-browser way to detect the scrollTop of the browser window? I prefer not to use any pre-built code libraries because this is a very simple script, and I don't need all of that deadweight.

Monday, February 13, 2012

Can you bind two events to a handler with jQuery?


(By the way, a quick experiment indicates that the answer is "yes", but it might be "it doesn't work in every browser".)

Monday, January 16, 2012

JQuery issue with no response from server (localhost) with different browsers


I have what is a simple script to retrieve a simple message (string) from server and it appears there is no response from server, so I am wondering if JQuery is even firing off a request at all?

Thursday, January 12, 2012