how do I get nsIEmbeddingSiteWindow in firefox?
From an XPCOM object in firefox, how would I get a nsIEmbeddingSiteWindow for each open window? ...
From an XPCOM object in firefox, how would I get a nsIEmbeddingSiteWindow for each open window? ...
I have a java applet running in a browser that is calling some javascript functions and expecting a result from theses functions. This is working with the following configurations : Internet Explorer FireFox / Windows Safari / Mac BUT It's not working with Firefox on MAC OS The source of the problem seems to be the win.eval calls th...
Actually this question is based on a Blog Entry, which discusses the topic for FF2. But how does this work with FireFox 3? I know that there must be a workaround, because recently I visited a site saying: "Please disable AdBlock+ before entering this site" :( ...
Is there any way to stop Firefox from submitting a form on a Javascript error? I mean I know I can use an alert box or firebug to stop it from doing so, but...not all pages that people work on work with Firebug, and that alert box is just annoying... Maybe there's a setting in about:config? I could twiddle with? ...
Hi all, I'm creating a firefox add-on, and I have a situation where if someone clicks on a specific item in my toolbarbutton menupopup, I want to display some text to appear beside the mouse for a couple seconds. I don't mean mouseover text, because when they click on the item, the I close the menupopup. I mean something like what's s...
This question is related to this one http://stackoverflow.com/questions/573072/tricks-to-google-for-desired-page-quickly Firefox can do some magic and bring exactly the required pages. E.g. java 6 SimpleDateFormat ruby doc rexml But some times it fails giving a usual google results: ruby rexml And some times I whould like it...
I want to create a application (Firefox extension ) which will grab a screen area and save to image and upload to server. Here is my roadmap. First I will create a greasemonkey user script which will applicable to all domain, When any page will load , It will add a small button named "screengrab + upload" . when User will click on button...
I've run into a weird quirk. The website I'm building for Escondido Arts Gallery has all of it's text in each element left-aligned in firefox and IE, but for some reason everything is center aligned in Safari. Is there one simple css or html fix I can do to fix this, or am I going to have to 'text-align: left' every element? ...
Consider the most excellent wordle tag cloud generator: http://www.wordle.net/create Entering text into the "textform" textarea and clicking the go button starts up the wordle java applet on that page. No traffic goes back to the server. How can I cause this to happen programmatically? No hack too cheap!! background for this ques...
I have a simple HelloWorld app done in FlexBuilder. It's just a simple class that extends Sprite. In the dedicated Flash player, the SWF shows up occupying the whole screen. In Firefox, however, both within HTML and alone, it shows up to the right. Is there a simple cure for this? Code is just a constructor (in which the stage.stageWid...
So I know I can write my own HTML-encoding function like this: function getHTMLEncode(t) { return t.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"); } But I was wondering if there were any native facility for this that is available to XPCOM components. I'm writing a component, not ...
I've created a firefox extension that consists of a toolbar button. How can I set it up so that when my extension is installed, the button automatically appears in the main toolbar. I don't want my users to have to go to the customize toolbar menu and drag my button over. ...
I'm currently using cURL to do HTTP requests, and it works fine. However I need to get the javascript code and execute it in the context of the HTML, making it manipulate the DOM exactly as if it were a web-browser. The first thing that came to mind was to use firefox, there's a command-line interface so I thought it would be easy (mayb...
Try the following simple example: <html> <head> <style> div, input{ border: 1px solid #000; margin: 2px; padding: 3px; width: 100px; } </style> </head> <body> <div>div</div> <input value="input" /> </body> </html> Notice the div and the input gets different widths. In fact, the width of the input is 92px. For the input...
The Flex Application is set to 900 pixels width. The object tag is set to 900 pixels width. Firefox is rendering the object at 110% the size requested. So there is a blank vertical column on the right size of the object. (It does this if I set fixed height also) If I set the width in the object tag to 810, then they match up, but thats...
I have a dropdown that triggers an ajax call when its changed: $('.travel-to').change(function(){ $.ajax({ type: "GET", url: "/inc/rates/rates-viewer.php", data: "shtech=y&c_name="+escape($(this).val()), success: function(html){ $(".rates-viewer").html(html); $(".rates-viewer tr.numbers td").css({ opacity: 0 }).fadeTo("...
Hey there I'm having trouble with some JS in IE7. I'm testing to see if a certain object has a className (its possibly an HTMLElement object from the DOM) assigned. Now, testing the page in Firefox tells me that Yes, the variable is undefined (all my tests below do the Alert(). In IE, none of the tests pass, the variable gets assigne...
Hello, I am working on a web app, in which I want to have a different action to happen to an element whether I left or right click on it So I added a function for "click" with jQuery and added a function for the "oncontextmenu" attribute of my element. This is working well in Chrome & IE but raises a problem in Firefox: when I right c...
Given the following HTML page a horizontal line appears at the top of the table where the 1st row would have a 2nd and 3rd cell (if they were defined). <html> <head> <Title>Test Page</Title> <style type="text/css"> table { margin:10px 0 10px 0; padding:0; margin: 0 0 0 0; border-collapse: collapse; border: 0; } td...
Been working on this site for some time now, works perfectly on Mac and PC Firefox, as well as Safari. However, IE is making the site almost blank - any ideas on what is going on? Any workarounds? Thank you in advance for your help! http://www.alliedprintingsolutions.com http://www.alliedprintingsolutions.com/style.css (Stylesheet) ...