Dreamhost List AJAX

I noticed that there was some interest on the Dreamhost forums for AJAX to register for lists. I thought this was a good idea, and upon finding no solution, I set out to make one.

I admit that both this is not terribly easy to set up nor is it terribly hard. You have to modify 1 php file and include the required components on your web page. There is a full readme enclosed to help you get it set up.

If you have any questions or comments, please leave a comment!

Download the code

8 comments so far

Nice! Thanks for taking the time to do this, and for sharing it with us. Rock ON!

Robert Parker
June 21st, 2007 at 11:30 pm

Thank you SO MUCH for this! You ROCK!!!

Daniel
August 12th, 2007 at 1:34 am

I’m trying to get this working with the e107 CMS system, and the one question I’m not clear on is what URL to send the results to when setting up the DH Announcement list. Is it the page I have the app on, the handler PHP file, or something else?

David Simmons
May 1st, 2008 at 11:01 pm

David

I’m not sure exactly what you are asking (I’ve never used the e107 CMS system). Your form for adding a user should post to the announce list handler php file (from the zip) which will then forward the information to dreamhost for you. This means that AJAX enabled requests will be sent to the handler as well as standard POST requests. If you were looking for something else, could you please clarify?

Quad341
May 2nd, 2008 at 1:26 am

Hi, I’m actually asking about the configuration of the DH announcement list. I’ve got it set up to send the results to the list handler php file, as that is what I assumed needed. My basic problem is that it doesn’t seem to post the updates back to my code. I’m new to AJAX completely, so I may be missing something.

I’ve also taken a step back and am just using the example.html file to verify that it’s not the CMS that is causing the problems, and I’m getting the same result.

David Simmons
May 2nd, 2008 at 8:57 am

Just for testing, I threw together a new example list. I only specified the title, from address, and domain. Then in announceListHandler.php, I changed the list and domain variables to reflect what they are (example and dev.quad341.com respectively if you’d like to see if you can post against that list)

If that doesn’t help, I might be misunderstanding what you are expecting versus what you are seeing.

Quad341
May 2nd, 2008 at 10:47 am

Thanks, I think I have it working now with the example.html file. I think my problem was with a couple of minor changes I made to the announceListHandler.php when I was having problems. I’ll try again with the code in the CMS and see what happens…

Oh, and in answer to my first question, the URL’s in the DH list setup appear to have to point to the example.html file, not the handler file. That was the piece that finally got me working, and the piece that was wrong from the start.

David Simmons
May 2nd, 2008 at 11:51 pm

quad341…

thanks for the code…

-c

christian summer
June 4th, 2008 at 9:06 pm

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment