Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104536
interpreted = N
texte = Hi Olin,Thanks for the feedback to this thread - I appreciate it very much.SInce you already have good experience with jquery and WebDNA why not =post a real-life-webdna-jquery-example to this thread. At least for me =it would make it much easier compared to having to start translating PHP =code and learning Ajax/Webdna at the same time.I cross my finger and hope that you will be able to provide this...All the bestPalleOn 19/01/2010, at 02.58, Olin Lagon wrote:> It really is super easy to use ajax with jquery. I encourage you to =try it> out. Essentially, all you do is create a function so when a user =clicks on> something, you send a post with parameters. You can also use jquery to> change the look of that item (to increase a number for instance). =Check out> this example http://15daysofjquery.com/quick-and-dirty-ajax/14/ or =this one> http://articles.sitepoint.com/article/ajax-jquery/3. Once you get the =basic> workings, you can create tons of quick ajax enabled features.>=20>=20> -----Original Message-----> From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk]=20> Sent: Monday, January 18, 2010 9:27 AM> To: talk@webdna.us> Subject: Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)>=20> Hi Olin,>=20> Thanks for your feedback although I am not quite able to decode the =.php> example which you linked to.>=20> When I look at the PollDaddy, then it's in the right direction, at =least in> principal. At least it can give me some ideas, but not how to =integrate all> the above using WebDNA.>=20> 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 =that> some will join the effort.>=20> Palle>=20>=20> On 18/01/2010, at 20.16, Olin Lagon wrote:>=20>> Here is one that uses PHP>>=20>> =http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/>>=20>> 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.>>=20>> I haven't use this one above but it seems simple. I have used this =one>> before http://orkans-tmp.22web.net/star_rating/=20>>=20>> Another approach is to use PollDaddy.>>=20>> 1- You will have to log into Polldaddy and then go to Ratings. =20>> 2- Click on create new rating which will take you to a page where you =can>> customize your ratings and at the end save. =20>> 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. =20>> 4- Embed code and Voila! =20>>=20>> -----Original Message----->> From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk]=20>> Sent: Monday, January 18, 2010 8:38 AM>> To: talk@webdna.us>> Subject: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)>>=20>> Hi all,>>=20>> 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 just> within>> 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.>>=20>> 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 =positive> read>> then the user presses THUMBS UP and if the user rates it negative =then>> presses THUMBS DOWN.>>=20>> A post to a thread has the value of zero ("0"). If a reader has =pressed>> THUMBS DOWN to a post, then THE POST =3D -1 (one down) etc. I hope =you get> it>> - it is all about letting users rate posts.>>=20>> Anyway - heres the part where I need to learn... I need for the =process to>> function without the webpage to reload...>>=20>> 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 :)>>=20>> ... a challenge for me, but a feature which I crave...>>=20>> The a make a reasonable description? Am I missing anything?>>=20>> I wish you all a great evening, day, night...>>=20>> 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=3Dtopics&category=3D288>>=20>> --------------------------------------------------------->> 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=3Dtopics&category=3D288>>=20>=20> ---------------------------------------------------------> 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=3Dtopics&category=3D288>=20> ---------------------------------------------------------> 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=3Dtopics&category=3D288>=20
Associated Messages, from the most recent to the oldest:
Hi Olin,Thanks for the feedback to this thread - I appreciate it very much.SInce you already have good experience with jquery and WebDNA why not =post a real-life-webdna-jquery-example to this thread. At least for me =it would make it much easier compared to having to start translating PHP =code and learning Ajax/Webdna at the same time.I cross my finger and hope that you will be able to provide this...All the bestPalleOn 19/01/2010, at 02.58, Olin Lagon wrote:> It really is super easy to use ajax with jquery. I encourage you to =try it> out. Essentially, all you do is create a function so when a user =clicks on> something, you send a post with parameters. You can also use jquery to> change the look of that item (to increase a number for instance). =Check out> this example http://15daysofjquery.com/quick-and-dirty-ajax/14/ or =this one> http://articles.sitepoint.com/article/ajax-jquery/3. Once you get the =basic> workings, you can create tons of quick ajax enabled features.>=20>=20> -----Original Message-----> From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk]=20> Sent: Monday, January 18, 2010 9:27 AM> To: talk@webdna.us> Subject: Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)>=20> Hi Olin,>=20> Thanks for your feedback although I am not quite able to decode the =.php> example which you linked to.>=20> When I look at the PollDaddy, then it's in the right direction, at =least in> principal. At least it can give me some ideas, but not how to =integrate all> the above using WebDNA.>=20> 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 =that> some will join the effort.>=20> Palle>=20>=20> On 18/01/2010, at 20.16, Olin Lagon wrote:>=20>> Here is one that uses PHP>>=20>> =http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/>>=20>> 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.>>=20>> I haven't use this one above but it seems simple. I have used this =one>> before http://orkans-tmp.22web.net/star_rating/=20>>=20>> Another approach is to use PollDaddy.>>=20>> 1- You will have to log into Polldaddy and then go to Ratings. =20>> 2- Click on create new rating which will take you to a page where you =can>> customize your ratings and at the end save. =20>> 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. =20>> 4- Embed code and Voila! =20>>=20>> -----Original Message----->> From: Palle Bo Nielsen [mailto:powerpalle@powerpalle.dk]=20>> Sent: Monday, January 18, 2010 8:38 AM>> To: talk@webdna.us>> Subject: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)>>=20>> Hi all,>>=20>> 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 just> within>> 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.>>=20>> 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 =positive> read>> then the user presses THUMBS UP and if the user rates it negative =then>> presses THUMBS DOWN.>>=20>> A post to a thread has the value of zero ("0"). If a reader has =pressed>> THUMBS DOWN to a post, then THE POST =3D -1 (one down) etc. I hope =you get> it>> - it is all about letting users rate posts.>>=20>> Anyway - heres the part where I need to learn... I need for the =process to>> function without the webpage to reload...>>=20>> 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 :)>>=20>> ... a challenge for me, but a feature which I crave...>>=20>> The a make a reasonable description? Am I missing anything?>>=20>> I wish you all a great evening, day, night...>>=20>> 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=3Dtopics&category=3D288>>=20>> --------------------------------------------------------->> 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=3Dtopics&category=3D288>>=20>=20> ---------------------------------------------------------> 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=3Dtopics&category=3D288>=20> ---------------------------------------------------------> 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=3Dtopics&category=3D288>=20
Palle Bo Nielsen
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:
autosensing lanague selection (1997)
Personal Web Server (1998)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
WebCommerce Security Alert! (1996)
math a various prices (1997)
drop down selection list for a search (1998)
WebCat 5 Intranet Question (2003)
Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997)
[BoldWords] WebCat.acgib15Mac (1997)
Reverse dating (1999)
SKU lookup (1997)
code to phantom spacing (2001)
PCS Frames (1997)
Number of Feilds Passed to [append] (2000)
Classifieds (2000)
check out page (SSL) not loading on Netscape 4.0+ - fixed? (1999)
ExclusiveLock (was: unique ascending numbers) (2003)
absolute path (*) - how does it work? (2007)
removing programming logic white space (2003)
Public beta 5 of WebCatalog 4.0 is now available (2000)