Hi,
I'm not too excited about Mono because I can't use perl with it :) (C#
is a fine language, but I want to stick with perl.)
What I want is simple enough to explain (I think) so I'll give it a
shot.
Right now with XMLSubs, we can do the following:
---------------------------------------------------------------
[asp.pm]
package asp;
sub listbox
{
my ($args, $html) = @_;
print qq{<select id="$args->{id}">html</select>};
}# end listbox()
[listbox.asp]
<asp:listbox id="list1">
<option selected>Select One</option>
<option value="1">Blue</option>
<option value="2">Red</option>
</asp:listbox>
---------------------------------------------------------------
What I want to do would look something like so:
---------------------------------------------------------------
[listbox.asp]
<asp:listbox id="list1">
<asp:listitem>Select One</asp:listitem>
</asp:listbox>
<%
# Dynamically add items to the list before it's rendered:
$Page->list1->Items->add(
asp::listitem->new( Value => "1", Text => "Blue" ) );
$Page->list1->Items->add(
asp::listitem->new( Value => "2", Text => "Red" ) );
# or, iterate through items within the listbox:
foreach my $item ( $Page->list1->Items )
{
if( $item->Value == 1 )
{
$item->Text = "Blue [this is my favorite...isn't it yours?]";
}# end if()
}# end foreach()
%>
---------------------------------------------------------------
Something tells me that this isn't too far away from what we already
have with Apache::ASP...that with some extra methods inherited from a
package subclassed by asp::listbox and asp::listitem, it is 100%
possible.
I would need some help with where to bless the $Page object into the
namespace the ASP pages are executed in.
While I see great value in the current XMLSubs framework, I see this as
the next logical step.
There are some things about the ASP.NET model I don't like, and some I
do.
Apache::ASP does *almost* everything I want it to do, and this kind of
extension would make it a lot more powerful in my opinion.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]