firefox

Why isn't Selenium capturing my keystrokes?

I'm trying out the recorder of the latest Selenium IDE Firefox extension on win32/ff3. On one page, currently I have to hit Enter to go to the next page, but it's not on a submit button, it's captured manually. This is not picked up by the recorder. I know I can enter it manually myself after recording, but why isn't this part of it? ...

What can cause mutated Flash display like this?

I'm having a weird cross-browser flash problem. Please see the screenshot below. I have seen this behaviour before, but I cannot recall what the cause was. Can someone please tell me why this happens, and possible actions I can take to fix it? ...

How can you automate Firefox from C# application?

Start with the simplest task of capturing the URL in Firefox from a C# application. It appears using user32.dll Windows API functions will not work as is the approach for capturing the URL within IE. ...

How to make XMLHttpRequest work over HTTPS on Firefox?

Hi, When I try to send an HTTP GET request through XMLHttpRequest it works on non-secure HTTP. But when sent over HTTPS, different browsers gave different results: On Firefox 3.0.2: - The GET request doesn't reach the web server. On IE 7: - The GET request reached the web server. Does this have something to do with Firefox 3 getting...

Catching a tab close event in web browser?

Is there any way of knowing if the user closes a tab in a web browser? Specifically IE7, but also FireFox and others as well. I would like to be able to handle this situation from our asp code if the current tab containing our web site closes. ...

Simple ColdFusion script works in IE but not Firefox?

I have a very simple bit of script that changes the status of an item in a MySql database - it works fine in IE7, but if I try it in Firefox, it looks like it's worked, but hasn't... Which is extremely odd. The code is very simple - first I get the details of the record I'm looking for: <cfscript> // Get the Product Attribute details A...

Firebug - how can I run multiline scripts or create a new JavaScript file?

Is there a way in Firebug to start a new script file to apply to page? Basically I want to do work like I'd normally do on the Firebug console but be able to to paste in multi-line functions, etc. It doesn't seem like the console is amenable to that. ...

How do I detect a keyboard modifier in a bookmarklet?

Is there a way to detect if the user is holding down the shift key (or other modifier keys) when executing a javascript bookmarklet? In my tests of Safari 3.1 and Firefox 3, window.event is always undefined. ...

Can Greasemonkey cause the displayed title to change

I want to change the title showing in a page based on information I pick up from within the page (eg to show the number of inbox messages) document.getElementsByTagName('title')[0].innerHTML="foo"; does change the title tag, but firefox does not update the displayed title (in window and tags) when this happens. Is this possible? ...

firefox not opening - cron, ruby, firewatir

I have written a ruby script which opens up dlink admin page in firefox and does a ADSL connection or disconnection. I could run this script in the terminal without any problem. But if I put it as cron job, it doesn't fire up firefox. This is the entry I have in crontab # connect to dataone 55 17 * * * ruby /home/raguanu/Dropbox/netti...

Can I get the current page sourcecode from a firefox extension?

Can this be done? How? I want to write my own extension. Can Get the current page sorcecode in my own extension? ...

Firefox Sidebar and Document object of DOM

There is a webpage loaded in the firefox sidebar and another webpage loaded in the main document. Now, how do I ask access the main document object through the Firefox sidebar? An example to do this through Javascript code in the firefox sidebar document to access the main document would be helpful. Thanks for the answers. I have to ref...

jQuery - Triggering Events from Clicking on a Link Issue

I'd like to trigger an event when a link is clicked both by clicking on it normally or by opening it in a new tab (e.g., middle click, ctrl + click, etc) I've tried the following so far: $('a').click(myfunc) Doesn't capture middle clicks. $('a').mousedown(myfunc) works, but it seems to be preventing the link from being followed even ...

How do I execute a page-defined JavaScript function from a Firefox extension?

Hi, I'm creating a Firefox extension for demo purposes. I to call a specific JavaScript function in the document from the extension. I wrote this in my HTML document (not inside extension, but a page that is loaded by Firefox): document.funcToBeCalled = function() { // function body }; Then, the extension will run this on some even...

Horizontal lines when clicking the button in Firefox

I've some CSS problem in Firefox 3. I have several image buttons on my page and when I'm clicking on them I've seen to horizontal lines across the screen at top and bottom button border. I saw such issue on other web sites, so I think it's something known. ...

What's the CSS Filter alternative for Firefox?

I'm using CSS Filters to modify images on the fly within the browser. These work perfectly in Internet Explorer, but aren't supported in Firefox. Does anyone know what the CSS Filter equivalent for these is for Firefox? An answer that would work cross browser (Safari, WebKit, Firefox, etc.) would be preferred. <style type="text/css"> ...

How do I prevent Mozilla XMLSerializer from capitalizing nodes

I'm creating an XML Document in javascript on the client side, and then transforming it back to a string to send to the server. Mozilla has a handy method to accomplish this: XMLSerializer().serializeToString(), which I'm using. However, there seems to be a bug in this method: it returns all node names in uppercase and all attribute name...

What is your favorite Firebug tip or trick?

I think every web developer loves Firefox's Firebug extension for solving CSS, Javascript or HTTP problems. I use it very often, but I'm sure that I'm not aware of some hidden gems. What is your favorite (not evident) trick or tip for Firebug? ...

Prevent Default Behavior in Key Listeners in YUI

I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new window from showing up? Example: var kl2 = new YAHOO.util.KeyListener(document, { c...

How to update Firefox 2 compatible extensions using IFRAME to Firefox 3?

I am trying to update a custom firefox extension that I created for some tasks at work. Basically it is a sidebar that pulls up one of our webpages in an iframe for various purposes. When moving to Firefox 3 the iframe won't appear at all. Below is an example of the XUL files that contains extension specific code including iframe, curre...