browser

How to abort the loading of an external HTML resource, from JavaScript?

I'm writing a JavaScript widget, which is intended for use on other website and loads additional script files from my own web site (which basically means no XHR due to cross-domain limitations). Now I want to handle failures gracefully - if one script fails to load, I want to load the script from an alternate server. I managed to handle...

Specifying Compatibility Modes on a Per-Page Basis for IE8

I have a strange issue with a Telerik RadWindow that only occurs in IE8. It works fine when I force the browser to use Document Mode: IE7 Standards. I am trying to specify IE7 compatibility mode on a Per-Page Basis for just one page in my site. using <head> <!-- Mimic Internet Explorer 7 --> <title>My Web Page</title> <me...

What's the best MIME type for video on the web?

I'm the admin for a large media intensive site. We've done some experimentation with our video MIME types. We've alternated between forcing the download using Content-Disposition: attachment + Content-type: application/octet-stream and actually returning the proper MIME type. We've had complaints either way we set it up. With the prope...

Minimize browser window using javascript.

Is there a javascript or jQuery method to minimize the current browser window? ...

Elinks or Lynx?

Please, state your reasons for your terminal browser. Why are you using Lynx or Elinks? How do they help you in programming? ...

What quirks are in the Blackberry Web Browser that a developer should be aware of?

Before I start pulling my hair out on any "known issues", is there any quirks or problems that I should be aware of. Specifically with cookies, JavaScript, HTML, CSS and images. PS I have a copy of the docs provided by RIM, but I'm hoping others know of some lesser known issues. ...

Is it possible to detect East Asian language support?

I'm working on a javascript memorization game that requires that japanese characters to be displayed. Is there a cross browser way(s) of detecting support for asian languages, or japanese specifically? window.navigator.language will be set to the language of the browser but misses out people who don't set japanese as their browsers lang...

What are some of the methods that can be used to avoid a page being cached by the browser?

I have a user that is trying to view the questions of an online exam. During the exam they select 1 of 4 answers and click "Answer". For this user it seems to load the same page/question over and over again, where as it should advance to a new question after every question answered. My guess is that it's caching, but it doesn't seem to b...

Why is innerHTML = "" slow in Firefox

I am testing the speed of different methods to dynamically add html elements to the DOM. I've build a tester here (code is working version, so pretty sloppy). The results are (very) different for different browsers with Chrome getting all the points for speed, and Opera a good second - but that's not the question here. In Firefox I det...

Why is array.push sometimes faster than array[n] = value?

As a side result of testing some code I wrote a small function to compare the speed of using the array.push method vs direct addressing (array[n] = value). To my surprise the push method often showed to be faster especially in Firefox and sometimes in Chrome. Just out of curiosity: anyone has an explanation for it? You can find the test ...

Blackberry launch native web browser

How can i open a url from BlackBerry? in j2me i'm use: this.platformRequest("http://www.google.com"); How can i do on BB? Thk!!! ...

javascript hangs browser

xmlDoc.load("cd_catalog.xml") var cd=xmlDoc.getElementsByTagName("CD"); var id_set=1; var id=xmlDoc.getElementsByTagName("ID"+id_set); i=0; function next() { if (i<id.length-1) { i++; display(); } } function display() { document.write('<div class="dd">') document.write('<div class="blue" style="WIDTH:') document.w...

Running Activex control and Maintaining security

Hi Techies, In my a web application, I have a part to invoke an activex control .The Activex control is available in all the client PCs who are accessing my web application from web server. But When trying to run this ActiveX control from the browser in client machine (using Wshell), It was not getting invoked since "Run Activex Control...

How to simulate double click in Firefox or Internet Explorer

Are there any plugins out there that will simulate a double click in any of the major browsers? I'm trying to test some code that prevents double clicks on form submission buttons, and would love to be able to either use a hot key or the middle mouse button to send a double click to the browser. Thanks Don ...

Checking browser's language by PHP?

How can I check the language of user's browser by PHP? I need to show a different page for people in US and in UK. I tried the following code unsuccessfully <?php if(ereg("us", $_SERVER["HTTP_ACCEPT_LANGUAGE"])) include('http://page.com/us.txt'); else include('http://page.com/uk.txt'); ?> I run a specific code for people in US...

'Back' browser action in Ruby on Rails

Can the 'Back' browser functionality be invoked from a Rails 'Back' link? ...

Unexpected JavaScript Actions reported by my Users

Hello all, My users keep complaining that a link does not show up for them. For me, I have tested this on several browsers and it works for me. What should happen is that a process is started via AJAX using JQuery and once that is done I keep checking with the server via AJAX how much of the process has been done and once the process i...

How to detect Render Mode of browser for current page?

I know that modern browsers generally have two render mode: standard mode and quirk mode. The browser detects the heading DocType. The question is how to detect render mode of current page at runtime. Is there any Firebug tool to do that? ...

How to tell if a browser is in "quirks" mode?

Let's you have a page with a relatively strict doctype and HTML markup that's pretty close to compliant, but perhaps misses in a few silly ways that are out of your control. How can you tell (or: what will determine) when the browser decides to go into "quirks" mode rather than use it's more standards compliant engine? I'm looking ...

Tab order issue in IE with initial Javascript select of field in form

I'm trying to achieve the following behaviour in html: user is presented with a form involving several text fields. The fields are populated with default values, but in many cases the user will wish to enter their own. When the page loads, the value in the first field is selected, so the user can either replace it by simply starting t...