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
342 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
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in AJAX
- window.location.href redirects but is causing problems on the webpage
- Js variable to php using ajax
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- how do I change a URL with form to include additional selection
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Opening modal through Update button with specified ID using ajax
- Events disappear randomly for full calendar module
- Ajax call reloads page in FrontAccounting, a PHP ERP solution
- Add newly added record to select2 element
- AJAX query cascading dropdown in django
- Failed to load resource: the server responded with a status of 403 () - SCRIPT - WordPress
- Maintaining search and sort state across paginated results in web application
- Getting POST 500 Internal server error while sending request via ajax call
- Wordpress server side datatable filtering
- Having a problem in datatables and fullcalendar scripts
Related Questions in LOTUS-DOMINO
- How to logout from a Domino Web app when login is OIDC?
- HCL Domino console error: [0D90:0061-1B28] [C&S]> ERROR | Release 12.0.2FP2 | csinit.cpp(980) : Invalid or nonexistent parent document (0x3C8)
- Appending Rich Text Style
- Can Lotus Embedded views be used to filter fields? Just like where" in SQL
- Why does Xpages app throw java.lang.NoClassDefFoundError at seemingly random intervals?
- Domino Basic authentication fails when username contains special characters
- Thread is not enabled for auto GC
- Would storing video files in DAOS enabled database speed up accesing them via https?
- How to fetch mails from IBM Domino Lotus using External java code (IMAP)?
- HCL Domino - How to insert current date in the target field in HEI (LEI) direct transfer activity?
- phantom reservation in Reservations database when trying to schedule a resouce/room
- Java in script library called from Lotusscript via LS2J - updated Java requires Notes client restart
- AttributeError: module 'fsspec.callbacks' has no attribute 'TqdmCallback'
- getFirstDocument() returns 'null' for a collection which getCount() says has 8 items
- Issue with Anonymous access and 'Authorization' header on HCL Domino 12
Related Questions in LOTUSSCRIPT
- Javascript Object defined in Pages of Notes designer is unidentified on a subform
- Appending Rich Text Style
- Lotusscript Dir$ giving "illegal function call" with UNC path
- Trouble updating a url in a rich text field
- Java in script library called from Lotusscript via LS2J - updated Java requires Notes client restart
- Create a email attachment from a rich text field
- Does the Lotusscript if statement short circuit?
- How to get a list of errors in .nsf application?
- How to store attachment and image from HCL Notes to MS Sql database?
- Why is @Month returning day in view column populating a Date/Time field in LotusScript?
- "sub terminate" is executed. How can I disable this?
- How to read from a variant variable the NoteID and overgive it to a adminp action?
- Read Domino console output programmatically
- LotusScript NotesHTTPRequest RunOnServer Proxy Issue
- NotesRichTextItem ConvertToHtml method removed in Domino 12.0.2 - what are the alternatives?
Related Questions in DOMINO-DESIGNER-ECLIPSE
- How to logout from a Domino Web app when login is OIDC?
- Saving agents in Domino Designer 14 adds ghost libraries
- Why does Xpages app throw java.lang.NoClassDefFoundError at seemingly random intervals?
- HCL Notes client: any documentation available on using JavaScript in a form?
- Reference javascript file in domino/html directory on xpage
- Is it possible to stop running Domino (Notes) Agent?
- XPages FileUpload control multiple files
- How to get matching pair of data from 2 multi-field columns?
- @!IsNull is still showing null rows in view
- I created a updatesite.nsf from updatesite.ntf template and trying to import a feature
- How to return a new object when the current object is recycled in Java
- In Notes designer v12 xpages error "Access restriction: Java Problem"
- Domino Designer doesn't initialize
- How to set the template version on a Notes (Lotus/IBM/HCL) application master template
- Hide fields in Lotus iNotes
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?
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/