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
341 Views Asked by Fundi At
2
There are 2 best solutions below
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
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in AJAX
- Ajax jQuery firing multiple time display event for the same result
- Implement Onfailure in webApi controller
- AJAX PHP - Reload div after submit
- ajax load data from mysql
- Ajax-update only a component attribute, not the whole component nor its children
- using ajax to get a php database result and then show the result in a button
- How to prevent browser from executing some JavaScript when person clicks Back button?
- ajax async: true statement execution order
- Rails 4.2 jQuery loads only after refresh
- WebForms GET Json requests (JsonRequestBehavior.AllowGet)
- Rails - Ajax do not work properly on production server
- Angular js Button click
- Make jQuery/AJAX perform instantly on page load
- jQuery Ajax Uncaught TypeError: Cannot use 'in' operator to search
- Show success or error messages in Ajax response to Wordpress custom registration form
Related Questions in LOTUS-DOMINO
- Xpages could develop App on IOS or Android?
- registerNewUser new user in lotus notes in different database than names.nsf
- IBM domino People view column data does not reflect document data
- API to integrate with Domino
- volley network image view and request headers
- NotesDocument.save() causing loss of rich text formatting
- Two-factor Authentication for IBM Domino XPages
- How to set default values for a LotusScript PickListString using Names
- XPages Loading Slow with IBM HTTP Server Enabled
- How to return the image to the <xp: image> url of java without saving to disk
- Removing hotspots from body using Lotus notes C API
- XPage: Unable to Login
- NotesServiceRuntimeException occurs when running jar
- Visual Studio - Query Data Set
- Domino Xpages with Reverse Proxy
Related Questions in LOTUSSCRIPT
- NotesDocument.save() causing loss of rich text formatting
- How to set default values for a LotusScript PickListString using Names
- Using GetSystemMetrics how to determine if a screen is touchscreen
- How the scheduled agent in Lotus Domino can run at some specific Hour
- Insert images / files inside Notes document using lotus.domino
- Lotus notes picklist auto positioning
- How to determine if a device is touchscreen in Lotus Script in Registry
- Why won't scheduled Notes Agent run
- Lotusscript Microsoft word 2013 issue
- export lotus document to excel : excel convert string to date
- Change value field using Classes
- Remote pathnames must be relative to the Data directory when calling db.replicate from a scheduled agent
- Special characters when printing Word doc from Lotus Script
- Can we get URL details of a HotSpot Link inside a richtext content
- parentView property in NotesDocument class
Related Questions in DOMINO-DESIGNER-ECLIPSE
- API to integrate with Domino
- How do I get the search menu to appear in the Xpages perspective in Domino Designer
- Lotus Domino 9.0.1, Create weekly recurrence meeting for all days from REST calendar service is creating differently from Lotus Notes Client
- Corrupted elements for SVN commit
- Building NSF/NTF using command line (Notes Domino Designer)
- Domino Java Agent running old code after saving
- How to open an XPage document data source in notes client using the selected Notes document
- In Xpages File are missing in NTF package created using maven(headless designer) through jenkins for automation testing
- How to maintain the page state in Domino Web Application
- ODP / NSF sync. not working
- jquery, dojo, XSP javascript Code Assist for Domino Designer 8.5.3
- Does anyone know a way to get rid of sticky tooltips in Domino Designer 9.0 w/o restarting the application?
- XPage gets signed by an ID used previously
- Cannot access/see "Events" for Agents
- Web Access Properties of a Notes View don't appear in Source Control
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)
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?
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/