Subscribe to receive updates on Dada Mail:

Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

Flash [AS 2.0] - Email Subscription Form

What else do you want to hook Dada Mail to?

Flash [AS 2.0] - Email Subscription Form

Postby joe124c41 » Fri Oct 16, 2009 12:05 pm

I was tinkering with the email_subscription_form.fla and I almost have it done!

Everything in Flash is working fine and the swf works as expected, but the confirmation email never gets sent, so Im assuming the email never gets fully passed through Dada?

I used this to check:
http://site.com/cgi-bin/mail.cgi?f=subscribe_flash_xml&l=list&e=name@site.com&test=1

and got this error:

Code: Select all
<!--beginsubscription_check_xml.tmpl--><subscription><email>name@site.com</email><status>1</status><errors></errors></subscription><!--endsubscription_check_xml.tmpl-->Content-type: text/html

<h1>Program Error (Server Error 500)</h1>
                  <hr />
             <p>
              <em>
              More information about this error may be available in the
              server error log and/or program error log.
              </em>
             </p>
             <hr />
               <pre>BAD List name &quot;&quot;  at /DADA/MailingList/Subscribers/baseSQL.pm line 63
</pre>


Server Error Log:
[Fri Oct 16 12:46:50 2009] mail.cgi: BAD List name "" at /DADA/MailingList/Subscribers/baseSQL.pm line 63

The baseSQL.pm,
LINE63:
" $self->{ls} = DADA::MailingList::Settings->new({-list => $args->{-list}}); "


Any ideas? I know this list had a two letter short list name, could that be a factor?

I setup the flash form on another site as well with a four letter short listname, and I got slightly different results:

Code: Select all
<h1>Program Error (Server Error 500)</h1>
                  <hr />
             <p>
              <em>
              More information about this error may be available in the
              server error log and/or program error log.
              </em>
             </p>
             <hr />
               <pre>BAD List name &quot;&quot;  at /DADA/MailingList/Subscribers/PlainText.pm line 49
</pre>


Server Error Log:
[Fri Oct 16 11:57:44 2009] mail.cgi: BAD List name "" at /DADA/MailingList/Subscribers/PlainText.pm line 49

The Plaintext.pm LINE 49:" $self->{ls} = DADA::MailingList::Settings->new({-list => $args->{-list}}); "

Thanks to anyone who has ideas! Im stuck, getting better at error corrections and reading code, but still more to learn.
Ramen builds charachter.
http://joesturges.com
User avatar
joe124c41
 
Posts: 22
Joined: Thu Mar 05, 2009 8:16 am
Location: NY

Re: Flash [AS 2.0] - Email Subscription Form

Postby dahex » Wed Nov 11, 2009 5:22 am

yess in the flash example list is equal l but should be list and email is equal e but should be email

http://yoursite.com/cgi-bin/dada/mail.c ... flash_xml&list=listshortname&email=someone@address.com

My way:
Code: Select all
var status = 1;
var errors = new Array();
var message = '';
var email = '';
XML.prototype.ignoreWhite = true;// Must have

var Dada:LoadVars = new LoadVars();// NO XML

var Dadar:XML = new XML();// Used for response


Code: Select all
Dada.list="shortnamelist";
   Dada.f="subscribe_flash_xml";
   Dada.email="somebody@somedomain.som";
   alt = _root.dada_dot_cgi;
   Dada.sendAndLoad(_root.dada_dot_cgi,Dadar,"POST");
   Dadar.onLoad = function(success:Boolean) {
      if (success) {

// check the result from (Dadar) just like in the flash5 example
}else{
// connection problem ...
}
}



I hope this helps
dahex
 
Posts: 2
Joined: Wed Nov 11, 2009 5:08 am

Re: Flash [AS 2.0] - Email Subscription Form

Postby justin » Wed Nov 11, 2009 8:49 am

Looks good! Better than my example!

If you make an entire .fla file (that we can distribute with Dada Mail), I'll be more than happy to ship it with Dada Mail :)
- Justin J, Lead Dadaist for Dada Mail
Support Dada Mail by Going Pro!.
User avatar
justin
 
Posts: 2828
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Flash [AS 2.0] - Email Subscription Form

Postby dahex » Wed Nov 11, 2009 12:26 pm

Hey Justin here is the
email_subscription_form_AS2.zip
Flash AS2 subscription example
(6.45 KiB) Downloaded 95 times

Thank you
Cris
dahex
 
Posts: 2
Joined: Wed Nov 11, 2009 5:08 am

Re: Flash [AS 2.0] - Email Subscription Form

Postby justin » Wed Nov 11, 2009 2:18 pm

Thanks!

I'll check it out!
- Justin J, Lead Dadaist for Dada Mail
Support Dada Mail by Going Pro!.
User avatar
justin
 
Posts: 2828
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Flash [AS 2.0] - Email Subscription Form

Postby joe124c41 » Fri Apr 02, 2010 10:32 am

dahex wrote:Hey Justin here is the
email_subscription_form_AS2.zip

Thank you
Cris


Cris,

I reviewed the code and I uploaded it today and I am using Dada 4.0.2, the only variables I changed were the list's SHORT name and var dada_dot_cgi = 'http://site.com/dada/mail.cgi'; I do not have a folder named cgi-bin so I changed the url slightly.

It says connection problem when I submit. Does the code need any updating to work with the latest version?

Justin, any thoughts or insights?

Thanks for the help guys.
Ramen builds charachter.
http://joesturges.com
User avatar
joe124c41
 
Posts: 22
Joined: Thu Mar 05, 2009 8:16 am
Location: NY


Return to Other! Integration

Who is online

Users browsing this forum: No registered users and 1 guest