firebug

What is the behavior of typing {a:1} giving 1, and {a:1, b:2} giving an error in a Javascript console?

The following will show in Firebug or in jsconsole.com or in other Javascript interactive console: >>> foo = { a : 1, b : 2.2 } Object { a=1, more...} >>> foo.a 1 >>> foo.b 2.2 >>> { a : 1, b : 2.2 } SyntaxError: invalid label { message="invalid label", more...} >>> { a : 1 } 1 why is the 1 returning for {a : 1} and why is {a : 1,...

Detect firebug opening and closing

Hi, Does anybody have a way to detect Firebug opening and closing. I know you can do the following: if (window.console && window.console.firebug) { //Firebug is enabled } but this only detects the firebug console on page load. What I want to do is on a page where firebug is not open, detect the opening of the firebug console. I'v...

Firebug: Stop the HTML inspector window from jumping

I've looked around for answers to this problem, but I couldn't find anything related. This is very stupid problem but I have no idea how to resolve it. I have a page with a slideshow for example, I open Firebug to inspect the HTML, but when I'm using the HTML inspector panel it then 'jumps' to the section of the slideshow (since a new ...

How to get firebug to break on exception?

I'm using Firebug 1.5.4. When I reference an undefined variable or some such, it breaks right where the problem occurs, and throws me into the debug view where I can see the stack and inspect variables. However, when I throw my own exception, it just takes me to the console and prints out "uncaught exception: blah". I'd like it to bre...

jquery - how do i access those arrays and variables in the dom?

Hi, Im using firebug to debug jquery and in the dom tab i can see all the vars and arrays in there. How do I access the different arrays and vars in the dom? Cheers Ke I cannot access these object items, even though firefox lists them, i have sitems in the top level of the dom, i also have sitems within the parent variable. a lot of...

javascript firebug error

I have a javacript code coupon.js defined as follows - jQuery(document).ready(function(){ jQuery('.appnitro').submit( function() { $.ajax({ url : $(this).attr('action'), type : $(this).attr('method'), dataType: 'json', data : $(this).serialize(), success : function( data ) { for(var id in data) { jQuery('#' + id).html( data[id] ...

js override console.log if not defined

Witch solution do you recomend, the second is simpler ( less code ), but there are drawbacks on using it ? first: (set a global debug flag) // the first line of code var debug = true; try { console.log }catch(e) { if(e){ debug=false; } }; // then latter in the code if(debug) { console.log(something); } second: ...

How to use Firebug to easily find which css file defines a particular style

Maybe I'm just a Firebug newbie, or maybe there is some other better tool? But I'm trying to easily find which of several linked css files, defines a specific element's style. For instance in a production environment I can pinpoint that a style named left-tab is being applied to a specific element, and it renders properly. In the deve...

jquery ajax request firebug error

I am using php/ajax to submit a form without page refresh. Here are my files- coupon.js jQuery(document).ready(function(){ jQuery(".appnitro").submit( function(e) { $.ajax({ url : "http://174.132.194.155/~kunal17/devbuzzr/wp-content/themes/street/sms.php", type : "post", dataType: "jso...

Intermittent JavaScript Issue

I'm running some JavaScript via eval (I know, shoot me), that basically enumerates all of the properties on the document object. My issue is that while it works in firebug, it throws a not implemented exception in Firefox, when run from a script. Link to JavaScript script, the exception thrown, and the firebug command working. Any sugg...

javascript firebug error help

Hello, For the life of me, I can't seem to find the issue with my javascript. Firebug is spitting out the following error: missing ) after argument list [Break on this error] $.getJSON('http://local.yahooapis.co... results +'&output=json&callback=?',\n Here is my code: function getLocationJSON(fooBar) { var appid = 'RvkxtGN.OtlDns...

Quickest way to copy the CSS from HTML markups

For example, when you open Firebug and select an HTML element, the CSS styles that affect this element will show up on the right panel. If this element has no child, copying its CSS styles is easy. But sometimes the element has lots of descendant elements and they have CSS styles defined on them as well. What is quickest way that you k...

How to debug events on page with jQuery

Every once in a while, some feature on a site I use will be broken/have annoying behavior that I want to change with a greasemonkey script. When I try to debug the site using firebug to find out what code is called from an event by using "Break On Next", firebug just breaks immediately to show some jQuery code that is always running. A...

Firebug's HTML in the HTML tab is grayed not, therefore not visible on the page itself.. why?

So here's the deal- I'm using AJAX to load page content via XML files. The content gets loaded correctly, no problem there. But, when I load a specific piece of HTML, Firebug shows it as grayed out, and I know from looking online that means it's not visible on the page itself, which is true in my case- I do not see that div on the page. ...

Prevent Recursive jQuery AJAX incrementing browser memory usage

I'm using recursive jQuery AJAX to callback values from the server every second. However, this seems to be incrementing the amount of memory usage my browser has. I'm using FireFox and I have FireBug installed which I believe to be the culprit as this logs every callback in its Console. My first question is, am I right in saying this i...

ID value is being changed when added to database, different from posted and submitted values.

I have a form that creates a new brand. The user chooses a name, image, and website url for the brand and hits submit. The edit scenario works the same way. The issue I'm having is when creating a new brand, the correct imageId is being posted, and right up to SaveChanges() in my action its correct. When I check the new row in the databa...

when viewing a page in firebug, can I see which event fires when I click a button?

I'm viewing a page, and want to know which event is fired when I click on a button, and I want to trace through the .js files to help me learn what is going on. Is this possible? ...

Firebug breakpoints in dynamically generated jQuery?

So Firefox+Firebug seems to be the tool of choice for debugging jQuery. Its certainly very handy. I can get breakpoints in JavaScript code that was there when the page originally loaded (the breakpoint-able lines show up with green line numbers in Firebug). But when jQuery code gets returned by an Ajax call, I can't get breakpoints to ...

How to print debug messages in Firebug Lite (Google Chrome extension)? [solved]

Does anyone know how to log to Firebug Lite Console using a simple PHP method call to print debug messages (something like the Firephp class for Firebug, in Firefox)? Thanks ...

Firebug : How to make net tab persistent?

If I load new web page, the content of the old web page in net tab would all disappear. Is there a way to make it persistent over different web page? PS: I'm using Firebug 1.5.4. Thanks in advance. ...