firefox

What are the pros and cons of various ways of analyzing websites?

I'd like to write some code which looks at a website and its assets and creates some stats and a report. Assets would include images. I'd like to be able to trace links, or at least try to identify menus on the page. I'd also like to take a guess at what CMS created the site, based on class names and such. I'm going to assume that the s...

onpropertychange for a textbox in firefox ?

How to handle the onpropertychange for a textbox in Firefox using javascript? below is an example var headerBGColorTextBox = document.getElementById('<%= tbHeaderBGColor.ClientID %>'); if (headerBGColorTextBox != null) { headerBGColorTextBox.pluggedElement = document.getElementById('<%= trHeaderBG.ClientID %>'); headerBGColorText...

Debugging the base URL element with Firebug

I'm adding the base URL tag to the document head using JS, so the relative links on the page work. But it does not take effect, and Firebug (debugging addon for Firefox) shows the <BASE /> element greyed out.. why? Does this mean Firefox cannot understand it or the syntax is incorrect? ...

Javascript error with undefined variable

I have a problem where a method is getting an undefined variable error, even though I check for the variable being undefined before calling. // Sets focus and text-select to the passed in element. idNav.prototype.setFocusFromVar = function(r) { document.activeInputArea = r; // my variable for tracking focus r.focus(); // er...

Browser dependent problem rendering WMD with Showdown.js?

This should be easy (at least no one else seems to be having a similar problem), but I can't see where it is breaking. I'm storing Markdown'ed text in a database that is entered on a page in my app. The text is entered using WMD and the live preview looks correct. On another page, I'm retrieving the markdown text and using Showdown.js ...

Firefox/jQuery is not reading any attribute for an img element

So I am attempting to combine two image galleries, Galleria and Lightbox. The way it is supposed to work is that Lightbox will read the href from the anchor tag and Galleria will read the src from the image tag in the following code: <a href="./public/images/gallery/2.JPG"> <img class="replaced" src="./public/images/gallery/2.JPG"/> </...

Response.Redirect not always redirecting

We have a simple Response.Redirect on a page that is working inconsistently (IIS 6.0). Most of the time it redirects correctly, but we're getting some users that are complaining that instead of redirecting, they are getting the "302 Object moved to here" page. The page displays the header information with the correct location. If you cli...

line after IFRAME is not visible

line after IFRAME is not visible in both IE and FF. refer the below code and let me know whether I am doing anything wrong. <html> <body> line before iframe <br /> <iframe src="about:blank" /> <br /> line after iframe </body> </html> ...

Debugging not working in Firefox - Firebug

I'm trying to debug an extJS based JavaScript form in Firefox 3.0.8, with Firebug, but none of my debugging statements are working. console.log produces the error console is not defined in the console. The debugger statement just doesn't work. ...

Different Javascript behaviour in different browsers

I'm doing a eCommerce website, but dealing Javascript is killing me. For example, for the following page, http://nordschleife.metaforix.net/118/118/index.php/sony.html It works as intended in Google Chrome, but not in IE or Firefox. For instance, clicking the up or down arrow for products that are down the page (e.g., tenth product) wi...

Firefox extension: how can I pass user selected text as variable to Javascript?

Hello, When writning very simple and basic extension for firefox, what event (I don't know if this is the right word) should I use if I want to process user selected text? To be more precise: when user selects some text (for example when ALT is pressed), I want to pass this text to function, grab some data from the web (based on select...

How do I Inject Javascript with Firefox Extension

Hey guys, I am building a Firefox extension and have come a long way. One of the parts of my extension is where I display a DIV at the bottom of the page and I want to put an ad into the div, but for some reason every time it does so, it redirects to another page entirely with the ad on it. So it looks like its not allowing me to inse...

How do I keep Firefox from prompting for username/password with HTTP Basic Auth with JQuery AJAX?

I'm writing some browser side dynamic functionality and using HTTP Basic Auth to protect some resources. The user experience is very important and is highly customized. Here's a simple test JQuery method that eventually will test if a user has supplied the right credentials in a form: $(document).ready(function() { $("#submit").cl...

How to properly set Firefox as External Web Browser of Eclipse on Mac OS X

The default setting "/Applications/Firefox.app/Contents/MacOS/firefox-bin" tries to start a new instance of Firefox every time, which is refused blatantly by Firefox if there is already one. Then I tried to use the "open" magic and set it to: Name: Firefox Location: /usr/bin/open Parameters: -a /Applications/Firefox.app %URL% which s...

How to run a external Program and get the return-code in a Firefox-Addon

Hy, I'm trying to launch a external process from a mozilla firefox addon (so only js-code allowed). This is easly possible using NSIProcess, but I need the return-code of the executed program. As the NSIProcess doesnt offer a possibility to get the return-code, I'm searching for a alternative possibility. Im trying to avoid to write my ...

Unable to make Firefox open Ack's output

I aim to have a list of lines where I use the word NB in my notes. Pseudo-code open -a Firefox `ack -a NB` However, I cannot make Firefox to understand parameters from terminal. The output of Ack is a text-file, so it should be somehow redirected to Firefox. I run unsuccessfully open "http://`ack -a NB`" I get in Firefox's addre...

asp.net redirect in firefox not working

Hi, In my .net 3.5 web app i redirect users to another page using response.redirect. This works in all ie browsers but not in firefox browsers. i have no idea why? Response.Redirect("~/"+ GlobalConsts.ARTICLE_ANALYSER_URL +"?"+ GlobalConsts.QUERYSTRING_KEY_ONE + SessionHandler.RedirectToArticleID + GlobalConsts.QUERYSTR...

Multiple AJAX requests on F5

Recently we've found one very strange bug in our application. There is a form for paid message sending. User selects his contact members, groups, enter phone numbers and text message, after that he click on Submit button and we send an AJAX request to validate the form and required account's balance for the operation. If user had selec...

Can't use ProcessWindowStyle.Minimized to start Firefox instance minimized?

I'm having trouble using Process.Start with Firefox. I want to start a new instance of Firefox in a minimized window. The following works fine with Internet Explorer, notepad, etc.: ProcessStartInfo p = new ProcessStartInfo(); p.FileName = "iexplore.exe"; p.Arguments = "http://www.google.com"; p.WindowStyle = ProcessWindowStyle.Minimize...

Get image data in Javascript?

I have a regular HTML page with some images (just regular IMG HTML tags). I'd like to get their content, base64 encoded preferably, without the need to redownload the image (ie. it's already loaded by the browser, so now I want the content). I'd love to achieve that with Greasemonkey and Firefox. ...