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

Custom HTML Form and the Ajax extension

Have a question about any of the Dada Mail plugins/extensions?

Custom HTML Form and the Ajax extension

Postby smileybri » Sat Mar 12, 2011 12:57 pm

I thought this would be easy, and maybe it is for some. It seems that DADA has very strict requirements about the form fields. My client has one list called "newsletter" and so I don't need a SELECT list or a subscribe/unsubscribe radio button. The form was designed in by somebody else and I just need to be able to have the email address submitted to the list. Users can get the subscribe and unsubscribe instruction in the welcome email.

Also, I was hoping to use the Ajax submit to do this, and style the "resultdiv" so that it overlay the form giving the effect of replacing it with the result message.

Any chance I can get some assistance with this?

You can see what I am trying to do here:

http://audreynelson.com/brian.php

The page layout also keeps breaking so I keep overwriting from the original, so if you don't happen to see the proper fields this is the reason why. Just check back again in a minute.
smileybri
 
Posts: 11
Joined: Sat Mar 12, 2011 12:26 pm

Re: Custom HTML Form and the Ajax extension

Postby smileybri » Sat Mar 12, 2011 1:01 pm

Oh, it is worth noting that I tried to hide the list and subscribe fields in type=hidden fields. It does not seem to work.
smileybri
 
Posts: 11
Joined: Sat Mar 12, 2011 12:26 pm

Re: Custom HTML Form and the Ajax extension

Postby smileybri » Sat Mar 12, 2011 1:02 pm

And this is a relevant portion of my .data_config file...

ajax_include_subscribe => {

Plugin_URL => undef,
Default_List => 'newsletter';,

},
smileybri
 
Posts: 11
Joined: Sat Mar 12, 2011 12:26 pm

Re: Custom HTML Form and the Ajax extension

Postby smileybri » Sat Mar 12, 2011 2:02 pm

It looks like I got it all worked out.
smileybri
 
Posts: 11
Joined: Sat Mar 12, 2011 12:26 pm

Re: Custom HTML Form and the Ajax extension

Postby woodlawn » Fri Apr 08, 2011 4:42 am

I must be missing something, I do not see how to get the messages to display on the subscription form instead of redirecting? Can anyone asisst?
woodlawn
 
Posts: 3
Joined: Thu Apr 07, 2011 4:47 am

Re: Custom HTML Form and the Ajax extension

Postby smileybri » Fri Apr 08, 2011 6:02 am

Here is a working example on a live site:
http://audreynelson.com/index.php

I know that does not answer everything, but the JavaScript is in the head and the form is in place.

Good luck.
smileybri
 
Posts: 11
Joined: Sat Mar 12, 2011 12:26 pm


Return to Questions

Who is online

Users browsing this forum: No registered users and 1 guest

Loading