I use the window.onerror to alert javascript errors for debugging.
window.onerror = function(msg, url, line) {
alert(msg + '\nLine: ' + line);
};
When an error is fired, it can alert this actual error message in IE. But in firefox, it just alerts "Script error!", but I can still see the actual error message in firefox's error cons...
The RFC seems to suggest that the client should permanently cache the response:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
10.3.2 301 Moved Permanently
The requested resource has been
assigned a new permanent URI and any
future references to this resource
SHOULD use one of the returned URIs.
Clients with link...
My problem is -- I have a html file which is really JS program, which reads web pages and show them in customized manner (i.e. it displays the same content in a different way).
Basically, I create XMLHttpRequest object and then
req.open("GET", web_page_address, false);
req.send("");
This gives me (in firefox) an error:
Error...
My application uses a HTMLAchor to launch an edit user details page. When I update the details using IE8 and click Update the database is update. When I go back to the main list then click on the EditUser link again, the page is displayed with the old details not tthe new ones. In firefox everything works just fine.
HELP!
...
I'm working with some CSS (from a Joomla template) like this:
div#logo {
-moz-background-clip: border;
-moz-background-inline-policy: continuous;
-moz-background-origin: padding;
background: transparent url(../images/head.png) no-repeat scroll 0 0;
...
}
I've looked up some of those -moz- properties and they seem t...
Hi,
We're trying to use a full-trust XBAP as a sort-of-browser-independent bridge between Javascript and COM. .NET 4 allows scripting of XBAPs via BrowserInteropHelper.HostScript, and this does indeed work very nicely in Internet Explorer. The process is approximately:
Script creates an iframe and sets the src to something like '../Xb...
How can i detect which browser type the client is using. I have a problem where i have to ask people to use different browser (Firefox) instead of IE. How can i get this information.
I know http request has this information (Header). How will i get the navigator.appName from the view.py in the Django framework ?
...
I would like to specify that firefox select a range. I can do this easily with IE, using range.select();. It appears that FFX expects a dom element instead. Am I mistaken, or is there a better way to go about this?
I start by getting the text selection, converting it to a range (I think?) and saving the text selection. This is where I'm...
Hello everyone:
This is a CSS related question, I got one good answer from my previous question, which suggested the use of some CSS code like overflow:auto together with a fixed height container.
And here is my actual implementation : on uni server
If by any chance you cannot access that server, try this
Please follow the instructio...
When we use the console.log(someObject.someFunction) firebug shows function() string only.
Is there a way i can see/log the code for the function in the console window ? Something similar to what we can achieve using alert(someObject.someFunction) shows the function body.
...
I have to make a custom function for search/replace text, because firefox counts text nodes differently than IE, Google Chrome, etc..
I am trying to use this code, that I saw at Firefox WhiteSpace Issue since in my other function, I am looping numerically through nodes, which serves my functional needs perfectly, in other browsers.
But...
There are similar questions out here that describe how to get the default proxy settings of the user, but what happens if let's say the user's default browser is IE, but they are using Firefox? I need to grab their current Firefox settings. Is there a way to get at these settings?
It is safe to assume that I am able to detect what br...
Just wondering if there is an easy fix for this problem.
The full error is:
Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIURL.spec]" nsresult: "0x804b000a (NS_ERROR_MALFORMED_URI)" location: "JS frame :: chrome://fastdial/content/file.js :: anonymous :: line 218" d...
Does anyone know how to obtain the browser culture from firefox and google chrome using javascript? Note: This is an asp.net 3.5 web application.
The requirement is to try and set the applications display culture based on the browser culture. I have found very few bits and pieces of information for the other browsers but they do not ...
i have a problem:
Firefox adds <tbody> whether it's there or not, after <table>. I have no problem with this.
Nokogiri doesn't add it.
I need Nokogiri to emulate Firefox's behavior.
How can i add tbody after <table> elements to a given HTML page ? If tbody is already there, then move on to the next <table>....until all <tbody> tags a...
I am making a site with two Youtube videos. These videos use the raw embed code from Youtube. The site's design doesn't work with any of the default Youtube sizes, so I am writing code to automatically resize the video. Here is my code. There will never be more than these two tags on the page, otherwise I'd do a better job selecting t...
Hello guys / gals,
First off, this is my first attempt at writing an add-on. That being said, I am attempting to write an add-on that makes some configuration changes and needs to restart Firefox in order to have the changes take effect. I am currently restarting Firefox using the following code:
var boot = Components.classes...
Is there an API or library for install, update, uninstall FireFox extensions ?
The article (https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry) seems like a legacy information...
I have installed FireFox 3.6.3.
However, I don't see "HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Extensions" in my registry:
[H...
Hi all,
I've got a nice piece of javascript
<script type="text/javascript"><!--
var d = new Date();
d.setTime(d.getTime()-86400*1000);
window.location = "https://mail.google.com/mail/?shva=1#search/in%3Ainbox+before%3A"+(d.getYear()+1900)+"%2F"+(d.getMonth()+1)+"%2F"+d.getDate();
//-->
</script>
That works entirely satisfactorily w...
I need help getting a Grease Monkey with JQuery Script to run on a broken site.
I'm trying to get the following GM script to run, but the page I want it to work on has a JS error and my JS does not get executed.
// ==UserScript==
// @name BILL INFO PAGE ALTER
// @namespace http://jenkinslaw.org
// @description Alter the ...