browser

"javascript:" on browser won't change the type.

look at this code, <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script> function change() { document.getElementById("myInput").type="text"; } </script> </head> <body onload="setTimeout('change()',2000);"> <input type = "button" id="myInput"> </body> </html> now, my button becomes text box after 2 sec...

using Silverlight 3's HtmlPage.Window.Navigate method to reuse an already open browser window

Hi, I want to use an external browser window to implement a preview functionality in a silverlight application. There is a list of items and whenever the user clicks one of these items, it's opened in a separate browser window (the content is a pdf document, which is why it is handled ouside of the SL app). Now, to achieve this, I si...

Regexp that matches user-agents of end-user browsers but NOT crawlers with >90 % accuracy

I'm trying to construct a regexp that will evaluate to true for User-Agent:s of "browsers navigated by humans", but false for bots. Needless to say the matching will not be exact, but if it gets things right in say 90 % of cases that is more than good enough. My approach so far is to target the User-Agent string of the the five major de...

How can I verify that javascript and images are being cached?

I want to verify that the images, css, and javascript files that are part of my page are being cached by my browser. I've used Fiddler and Google Page Speed and it's unclear whether either is giving me the information I need. Fiddler shows the HTTP 304 response for images, css, and javascript which should tell the browser to use the cach...

How to use in jQuery data from window.open

How to use in jQuery data from window.open w = window.open("http://google.com", 'test_window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=1'); browser = w.document; // execute commands in browser $(browser).ready(function(){ alert($('input', browser).attr('name')); }); // close bro...

capture browser restore option

Hi! How I can capture browser restore/maximize event in jQuery or javascript? We can use window.onresize but that only tells that the browser is resized. thanks! ...

Opening response stream in silverlight

Hello, I am attempting to return a image from a server using Silverlight 3. The server returns the Response stream like this: context.Response.ContentType = imageFactory.ContentType imgStream.WriteTo(context.Response.OutputStream) imgStream.Close() context.Response.End() On the Silverlight client I am handling the stream like: ...

Inline base64 encoded link not working in Firefox

I have this link: <a href="data:application/pdf;base64,JVBERi0x...KJSVFT0YK">PDF</a> In Safari on MacOsX, clicking the link instantly opens the PDF. In Firefox 3.6.2, it doesn't. When I choose Download, it saves it as "u7WYuJME.pdf(2).part", which is a valid PDF file. When I choose "Open with Preview", it downloads it but does not ope...

browser ctrl-f find and non-visible text

Can the browser feature of contrl+F to find text be integrated with text in popup windows. I'd like to have some scientific reference information given when someone hovers over a species name in a web page. Generating the popup, tooltip style text is no problem, the problem is that anyone using Ctrl+F won't be able to find it, or if I ...

How can I monitor the rendering time in a browser?

I work on an internal corporate system that has a web front-end as one of its interfaces. The web front-end is served up using Tomcat. How can I monitor the rendering time of specific pages in a browser (IE6)? I would like to be able to record the results in a log file (separate log file or the Tomcat access log). EDIT: Ideally, I ne...

ASP.NEt Tabbing Order lost when scrolling in IE

Hi Guys, I have a ASP.NET web page that contains many textboxes. Each textbox has a tabindex set. When I am tabbing through the textboxes, if i decide to click on the scroll bar to navigate the page up/down then return tabbing the tab order is reset. The tabbing begins at the start. I am using VS2008 and the browsers causing the pr...

How to prevent multiple browser windows from sharing the same session in asp.net.

I have ASP.net application that is basically a data entry screen for a physical inspection process. The users want to be able to have multiple browser windows open and enter data from multiple inspections concurrently. At first I was using cookie based sessions, and obviously this blew up. I switched to using cookie-less sessions, whi...

Browser that does refactoring in Smalltalk Pharo?

The Pharo dev image ships, by default, with a browser that doesn't seem to have any refactoring abilities. What's the most convenient way to transform a fresh Pharo image into something more useful? ...

scroll into view the selected element

hi all, i am new to javascript.. i have two select boxes with multiple selection enabled.When i select an element from first select box it scrolls into view the corrosponding element from the second list.The single selection goes fine in all browsers explorer,firefox,chrome. now, if i select the first,last element from the first select...

What is cached on a client machine when using https.

I have an application that is working on https for everybody and on http for all but two users. The two users get a JavaScript error when trying to "edit" a page while on http but can edit the page on https. The problem is for occurs for both IE6 and FF3.6 for one of these users. Others have no problem using any browser. I have used ...

Determine which DOM elements the current text selection contains

I want to be able to find out which DOM elements are present in the text currently selected by the user in the browser. document.getSelection() would get us the currently selected text. But how can we determine which DOM elements are contained in this text selection? ...

Open Browser Window with Ruby?

How do I open a browser window (Safari) with Ruby on a Mac and pass it a url? ...

shortcut icon doesn't shown in IE

when i write <link rel="shortcut icon" href="http://localhost/kino/img/clapperboard-icon.ico"&gt; it doesn't show an icon in IE! works fine in other browsers. could you tell me why? thanks ...

How to get URL, tab number, browser name/number with Qt?

I'd like to monitor activity on browsers, creating a list with URLaddress, browser number (if have many opened at the same time) and tab number (if there are more than one tab opened). How to do it with Qt 4.6? ...

Is IE Collection reliable tool for testing with various versions of Internet Explorer?

On my Windows machine -- I typically test different versions of Internet Explorer using an array of Virtual Machine instances (which obviously requires a fair amount of investment in time and money). In a pinch I have also used IETester -- which at times can be a little unreliable. However, I just discovered IE Collection and was wonde...