|
|
 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.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 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 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
|
|
 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
|
|
 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
|
|
 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
|
|
 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
|
|
 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
|
|
 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
|
|
 Rank: Fanatic
Joined: 3/19/2008 Posts: 219 Location: London, UK
|
|
|
|
Guest |