Our Forum has Moved

This site is our old forum and is only here for achive until we get proper 301 redirects setup to make Google happy.

Please use our new community site - Our Umbraco - which contains an improved forum, documentation wiki, package repository and a member locator.

Go to Our Umbraco now

Learn everything about Umbraco
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: 2,020
Location: MA, USA; Cambridge, UK
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 - Percipient Studios - Percipient Blog
darrenjferguson
Posted: Friday, June 20, 2008 2:41:57 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 259
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 - http://twitter.com/darrenferguson
Try out Umbraco - http://autoumbraco.darren-ferguson.com/
warren
Posted: Friday, June 20, 2008 3:16:02 PM

Rank: Umbracoholic

Joined: 7/19/2006
Posts: 1,025
Location: Benfleet, 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

Are you NEW to Umbraco? Download CWS to help you learn Umbraco quickly
NOW Available from the Official Umbraco Package Repository
darrenjferguson
Posted: Friday, June 20, 2008 3:22:37 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 259
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 - http://twitter.com/darrenferguson
Try out Umbraco - http://autoumbraco.darren-ferguson.com/
warren
Posted: Friday, June 20, 2008 3:43:06 PM

Rank: Umbracoholic

Joined: 7/19/2006
Posts: 1,025
Location: Benfleet, 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

Are you NEW to Umbraco? Download CWS to help you learn Umbraco quickly
NOW Available from the Official Umbraco Package Repository
darrenjferguson
Posted: Friday, June 20, 2008 4:36:30 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 259
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 - http://twitter.com/darrenferguson
Try out Umbraco - http://autoumbraco.darren-ferguson.com/
warren
Posted: Friday, June 20, 2008 4:52:55 PM

Rank: Umbracoholic

Joined: 7/19/2006
Posts: 1,025
Location: Benfleet, 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

Are you NEW to Umbraco? Download CWS to help you learn Umbraco quickly
NOW Available from the Official Umbraco Package Repository
darrenjferguson
Posted: Sunday, June 22, 2008 10:51:39 AM

Rank: Fanatic

Joined: 3/19/2008
Posts: 259
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 - http://twitter.com/darrenferguson
Try out Umbraco - http://autoumbraco.darren-ferguson.com/
darrenjferguson
Posted: Monday, July 07, 2008 3:26:54 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 259
Location: London, UK

The forum has moved

This forum is no longer in use, so you can't reply to this message - please go to Our Umbraco

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.