Has anyone implemented AJAX blog comments with .net AJAX extensions? Options
drobar
Posted: Friday, June 20, 2008 1:54:03 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,689
Location: KY, USA
I realize this thread's topic is really about comment posts that don't require page refreshes, but since you mentioned spam handling... wouldn't Defensio work with or with ajax? You can read more about it on Per's blog. http://objects.dk/2007/10/19/defensio-net-library.aspx

Looking forward to what you guys come up with regarding ajax-enabled comments and would be a great thing to add to an updated blog package as well!

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
darrenjferguson
Posted: Friday, June 20, 2008 2:41:57 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
I've made good progress with this and 'proofed' all of the concepts.

The only difficult thing will be that the markup associated with comments will be different for each blog, so it will need to be 'templated' somewhere....


Darren Ferguson - Umbraco level 2 certified
www.darren-ferguson.com - www.fergusonmoriyama.com
warren
Posted: Friday, June 20, 2008 3:16:02 PM

Rank: Addict

Joined: 7/19/2006
Posts: 777
Location: Leigh-on-Sea, Essex, UK
Well as long as all the design elements are in the usercontrol and not in the code behind, to me I don't see that as a problem.

Warren



Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
darrenjferguson
Posted: Friday, June 20, 2008 3:22:37 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
Something like this should do the trick....

http://plugins.jquery.com/node/2028


Darren Ferguson - Umbraco level 2 certified
www.darren-ferguson.com - www.fergusonmoriyama.com
warren
Posted: Friday, June 20, 2008 3:43:06 PM

Rank: Addict

Joined: 7/19/2006
Posts: 777
Location: Leigh-on-Sea, Essex, UK
Why do you need templates in jQuery - as long as the jQuery is easy to read in the first place and some comments in it to mention how to modify the markup that will be injected by jQuery.

Warren



Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
darrenjferguson
Posted: Friday, June 20, 2008 4:36:30 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
warren wrote:
Why do you need templates in jQuery - as long as the jQuery is easy to read in the first place and some comments in it to mention how to modify the markup that will be injected by jQuery.

Warren




I just like the way that this reads:

Code:

var t = $.template('<li>${name}, ${website}, ${date}, ${comment}</li>');
$('#' + appendElement).append(t, json).show("slow");


Darren Ferguson - Umbraco level 2 certified
www.darren-ferguson.com - www.fergusonmoriyama.com
warren
Posted: Friday, June 20, 2008 4:52:55 PM

Rank: Addict

Joined: 7/19/2006
Posts: 777
Location: Leigh-on-Sea, Essex, UK
Hi Darren yeh seems OK, but you can do something similar by building the string up yourself, the template plugin is another JS file to load to save a few lines of the var being set?

Code:
var t = "<li>" + $name + ".... </li>"


Just my 2 cents worth,
Warren



Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
darrenjferguson
Posted: Sunday, June 22, 2008 10:51:39 AM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
warren wrote:
Hi Darren yeh seems OK, but you can do something similar by building the string up yourself, the template plugin is another JS file to load to save a few lines of the var being set?

Code:
var t = "<li>" + $name + ".... </li>"


Just my 2 cents worth,
Warren



Sure, but anyways, the client side part will be extremely easy to modify so anyone could modify the HTML rendering part to their own preference.

Darren Ferguson - Umbraco level 2 certified
www.darren-ferguson.com - www.fergusonmoriyama.com
darrenjferguson
Posted: Monday, July 07, 2008 3:26:54 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.