firefox

Fire keydown event in different browsers

I was looking long time to get answer to this task: fire a keydown event programmatically compatible under different browsers like IE, FireFox, Opera, Chrome... now I found it and i would like to share it with programmers, You may use it to fire event of any type. <html> <body> <script language="JavaScript"> function first() { var ...

Npapi set timer function

I'm still running Firefox 2.0.0. For backward compatibility reasons I'd like to know weather there is a easy way to replace the NPN_PluginThreadAsyncCall, NPN_ScheduleTimer mechanism that the newer npapi supplies. The only solution that I would come up with is to evaluate a javascript "setTimeout" that would call the plugin then ......

Firefox quick search extension idea. Is it possible?[see details]

I use search sites very often. And in 99% of cases search results that i need contained in first 3 links,that search engine returns. Is it possible from programming point to write extension for Firefox,that satisfies next use case: 1. user clicks icon 2. modal window appeared 3. select search engine(e.g. Google,Yahoo or Yandex...any othe...

What might make "Xclients" be executed twice when boot system?

For some special purpose, I modified /etc/X11/xinit/Xclients to start firefox instead of start Desktop Environment. # Argh! Nothing good is installed. Fall back to twm { # gosh, neither fvwm95 nor fvwm2 is available; # fall back to failsafe settings [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45' # if [ -x...

Formatting Microformat Umlauts broken in Firefox Operator Plugin

Did anybody successfully manage to correctly export a vcard from a Website containing Microformats (hcard) with this Firefox Plugin? When doing so, I end up with weird characters instead of (german/spanish) Umlauts. While it's really easy to provide vcards as well, I would like to know if someone managed to correct the charset/character ...

Firefox Or JavaScript, count the DOM

I'm sure this is simple but I have no idea how to do it. How do i count the amount of DOM elements in my HTML page? I wanted to do this in a userscript or bookmarklet but i have no idea how to start! ...

Open a URL in Firefox in current tab/window from a Windows application?

I have a Windows application that works with Firefox. If Firefox is already open, I'd like to have it open a given URL in the current tab+window as is currently showing. Our application tends to open a lot of URLs and reusing the same browser window makes the most sense. I already have a COM application that works with Internet Explor...

Firefox does not save the form in ASP.NET

I've got a form that inserts data into a database using ASP.NET 2.0 . The problem is that when I hit the submit button on FireFox, the page submits and I'm redirected to the correct page. The problem is that the data isn't actually saved. When I try this on IE, it works fine. When I try this on FireFox using another browser it works ...

How do I position a XUL Panel (Firefox) in the bottom right hand corner of the main window?

I am creating a Firefox extension that pops up growl-like notifications. Currently I am popping them up relative to a status bar icon. This is fine unless there are other status bar extensions installed that would make my icon not the rightmost element. How would I go about positioning it so that the notifications always start at the bot...

Firefox Gecko SDK : NPP_GetValue not getting called

Hi, I have tried out the NPRuntime sample provided with the Gecko SDK 1.9.1 with the help of this link. It works perfectly fine with Firefox 3.6. Following the above steps I created a new scripting plugin (npmyplugin.dll). I am currently placing npmyplugin.dll in a folder other than Firefox/plugins. I am registering the associated mim...

Firefox Extension : onProgressChange called multiple times

Hi All, I am trying to capture a page load event while developing a extension for firefox. I am using ProgressListeners for this. I cannot use the onLocation change event because it fires an event every time the user switches the tab. I just want to log every new page he has visited. OnProgressChange works for me, but this is fired m...

Can you manually set resolution (pixel height/width) for Firefox 3 on Linux?

Trying to get my 800px width swf to take up the full width of the browser, but Firefox always shrinks it to about 2/3 size. Wondering if I can manually set the width FF opens up to, so that my swf will display at full resolution. Running Fedora 10. Any advice is much appreciated. ...

How To Automatically Start iMacros Javascript Upon Browser Loading

This question is specific to the iMacros suite in particular. What is the best way to go about automatically starting a javascript file that controls my macros inside firefox? Basically, I have an imacros.js file that calls a series of imacros.iim files. How can I run this javascript automatically? ...

Javscript Alert box not displaying on Firefox

Okay, so I have this script which works fine with IE but won't work with Firefox. So I was wondering if anyone has had this problem and maybe got a solution. $.ajax({ type : "POST", url : "../php/insertUser.php", data : dataString, success : function(msg, status) { var repl...

406 Not Acceptable error when using Jquery $.post in Firefox but not in Safari or Chrome

I'm using Jquery (1.3.2) $.post command to trigger an ajax call to a rails server. The code works great on Safari and on Google Chrome (mac), but when I tried it on Firefox (3.5.7), I got a weird '406 Not Acceptable' error. When I look at the headers, it Firefox indicated that it accepted only ' text/javascript' responses. And the ...

Is this a known issue in firefox extensions on Mac OS?

I've developed a firefox extension which contains a small dialog defined by this XUL script: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow id="firenowPreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="Fire.Now" ondialogaccept='on...

Does Firefox support Javascript in XHTML pages?

I need to serve XHTML pages that include Javascript. My problem is that Firefox (3.5.7) seems to ignore the Javascript. For example: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>My Title</title> </head> <body> <script type="text/javascript"> document.write("Hello world!"); </...

html security profiling tools

I am developing a site and i am using yslow to profile speed and stats, webdeveloper for html and css validation, etc. What can i use to check for security mistakes? ...

Is it possible to catch mouse position outside the document?

I found that is possible to retrieve the mouse position in IE outside the document or even the browser window, by using "window.onblur" or "window.onfocusout" or something like that. Even in Firefox it gives you negative mouse coordinates in the onmouseout event handler if you let your mouse pointer go out of the viewport quickly. Can ...

getBoundingClientRect problem with Firefox

Hi, I am trying to get the y coordinate of the cursor within a contenteditable div using getBoundingClientRect(). The IE branch of the code works, but the other branch (i.e. Firefox 3.5 for my current testing purposes) does not. The code below has the problematic lines marked with * in the comment. At that point in the code, both selOb...