|
Hello Scott,
great work so far!
I was curious if I could use Mozilla::DOM without the Gtk2 window:
#!/usr/bin/perl -w
use strict;
use Cwd qw(getcwd);
use Data::Dumper;
use Gtk2::MozEmbed 0.04;
my $moz = Gtk2::MozEmbed->new;
$moz->signal_connect(net_stop => \&net_stop_cb);
my $cwd = getcwd;
$moz->load_url("file://$cwd/termine.html");
sleep(1);
sub net_stop_cb {
my $moz = shift;
my $browser = $moz->get_nsIWebBrowser;
my $window = $browser->GetContentDOMWindow;
my $doc = $window->GetDocument;
my $docelem = $doc->GetDocumentElement;
print Dumper($docelem);
return;
}
But nothing happens. Do I really have to use?
my $window = create_window($class);
# Display the application window.
$window->show_all();
Gtk2->main();
Thank you,
good bye, Uwe
|