XULRunner Busy/Loading indicator - modal-dialog

I have an XULRunner based application in which I need to (a) ask for user input using a custom dialog, and when the user clicks "OK", (b) perform the requested operation. This operation is an asynchronous operation on a server, and can take some time, so I would like to show a "loading" dialog or some form of busy indicator. I have tried to create a custom modal dialog that has a single label with "Please wait..." message, and close the dialog upon server reply; but server reply seems to be getting blocked while this modal dialog is open. Should I open the modal dialog in a certain way or run the operation in some kind of a thread so that the reply can be processed even while the modal dialog is open? I have tried to look up documentation, but couldn't find anything useful. Appreciate any help from the stackoverflow community.
Thanks in advance for your help.

server reply seems to be getting blocked while this modal dialog is open
This is not supposed to happen.
What XULRunner on what OS are you trying to use? How do you open a modal dialog? How do you interact with the server?
It would be best if you produced a simple testcase that can be used to reproduce the problem.

Related

ionic 5 network connectivity issues api handling

I am searching for a better solution to popup dialog with connection fail if the internet is off at any position of my app.
Option 1 is too check connection activity in app.component.ts and show/hide modalpopup there.
But there is situation where some reference value coming from last page, then new page modal will comes if internet now available but the API which should be fire is dead.
For API even I can handle with each page check function after model close but then opening and closing modal should happens in each page.
But I need a globle function to handle this.
thanks

Bug: Crystal Report Viewer "document is being processed" modal dialog is not getting closed on HTTP Error

Crystal Reports Viewer for ASP.Net:
We have come across a situation where "Please wait while the document is being processed." modal dialog is not getting closed when HTTP Request has failed.
Development Environment:
ASP.Net with Target Framework 4.6.1
Crystal Report 13.0.2000.0, Version: 13.0.19.2312
Database Oracle
IIS Server
Problem:
It was found many time that on navigation of pages or while report is being loaded, Crystal Report Viewer shows a modal dialog with message "Please wait while the document is being processed.". Said message will disappear on successful request from the server, but in many case like, Network failed, Server responded with HTTP error code or in any case where ajax request has failed to execute it, in such case this modal dialog box does not get closed and due to this user keep waiting to disappear this dialog but nothing happens, and user can not navigate, they will be forced to refresh the page or reopen the report.
Steps to reproduce:
Run the report in browser
Possibly keep the data of two - three page so that you can navigate
Once report is loaded, Stop the IIS Server, so that when you press
next page, it can generate a HTTP Error
if you see network log in Debug mode, request has already failed and
returned but, "Please wait while the document is being processed."
dialog is still executing and user can not navigate in the report
due to modal view. Actually, It should have informed user that last request has failed and you should try again.
Please see the screenshot for reference:
I have posted this question to SAP Forum but yet to get the answer
I have tried to manage this using window.onerror and hiding the modal window, Is there any better solution to this problem?
Mine was taking forever in postbacks when I clicked any button of CRV. I guessed the viewer must be waiting for parameters in the background. So I re-used the parameters as follows:
this.crvMain.ReuseParameterValuesOnRefresh = true;
I was having the same problem. In my code, I found a refresh statement that was freezing the report, preventing it from being loaded. If I comment out this refresh, the report works correctly.

how to send facebook message automatically without api

guys
now i knew how to send message without using facebook api,
i could use url to fill the message textarea in facebook's website
www.facebook.com/messages/[user_id]?msg_prefill=XXX
but here i'd like to know how to send this message automatically
in April, i found a way to click "send" button automatically (find "send" button in html text and click it),
but now facebook hide theses html text so that i can't find this button in html text.
Therefore, can anybody provide some ways or point to send message automatically.
thanks
Use the console in you browser (usually F12 to open) firefox console is the most powerfull, your console should have a command like "element inspection" or similar, use this tool to analize the button you want, read ing the code you should find someting like "on click" or simsimilar, after this you will find a java command to push the button. Anyway to do this kind of stuff without being a programmer,use selenium IDE, very easy,only for firefox,you must download it from firefox as add on. Good luck!

Facebook Style Message Popup?

My site has a Send Message button next to the link to a users profile. When the user clicks on it (using the onClick handler) I want to open a Facebook-style message window, instead of a new window (window.open() method).
It doesn't have to be exactly the same as Facebook's, but I want a similar kind of thing.
Check out Jquery-UI. they have a lot of popuppable windows. Probably want to couple that with some Ajax, and bam, dynamic message popups.

Spring-webflow error popup tweak

There is a link in a spring-webflow2 based application which start different flows. Flows are shown in popup (popup=true). If the session is expired or server is unavailable, the spring-webflow shows small empty popup with "Ajax Request Error" tooltip shown on mouse over. Is it possible to tweak the popup in order to give the user an ability to either re-login or to just close the popup and retry the request?
EDIT: Or maybe some ideas how to force Spring-Dojo to make a redirect to login page?
The problem is that the session is gone and so is the conversation/flow in it. So there's no easy way to make the popup work again, because the conversation or flow state must be restored. I think the best you could achieve would be to somehow convince Dojo to redirect back to the login url.