RE: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104534
interpreted = N
texte = It really is super easy to use ajax with jquery. I encourage you to try itout. Essentially, all you do is create a function so when a user clicks onsomething, you send a post with parameters. You can also use jquery tochange the look of that item (to increase a number for instance). Check outthis example http://15daysofjquery.com/quick-and-dirty-ajax/14/ or this onehttp://articles.sitepoint.com/article/ajax-jquery/3. Once you get the basicworkings, you can create tons of quick ajax enabled features.-----Original Message-----From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk] Sent: Monday, January 18, 2010 9:27 AMTo: talk@webdna.usSubject: Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)Hi Olin,Thanks for your feedback although I am not quite able to decode the .phpexample which you linked to.When I look at the PollDaddy, then it's in the right direction, at least inprincipal. At least it can give me some ideas, but not how to integrate allthe above using WebDNA.I think (if this thread survives) that a very basic example is needed first(WebDNA, AJAX, JS) and after that another baby step is needed. I hope thatsome will join the effort.PalleOn 18/01/2010, at 20.16, Olin Lagon wrote:> Here is one that uses PHP> > http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/> > You just have to change the PHP to webdna which should be really easy. The> Javascript passes a couple of variables you just have to catch and then> process.> > I haven't use this one above but it seems simple. I have used this one> before http://orkans-tmp.22web.net/star_rating/ > > Another approach is to use PollDaddy.> > 1- You will have to log into Polldaddy and then go to Ratings. > 2- Click on create new rating which will take you to a page where you can> customize your ratings and at the end save. > 3- You might want to modify the embedded code so that you identify an item> in your page (like a post in a blog). For this pupose edit the unique_id> (like a unique number), title and permalink of the rating. > 4- Embed code and Voila! > > -----Original Message-----> From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk] > Sent: Monday, January 18, 2010 8:38 AM> To: talk@webdna.us> Subject: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)> > Hi all,> > I am starting this thread to learn a method which I have no experience> within. The knowledge I lack might be within Ajax, Javascript or justwithin> WebDNA - anyway I hope that someone will join this thread to let me learn> and maybe eventually make the content of the thread the official "for> dummies" on webdna.us.> > Basically I want to include a function to my forum code. A functionality> where a user can rate a submission. If the user rates it as a positiveread> then the user presses THUMBS UP and if the user rates it negative then> presses THUMBS DOWN.> > A post to a thread has the value of zero ("0"). If a reader has pressed> THUMBS DOWN to a post, then THE POST = -1 (one down) etc. I hope you getit> - it is all about letting users rate posts.> > Anyway - heres the part where I need to learn... I need for the process to> function without the webpage to reload...> > a) forum page is loaded with e.g. 10 posts> b) logged in user (reader) presses THUMBS DOWN image> c) the action (the -1 to this particular post is stored in a WebDNA DB)> d) the value ThisPostsTotalValue is updated on the webpage (visual)> e) the user (reader) is not able to press any THUMBS on the post anymore> (validated via the WebDNA DB)> f) all is good :)> > ... a challenge for me, but a feature which I crave...> > The a make a reasonable description? Am I missing anything?> > I wish you all a great evening, day, night...> > Palle---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288> ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288
Associated Messages, from the most recent to the oldest:
It really is super easy to use ajax with jquery. I encourage you to try itout. Essentially, all you do is create a function so when a user clicks onsomething, you send a post with parameters. You can also use jquery tochange the look of that item (to increase a number for instance). Check outthis example http://15daysofjquery.com/quick-and-dirty-ajax/14/ or this onehttp://articles.sitepoint.com/article/ajax-jquery/3. Once you get the basicworkings, you can create tons of quick ajax enabled features.-----Original Message-----From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk] Sent: Monday, January 18, 2010 9:27 AMTo: talk@webdna.usSubject: Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)Hi Olin,Thanks for your feedback although I am not quite able to decode the .phpexample which you linked to.When I look at the PollDaddy, then it's in the right direction, at least inprincipal. At least it can give me some ideas, but not how to integrate allthe above using WebDNA.I think (if this thread survives) that a very basic example is needed first(WebDNA, AJAX, JS) and after that another baby step is needed. I hope thatsome will join the effort.PalleOn 18/01/2010, at 20.16, Olin Lagon wrote:> Here is one that uses PHP> > http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/> > You just have to change the PHP to webdna which should be really easy. The> Javascript passes a couple of variables you just have to catch and then> process.> > I haven't use this one above but it seems simple. I have used this one> before http://orkans-tmp.22web.net/star_rating/ > > Another approach is to use PollDaddy.> > 1- You will have to log into Polldaddy and then go to Ratings. > 2- Click on create new rating which will take you to a page where you can> customize your ratings and at the end save. > 3- You might want to modify the embedded code so that you identify an item> in your page (like a post in a blog). For this pupose edit the unique_id> (like a unique number), title and permalink of the rating. > 4- Embed code and Voila! > > -----Original Message-----> From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk] > Sent: Monday, January 18, 2010 8:38 AM> To: talk@webdna.us> Subject: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)> > Hi all,> > I am starting this thread to learn a method which I have no experience> within. The knowledge I lack might be within Ajax, Javascript or justwithin> WebDNA - anyway I hope that someone will join this thread to let me learn> and maybe eventually make the content of the thread the official "for> dummies" on webdna.us.> > Basically I want to include a function to my forum code. A functionality> where a user can rate a submission. If the user rates it as a positiveread> then the user presses THUMBS UP and if the user rates it negative then> presses THUMBS DOWN.> > A post to a thread has the value of zero ("0"). If a reader has pressed> THUMBS DOWN to a post, then THE POST = -1 (one down) etc. I hope you getit> - it is all about letting users rate posts.> > Anyway - heres the part where I need to learn... I need for the process to> function without the webpage to reload...> > a) forum page is loaded with e.g. 10 posts> b) logged in user (reader) presses THUMBS DOWN image> c) the action (the -1 to this particular post is stored in a WebDNA DB)> d) the value ThisPostsTotalValue is updated on the webpage (visual)> e) the user (reader) is not able to press any THUMBS on the post anymore> (validated via the WebDNA DB)> f) all is good :)> > ... a challenge for me, but a feature which I crave...> > The a make a reasonable description? Am I missing anything?> > I wish you all a great evening, day, night...> > Palle---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288> ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288
"Olin Lagon"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Version 4 (2000)
WebCatalog Hosting (1996)
Q on the best way to set up a security function so users can edit records (1999)
WebCat2 beta 11 - new prefs ... (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
WebCat2 - Getting to the browser's username/password data (1997)
WAP and IIS server (2002)
Banners and sort of random display (1997)
Today's suggestions (1998)
Date Question (2002)
Need relative path explanation (1997)
WC2.0 Memory Requirements (1997)
DON'T use old cart file! (1997)
RE: E-mailer error codes (1997)
Template Cache problem (2000)
Page Hanging (2006)
Problems with [Applescript] (1997)
Search in 2 or more catalogs (1997)
[WebDNA] MD5 encryption (2011)
Some ThankYou page problems (1997)