Skip Menu |

This queue is for tickets about the XUL-Gui CPAN distribution.

Report information
The Basics
Id: 72846
Status: rejected
Priority: 0/
Queue: XUL-Gui

People
Owner: Nobody in particular
Requestors: DOUGW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.63
Fixed in: (no value)



Subject: Web::GUI closes window when appending nodes
The attached program tries to add a table to the window, but when the number of rows in the table is above some amount (5 seems ok, 50 does not), the "window wants to close" dialog comes up. Using IE 8.
Subject: webguitst.pl
#!/usr/bin/perl use strict; use warnings; use XUL::Gui; my $result_cnt = 0; display H3('SQL Query'), (SPAN style => q{ background-color: #222; outline: 2px solid #444; padding: 10px; margin: 10px; }, (INPUT type => 'button', value => 'Query', onclick => sub { $result_cnt++; SubmitQuery(); print "Done!\n" }, ), (INPUT type => 'button', value => 'Quit', onclick => sub { print "Quit!\n"; quit() }, ), (BODY id => 'body', P("Body"), TABLE( id => "table_$result_cnt", border => 1, TR(TD("#")) ), ), ); sub SubmitQuery { my $n_cols = 20; my $n_rows = 50; my @columns = (1..$n_cols); my @results = ([("abcdef") x $n_cols]) x $n_rows; $ID{body}->appendChild( TABLE( id => "table_$result_cnt", border => 1, TR( map { TH($_) } @columns ), ( map { TR( map { TD($_) } @$_ ) } @results ), ) ); return 1; }
On Wed Nov 30 12:15:22 2011, DOUGW wrote: Show quoted text
> The attached program tries to add a table to the window, but when the > number of rows in the table is above some amount (5 seems ok, 50 does > not), the "window wants to close" dialog comes up. Using IE 8.
in your example program, you are using XUL::Gui and not Web::Gui. There are a number of changes that are made to the launch process between the two flavors of the module that might be causing your problem. In general the support for IE is limited. If you do not want to use firefox, you can use any webkit based browser (Safari, Chrome...) and you may have better results. Web::Gui is about to get a major upgrade, which will be posted as soon as I finish resolving a few bugs. Stay tuned.