[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:

Nested tags count question (1997) WebCat editing, SiteGuard & SiteEdit (1997) 2.1 pricing? (1998) WebCat 5 on itools 7 Install Questions Problems Hey Nitai (2003) Payment calculator ?? (2000) Wanted: More Math Functions (or, Can You Solve This?) (1997) emailer (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [WebDNA] Succesfull migration from WebDNA/AppleServer to (2018) RE: E-mailer error codes (1997) Cookie set browser session. (1998) Hiding HTML and page breaks (1997) Help name our technology! I found it (1997) Running 2 two WebCatalog.acgi's (1996) [delete] problem (1997) [WebDNA] Suddenly, lots of WebDNA problems with FastCGI (2013) US Postal Service API (2007) Templetes? (2000) Searching for Nothing (1998) RE: Answer: WebDelivery downloads alias, not original ? (1997)