cross-browser

CSS floats and block elements

I have an annoying CSS layout problem. I'm trying to float images on a particular page: img { float: left; } I think make sure my headings don't start indented with: h3 { clear: left; } It all works fine except for some of the images that have lists (or any block element) floating past them (or not as the case is). The reason...

HTML/CSS: what's a better option for layout of a tree of nested elements than nested tables?

Ok, I have a set of checkboxes for selecting criteria. For argument's sake, we'll say the data looks like this: [] Vehicles [] Unpowered [] Bicycle [] Skateboard [] Powered [] Two-wheeled [] Motorcycle [] Scooter [] Four-wheeled etc The []s represent checkboxes. Ignoring the obviously ...

will Array.sort() preserve the order of the array, where possible?

I suppose it depends on how it's implemented. I'd love it if someone would come back and tell me "yes, in virtually all browsers, order of items will be changed only when necessary to satisfy the conditions of the sort. ...

What are the performance implications of getElementsByTagName("*")?

Let me start out by saying that I'm not a JavaScript developer so this question may be rather basic. When simulating IE's nonstandard all property I'm using getElementsByTagName("*"), is there a significant performance difference between both methods? ...

Simple javascript only working in FireFox

Hello, all.. I created a script that requires selecting a beginning year then only displays years from that Beginning year -> 2009. It's just a startYear to endYear Range selector. The script only works in firefox. I'm LEARNING javascript, so I'm hoping someone can point me into the right direction. Live script can be found at http:/...

Is there a way to test a web site on the iPhone without an iPhone?

I want to test a website to see how it works with the iPhone but I don't own an iPhone or an iPod touch. Is there a way I can test how the site works on them without owning one? What I'm really after is fixing how Stackoverflow's WMD markdown editor works on the iPhone. I hear that the hyperlink and image prompts are created too high....

CSS background url () not appearing in IE, works in FF/Safari

Hello All, I'm debugging my website for the dreaded IE6 but I'm officially stumped. Appearance in Firefox: http://dl-client.getdropbox.com/u/5822/firefox.tiff Appearance in IE6: http://dl-client.getdropbox.com/u/5822/ie6.tiff Live site: Motolistr.com The following CSS works great in FF and Safari, but doesn't in IE6. #search_sort{...

Special mouse events in a browser: wheel, right-click?

Google maps is an impressive display of what you can do with javascript and Ajaxy-goodness. Even my mouse scroll wheel and right-click works to provide specific functionality. In the standard HTML spec, I don't see an "onmouserightclick" event or similar basic javascript handling for the mouse wheel. Maybe I am looking in the wrong pl...

Overriding a JavaScript results in infinite loop in IE but not in Firefox

I'm using the following code to override a JavaScript function named dismissRelatedLookupPopup(). In Firefox, this works without a problem (displays the alert once and runs my code), but in Internet Explorer 7 it results in an infinite loop displaying the alert() forever. I'm doing this because I don't control the code where dismissRelat...

jQuery - Compatibility Problem with Internet Explorer 7??

Hi, I have this code that dynamically slides up a Div over an image when mouse over it. It works perfectly in Firefox and Google Chrome, but in Internet Explorer 7 everything runs really slow and nothing happen. The jquery code is this: jQuery.fn.masque = function(class) { $(this).hover(function(){ $(this).find(class).stop().animate...

jQuery - Compatibility Problem with Internet Explorer 7 and general buggy behaviour.

Hi, I have already asked some questions about this topic, I have made some modifications that users here suggested but I still can't resolve the problem. I've little known of JavaScript, I just modified a code from another page. I have this code that dynamically slides up a Div over an image when mouse over it. You can check it out in t...

How to unit test my application manually on multiple browsers?

My project requires support on multiple browsers, like Firefox 2.0, firefox 3.0, IE 6, IE 7, etc. My problem is I cannot test the application on lower versions of the browsers. I have to move to other system or other machines for the testing. Is there any way to solve this? I cannot even use Virtual Box, since my company won't encourage...

Is WebKit among those browsers implementing the upcoming x-domain XMLHttpRequest features?

Many of the upcoming generation of browsers (FF 3.1, IE8) are going to support cross-domain XMLHttpRequests in one fashion or other (with security concerns, as long as the server opts in, etc). Is the same bit of functionality going to be in WebKit? FF: https://developer.mozilla.org/en/Cross-Site_XMLHttpRequest IE: http://blogs.msdn...

event is not defined in mozilla firefox for javascript function??

function onlyNumeric() { if (event.keyCode < 48 || event.keyCode > 57) { event.returnValue = false; } } onkeypress=onlyNumneric(); In IE, this code is working fine. However, in Mozilla Firefox, the event is an undefined error. ...

Ajax and Browser history using YUI Browser History Class.

I have an Ajax rich application that displays a grid with 100 urls. When u click on any row of the grid it loads the preview of that URL in the grid. Also on the onload event of the grid I perform several operation which fire many AJAX queries. I use YUI browser history class to enable browser back button. It works fine with FF3 but i...

What Cross-Browser issues have you faced?

While developing for multiple sets of browsers, what issues have you faced while development due to differences in browser implementation? To start with I am listing some of those which i faced: A text node in Firefox allows only 4K data. So an XML Ajax response gets split up into multiple text child nodes instead of only one node. It...

Is there any way to track selection range in iframe's designMode?

Hi, I've been experimenting with this for a while but didn't get anything working well — is there any way to track mouseups and selections in iframe's designMode, preferably in a cross-browser compatible mode? ...

Javascript functions Math.round(0) vs toFixed(0) and browser inconsistencies

Edit: To clarify, the problem is how to round a number to the nearest integer. i.e. 0.5 should round to 1 and 2.5 shoud round to 3. Consider the following code: <html><head></head><body style="font-family:courier"> <script> for (var i=0;i<3;i++){ var num = i + 0.50; var output = num + " " + Math.round(num) + " " + num.toFixed(0)...

Are there any alternatives to IE's replaceAdjacentText method?

I need to rewrite a classic ASP page such that it will be compatible with Internet Explorer, Firefox and Safari. The current implementation uses a method, replaceAdjacentText to manipulate the DOM. As far as I can tell this method is not supported in any browsers other than Internet Explorer. What I would like to do is replace the use...

IE Problem in jQuery

I am using the jQuery plugin Cross Slide. My page is working fine in Chrome and Firefox. But in IE 7, I get: Debug error as Object expected on line 1: $(document).ready(function() { $('#image').crossSlide({sleep:4,fade:1},[{src:'images/1.jpg'},{src:'images/2.jpg'}]); }); How can I fix bug in IE 8 & 7? ...