fyi: (JavaScript) AJAX and WebDNA

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62738
interpreted = N
texte = Hi all, How do you have JavaScript put stuff into WebDNA? Its easy. This sample shows how to do a similar Google autosuggest. 1) get this sample code listed in this article http://www.webreference.com/programming/javascript/ncz/column3/3.html 2) replace the suggestions.php with suggestions.tpl suggestions.tpl [search db=db/suggestions.db&bwSTATEdatarq=[userInput]&STATEsort=1] [[founditems]"[state]" ,[/founditems][/search]] create suggestions.db (field name of state) with a list of states or whatever suggestion terms you want. This shows reading from db, to write do the same thing but have your template append or replace or... Enjoy - Jim ps Original AJAX article: http://www.adaptivepath.com/publications/essays/archives/000385.php pps Google maps is left as an exercise to the reader :-) ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. fyi: (JavaScript) AJAX and WebDNA ( Jim Lanford 2005)
Hi all, How do you have JavaScript put stuff into WebDNA? Its easy. This sample shows how to do a similar Google autosuggest. 1) get this sample code listed in this article http://www.webreference.com/programming/javascript/ncz/column3/3.html 2) replace the suggestions.php with suggestions.tpl suggestions.tpl [search db=db/suggestions.db&bwSTATEdatarq=[userInput]&STATEsort=1] [[founditems]"[state]" ,[/founditems][/search]] create suggestions.db (field name of state) with a list of states or whatever suggestion terms you want. This shows reading from db, to write do the same thing but have your template append or replace or... Enjoy - Jim ps Original AJAX article: http://www.adaptivepath.com/publications/essays/archives/000385.php pps Google maps is left as an exercise to the reader :-) ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Jim Lanford

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:

Max Record length restated as maybe bug (1997) Firesite and WebCat (1999) Bug? (1997) Show new (2003) WebDNA Grep help wanted (2004) AppleScript question (1997) Sorting search results (1998) apparently to problem isolated (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) WebCatb15 Mac CGI -- [purchase] (1997) Harvesting invalid email addresses from bounced emails??? (2000) different ship dates and shopping carts -- how to? (1997) Tech question about web dna actions (1998) Country & Ship-to address & other fields ? (1997) WebCommerce: Folder organization ? (1997) [Sum] function? (1997) Showif, Hideif reverse logic ? (1997) Sorting error (1997) Using Applescript to process WebCatalog functions (1998) Before I Can Begin . . . (1998)