<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title></title> <script type="text/javascript"> function TextScroll(scrollname, div_name, up_name, down_name, top_name){ [Code]...
When I use mouse wheel in Firefox to scroll contents of the DIV, memory usage in Firefox goes through the roof. Code above is a fully working page, if anyone would like to see what's up, just load it up, and start moving your mouse wheel in the area with text. You don't actually have to scroll the text, just moving the wheel back and forth in that DIV will do. Memory usage will start going up quite fast, and after you stop moving the wheel, it will finally come down a bit after a short while. I've highlighted in red the line where mousewheel event is registered for Firefox. I'm not sure if it's really a problem, but since Opera and IE don't have any strange memory usage, and Firefox does, maybe I did something wrong. In everyday use it shouldn't matter [don't expect to have kilometers of content to scroll], but anyway, it is a bit unsettling.
if ((window)&&(window.netscape)&&(window.netscape.security)) { // OK, this is Gecko/Firefox or someone mimicing it so well // that there is no way to catch it on the act. }
But I need Firefox *1.5 or higher* or another (but sure) way to know that this browser has native SVG support. Here I'm stock.
It seems there is window.navigator.productSub and on my Firefox 1.5 it's 20051111
But I'm not sure: this "build version" is going up guaranteed or it's random like CLASSID? Also is the same Firefox release has the same build for all platforms or not? mozilla.org seems silent.
I have a BETA site that I'm testing. It looks good/works fine in IE, but Firefox has some troublesome breakages that I can't figure out how to fix without breaking IE. The one I'm most concerned about is that I have a video player that was working a couple of weeks ago, and several revisions to the page later (not the video iframe), it's not. Works great in IE, but in Firefox, the controls in the video player are either sticky or do not work altogether. The video is called through an iframe (needs to be done that way by request) and the embed is as such:
I have some menu items which i use javascript to change the image on mouse over. This works fine in IE, and used to work fine in Firefox.
However I added an few extra menu items near the bottom and something has gone a bit wrong. The last 4 menu items dont change image in firefox or netscape... but they work fine in IE. Code:
I'm trying to find a simple step-by-step on how to read a simple XML file like this one, which will work in IE 6 and Firefox 0.x.
<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Christopher Santee</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CATALOG>
The problem is every example, I find that it will work in IE but not Firefox or visa versa, could someone please point me to a how to that will work with both browsers. I just spent two weeks reading the Microsoft Press Book "XML Step by Step", only to find out that the technology only works with IE.
When I set the background colour of an element using tdRef.style.backgroundColor and then read it back, Firefox always gives rgb(r, g, b) regardless of whether I've used rgb(...) or #rrggbb to set it.
If I use tdRef.bgColor to set/read the value, I always get #rrggbb regardless of whether I've used rgb(...) or #rrggbb.
IE, on the other hand, when using style.backgroundColor reports back in whatever format was used (either rgb(...) or #rrggbb), but, like Firefox, always gives #rrggbb for the bgColor method.
My question is which method is most consistent across various browsers? I want to use style.backgroundColor (since some browsers don't support bgColor, I guess it's a legacy from the ver 4 browser days). If I decide to use rgb(...), is it consistently supported by other browsers or do some report in #rrggbb regardless? Code:
I have the script below, which is supposed to populate a text box on a form which opened this popup window - it should then call a function 'PostThisPage' on the opener document, and then close the current window/popup.
This works ok in IE - can anyone please help me by pointing out what it needs to become cross-browser compatible? It doesn't work in Firefox 1.0.
Here is my problem in a nutshell: a script to model dynamic table extension. It works under Firefox. But IE just aborts, complaining about an "unknown runtime error" in the line with "innerHTML". Why?
<html><head></head><body>
<script language="javascript"> function extend() { var tb = document.getElementById('thetable').tBodies[0]; var newrow = document.createElement('tr'); tb.insertBefore(newrow,tb.rows[tb.rows.length-1]); tb.rows[tb.rows.length-2].innerHTML = '<td>A</td><td>dummy</td><td>row</td>' } </script>
Does anyone know how I can fix the code below to work in Firefox,it works perfectly well in IE, the problem is that I have to use Firefox for this assignment....
Why doesn't a SELECT element's innerHTML reflected which option was selected? Works in IE. I need this functionality so that I can retain what choices a user made in a tabbed interface.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://w3.org/1999/xhtml"> <head>
<script language="javascript"> function callAlert(){ var theHTML = document.getElementById('Radius').innerHTML; //alert(theHTML); } </script> <title>Untitled Document</title> </head>
How do I find the row & column number of the table for a checkbox on its Onclick event
The following HTML sample works perfect in IE. On click of the checkboxes, I am displaying the row number and its column number. How do I manage the same in Firefox? Code:
I came across a third party script I want to learn how to configure as well as learn more dhtml in the doing. I'm not much of a JS guy yet but I'm working on it.
This script works fine in IE6 but is a dead fish in FireFox. There is no support offered on the site where it came from.....
I'm kinda skeptical about a code is being used in my js program. All it does is checking what browser is being run and finds out if FLASH is installed or not.
This code works just fine withe IE but as far as Firefox I'm not sure. Using the firefox I can see flash pages easily but when this code says firefox is not installed in my firefox!
I have been browsing through the Mozzilla source and have been impressed at the level to which javascript decends. Clearly there is a lot of javascript that ends up embedded in the binaries and not as stand alone ASCII scripts. Anybody know how this works?
I'm familiar with Java so I shouldn't be too lost. What I'm about to do is add support for a web app from Firefox to IE that uses OpenLayers.
I've searched and found a link to this site from another thread which had a list of supported functions and what not here: [URL]
From what I've read in the last hour it seems as though I will have to use some browser sniffing (isMozilla, isIE8, etc) and have multiple conditions (if-else's) in my functions to use the proper calls. Does anyone have extra material that contains differences between IE and firefox? Someone mentioned to me that in lists IE doesn't support trailing commas but ff does..
Why will scripts run in IE and not in firefox. I cant find any simple Javascript code that will create a username/password login that will work in both browsers.
Could anybody give me a clue as to what is wrong with this (simple) piece of javascript that prevents it working in FireFox and other non-IE browsers??? Code:
I got different looks in firefox and IE by using same code. I made a sign up form. If it's browsed by firefox, the elements will misplace. If using IE, not problem at all. BTW, I am using DW to make the form. Any hint?:thumbsup: