On Oct 19, 4:52 am, Maitre Bart <[email protected]> wrote: > From a shell (in Linux), if I call wget on a specific web page (e.g. > our server's main web site), I get the static HTML code of the > requested URL. By static, I mean the opening html tag, the header > section, the static body section (i.e. without the dynamic content), a > big javascript function, and then the closing html tag. > > The dynamic content is some HTML code that is added by AJAX > dynamically and that wget cannot get. > > If I open this same URL with Firefox and click on View | Page Source, > I can see I get exactly the same content as wget. Moreover, if a open > Firebug within Firefox and go to the SCRIPT tab, I can see I get the > same content as the above. > > However, if I open Firebug within Firefox and go to the HTML tab, only > there can I see the full HTML code, i.e. with the HTML code that is > added dynamically by AJAX. That is this HTML content I'd like to get > using wget but cannot find how. The HTML panel is showing the current state of the page so, that's why you are seeing even dynamically appended content.
> So maybe the Firebug API might be of some help here. > > My question is: Is it possible from a shell script to tell Firebug > (via Firefox) to dump the content of its HTML tab in a file for a > given URL? This should be possible via a Firebug extension. Such extension would have read the command line argument (see an example of a command line handler here: http://code.google.com/p/fbug/source/browse/fbtest/branches/fbtest1.9/components/commandLine.js) and wait till the page is loaded. Consequently it could export the content of the HTML panel. There are already extensions for the Console panel (ConsoleExport) and Net panel (NetExport) exporting so, this could be a nice addition. http://getfirebug.com/wiki/index.php/Firebug_Extensions Honza -- 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.
