firebug

firebug: how to cd to an iframe

流过昼夜 提交于 2019-12-02 15:39:31
I have a facebook canvas application that runs in an iframe. I would like to debug my page in firebug but can not get the javascript to scope to the iframe that is running my app. the iframe: <iframe frameborder="0" src="[app_url_removed]" name="iframe_canvas" id="iframe_canvas" class="canvas_iframe_util" style="height: 905px;"></iframe> i've tried all the following and none of them work: cd(iframe_canvas) cd(window.iframe_canvas) cd(iframe_canvas.window) cd($('iframe_canvas')) I have firefox 3.6.13 and I have tried firebug 1.7a11 and firebug 1.6.2 also tried the bookmarklet and various other

javascript while loop giving different results in node and browser

时间秒杀一切 提交于 2019-12-02 15:31:28
问题 I am executing the following seemingly straightforward code var number = 0; while (number <= 12) { console.log(number); number = number + 2; } and I am getting different results in the browser and in Node. When I run it in the Firebug(v 2.0.4 ) console on Firefox(v. 32.0.3) the result I get is 0 2 4 6 8 10 12 14 which is not`the result I expected. In Node, the same code gives me the correct answer which is 0 2 4 6 8 10 12 Is there anything I'm missing regarding the behaviour in the browser???

Exception Illegal value in Firebug

不问归期 提交于 2019-12-02 14:38:11
问题 Today, I've found exception in my firebug console: uncaught exception: [Exception... "Illegal value" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://portal.aolcdn.com/p5/_v39.5/js/main.js :: anonymous :: line 196" data: no] 回答1: This happens for example happen you pass undefined (instead of a string) as an URL to an XmlHttpRequest object. The object detects that this is an invalid value and throws an exception. The exact cause of the problem depends on the code

What unique features does Firebug have that are not built-in to Firefox?

橙三吉。 提交于 2019-12-02 14:05:43
I just cleaned my Firefox addons and wondered: Which features does Firebug have that make it unique? Which features are available in both Firebug and the Firefox Developer Tools? Sebastian Zartner Firefox's native developer tools have come a long way since this question was written. The differences have mainly reduced to the following points: Can't stop the script execution on DOM mutations, XHRs, or cookie changes. XPaths can't be copied. Missing an events side panel in the Inspector (though events are displayed within the DOM structure). Missing a DOM side panel in the Inspector. No live

Inspect an element to investigate jQuery event bindings

Deadly 提交于 2019-12-02 13:56:47
Hypothetical: I find a page with a button ('#bigButton'), that when clicked causes a llama ('img#theLlama') to show() using jQuery. So, somewhere (say, Line 76) in buttons.js: $('#bigButton').click(function(){ $('img#theLlama').show(); }) Now, let's say I have a big HTML page with a whole bunch of .js files included. I can click on the button and see the llama appear, but I have no idea where the code above is. The solution I am looking for is very similar to that which is available with CSS in Firebug. I want to inspect the element and have it show me that this jQuery occurs in Line 76 of

Why is the image drawn in the canvas when debugging but not when running?

北战南征 提交于 2019-12-02 13:16:35
问题 I'm learning HTML5 and Javascript and I'm trying to draw an image on a canvas. I have the following code which draws the image if I step through the code after breaking on the line marked below. If I don't debug then the image is not drawn at all. What am I doing wrong? Firefox 10 with FireBug 1.9. Note that although there's a loop to handle multiple images, I've only been selecting one. I figure if one doesn't work, a hundred won't work either. ;-) <!DOCTYPE html> <html> <body> <input type=

Exception Illegal value in Firebug

两盒软妹~` 提交于 2019-12-02 09:41:46
Today, I've found exception in my firebug console: uncaught exception: [Exception... "Illegal value" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://portal.aolcdn.com/p5/_v39.5/js/main.js :: anonymous :: line 196" data: no] This happens for example happen you pass undefined (instead of a string) as an URL to an XmlHttpRequest object. The object detects that this is an invalid value and throws an exception. The exact cause of the problem depends on the code at that position. Inspect the values of the variables that are used there and see if any of them contain

$ not defined in JavaScript

核能气质少年 提交于 2019-12-02 09:11:03
问题 Firebug is reporting that $ is not defined [Break On This Error] $(function(){ I have a simple index.php page that does a php include to include the contents I need. The contents are as follows: <script type="text/javascript"> $(function(){ $("#ipad").submit(function() { $.post("ipadcheck.php", $("#ipad").serialize(), function(data) { if(data.error == 'TRUE') { $("#results_ajax").html("<div class='AppleRedBold'>Sorry There were Errors: " + data.error_message + "</div>"); } else { $("#results

Firebug kills -webkit Settings in CSS File - Why?

北战南征 提交于 2019-12-02 07:24:26
style.css - Original File .box { -webkit-border-radius:8px; -moz-border-radius:8px; padding:10px; } style.css - In Firebug CSS Console .box { -moz-border-radius:8px 8px 8px 8px; padding:10px; } How can I force Firebug to show my -webkit css styles as well? Thanks for your help! Ben Hull I don't think you can - the correct behaviour for browsers is to ignore style rules they don't understand. Firefox sees -webkit-xxx and effectively removes it from the style set, so it can't ever be applied to .box . Safari's inspector will show the -webkit- rules but ignore the -moz- rules for the same reason.

alert() return different from console.log()?

馋奶兔 提交于 2019-12-02 06:06:20
问题 Should I be using alert() for debugging; or is there a time to use alert() vs. console.log()? I see that alert() and console.log() can return different results. I assumed that they were similar functions but just returned in different places. Back story: my boss likes to see alerts() during development but I can't get the object details in the alert (at least not easily). But when I run the same request through console.log, I get the object and all of it's parameters. 回答1: Since alert could