UPDATE
So after reading both of your answers I realize there is no reliable way to determine when a browser window is closed. Originally I was planning to use this to unlock a record in the database when the page is closed. Basically when the user loads the page the record it's accessing locks and then unlocks when the page is closed....
I found a few questions similar to mine but none of the answers are satisfactory and they are a few years old. So I am hoping that perhaps some progress has been made on that front since then.
What I am interested in is the ability to access the content of an active Firefox window and copy it to the clipboard -- using C or C++ code.
In...
A friend of mine had "a friend make a website" for her, but this person is no longer contactable, so she asked me "why it looks different in Firefox and the links don't work".
Looking at the source, it seems to have been made with "Frontpage 5.0" but also has a "Microsoft Office" XML namespace.
What I find interesting is that it appare...
Hey all,
I'm developing a cross-platform NPAPI+XPCOM extension for Firefox and Google Chrome (Windows, Linux and Mac). I was wondering if anyone could enlighten me on the best practices of handling component crashes.
As I understand it, currently Mozilla's Crash Reporter submits mini-dumps and crash reports created to Mozilla Dev. I ex...
Dear Stackers,
I'm developing a web application which requires long-running Ajax requests. Unfortunately, under Firefox, pressing Escape during a request has the drawback of killing the request and any information it was holding. This is rather annoying, as this can lead to all sorts of nasty complications if this happens at the wrong t...
Hi, I think I could be doing something wrong in photoshop. I'm trying to create a banner for my website.
I created a new image in photoshop, then filled the background with a color I picked #E06205
I then saved the image as a jpeg.
On my webpage, I created a div and gave it a background color
background-color:#E05206;
When I open th...
HTML/JS Here: http://pastebin.com/JrtfeAtw
PHP Here: http://pastebin.com/EcRHCwmY
Based on Ajax F1's tutorial here: www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
Anyway, my problem. In Chrome, this works fine. However, in Firefox, it will upload the first file no problem, and begin uploading the second one. I've traced it in Fi...
If I have the following HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Test</title>
</head>
<body>
<div style=...
hi ,
i want to change scroll bar color in firefox how can i do that ?
thanks
rahul
...
hi
i want to attach the image or div element to the cursor in firefox in my application when mouseover the some element than image will be attached to cursor.
thanks
rahul
...
Regex test() is giving me issues in Firefox and Chrome, yet it works flawlessly in Opera and Safari.
troubled code:
var pattern = /(\s+(?!\$\w+)|(^(?!\$\w+)))/g;
if(pattern.test(String(id).replace(/\s+OR|AND\s+/g, ''))) {
searchError("You suck.");
return 1;
}
When you pass in white space, it blocks it every time. When you pass in s...
I am experiencing the same problem described in this thread. I'm wondering if there are other ways to achieve the same result and avoid this issue.
Apparently Firefox has issues with anchor tags containing block elements even when the display CSS property of the anchor tag is set to "block". The effect that I am trying to achieve is to ...
I have the following input element:
<input name='selected(1234)' type="checkbox" />
When I record, I get this:
Command: click
Target: selected(1234)
This doesn't find the element, and neither does
Target: name=selected(1234)
My assumption is that the parentheses are somehow messing with the lookup. What's the proper way to do this...
Is there something wrong with this code? The picture displays fine in Safari but Firefox doesn't display anything:
<div id="container"><img src="picture1.svg"/></div>
...
My ascx does support postback(dont ask why), I do an ajax call to save all the data on page, but I have to do a file upload as well so I am using an iframe for it. Everything works well expect for in the firefox.
In the firefox it all works well for the first time not the 2nd time. i.e. if the form filled and files uploaded and submitte...
I'm making a Firefox extension and I want to position a XUL panel element exactly above a search box when a person types text in the search box-- almost like autocomplete. How do I do that?
Thanks!
Edit: I've been looking at using auto complete and using my own nxIAutoComplete implementation but I'm a bit too new to extension developm...
Firefox extensions can invoke privileged APIs (e.g. nsIProcess to start an external app) without bugging the user, for example this extension does it from the download window: https://addons.mozilla.org/en-US/firefox/addon/10902/
I need to do the same kind of thing, but from a UI on a web page. Can an extension provide a XUL widget (whi...
I'm a bit of a newbie, so excuse me if this script is rudimentary.
I'm trying to use jQuery's .load() function to load the next or previous month of an event calendar on an expressionengine site that I have built. The following script works in Chrome, Safari, IE, and Firefox 4 beta, but it fails in FF 3.6.10:
$('th a.right, th a....
Within a "cloaked" site, using obj.innerHTML = something to change the contents of a div seems to screw up the div's position in Firefox and Opera.
Best way to understand the problem is by seeing the code in action. Go to http://www.guggs.net/index_redirected.htm in IE, Firefox or Opera and everything looks as it should.
Hit one of th...
Let'u start with following example:
Create three pages in same directory:
test.html
index.html
Your test.html:
<html>
<head>
<script>
function test()
{
alert('Going to google.com?');
window.location="http://google.com";
}
</script>
</head>
<body>
<a href='' onclick="test();">google.com</a><br/>
<input type=...