[WebDNA] webDNA and JSON

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106644
interpreted = N
texte = Anyone have any examples for loading remote JSON data generated with a WebDNA page into a javascript function? I don't have any pressing needs at the moment, but just thought to ask while it's fresh in my mind. I understand the JSON syntax just fine as is, but when I generate it remotely and return it back to the function, it doesn't work. I noticed that the webDNA tags themselves are creating whitespace when returning back data. With jquery, I've used the "trim" method, but I'm not always able to use that. Do I need to set headers in the remote doc for the content-type? Basically, I find its simple to create arrays inline, but when doing it remotely, I'm just not getting it. I've noticed that PHP has the ability to work more in parallel with javascript especially in terms of functions and creating JSON arrays. In general, what are some good tips for achieving the similar with webDNA? Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] webDNA and JSON (Govinda 2011)
  2. Re: [WebDNA] webDNA and JSON (Aaron Michael Kaczmarek 2011)
  3. Re: [WebDNA] webDNA and JSON ("Terry Wilson" 2011)
  4. Re: [WebDNA] webDNA and JSON (Aaron Michael Kaczmarek 2011)
  5. Re: [WebDNA] webDNA and JSON (Govinda 2011)
  6. Re: [WebDNA] webDNA and JSON (Kenneth Grome 2011)
  7. [WebDNA] webDNA and JSON (Aaron Michael Kaczmarek 2011)
Anyone have any examples for loading remote JSON data generated with a WebDNA page into a javascript function? I don't have any pressing needs at the moment, but just thought to ask while it's fresh in my mind. I understand the JSON syntax just fine as is, but when I generate it remotely and return it back to the function, it doesn't work. I noticed that the webDNA tags themselves are creating whitespace when returning back data. With jquery, I've used the "trim" method, but I'm not always able to use that. Do I need to set headers in the remote doc for the content-type? Basically, I find its simple to create arrays inline, but when doing it remotely, I'm just not getting it. I've noticed that PHP has the ability to work more in parallel with javascript especially in terms of functions and creating JSON arrays. In general, what are some good tips for achieving the similar with webDNA? Aaron Michael Kaczmarek

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:

Practical Uses (2003) Email Formatting and Encryption (1998) Configuring E-mail (1997) Signal Raised error (1997) Anyone implement a x days ago function? (2007) BIG PROBLEMS with Checkboxes!!! (1998) [WebDNA] Live Currency exchanege rates (2008) Summing fields (1997) Automatic thumbnail images (1998) GrandTotal not right (1997) database with 10,000+ web pages stored in it? (2000) WebCat2: multiple currency support (1997) WC Web* performance (was: Advice on MacOS & TCP...) (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [sql] problems in WebCat 4.0 (2000) Help!!!! (1997) listfiles-looking for slick solution (1997) Add to Cart & List of Products (1997) linux logs (2000) sendmail error (1997)