|
|
 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.aspxLooking 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
|
|
 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/darrenfergusonTry out Umbraco - http://autoumbraco.darren-ferguson.com/
|
|
 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 developerAre you NEW to Umbraco? Download CWS to help you learn Umbraco quickly NOW Available from the Official Umbraco Package Repository
|
|
 Rank: Fanatic
Joined: 3/19/2008 Posts: 259 Location: London, UK
|
|
|
 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 developerAre you NEW to Umbraco? Download CWS to help you learn Umbraco quickly NOW Available from the Official Umbraco Package Repository
|
|
 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/darrenfergusonTry out Umbraco - http://autoumbraco.darren-ferguson.com/
|
|
 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 developerAre you NEW to Umbraco? Download CWS to help you learn Umbraco quickly NOW Available from the Official Umbraco Package Repository
|
|
 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/darrenfergusonTry out Umbraco - http://autoumbraco.darren-ferguson.com/
|
|
 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
|
|
Guest |