[WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104529
interpreted = N
texte = 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 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.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.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.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 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=
Associated Messages, from the most recent to the oldest:
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 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.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.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.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 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=
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:
Download to disk NOT display in browser (2002)
ShipCosts database (1997)
ShowIf & HideIf Question? (1998)
[OrderFile] error (help) (1999)
[WebDNA] Math variable name length limitations ... (2012)
Problems with sql: "not supported" (2005)
WebMerchant problem (1998)
lookups or math? (1998)
[WebDNA] WebDNA slow processing (2011)
Whats wrong with this code? (1998)
What am I missing (1997)
YA 4.5.1 problem (2004)
Setting up shop (1997)
Not reading code (1997)
[WebDNA] Need Rosetta to install on OS X? (2010)
[SHOWIF AND/OR] (1997)
jpeg upload compression (fixed) (2002)
possible, WebCat2.0 and checkboxes-restated (1997)
CMSBuilder (2004)
[ConvertChars] problem (1997)