Hi HernĂ¢ni, 2010/4/9 HRCerqueira <[email protected]>: > Hey all, I'm using firebug lite as part of a hosting service theme > editor which shows the main website page inside a 100%x100% iframe so > that people can navigate the site looking for spots to be themed. > However it doesn't seem to inspect inside iframes, although I have the > idea that I saw that somewhere in the features list. The iframe is > under the same domain, so there's is no cross-domain restrictions > here. Is there any special config I need to do?
Currently, Firebug Lite does not work well on pages with iframes. A lot of improvements were made in the 1.3 version's core to allow "context independent" debugging (i.e. make it work with iframes), but we need to adjust all modules to support this feature, which should be available at 1.4 version. You can, however, workaround this problem by loading the script inside the iframe, as you suggested. > One other possible solution I was thinking of was to load firbug from > inside the iframe, however that doesn't seem to work. Is that > possible, anyone ever tried such thing? Yes it is possible. I've tried and it seems to work fine. Just a small note. Even if the iframe is in the same domain as the main page, you must ensure that the Firebug Lite script is loaded in the same domain, that is, the best way is to download the source code, and load the script locally in your domain, because if Firebug script and the page are in different domains you won't be able to read some page resources. You can download the full source code here: http://getfirebug.com/releases/lite/beta/firebug.tar.tgz Also, please read the installation instructions here: http://getfirebug.com/releases/lite/beta/#Install Here's a sample code for the main page (index.html): ----------------------------------------------------------------- <html> <body> <iframe src="iframe.html" style="width:100%; height:100%;"> </body> </html> ----------------------------------------------------------------- And here's the code for the iframe page (iframe.html): ----------------------------------------------------------------- <html> <head> <script type="text/javascript" src="https://getfirebug.com/releases/lite/beta/firebug.js#startOpened,disableWhenFirebugActive=false"></script> </head> <body> <h1>Iframe Header</h1> </body> </html> ----------------------------------------------------------------- Just a small note: by default, Firebug Lite will not be loaded if it detects that Firebug is already active in your page, so if you're testing it in Firefox you may want to change the default settings, as shown above. I'm loading in this example the script externally (from getfirebug.com), but as I suggested, the best way in your case is to load it locally, copying the source to your domain. If you have any other doubts, please post here and I'll be glad to help you. regards, Pedro Simonetti. > > Thanks in advance, > HernĂ¢ni > > -- > You received this message because you are subscribed to the Google Groups > "Firebug" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/firebug?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
