firefox

scrollMaxX for safari

Hi, I was wondering if anyone knows if there is an equivalent to the firefox function scrollMaxX that works also in safari maybe in some framework or something? scrollMaxX gives you the space in pixels of the current page that is outside of the browser window. so for example if a page is 200 pixels wide and the browser window is set to ...

CSS renders Input in firefox mac diffrent then firefox PC. can i detect OS via javascript? or maybe a CSS hack?

I have a input[type="text"] the that has padding applied to it behaves differently in firefox PC then on a mac. Any hacks that can target firefox PC? These styles are what its seen on firefox PC firebug .searchContainer input { border-color:#7C7C7C #C3C3C3 #DDDDDD; border-style:solid; border-width:1px; color:#555555; fl...

ExternalInterface issue on loadup with FireFox

Hello, I have an issue with my ExternalInterface. The way it is currently set up is, on the page load up, a boolean is set to true in JavaScript and then checked by ActionScript constructors (using a timer) until it is true. This marks that JavaScript is ready to get calls from AS3. At this point, AS3 will add the callback and do some...

Opening URL in New Tab doesn't work in existing, programmatically-opened New Window (Firefox)

I am building a web app, for myself, to control some servers on my home network, and discovered what I think is very odd behavior in Firefox. If you open a pop-up, via javascript, in Firefox, is it then impossible to open a new tab, via javascript in that pop-up? If not impossible, how do you do it? Given a clean, default Firefox 3.6....

Location of Firefox throbber/spinner image

I'm trying to locate the "throbber" (or "spinner") image used in the Firefox 3.6x chrome to show that a request is being processed: I'm not familiar with the source code structure for Firefox, and a simple search hasn't yielded the answer. Does anyone know which file I'm looking for? (E.g. can you provide a link to the file in the Me...

jqgrid, firefox and css- text-decoration problem

Hi all. I have issue wuth firefox not displaying style "text-decoration: line-through". I am using jqGrid for displaying list of medications. If medication is not active, it has to be crossed. In my afterInsertRow event i do this: $('#' + rowid).css({ 'text-decoration': 'line-through', 'color': 'red' }) It works fine for IE and Chr...

How can I see included JavaScript sources?

I am trying to script a web page using GreaseMonkey. (I am using Firebug for help in development.) The page has a small amount of JavaScript code, but that code pulls in other JS files from the site. Are the entire collection of JS files stored somewhere on the client side (i.e. on the filesystem somewhere) so that I can view them? O...

How to add a local image in my firefox entension?

I am developing a firefox extension and create a table and in it add a image , and I create a image with : var _img = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "xul:image"); and then I found I couldn't set its attribute "src" with a local image just like use its Url: chrome:\...., so I ha...

Detecting the onload event of a window opened with window.open

window.popup = window.open($(this).attr('href'), 'Ad', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); $(window.popup).onload = function() { alert("Popup has loaded a page"); }; This doesn't work in any browser I've tried it with (IE, Firefox, Chrome). How can I detect when a page is load...

How to create simple Firefox Add-ons?

How can I create and deploy a simple Add-on, just for altering the name of anything? How to create Add-ons for Mozilla firefox? ...

Background position image overlay (Works in IE, not in Mozilla/Chrome/Safari)

Hi all, I am having an issue positioning a background image using the following jquery background position command in Firefox, Google Chrome, and Safari. The code works correctly in IE 8. $('#element').css({ backgroundPosition: 'xpx ypx' }); The desired effect is a continuous stream of fluid from the right side of the screen to the ...

How do I escape backslashes in JSON?

I am using Firefox's native JSON.parse() to parse some JSON strings that include regular expressions as values, for example: var test = JSON.parse('{"regex":"/\\d+/"}'); The '\d' in the above throws an exception with JSON.parse(), but works fine when I use eval (which is what I'm trying to avoid). What I want is to preserve the '\' i...

Shift browser contents to the left while viewing in wide screen

I use a widescreen laptop. Many websites have their content centre aligned. On wider screens this means lot of empty space on left and right. As such this is not a botheration. Many a times, I read some instructions on the web page and type them out on the command prompt. I prefer to overlay the command prompt window on top of the br...

HTTP basic authentication via URL doesn't work with Firefox?

Normally you can login to sites that require HTTP basic authentication by passing the username and password in the URL, e.g.: http://myusername:[email protected]/mypath On my Linux machine, I could access this website without problems with my Konqueror browser as well as with my Opera browser. But with Firefox it doesn't wor...

Geolocation under firefox 3.6 requires Proxy Authentication?

I am trying to share my location on geolocation enabled pages from firefox 3.6, but doesn't seem to get any kind of success or failures. When I wrote my custom js containing navigator.geolocation.getCurrentPosition(func1,func2), the success callback isn't called at all. When I tamper the http requests on firefox, the request to https...

html5media library doesn't work on FF 3.6.3

Hi. Am I the only one experiencing this issue? I'm using the html5media library and the test page they provide no longer plays in Firefox 3.6.3, though it plays on the latest Safari, Chrome, Opera, and IE. On FF 3.6.3, it shows the video and the audio with large X through them. I'm using this library on my site and noticed the issue as w...

How to add a MIME handler to Firefox and Internet Explorer from an installer

I'm looking to create an installer that will add a handler for a MIME type in Firefox and Explorer. The installer I will be using will be either INNO (a.k.a Oh Nooo!) or NSIS. How do Mozilla and Microsoft recommend adding a handler. So far all I have been able to find for Firefox is how to Add/Remove/Augment manually which no matter how...

How to add a MIME handler to Firefox and Internet Explorer from an installer

I'm looking to create an installer that will add a handler for a MIME type in Firefox and Explorer. The installer I will be using will be either INNO (a.k.a Oh Nooo!) or NSIS. I'm looking for for how Mozilla and Microsoft recommend adding the handler. So far all I have been able to find for Firefox is how to Add/Remove/Augment manually ...

Unable to select dynamically generated form elements (ajax)

I have a main.php page the following code is hardcoded in main form <form action="test.php" method="POST"> the following is the code generated dynamically using AJAX <input type="checkbox" value="test" name="test[]"/> <input type="checkbox" value="test1" name="test[]"/> <input type="submit" value="go"> ideally speaking on clicki...

Using FontSquirrel @Font-Face Generator: font quite fuzzy in Firefox

Mac Firefox (3.6.3). Font looks sharp in Chrome, Safari, IE8 (not as good as other 2, but less fuzzy than Firefox). Any work arounds? How can I determine which of the source files Firefox is using? Can I force it in the CSS to choose something else? ...