firefox

Calling a function in an iframe from a parent in firefox

I'm trying to call a function, test(), of an iframe from the parent document using the code subframe.test(); subframe refers correctly to the iframe, alert(subframe) returns [object HTMLIFrameElement], and the function runs in both IE7 and opera (9.23), but not firefox (3.0), chrome (3.0) or safari (3.03 beta windows). I assume these ...

Weird random value as default interval handler parameter

Hi, Just came across this. It's not affecting anything really but i'm wondering why it's happening. If I run the following code in firefox with firebug on: setInterval(function(param) { console.log("param is %o",param) },500); param seems to be assigned a vaguely random value: param is -2 param is -1 p...

diffrent response IE-8 and FF getElementById()

i have a function what does the following function test() { document.getElementById("main").innerHTML="show wait"; // do stuff document.getElementById("main").innerHTML="show finished"; } In FF the div will show "show wait", do the other stuff for 4 seconds and then show "show finished" In IE it will only show "show fin...

Any way to run Firefox with GreaseMonkey scripts without a GUI/X session

I need to build a small "monitoring" scraper for a 3rd party website (it's an external website that has stats about our visitors). Unfortunately, this website is very hard to scrape through the normal "wget" mechanism, because it uses a ton of sophisticated JS, part of it generated by GWT. So my workaround was to create a GreaseMonkey s...

Firefox does not print frames that are inside Iframes

Hi, I'm trying to print a page that has an Iframe. In the Iframe there is a frameset - this frameset isnt printed. Reproduction - create an html page that has a frameset with one frame that points to google. Create another html that has an iframe that points to the first iframe. Print preview and printing gives blank frame. Any solutio...

jquery append not working in IE works fine in FF.

this code works fine in FF, not in IE. var target = $("#targetSelectBox") var vals = values.split(";"); for (var i = 0; i < vals.length; i++) { var parts = vals[i].split(":"); target.append($('<option />').val(parts[0].trim()).text(parts[1].trim())); } ...

Simulating the accelerometer event feature in Firefox 3.6?

I just downloaded Firefox 3.6 today and I noticed in the list of new features they have an Orientation API that can detect the direction that your laptop/computer is tilted. This is clearly a hardware feature of some sort; So if you don't have the hardware to do so is there any way of simulating it so that you can test it out on your pr...

How does phpmyadmin open a small window both in firefox and IE?

When you edit a datetime column via its datepickup,a window pops up instead of a new tab. How to do it? I tried window.open(..) but it just opens a new tab. ...

relative and absolute positioning in IE and FF

I want to have a div that grows when you add more content in it, has at least the height of the viewport and has a header and a footer sticking to the top and bottom. I came up with the following which works fine in IE7 but doesn't work in ff3.5. This is the HTML (add repeated 'Lots of text' for main_body to grow out of the viewport): ...

Why does reduceRight return NaN in Javascript?

I'm using Firefox 3.5.7 and within Firebug I'm trying to test the array.reduceRight function, it works for simple arrays but when I try something like that I get a NaN. Why? >>> var details = [{score : 1}, {score: 2}, {score: 3}]; >>> details [Object score=1, Object score=2, Object score=3] >>> details.reduceRight(function(x, y) {return...

Firefox: Signed script shows scary certificate dialog

The context: I'm writing JavaScript to run an executable and tweak some registry entries on the client machine. I've signed the .JAR using SignTool and my company's Authenticode certificate, but running the script produces a dialog saying: There is no mention of the root certificate authority (in this case Comodo, I believe), so I co...

What changed in firefox 3.6 to make <ul>'s render differently?

Edit (Solution Discovered) Thanks everyone for your help on this. The problem was an error in one of the lines of CSS that was being included (it's a large project with a huge combined CSS file so it was hard to spot). This was the problem line: background:transparent url(sf-pager.gif') repeat-x scroll bottom; Notice the missing apos...

Javascript, aliases and IE

In an attempt to save space, I made a whole bunch of aliases for functions in my code. It works fine in FF, but now I'm trying to add support for IE and it's not happy. j=String; f0=j.fromCharCode; j=j.prototype; j.f1=j.indexOf; j.f2=j.lastIndexOf; j.f3=j.concat; j.f4=j.substring; function alias(c,e){return function(){return c[e].apply...

Odd DOM Problem with Firefox

Hello. I'm experiencing an odd problem when trying to navigate through a table's rows and cells in a while loop using javascript. I'm using Firefox 3.5.7 on Win7 with Firebug enabled. I have this markup: <table> <tbody> <tr id='firstRow'><td>a</td><td>b</td><td>c</td></tr> <tr><td>a</td><td>b</td><td>c</td></tr> ...

Some images only showing alt text in Firefox but load fine in Safari or Chrome yet other images on the same page load fine

I'm making a simple website for myself using wordpress and some hacking to try and teach myself a little about web coding for fun. I've set up my website and http://jonhocking.co.uk and I'm using a series of 4 squares on the front page to navigate around the site. Three of these link to categories and these images display perfectly fine....

Maximize site usability in different browsers

My site loads on most recent versions of IE fine, but on others and chrome/firefox not so well. Is there some cheatsheet that list issues of portability I can use to fix those quickly? I am only using jQuery and some ASP. Edit: OP's comment: I am using jquery to build a table on the fly, which contains results returned from an ajax r...

Why is Firefox displaying my page differently?

So the problem is: I have three column layout page. On the right side there is a commercial that I want to be able to turn off on a certain pages so the content expans and the page has two columns instead of three. I found a solution using display: table-cell. That works in the biggest browsers but a strange problem occurs only in fire...

XMLHttpRequest over SSL from Firefox extension

Hi there, I'm going to develop a firefox extension which makes an XMLHttpRequest to this WebService. I can query the service correctly with the following code (from the overlay.js): var req = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:dat=\"http://webservice.whereisnow.com/datatypes\"&gt;&lt;s...

javascript / selenium: get the window from the document object

I am writing user extensions to selenium. I have the document object. How can I get the window object of the window that contains my document? PageBot.prototype.locateElementByMyLocator= function(text, inDocument) { // I want the window here } ...

Export FireBug Data

I know there are plugins to export FireBug data, but adding new plugins to our environment is difficult. Is FireBug raw data available in JavaScript or HTML? ...