browser

CSS renders Input in firefox mac diffrent then firefox PC. can i detect OS via javascript? or maybe a CSS hack?

I have a input[type="text"] the that has padding applied to it behaves differently in firefox PC then on a mac. Any hacks that can target firefox PC? These styles are what its seen on firefox PC firebug .searchContainer input { border-color:#7C7C7C #C3C3C3 #DDDDDD; border-style:solid; border-width:1px; color:#555555; fl...

How can I test potentially "browser-crashing" JavaScript?

I've been having a crack at some of the problems over at http://projecteuler.net/ with JavaScript. I've been using a simple html page and running my code in script tags so I can log my results in the browsers' console. When experimenting with loops I sometimes cause the browser to crash. Is there a better environment for me to do this ...

How to detect if a web URL contains a feed or not?

I have seen in some browsers (Firefox for example), the RSS feed icon gets activated only when a page contains a RSS/Atom feed. How the browser detects whether the page contains a feed or not? ...

How to obtain the default browser without registry lookup in .NET ?

Does anybody knows a way how to get the default browser without doing a lookup on the registry using the .NET framework? ...

Browser User Agent

I am making an embedded mobile browser with qtwebkit and I want to set user agent by which I always get basic HTML version of gmail. ...

What conditions cause a web browser to display the "Page Expired" message?

I assumed that sending a page out with an expiry (a la)... Response.Cache.SetExpires(System.DateTime.Now.AddSeconds(5)); Response.Cache.SetCacheability(HttpCacheability.Public); Response.Cache.SetValidUntilExpires(true); ...would mean that if the user hit the back button they would see the "Page Expired" message. It does ...

shell tool which renders web site including javascript

Hi, we want to test our webpages on linux shell. For that reason I'm looking for a shell tool, which gets the html page from server (like 'wget') and then executes contained Javascript, include pictures and so on. After this, the tool should give me a 'screenshot' of the rendered page, so that I can create a checksum for that screen. (So...

Images with unknown content: Dangerous for a browser?

Let's say I allow users to link to any images they like. The link would be checked for syntactical correctness, escaping etc., and then inserted in an <img src="..."/> tag. Are there any known security vulnerabilities, e.g. by someone linking to "evil.example.com/evil.jpg", and evil.jpg contains some code that will be executed due to a ...

Different positioning in Firefox, Internet Explorer and Safari?

Hello, I believe this question has been asked a lot of times, and I have managed to overcome this problem before whenever it occurred. Just now, I feel stuck with it and can't find a proper solution to make it work in all browsers: it does work properly only in Firefox, while in IE and Safari its elements are somehow apart from each oth...

Why would an ASP.NET site become veeeeeery slow after the network connection dropped?

I have an ASP.NET 3.5 site published in IIS 7.5 on Windows Server 2008 R2 64 bit. The pages are accessed over SSL One of our testers has determined that if, during a postback, he blocks network access on his PC, and then after a few seconds reconnects, our site becomes excruciatingly slow. Like 30 seconds per page load. If he hits the ...

Re-send POST request easily - what tools?

I am looking for an easy way to re-send POST request to the server within the browser mainly for debug purposes. Say you have a XHR request which contains POST parameters that is to be send to the server. After having changed the script on the server side, you would like to resent the very same request for analyzing the output. What too...

embedded web browser

Hi, I'm looking for Linux embedded web browser, or preferably just a rendering object (it will not be used for actual browsing, just for displaying web based gui). The requirements are: Written in C/C++ (small footprint) Support Dynamic HTML Support Java script Minimum dependencies on the libraries (although i understand that it ...

Controlling a browser from Python

I am looking for a way to control a browser from Python, i.e. fill out form fields and submit them, possibly call JS functions. I've looked around a bit, but as far as I could see PyWebKitGtk only lets you show the browser as a GUI element, not interface with it. Is there a way to do this easily? I wrote my program logic in Python, an...

Overview of mobile browsers and their features?

I'm looking for a comparison of the features of mobile browsers. Most interesting are the default preinstalled browsers. I would love a matrix that shows what device line can do what with their preinstalled browser. There is a list with rendering engines on wikipedia but there should be differences appart from the rendering right? I a...

static images aren't caching with php-generated page

Our website was just converted to being generated by mod_rewrite and php scripts. Images aren't caching in browsers when they seemingly should be. All images follow format: <img src="/images/header.png" /> I must avoid the script completely caching because the PHP parser needs to handle each page dynamically on each request; however,...

How to change URL in the address bar of a browser?

Hi I bought to domains, let's say a.com and b.com. Then I also bought some webspace from a hoster. The domain a.com is pointing to the top level folder of my webspace (/). The domain b.com points to a folder on level deeper (/folderB). Now if I'm using the domain b.com to access /folderB it works as intented. Then I installed a small C...

CSS: Hidden elements still take up space on printed output

I'm using css to only print a section of a page: body { visibility:hidden; } .print { visibility:visible; background-color: white; margin: 0; } The section above the element I want to print gets properly hidden in the print output, however it still takes up the area of space. I tested this by making a ...

Best way to sign data in web form with user certificate

We have a C# web app where users will connect using a digital certificate stored in their browsers. From the examples that we have seen, verifying their identity will be easy once we enable SSL, as we can access the fields in the certificate, using Request.ClientCertificate, to check the user's name. We have also been requested, howev...

Opera Browser: prevent mousewheel scrolling?

I just build a website that works good on any browser even ipad but in Oper ai noticed a weird thing: the website is built with a div layer on top zindez:999, body is overflow:hidden, and you cant scroll, but underneath the div there is a long text that goes way underneath the viewport... the strage thing is that even if any browser i ...

Change browser proxy settings from Python?

I have written a program that relies on a proxy to function. I now need a script that will check to see if the browser is set to use the right proxy, and if not, change it to use it. I need this implemented for as many browsers as possible, but is only required for Internet Explorer, Google Chrome, Mozilla Firefox, Safari and Opera. I am...