[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:
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:
Not really WebCat (1997)
WC1.6 to WC2 date formatting -FIXED! (1997)
New index for docs (1997)
Email...Thanks (1997)
catagories (1997)
Separate SSL Server (1997)
Unexpected error (1997)
WebCat and image maps (1997)
Monthly Help File (2000)
Snake Bites (1997)
[WebDNA] ListFiles question (2012)
Database Upload (2000)
plugin-acgi, different results (1997)
F*** you (1998)
upgrade? (1997)
Constructive criticism (2000)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
Formatting date to number (2000)
Date problems (1997)
[WebDNA] [OT] Apple iPad (2010)