browser

How can I detect when the mouse leaves the window?

Hi, I want to be able to detect when the mouse leaves the window so I can stop events from firing while the user's mouse is elsewhere. Any ideas of how to do this? ...

Paragraph tags in Conflict with Meyer's Reset in IE7?

Working on a rather small, and simple layout, I decided to use Meyer's CSS Reset rules to clear some of the expected discrepancies between browsers. All was working fairly well until I decided to add a few paragraphs into a couple nested divs. Once I placed the paragraph-tags within the second nested div, the background images of both t...

Is there standard file names for Terms of Use / Privacy Policy?

Are there standard file names for Terms of Use and Privacy Policies? For some reason, I remember that Internet Explorer and possibly other browsers used to look for them on the current website, and display a little warning icon... ...

Odd behavior - SWT Browser on Mac OS X

This is a strange behavior, and hard to explain without a picture, so I will try my best. My application has an embedded SWT browser widget, and the application is cross platform. It works perfect on Windows, but need to support Mac OS X 10.4 and above. The browser widget is within a composite on the right side, and a file tree within a...

Alternatives to JavaScript

At the moment, the only fully supported language, and the de-facto standard for DOM tree manipulation in the browser is JavaScript. I just started playing with this language, so I don't know much of it, but after reading some stuff around, looks like it has deep design issues that make it a minefield of bugs and security holes for the no...

jQuery / JS animation screwed up (Firefox/IE)

edit: Problem seems not to be limited to IE, see my answer post below for a testcase. Hello, I am rotating between 3 different background images on a logo: $(function() { function Animate_2() { $("div#bg1" ).animate({opacity: 0 }, 2000); $("div#bg2").animate({opacity: 100}, 2000); setTimeout(Animate_3, 5000); ...

Hide Image Title Tool Tip Popup on Mouse Rollover or Hover

Hello, I'm hoping I can get this question answered here... I have a client who wants to add a PayPal "Add to Cart" button inside a Lightbox window. I was able to achieve this by placing the PayPal code inside the image title tag. Not sure if this was the best way, but it worked. However, here is my problem... Now when you mouse over...

How can I 'force download' a file that has been generated entirely in Flash?

If I'm generating a binary file inside Flash Player, how do I pop up a 'Save' dialog for the file without sending it up the the server first? I'm sure I heard this was a new feature in Flash 10. Cheers, James ...

Embed a web browser within a java application

how can i embed a web browser within a java application? Thanks, David ...

Does anyone have a a browser XSLT comparison chart?

Hey, I'm about to start developing a web app and require the use of XSLT to transform DITA files to HTML. Is the XSLT specification adhered to with all browsers, or there any quirks (much like the HTML spec in IE)? If so, does anyone have any information regarding the "quirks"? Thanks, Simon ...

New lines and browser/OS compatability

I have a form that accepts a list of values, each value being listed on a separate line of textArea. In my Servlet, I am tokenizing the string I recieve from that textArea based on the new line characters "\r\n", like so: String[] partNumberList = originalPartNumberString.split("\r\n"); This appears to work fine. I get an array of val...

How to keep PHP 'View Source' html output clean

This has been bugging me today after checking the source out on a site. I use PHP output in my templates for dynamic content. The templates start out in html only, and are cleanly indented and formatted. The PHP content is then added in and indented to match the html formating. <ul> <li>nav1</li> <li>nav2</li> <li>nav3</li> </ul>...

asp.net file browser dialog box and Connection Interrupted

update - if I remove the runat="server" this does not happen...then how do I get the value of the dialog back to the code behind Scenario goes like this. I have this code on my page <input type="file" id="ID" runat="server" /> <asp:Button ID="btn" runat="server" Text="click me you chump" /> when I browse to a large file (200mb) and t...

JavaScript being loaded asynchronously in Firefox 3 (according to Firebug)?

I'm trying to profile the performance of a web site that I'm fairly confident is being slowed down by the loading of JavaScript files on the page. The same JavaScript files are included several times on the page, and <script /> tags are scattered throughout the page instead of being included at the bottom. As I suspected, when looking ...

How to display a print preview of an HTML document

I need to display some HTML content as it will be printed. Basically, I want to emulate the browser print preview feature. I'm not sure how to do this just with HTML/CSS/JavaScript. The only solution I came up is to convert the HTML to PDF so it´s split into pages and then convert that PDF to images and print each image one bellow the ...

Disabling Browser's "save password" feature on auth failure

I'm looking for a server-side implementation to disable a browser from saving invalid login credentials. For example, user "foo" logs in with password "bar". Browser asks foo if he wants to save the password. However, foo's password is actually "baz" and therefor would be saving the incorrect password. I've tried manipulating the HTTP c...

IE7 Not Playing Nice with My Floating Sidebar

I'm trying to get a dynamically sized sidebar to float in the upper right portion of my web pages (but below the header and nav) and have the main content on the page flow around it (sort of in an "L" shape except with the bottom part of the "L" really thick). The width and height of the sidebar will vary from page to page so I can't us...

How best to convince people to upgrade IE?

I recently asked a question that got shot down for being too strongly worded. I'm having another go today because it's something I really am concerned about and I really do want feedback and ideas from the smart people on SO. IE6 isn't quite the bane of my existence, but it's close. I'm a web-developer and spend too much time fixing thi...

Does body.onload wait for IFrames?

I know that onload event waits for page resources to load before firing - images, stylesheets, etc. But does this include IFrames inside the page? In other words, is it guaranteed that all the child Frames' onloads will always fire before the parent's does? Also, please let me know if behavior varies between browsers. ...

GWT unsupported browser warning

I want to display a message to users with unsupported browsers, as opposed to having the site fail in an ugly manner. What's the best way to do that? ...