Link to home
Start Free TrialLog in
Avatar of DominoDev
DominoDev

asked on

Lotus Domino and JSON

Hello I am developing Lotus Domino web application.
Basically, this would be online purchase system, where in there would be left side menu and center menu and checkout box.

Now what I need is My Domino Agent would be bring the menu from view like Furniture, Marbles in json format.
I would like to parse this json using Jquery and need to display menu in left side navigator using HTML.


Can anyone please help me this? I am using Lotus Notes 9.0.1
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Agent? Aren't you using XPages?
Avatar of DominoDev
DominoDev

ASKER

No , Not right now, how Xpages would help here? because that has to be JSON parsing only right
I'd suggest to build your whole web application in XPages, so you can avoid all hassle with agents and forms. If you are given only limited time to develop the Web application, and the quality isn't your main point of interest, you could continue with your current development. On the other hand, if you need a fast and modern application, and you have more time, do consider XPages. A warning: it takes a while to understand XPages... but once you've mastered it a little, it's fast. The development is similar to the way you develop for the Notes client: it's all in the Domino Designer.

Notes = forms and views and agents
XPages = views and XPages and Custom Controls and 'XAgents' and Java and JavaScript, more or less integrated

https://www-10.lotus.com/ldd/ddwiki.nsf/dx/Tutorial-intro-to-XPages.htm
I have little idea about XPages, but what i want is simple HTML page that would parse incoming data from JSON ( agent would just give you the json data )
I would have asked this question irrespective of Lotus Notes, then I think I would have got correct answer
Okay, just trying to help you. Domino Web development is a dead end path for developers.

Where exactly do you need help? Writing the agent? Parsing using jQuery? Or displaying the menu. I guess it's writing the agent.

The best page for you to find the info you need is this one: https://www-10.lotus.com/ldd/ddwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Redbooks%3A+Best+Practices+for+Domino+8.0+Web+Application+Development#action=openDocument&res_title=08042008032716PMKMKQT4.htm&content=pdcontent and then go to the section called Getting JSON from Domino agents
I have Json agent with me, only query is that I will have three section on my page / HTML 5 pages like header, body and footer.


In body I have three horizontal section called left navigator, central navigator and checkout menu.

Now in left navigator I want to display menu with items html5 and jquery which comes from agent, if you can help me with syntax.
The syntax of what? jQuery isn't my strong point I'm afraid.

Here's a similar question/solution: https://www.experts-exchange.com/questions/28341310/JSON-JQuery-inline-menu.html

What exactly do you have problems with? How far did you get with your own code?
I just read your other questions, and I get the impression that you are told to build something web, that you have to use HTML5, Bootstrap and jQuery, that your data is stored in a Domino database, and that you're lost. What the first thing you have to do from your side is: help the Experts understand your problem. You say what you want, but you don't give any information as to why or how you want it. It might be your understanding of the English language, but the questions you ask are very hard to understand.

Try to place yourself in our shoes: we don't know you, we don't see your screen, we don't know your requirements, we don't know your experience, and we don't know your environment. All that you have to inform us about, so we get a clear picture of your problem first. Only then we can help you to find a solution.

Are you in fact a Web developer, how much experience do you have with web development tools, Domino, etc.??
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.