Re: some suggestions/improvements for Dada

 
From: "Frans Gouverne" <f.gouverne@PROTECTED>
Date: August 24th 2005

So, back to the list switch widget - can some one whip up some code that will allow the onSubmit select box to work if JS is enabled, but show a submit button if no JS is available? And be standards compliant? If someone can, I can work with that and place it into Dada Mail, where ever it needs to go; If we're targeting the submit button to be used on constrictive environments like text-based browsers, or perhaps a handheld PDA, I don't think pixel perfect layout is absolutely necessary

Justin Simoni

That's not too difficult The version below of "login_switch_widget " will show the button again when Javascript is not available The selection list at screen "Manage Subscribers - View" can be handled the same way I guess

Frans Gouverne

#

sub login_switch_widget {

my %args = (-list => undef, -f => undef, @_); die "no list!" if ! $args{-list};

my @lists = available_lists(); my %label = ();

foreach my $list( @lists ){ my $ls = DADA::MailingList::Settings->new(-List => $list); my $li = $ls->get; $label{$list} = $li->{list_name} ' (' $list ')';

} # a complete guess my $location = $q->self_url || $S_PROGRAM_URL '?flavor=' $args{-f};

my $script = qq~ ~;

$label{$args{-list}} = '------';

my $js = "\n\n";

if($lists[1]){ return $q->start_form(-action => $S_PROGRAM_URL, -method => "post", )

"$js document
write('<div>Switch list:</div>'); $jsend" 


  $q->popup_menu(-style   => 'width:75px',
     -name    => 'change_to_list',
     -value   => [@lists],
     -default => $args{-list},
     -labels  => {%label},
     -onchange  => "submit();",
     ) 

  $q->hidden(-name => 'location',
    -value => $location,
   ) 

  $q->hidden(-name      => 'flavor',
     -value    => 'change_login',
     -override => 1,
 ) 


"<noscript><br>" 

$q->submit(-value => 'switch', -class=>'plain') 

  "</noscript>" 


  $q->end_form();

}else{ return ''; } }

#
  • This mailing list is a public mailing list - anyone may join or leave, at any time.
  • This mailing list is a group discussion list (unmoderated)
  • Start a new thread, email: dadadev@dadamailproject.com

This is the developer discussion mailing list for Dada Mail.

If you are just looking for support Dada Mail, consult the message boards at:

https://forum.dadamailproject.com

Documentation for Dada Mail:

https://dadamailproject.com/d

Specifically, see the Error FAQ:

https://dadamailproject.com/d/FAQ-errors.pod.html

To post to this list, send a message to:

mailto:dadadev@dadamailproject.com

All subscribers of this list may post to the list itself.

Topics that are welcome:

  • Constructive critiques on the program (I like, "x", but, "y" needs some work - here's an idea on how to make this better...)
  • Bug/Error reports
  • Bug fixes
  • Request For Comments on any changes to the program
  • Help customizing Dada Mail for your own needs
  • Patches
  • Language Translations
  • Support Documentation/Doc editing, FAQ's, etc.
  • Discussion of any changes that you would like to be committed to the next version of Dada Mail -

Dada Mail is on Github:

https://github.com/justingit/dada-mail/

If you would like to fork, branch, send over PRs, open up issues, etc.

Privacy Policy:

This Privacy Policy is for this mailing list, and this mailing list only.

Email addresses collection through this mailing list are used explicitly to work within this email discussion list.

We only collect email addresses through our Closed-Loop Opt-In system.

We don't use your email address for any other purpose.

We won't be sharing your email address with any other entity.

Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.

All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.

All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.