RE: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104530
interpreted = N
texte = Here is one that uses PHPhttp://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. TheJavascript passes a couple of variables you just have to catch and thenprocess.I haven't use this one above but it seems simple. I have used this onebefore 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 cancustomize your ratings and at the end save. 3- You might want to modify the embedded code so that you identify an itemin 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 AMTo: talk@webdna.usSubject: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)Hi all,I am starting this thread to learn a method which I have no experiencewithin. The knowledge I lack might be within Ajax, Javascript or just withinWebDNA - anyway I hope that someone will join this thread to let me learnand maybe eventually make the content of the thread the official "fordummies" on webdna.us.Basically I want to include a function to my forum code. A functionalitywhere a user can rate a submission. If the user rates it as a positive readthen the user presses THUMBS UP and if the user rates it negative thenpresses THUMBS DOWN.A post to a thread has the value of zero ("0"). If a reader has pressedTHUMBS DOWN to a post, then THE POST = -1 (one down) etc. I hope you get it- it is all about letting users rate posts.Anyway - heres the part where I need to learn... I need for the process tofunction without the webpage to reload...a) forum page is loaded with e.g. 10 postsb) logged in user (reader) presses THUMBS DOWN imagec) 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 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:
Here is one that uses PHPhttp://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. TheJavascript passes a couple of variables you just have to catch and thenprocess.I haven't use this one above but it seems simple. I have used this onebefore 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 cancustomize your ratings and at the end save. 3- You might want to modify the embedded code so that you identify an itemin 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 AMTo: talk@webdna.usSubject: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)Hi all,I am starting this thread to learn a method which I have no experiencewithin. The knowledge I lack might be within Ajax, Javascript or just withinWebDNA - anyway I hope that someone will join this thread to let me learnand maybe eventually make the content of the thread the official "fordummies" on webdna.us.Basically I want to include a function to my forum code. A functionalitywhere a user can rate a submission. If the user rates it as a positive readthen the user presses THUMBS UP and if the user rates it negative thenpresses THUMBS DOWN.A post to a thread has the value of zero ("0"). If a reader has pressedTHUMBS DOWN to a post, then THE POST = -1 (one down) etc. I hope you get it- it is all about letting users rate posts.Anyway - heres the part where I need to learn... I need for the process tofunction without the webpage to reload...a) forum page is loaded with e.g. 10 postsb) logged in user (reader) presses THUMBS DOWN imagec) 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 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:
WC Database Format (1997)
WebCat2b13 Command Reference Doc error (1997)
[SHOWIF] (1997)
Fwd: Handling Charges (1999)
All choices on IE different than Netscape (1997)
Store builder question (2003)
Searching multiple Databases (1997)
Displaying photo attached to first record (1997)
What week is first? (1998)
WebCat2 Append problem (B14Macacgi) (1997)
What about the fixes that were promised for 5.2 ? (2004)
WebCat2b13MacPlugIn - syntax to convert date (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Help! WebCat2 bug (1997)
Need Advice for Setting up a Database (1999)
re:check boxes (1997)
Not really WebCat (1997)
OS X, Communigate Pro & Line Breaks (2003)
Size images (2002)
browser info.txt and SSL (1997)