browser

DOM Window unload event, is it reliable?

Can I rely on the window unload event to be triggered when a user closes a tab/window/browser? Edit: Found a list of what triggers the unload event in IE. http://msdn.microsoft.com/en-us/library/ms536973%28VS.85%29.aspx I would like to know in which edge cases the unload event won't be triggered. ...

Is there a good analogy to explain why website reliance on non-standard IE tags will go down in future years?

I'm trying to explain to a non technical person, why certain websites (generally ones whose user base exist solely in countries where Microsoft owns more than 99% of the market share) fail to load in Safari or even Firefox (specially on Macs). Such users generally wonder why anyone would even think of buying a Mac, when it doesn't even l...

http response message

I want to know that when browser sends a request do the server sends back the contents explicitly? And how would i confirm it? ...

Javascript to open multiple tabs in single browser

Hi, Does anyone know how to open multiple URL's in a single browser. Instead of opening multiple windows, I want the urls to open in tabs in IE. I am trying to approach this using JavaScript. Thanks in advance. ...

JFrame disappear behind applet's browser window

My app is a JApplet which opens a JFrame. the applet has a listener and a button, so that if the frame goes behind another window (looses focus), the user can simply click the button to get it to come to the front. frame.toFront(); This works fine. But initially (in the applet's public void init() {}), after calling frame.setVisible(tr...

reading a url and getting back a csv file

i have a URL and when i load it up in a browser it recognizes it as a csv file and pops up excel "do you want to open". I want to do this programatically so i can have a winforms app use that url and parse the csv file directly. what is the quickest way to do this? EDIT: i tried using WebClient and i am getting the folowing erro...

YUI Browser History Manager (or similar) with multiple IFRAMEs

I've got a page with an iframe that I'm trying to track the history with using the YUI Browser History Manager. I have two IFRAMEs on the page, one for the manager and one which I'm using to navigate. The issue I'm running is to is that after I've navigated the frame a few times and the back button is hit for the first time, the YUI ma...

Is there a 0-width way to prevent floated divs from collapsing

First, this issue is not about block elements collapsing when their children are floated. In fact the issue has nothing to do with clearing at all. The issue is this. Suppose I have a series of floated divs like: <div class="column">Column 1</div> <div class="column"></div> <div class="column">Column 3</div> With css: div.column {...

is it possible to read something.properties using javascript ? (in a .hta file) >> to read in Selenium

I am using Selenium to do testing, We write our test cases in html files and make test suites out of them, our requirement is to write test cases that are robust enough to change themselves as per the test environments. for this, I prefer not to enclose specifications such as urls to open, text to search for on screen, etc in the html s...

How can I make HTML safe for web browser with python?

How can I make HTML from email safe to display in web browser with python? Any external references shouldn't be followed when displayed. In other words, all displayed content should come from the email and nothing from internet. Other than spam emails should be displayed as closely as possible like intended by the writer. I would like...

Stopping jQuery Jumping to Newly Loaded Content.

I have a div with is replaced upon certain user actions. These actions are performed under the div that is being replaced and in the case that the div is too large to fit completely into the view window, along with the buttons used to change it underneath, the browser will jump to the top of the newly loaded div. Which is annoying. Doe...

CSS Editor with ability to preview in IE6, IE7, Safari 3?

I realize the question of a good CSS editor has been asked dozens of times here on StackOverflow. However, I am specifically looking for one that has preview functionality for a variety of browser rendering engines. Most importantly, it MUST be able to render IE6, IE7, and Safari 3.0. Price is not a factor. I have been looking at Aptana...

Changing the address of the opener window in IE8

From a child popup window (opened using window.open), I am trying to change the URL of the window that opened me, e.g. window.opener.location.href = 'http://www.google.com'; In all browsers this works wonderfully, except for IE8 (and I am somewhat sure it worked in previous IE8. Maybe a security update kills this). In IE8 what happens...

Understand (via javascript) if the current page is reached using browser's history

As the title: there is a way in wich I can know, client side, if the current page is shown by navigating the browser's history, or following a link, or by a postback? ...

Various browsers / Drag & drop between favourites bar & edit boxes

Briefly, all of the up-to-date versions of the three browsers that I use day-to-day, namely Chrome, Firefox and IE, make it possible to drag links to the favourites bar. What I really want is to be able to show job seekers that they can drag RSS feeds for job searches from any of a number of big job boards such as Monster.com to the sub...

web services access not being reached thru the browser

I am trying to reference my .asmx webservices in .NET but my server is not exposed to the internet. When I put on the following address I get the message mentioned below. What's the reason for not being able to see the directory? Am I missing something in my IIS configuraction? Am I missing anything in my permissions? Just as reference ...

Is there a way to determine if Flash has cached an object?

Greetings, I am writing a networked flash application. The server (an independent C++ app) sends resources for the flash client to manipulate and/or display, eg, images and sound. I'm assuming that the browser stores these resources in its cache. Since the resources can be pretty big, I don't want to resend them from the server each ...

Is it possible to drag and drop files from local file system into a Flex application?

Hello, I would like to know if it is possible to create a Flex application accepting the drop of local files? The aim is to only retrieve the full path/name of the file in the local file system. Google results are mainly about dragging and dropping items inside a flex application. Thank you in advance. ...

Should web-browsers allow to clear(expire) cache programmatically ?

Currently browsers have incomplete caching implementation. It only allows to set expiration or keep immediate expiration. Important 3rd option to expire cache programmatically is missing. Without that 3rd option developers cannot deploy new version of code efficiently and reliably. If they use 2nd option it is inefficient if they have ...

Ampersand using Javascript & PHP

I'm trying to redirect a page using javascript output using php. The problem I'm having is passing the ampersand as you can see below. Input $url = 'number=1&id='.$usrid->id; echo "<script type='text/javascript'> window.location = 'directory?$url'; </script>"; Output The above return on browser address bar this: http://www...