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:

M$loth messes with our sites (again) 2004/02/03 (2004) Grep Ampersands (2008) Time for a hard questions. (1997) process SSI (1998) japanese characters (1997) (thx) automating a POST (2002) More on the email templates (1997) [BULK] [WebDNA] AJAX module (2012) [random] only for 1-100??? (1997) How to redirect based on price subtotal? (1998) [group] ? (1997) EIMS & emailer conflicts? (1999) Appending space (1998) RE: [WebDNA] SHA-512 How To Do It (2014) Associative lookup style? (1997) [searchString] (1997) [Capitalize] (1998) Search in 2 or more catalogs (1997) Bug? (1997) [WebDNA] opinions on [switch] [case]... (2009)