browser

Automated browser testing: How to test JavaScript in web pages?

I am trying to write an application that will test a series of web-pages programmatically. The web pages being tested have JavaScript embedded within them which alter the structure of the HTML when they complete execution. It is then the goal to take the final HTML (post-execution of the embedded JavaScript) and compare it against a know...

Checking JRE version inside browser

Basically, I'm wanting to figure out the best way to check the user's JRE version on a web page. I have a link to a JNLP file that I only want to display if the user's JRE version is 1.6 or greater. I've been playing around with the deployJava JavaScript code (http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.ht...

Browser plugin which can register its own protocol

I need to implement a browser plugin which can register its own protocol (like someprotocol://someurl) and be able to handle calls to this protocol (like user clicking on 'someprotocol' link calls function inside my plugin). As far as I understand, Skype does something similar, except I need to handle links within page context and not in...

Website not available unless www is in front of the url in Chrome browser are there any tricks to fix this?

My website is accessible without www in the front of it in Firefox and Safari however for some reason it is not in Chrome. Is there anything that I need to change on my website host or in the html to make it accessible? ...

Why html frame behave differently in Firefox and IE8 ?

I use html frame on my webiste, it's been running for I while, usually I only use Firefox to surf the net, my site looks and functions ok, but today I suddenly found IE8 has a problem with the frame on my site, if I click on the top menu items, it's supposed to display the content in the lower part of the frame, it does this correctly in...

How to insert a script into html pages before they will render? (Adobe Air 2)

So I have a simple HTML pages browser in air (using Default one) I give it a link it renders out Page I use code like this (Flash builder) <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xml...

SWT Browser Drag and Drop

I'm trying to use drag-n-drop with an embedded SWT Browser, so that my application can drag hyperlinks from the Browser to another Control. I've been able to set up the destination to receive data from an external browser, but the internal does not seem to participate in the drag-n-drop. Any ideas? I would guess that I need something ...

Refresh page in browser without resubmitting form

I'm an ASP.NET developer, and I usually find myself leaving the webpage that I'm working on open in my browser (Chrome is my browser of choice, but this question is relevant for any browser). My workflow typically goes like this: I write code, I rebuild my project in Visual Studio, and then I flip back to my browser with Alt-Tab and hit ...

How to detect an application is installed from Google Chrome ?

This is related to http://stackoverflow.com/questions/291704/detect-from-browser-if-specific-application-is-installed but different in the way that the application I want to detect is not a plugin. I own the software and I can do things in the setup. Under IE and Firefox I can detect it through the mimetypes, but the mime type doesn't s...

Why navigator.appCodeName returning Mozilla?

I am using the browser Firefox and IE. I have run the java script program. In that I was found both the browser code name is showed as: Mozilla. Why? The code is <script type="text/javascript"> document.write("Browser CodeName: " + navigator.appCodeName); </script> ...

Browser compatibility; Before or after uploading website to server?

I am on the stage where I need to make my website cross-browser compatible. I need tips on how to get started. I have developed my website on firefox, so it works great with firefox. I guess I have to download a couple of versions of all major browsers now, right? Then just test each browser one by one? Should I do this before uploadi...

Which software is best for browser compatibility testing?

Which software is recommended? I know of Adobe Browser Lab only, and it seems pretty new... Is there any better SW out there? Thanks PS: I have a classifieds website (PHP, MySql, Solr, js) developed on local computer using virtual server etc... Now I need to test it on different browsers. It is developed only with Firefox, so it works...

How do web browsers display progress bars if they don't know the file size?

I'm writing a download manager, and I've noticed that all the web pages I've encountered don't seem to set the ContentLength header, whereas other media types (images) do. However, when I load a page (in Firefox), I get a progress as it loads. What's that based off if not file size? ...

Detecting browser capabilities and selective events for mouse and touch

I started using touch events for a while now, but I just stumbled upon quite a problem. Until now, I checked if touch capabilities are supported, and applied selective events based on that. Like this: if(document.ontouchmove === undefined){ //apply mouse events }else{ //apply touch events } However, my scripts stopped working ...

How do i play H264 video?

Hi, I have received the following video file from a camera (from security camera) http://dl.dropbox.com/u/1369478/tmw/recording.264 How can i view the content? Based on extension i think that is a H264 file. Is there a way to play this on the browser with HTML5? Regards ...

Has form post behavior changed in modern browsers? (or How are double clicks handled by the browser)

Background: We are in the process of writing a registration/payment page, and our philosophy was to code all validation and error checking on the server side first, and then add client side validation as a second step (un-obstructive jQuery). We wanted to disable double clicks server side, so we wrote some locking, thread-safe code to h...

Lightweight web browser for testing

I have e very specific test setup in mind. I would like to start a web-browser that understands Javascript and can use HTTP proxy, point it to a URL (ideally by specifying it in the command line along with the proxy config), wait for the page to load while listening (in the proxy) requests are generated as web-page is rendered and Javasc...

jquery image hover popup cant detect browser edge and change its direction

hi guys i am trying to implement jquery image hover popup but facing a problem when the popup is closer to browser edge it goes beyond its edge i want it to change its direction when it finds that space is not enough to show that popup, i have see this effect in many plugins where popups, tooltips and drop down menus change their direct...

Is there any technology to kill the user login session if user close the browser?

This should work if multiple windows are open. My application is in J2EE. I already tried some javascript like on window.unloadn but this kind of solution is not solid. ...

Why don't web browsers have built in validators?

As far as I know there is no web browser with built in validators for HTML, CSS and JavaScript. Developing web pages without validation is like using a compiler that doesn't do syntax analysis. Even Firefox with its excellent plugins aimed at developers like Firebug lacks plugins for CSS and JavaScript validation. Wouldn't it be useful t...