I am working on a Web Application developed & hosted on Domino R9 Server (Non Xpages Web Application). Each form has WebQueryOpen and WebQuerySave events implemented for the server side business logic. Problem is that on every page, when the page refreshes from the browser, application's home page/form is loaded. I want to maintain the state of a page in this application. Moreover, is there any possibility of implementing an Ajax based session handling (backend) in case the page was idle for sometime and session expired. For example if a user was writing something in the Web Editor (implemented in CKEditor latest version) and if his session is automatically dropped he should be able to start with least hassle and his already written stuff may not be lost.
How to maintain the page state in Domino Web Application
279 views Asked by Fundi At
2
There are 2 answers
2
Justo Antonio Garrido Herrador
On
You can save the contents from all fields and CKEditor in a JSON string and also the UNID (or any "primary key") to the current entity (=page).
Afterwards, you can send this string to the server using AJAX, or as an alternative...
... have you tried using HTML5 local storage? See this page: https://www.w3schools.com/html/html5_webstorage.asp Tell us how do you continue!!!
Related Questions in JAVASCRIPT
- How to get images from contentful using the natural width (resolution)?
- When to use a react framework such as Next or Gatsby vs Create React App
- Is it possible to use d3.js with gatsby.js framework?
- Choose createPages gatsby component based on server side rendering or browser rendering
- Page props do not update when url query is updated
- How are searches implemented in a Flat File CMS
- How do I run a graqphl query in gatsby-browser.js
- Is it possible to query all entries from a content type and filter the response based on a subfield?
- sitemap for gatsby-starter-blog
- How do I setup .less with a gatsby project?
Related Questions in AJAX
- How to get images from contentful using the natural width (resolution)?
- When to use a react framework such as Next or Gatsby vs Create React App
- Is it possible to use d3.js with gatsby.js framework?
- Choose createPages gatsby component based on server side rendering or browser rendering
- Page props do not update when url query is updated
- How are searches implemented in a Flat File CMS
- How do I run a graqphl query in gatsby-browser.js
- Is it possible to query all entries from a content type and filter the response based on a subfield?
- sitemap for gatsby-starter-blog
- How do I setup .less with a gatsby project?
Related Questions in LOTUS-DOMINO
- How to get images from contentful using the natural width (resolution)?
- When to use a react framework such as Next or Gatsby vs Create React App
- Is it possible to use d3.js with gatsby.js framework?
- Choose createPages gatsby component based on server side rendering or browser rendering
- Page props do not update when url query is updated
- How are searches implemented in a Flat File CMS
- How do I run a graqphl query in gatsby-browser.js
- Is it possible to query all entries from a content type and filter the response based on a subfield?
- sitemap for gatsby-starter-blog
- How do I setup .less with a gatsby project?
Related Questions in LOTUSSCRIPT
- How to get images from contentful using the natural width (resolution)?
- When to use a react framework such as Next or Gatsby vs Create React App
- Is it possible to use d3.js with gatsby.js framework?
- Choose createPages gatsby component based on server side rendering or browser rendering
- Page props do not update when url query is updated
- How are searches implemented in a Flat File CMS
- How do I run a graqphl query in gatsby-browser.js
- Is it possible to query all entries from a content type and filter the response based on a subfield?
- sitemap for gatsby-starter-blog
- How do I setup .less with a gatsby project?
Related Questions in DOMINO-DESIGNER-ECLIPSE
- How to get images from contentful using the natural width (resolution)?
- When to use a react framework such as Next or Gatsby vs Create React App
- Is it possible to use d3.js with gatsby.js framework?
- Choose createPages gatsby component based on server side rendering or browser rendering
- Page props do not update when url query is updated
- How are searches implemented in a Flat File CMS
- How do I run a graqphl query in gatsby-browser.js
- Is it possible to query all entries from a content type and filter the response based on a subfield?
- sitemap for gatsby-starter-blog
- How do I setup .less with a gatsby project?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
My suggestion is to not use WebQueryOpen and WebQuerySave. Instead write the application to use modern web technologies (Ajax, JSON, REST API), then you don't need to save and reopen the page all the time. Doing that will give you everything you want.
I would build the page using standard HTML and Javascript (or even jQuery), then make Ajax calls to agents on the server to read/write data.
I have given several presentations on exactly this, with plenty of code samples and even finished code to download:
http://blog.texasswede.com/mwlug-2015/
http://blog.texasswede.com/my-mwlug-presentation-2/
http://blog.texasswede.com/my-connect-2017-demo-code/