Jump to content

cristianotestai

uniGUI Subscriber
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by cristianotestai

  1. Yes estrify, i understand your concern.. and this indeed may occur.. as in my case i have not had this situation in two fields with validations in sequence, this did not happen to me.. In your case, what types of validations you need to do the outputs of UniEdits?
  2. Hi, Your question is same of the post http://forums.unigui.com/index.php?/topic/2021-problem-with-events-in-sequence/ See the considerations by farshad and me.. In the validation, using showmessage() will to kill upcoming server events. Regards, Cristiano
  3. Hi Farshad, The uservalid could be set to true or false by AddJS or other form of interaction between client side and server side. But as ajaxRequest works in the background, what i would like to make is not possible.
  4. hi zilav, I want to show the mask only when the user is valid because it is only this time it is loaded all the home screen, just for this. This was the reason to separate the two functions, because if you are in the same function, would not have given mask in server side after the user validation process. But understand, and for now will do the mask before calling the function and put in a single function. Thanks for attention zilav.
  5. Farshad, ok.. but.. I have the following situation: I need to enable the screen mask on the client side after running a procedure in server side, as shown below (only to demonstrate the need..), where it should await the return of the procedure to continue execution. Any idea to enable this? // Client Side { s = 'test'; /*just example..*/ if (s != '') { ajaxRequest(fmMain, 'DoValidUser'); if (uservalid == true) { sender.showMask('loading'); /*the DoValidUser procedure should return true/false for showMask to be executed*/ ajaxRequest(fmMain, 'ShowControls'); } } } // Server Side procedure fmMain.DoValidUser; begin //Valid User Server Side.. end; procedure fmMain.ShowControls; begin //Show Controls Server Side.. end;
  6. Hi, I'm trying to work with ScreenMask using AddJS, but it does not work. procedure fmMain.Doanything; begin .. UniSession.AddJS('fmMain.UniButton1.showMask('Loading'); .. .. end; But hideMask() works correctly. Any idea?
  7. thanks for the reply, I hope soon to have any possible solution or any specific treatment for this case. Most of the events of my app must be synchronous, but there are processes that can be asynchronous.. Perhaps, it would to have some form of lock optionally to not perform the same event more than once. You said about protecting it using client side scripting with masking techniques. What are existing techniques that can be done? I just know the showmask() and hidemask(). There are some other way or technique to handle this need? thanks. Yes, this is my biggest problem today that i'm finding, because some processes of my app needs to have the executions in a certain order. What are the various techniques that can be used? I have experience in object-oriented development and DataSnap with Delphi, but i'm beginner in the use of Ajax technology, so maybe at some point may be over-using Ajax events. I'll be putting in another post some real situations for you to be possible to direct the handling of Ajax events and doing the best possible way. Thanks for attention and your precious help. Best Regards.
  8. Hi Farshad, I started a few days ago the use of my project in production for two customers. The application(site) will be centralized for use on the internet, where companies will login and use the application, ie, the server is hosted in a cloud server on the internet. With this, and some tests in production already achieved, i am concerned about some performance issues, so i'm writing to you. Some of the problems i'm encountering is related delays at certain times in the execution of relatively simple tasks, but in accordance with issues local user's computer (processor and memory) and internet connection, there is often an excessive delay and the user remade the procedure that should be almost instantaneous, but at the moment there was a delay in the response from the server, especially when there is simultaneous access. In many cases, to not have these problems, i'll need to make the screen controls and processes for client side scripting, but there are some tasks that are more difficult to perform and so i have this concern with the server response time. There are cases that will use screen mask to inform the user about the progress of the process, but there are cases where there is no sense in doing this and by it need to have a faster response time because the project site will be taking a higher proportion. Other problems encountered is the implementation of that process more quickly than once, since, as is asynchronous, if the user makes a double click for close a window, ajax error occurs because the object to be released no longer exists. There are other examples like this.. I would ask special attention to these issues about server performance and access for objects, because in my case, the application will not be local and that my project is as successful as expected, these vital questions need to be considered. If you consider to be interesting, i can enable a user to the site to you see and possibly talk about some of these issues. Thank you for your attention and once again thank you for the great work. Best Regards.
  9. I think in a way not to have that window "Ajax Error" but to present another form or page to indicate the problem occurred. This will be possible or just customize the text in the window? Regards, Cristiano
  10. Hi Farshad, I expressed the wrong way.. really not crash the app, but for each access by the user or internally by the application, the window "Ajax Error" is displayed. Just for this reason i asked the question: In these and other cases, could something be done to display the page informing that there was a communication failure or a generic message about the problem with the site, instead of the window Ajax Error? Thanks again.
  11. Hi Farshad, When there is a problem with the internet connection from the user, or even a fault with the connection to the server, there is the Ajax Error with the little window, crashing the web application. In these and other cases, something could be done to display a page informing that there was a communication failure or a generic message about the problem with the site, instead of the window "Ajax Error"? As the attached image, when there is a failure, gmail tells what might have happened. Thanks.
  12. A property for this purpose is great.. Thanks farshad.
  13. What is the syntax to add text to a UniHtmlMemo/UniHtmlFrame in JS? Farshad, what are the corresponding classes in Ext library? Tks.
  14. I need a suggestion to solve a particular side effect. There are events that are quick to be executed by the user, which not required to have a screen mask to block a transaction in the application. As an example, we have a UniEdit and UniMemo, which sets the OnKeyDown event. When the User presses the enter key, the text of UniEdit is added on the UniMemo and the text UniEdit is clear. This is a classic example .. In production mainly in cases where the text to be added is relatively large and the user presses the enter key quickly more than once, is added to the UniMemo the same text several times, ie, more than one time the event was performed ... what is wrong, because when you press the Enter key, the text of UniEdit is clear after being added to the UniMemo. How to not allow this and other cases happen? Thanks
  15. Hi, How do i change at runtime the page title? I tried changing the caption of MainForm and the Title property of ServerModule, but does not work. Tks.
  16. Method 2 too stay same result.. may be an issue.. but, if possible, try to make the test to see in practice. Thanks!!
  17. Hi farshad, using ("top", 1000), he is always on the penultimate line, not in the last.. why? i verified that any value above 100 he stay in penultimate line.. To test: In runtime add several text until vertical bar stay enabled. Source code: begin UniHtmlFrame1.Html.Add(UniEdit1.Text); UniSession.AddJS('MainForm.UniHtmlFrame1.body.scrollTo("top",1000)'); end;
  18. "case sensitive".. thanks farshad.. But i need inform in pratice anything to always show the last text added in the TUniHtmlFrame. I tried ("bottom", 0), but without success. Some solution that i can to use as value for ("top", ?), for this need above? Thanks again!
  19. Hi, I try use "ScrollTo" for TUniHtmlFrame.body too, but don't work, as example below: UniSession.AddJS('MainForm.UniHtmlFrame.body.ScrollTo('+ QuotedStr('top') + ', 0)'); Occours an Ajax Error reporting that the method ScroolTo is unknown for the object. Attached the image error. How it should be correct? Thanks
  20. As Farhad said, you must to use client side for this purpose.. Try with hideMask() and showMask(), example: begin if something then UniSession.AddJS('MainModule.MyButton.hideMask();') //"stop" the mask end
  21. Hi, When i add some text to UniHtmlFrame.Html, and the VerticalBars is enabled, i need to be positioned at the last line of the UniHtmlFrame. How do i positioning the last line of TUniHTMLFrame? Thanks.
  22. Hi, I need to add text to a TUniMemo with some formatted information, as is done with UniLabels. Example: With UniLabel i do: Unilabel.caption := '<b> UniGui </b> is fantastic'; The word UniGui is bold when TextConvertion = txtHTML. How to do the same with TUniMemo? Thanks.
  23. Hi lema, thanks! Yes.. These panels i used in property color: $00FEFEFE and for borders i used client side scripting: function OnAfterrender(sender) { sender.body.applyStyles('border-radius:9px'); } Best Regards!
×
×
  • Create New...