Solved

Lotus Notes/Domino - Web App hanging if you click Dialog boxes that refresh the document too quickly.

Posted on 2007-11-21
6
355 Views
Last Modified: 2013-12-18
Hi

I've just finished my 1st domino web app.   It generally works well, but had an annoying glitch.  

I have a few dropdown fields that are set to refresh the document on change, so the choices for other dependant dropdowns get updated, depending on what's chosen.

This works fine, apart from if you quickly click another dropdown before the page has dissapeared and reloaded. It just hangs.  

I've treid hiding the dropdowns if @IsDocBeingLoaded or @isDocBeingRefreshed, but they either still show, or don't ever appear.

I'm not sure it's relevant but the code for my dropdown field options is similar to this:-

"<SELECT DEPARTMENT>":@DbLookup("":"NoCache";"":""; "Departments";location;"Department";[FailSilent] )

And I have some other computed fields. e.g

@DbLookup("":"NoCache";"":""; "Location And Departments";location+ " " + department;"DepartmentApprover";[FailSilent] )

Any suggestion?

Thanks.

0
Comment
Question by:IanWood
  • 3
  • 2
6 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 20327112
Yep: throw the code away, and use Ajax-calls. Using Ajax, your page will stay on screen and only portions of it are rewritten. You can easily adapt dialog-box optiones etc. Required knowledge: JavaScript. If you look on the Web you'll find lots of sample applications for Java in Domino.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 20327115
For a working example: GMail !
0
 
LVL 22

Expert Comment

by:Bill-Hanson
ID: 20329608
I couldn't agree more.

Ditch the @Formula language in this case and use ?ReadViewentries with AJAX.

There's no elegant solution using @Formula since every change requires a round trip to the server.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:IanWood
ID: 20333692
Thanks.  I liked how easy knocking the forumlas up was.  I haven't got a lot of time to spend on it at the mo.    

Although I do know Javascript.  Anybody got a good simple example?

Is there no other way to stop the problem short term?
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 125 total points
ID: 20337877
Hmmm, yes, but it isn't a proper solution. Add a hidden DIV to your form, and when the form is submitted to the server (OnSubmit-event), show that DIV. The DIV should cover most of the screen (transparently??), so users can no longer click the other elements.
0
 

Author Comment

by:IanWood
ID: 20359509
Thanks.  How do I create a div?  With html somewhere?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now