This only happens in firefox with a touch gesture device like the magic mouse or a macbook/macbook pro, but on some websites (some I've done and some I haven't) you can scroll horizontally even though there is no horizontal scrollbar, and there shouldn't be a scroll bar, so it's scrolling to stuff not supposed to be on the page.
http://...
Hi,
I have a page that uses JQuery for an ajax call. Viewing the page in Chrome shows the following error in the developer console:
Uncaught TypeError: Cannot set property 'display' of undefined
While the same page runs in firefox 3.6.6 without any error in the firebug console.
The error emanates from a line in j-query-1.4.2 ( as s...
Hello,
I have a javascript like
function getCursorPosition(e) {
e = e || window.event;
var cursor = {x:0, y:0};
if (e.pageX || e.pageY) {
cursor.x = e.pageX;
cursor.y = e.pageY;
}
else {
cursor.x = e.clientX +
(document.documentElement.scrollL...
Hi,
I'm learning developing in javascript and jQuery. I'm puzzled on why the firefox and IE are soo different in handling javascript and jquery functions.
Firefox seems to be doing exactly what I want it to do, when the IE is all over the place and quite often I can't find a reasonable explanation why certain event didn't fire off or ...
Hi, I'm making an extension that on load of every page creates an instance of my xpcom component specifically for that page.
I do that like this:
var appcontent = document.getElementById("appcontent"); // browser
if(appcontent) {
appcontent.addEventListener("load", onPageLoad, true);
}
var onPageLoad = function(aEvent) {
var do...
Why doesn't the defer attribute work on script tags that don't source an external js file in Firefox?
lets say an ancient cms only allows me to add javascript to templated pages via in-page [script]...my code...[/script] tags and strips any html tags entered into the content area field, thus preventing me from embedding scripts just abo...
I have simplified a problem I faced in Firefox (the original code is generated by server side controls). Open the following snippet in IE and in Firefox:
<html>
<style>
.AllInline, .AllInline * { display: inline; }
</style>
<span class="AllInline">
Test
<script type="text/javascript">
<!-- var obj = {}; //-->
</s...
Hi,
I have a file upload script to upload pictures to a server. It has been working fine in all browsers but when I upgraded the flash player to 10.1 in firefox 3.6.6 yesterday it stop working.
I retested with another computer and as soon as i installed the flash player 10.1 it stopped working.
I did some debbuging and noticed that the e...
I've noticed while testing my website that the font-size in fields on FF 3.5 on Mac's is bigger than on FF 3.5 for windows or any other browser.
Is there a way to style this or fix it? I've tried setting input { font-size: XXpx; } to no avail!
...
How can I cause Firefox to ignore the Content-Disposition: attachment header?
I find it absolutely annoying that I can't view an image in the browser, because it asks me to download it.
I don't want to download the file, I just want to view it in the browser. If the browser doesn't have a plugin to handle it, then it should ask to downl...
We have a standard j2ee application written using jboss richfaces 3.3.x. we have several style classes to decide the size of the font family and size.
Some of the end users who use our application have their own font settings (in Mozilla under Tools-->Options-->Content-->Default Options-->Advanced. It has the checkbox "Allow pages to ch...
Hi, i've met a strange behaviour in Firefox with this simple script:
<html>
<head>
<script type="text/javascript">
window.setTimeout(function(){
var ifr=document.createElement("iframe");
ifr.src="about:blank";
document.body.appendChild(ifr);
va...
I'm using webdriver to test a site. Event delegation is being used across a number of links to load data via ajax:
jQuery("body").delegate("a",
"click",
function adjustHref(event) {
// callback
});
In the test I...
It appears (at least in IE 8 and Firefox 3) that for <input> elements the width refers to the content, but for <select> elements the width refers to the content + borders. I am explicitly specifying the width in the CSS style.
What's the deal? I would have thought that both are inline replaced elements and would behave identically. I...
Is it possible to open an HTML file into an iFrame from Firefox, Chrome?
The code is something like this:
<iframe src="chrome://extension/content/web/web.htm" />
...
I have a regular onkeydown event handler that fires a function, like this:
window.onkeydown = onKeyDown;
It essentially works, but it only captures 1 key in Firefox. Then I have to release it and press again.
Google chrome offers me a continuous grab, so I wonder if this is by choice.
...
Hey everyone!
I just started doing some Javascript work for a project, I do mostly backend work so I'm sorry for being new at this! Also, not using a Javascript framework because I want to learn about the fundamentals before making everything very easy for myself :)
So, here is my question/confusion: I wrote a little javascript that dy...
The firefox add-on I am working on is best viewed in fullscreen mode. (I am not creating a new window, but I insert a transparent div on the body of the current page and display some pictures.) Is there a way to toggle the fullscreen mode or f11 key with javascript?
Thanks in advance,
...
Hi,
I have a laughing problem : I upload a picture on my server.
This image is displaying on Firefox, but not on IE, why ??
...
Hi,
Is there a good alternative to Firebug that I could use with IE 7 and 8?
I'm interested in modifying CSS/HTML on the go, as well as debugging some of the java script and viewing the positions of certain elements on the page.
THank you
...