OpenNTF.org - Create JSON from any notesdocu
    Advanced
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Create JSON from any notesdocument - New version 
Rating:
Not Rated Yet 
Contributor:
Thomas Adrian 
Category:
Application 
Type:
Example Code 
Document Release:
2.0 
Notes Version:
R4.x, R6.x, R5.x, R7.x 
Last Modified:
13 Jun 2007 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
This database is used to create JSON code from any notesdocuments, you specify what database to use, what documents to find in the database and what fields to be outputted as JSON format.


Screenshot and more information se : http://www.notessidan.se/A55B53/blogg.nsf/plink/TADN-744D2C

Enjoy.

Usage / Example
Code Attachments
NDTOJSON2.nsf (320 Kbytes)
 Comments
Posted by Patrick Kwintensson on 06/13/2007 02:25:06 AMIE not compliant
IE gives an error line 39.
In FireFox I also don't see the values displayed when I open a document :-?
Posted by Thomas Adrian on 06/13/2007 03:19:51 AMThanks for your feedback
It should work in Firefox
I will look into the IE problem
- Thomas
Posted by Thomas Adrian on 06/13/2007 07:06:45 AMAdded a new version
This works in both IE and Firefox
Posted by Patrick Kwintensson on 06/13/2007 08:10:31 AMIE6 SP2
IE6 gives a character error in line 38
When placing the db on a test server firebug says:
uncaught exception: Permission denied to call method XMLHttpRequest.open
Posted by Thomas Adrian on 06/13/2007 08:23:23 AMWell
1. I have not tested on IE6, only IE7. ( I will do no fix for IE6)
2. Make sure the servername is the same in the database document as in your webbrowser, javascript only allow data to be fetched from the domain the script is running from.
- Thomas
 Add your comment!