cross-browser

webservice.htc, moz-behaviors and Firefox 3.

Whilst trying to get our app working in Firefox (I'm a big proponent of X-Browser support but our lead dev is resisting me saying IE is good enough). So I'm doing a little side project to see how much work it is to convert. I've hit a problem straight away. The main.aspx page binds to a webservice using the IE only method of adding beh...

<q> element not identified in IE 6.0

I have used this in my HTML: <q> Hai How r u </q> Which shows the text in quotes, like "Hai How r u", for example. This is working fine in FF but not in IE 6.0. Please let me know why this happens, and any solutions you might know of. I don't want to use the quote (") character in my HTML or a separate css file for this. ...

Setting uniform <input type="file"> width in all browsers

What combination of CSS or attributes are needed? ...

Regular expressions: Differences between browsers

I'm increasingly becoming aware that there must be major differences in the ways that regular expressions will be interpreted by browsers. As an example, a co-worker had written this regular expression, to validate that a file being uploaded would have a PDF extension: ^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.pdf)$ This works in In...

debug Intranet ASP.NET Applications for Safari

Hello, I have an asp.net intranet application for booking jobs and a phone index. Now most of my users are fine as they are using Firefox and or Internet Explorer. I have a user who can only use Safari and for some reason when we navigate to the intranet app, Safari seems to do a lot of loading then finally says; "Safari could not open...

Best approach for fixing CSS issues to work with IE 7

Recently, I started maintaining a web application which unfortunately works only with IE 6. Most of the issues are related to CSS. Is there any tool which can help me standardize the CSS classes to work with both IE 6 and IE 7? I understand I have to go through standards but I need something to start with quickly. Firebug can help me t...

Relative positioning in Safari

It has to be simple, here's my CSS: .progressImage { position:relative; top:50%; } .progressPanel { height:100%; width:100%; text-align:center; display:none; } <asp:Panel ID="pnlProgress" runat="server" CssClass="progressPanel"> <asp:Image ID="Image1" runat="server" CssClass="progressImage" ImageUrl="~/Images/Icons/loading.gif" ...

What is JavaScript's Max Int? What's the highest Integer value a Number can go to without losing precision?

Is this defined by the language? Is there a defined maximum? Is it different in different browsers? ...

Embedding text/html in an Object (instead of an iframe)

<iframe data="/localfile.html" type="text/html" width="200" height="200"></iframe> <iframe data="http://example.com/remotefile.html" type="text/html" width="200" height="200"></iframe> <object data="/localfile.html" type="text/html" width="200" height="200"></object> <object data="http://example.com/remotefile.html" type="text/html" widt...

Javascript: how do I determine if a link targets the same domain as the page it resides on?

For the purposes of tracking non-HTML documents via google analytics, I need the mentioned algorithm. It should: not hard-code the domain ignore the protocol (i.e. http/https) not worry about the presence/absence of "www" (any absolute links WILL prefix with "www" and all pages WILL be served via "www") This is complicated by the fact ...

jQuery Cross-Browser Performance Issues

I am wrapping up a project in which I used jQuery for the first time. I loved working with the library, and thought I understood one of the benefits was cross-browser compatibility. I had an unpleasant surprise waiting for me when I began testing the site in IE6 and IE7 because in many many instances, the JavaScript (which is not terribl...

Silly and frustrating cross browser UI issues

Has anyone spent several hours to get the UI of their application render correctly in all the browsers? How do you tackle the frustration when simple styles tend to work in one browser but not others..and end of the day you invent the hack to handle it (in some cases that too does not happen), only after wasting your time? I will wait ...

HTML form submission in Opera

The HTML form shown below does not work as expected in Opera (Version: 9.52). The form does not have an onsubmit attribute nor does it have an input element with type=submit. It just has two input elements of type=button and both of them onclick calls a js method where I want the user to confirm the submission. If I remove the confirm() ...

-moz CSS properties and browser support

As of right now I believe only Firefox support -moz-border-radius property. I am surprised that twitter uses it. Are any other browsers planning on supporting this or does CSS3 have something like this in the works? edit:// also found -webkit-border-top-left-radius and then the CSS3 version So when is CSS3 coming out? ...

If IE didn't exist, what css, js or html features could we use that currently are not really usable?

In a world where IE didn't exist, what things would be easier, less hacky, less buggy and generally more used. What could the internet have been if all features were available cross browser? List one point per post. This is community wiki, so feel free to amend the question/answers for clarity. ...

How to read DOM of the iframe loaded with a page from another domain?

Is there a way to access the DOM of the document in an iframe from parent doc if the doc in the iframe is on another domain? I can easily access it if both parent and child pages are on the same domain, but I need to be able to do that when they are on different domains. If not, maybe there is some other way to READ the contents of an i...

What is the best source for usage share among web browsers?

It would also be nice to see data that breaks down IE usage by version (5,6,7, etc.). Thanks! ...

Client-side table rendering with extremely large data tables

Problem: Customer X has requested that pages using XML DataBinding and Databound tables in MSIE be re-factored to work cross-browser. Question: What is the best-practice way to mimic the MSIE DataBinding feature of MSIE cross-browser (i.e., in both MSIE and Firefox). Features: Customer X already gets the following using MSIE DataBindin...

jQuery fadeIn, fadeOut effects in IE

The below fadeIn, fadeOut effect works fine in Firefox 3.0 but it doesn't work in IE 7 ... Whay is that and what's the trick? The idea is of course to get a "blink" effect and attract the attention of the user to a specific row in a table. function highLightErrorsAndWarnings() { $(".status-error").fadeIn(100).fadeOut(300...

Universal Dropdown Menu?

I am trying to create a "quick links" dropdown for a site I'm designing and it has to be compatible for all browsers IE6 and up. It needs to remain 120px wide because its position will be static. Using the < select > command and setting a width, this works; however, when the box is opened, IE cuts off the longer texted links where Firefo...