Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-)

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104531
interpreted = N
texte = One thing I have learned is that it is faster and easier to use an iframe than AJAX for simple needs. Sincerely, Kenneth Grome www.KenGrome.com > 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 = -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 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 > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (Palle Bo Nielsen 2010)
  2. Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (Terry Wilson 2010)
  3. RE: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) ("Olin Lagon" 2010)
  4. Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (Govinda 2010)
  5. Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (Palle Bo Nielsen 2010)
  6. Re: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (Kenneth Grome 2010)
  7. RE: [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) ("Olin Lagon" 2010)
  8. [WebDNA] Ajax, JS and WebDNA - A joint toturial ;-) (Palle Bo Nielsen 2010)
One thing I have learned is that it is faster and easier to use an iframe than AJAX for simple needs. Sincerely, Kenneth Grome www.KenGrome.com > 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 = -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 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 > Kenneth Grome

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:

Date in IF ELSE Comparison (2004) triggering an update of two frames (1998) Include (2000) Not really WebCat (1997) WebCatalog for Linux users!! (2000) RE: Problem (1997) Stopping bad HTML propagation ? (1997) Help!!!! (1999) Store Example to Use (1998) Emailer Problem (1999) [searchString] (1997) Logging purchases (1997) [date format] w/in sendmail (1997) Problem displaying search result (1997) Changes to [ReturnRaw] in 3.0 (1998) quantity minimum problem (1997) restart needed???? (1997) WC2.0 Memory Requirements (1997) [WebDNA] Problem with excessive cart file creation (2011) [append] vs. [appendfile] delta + question? (1997)