eduardosuruagy Posted May 21, 2021 Share Posted May 21, 2021 I can't identify where this error happens "There is no Default JavaScript Object" Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 21, 2021 Share Posted May 21, 2021 1 hour ago, eduardosuruagy said: I can't identify where this error happens "There is no Default JavaScript Object" Hello Can you create a test case? How can we reproduce this? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted May 21, 2021 Author Share Posted May 21, 2021 1 hour ago, Hayri ASLAN said: Olá Você pode criar um caso de teste? Como podemos reproduzir isso? Unfortunately it happens randomly and I don't know how to reproduce or where the error occurs Quote Link to comment Share on other sites More sharing options...
andyhill Posted May 21, 2021 Share Posted May 21, 2021 I have learnt the hard way, when I get JS errors in scripts that should work it usually comes down to timing. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted May 22, 2021 Author Share Posted May 22, 2021 16 hours ago, andyhill said: Aprendi da maneira mais difícil, quando recebo erros de JS em scripts que devem funcionar, geralmente se resume ao tempo. At the time how so? Do you talk about the uniTimer component? Quote Link to comment Share on other sites More sharing options...
andyhill Posted May 22, 2021 Share Posted May 22, 2021 NO, I use ajax events one after the other allowing for the previous action to complete. eg. Canvas Clear Canvas FloodFill Canvas Draw Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted May 22, 2021 Author Share Posted May 22, 2021 33 minutes ago, andyhill said: NÃO, eu uso eventos ajax um após o outro, permitindo que a ação anterior seja concluída. por exemplo. Tela clara Canvas FloodFill Desenho em Tela so do you think this could be an ajax event that you have on my system? Quote Link to comment Share on other sites More sharing options...
andyhill Posted May 22, 2021 Share Posted May 22, 2021 NO, I was explaining that random JavaScript crashes often come down to timing (how long it takes for the browser to execute a task [remembering that most devices have different processing speeds, plus PC background events can interfere with the browser processing]). Quote Link to comment Share on other sites More sharing options...
mikromundo Posted January 17 Share Posted January 17 @Hayri ASLAN@Sherzod It´s old post but the error it´s the "same". I need to add a class to an UniDateTimePicker. one drive test case download: https://1drv.ms/u/s!AovhnjIbioMA_FQFxf3zr88-2Lic?e=MGoLa4 ...and again I would like to ask why I can no longer add a file directly to the forum. I always have to post it on one drive. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 17 Share Posted January 17 Hello @mikromundo 1 minute ago, mikromundo said: ...and again I would like to ask why I can no longer add a file directly to the forum. I always have to post it on one drive. What's the issue? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted January 17 Share Posted January 17 Test case on post my friend. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 17 Share Posted January 17 1 minute ago, mikromundo said: Test case on post my friend. Yes, I know. I'm asking what problem are you having when attaching a file? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted January 17 Share Posted January 17 oh...sorry..lol The website always says that I can only send a maximum of 10kb file (or approximately). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 17 Share Posted January 17 20 minutes ago, mikromundo said: The website always says that I can only send a maximum of 10kb file (or approximately). You have exceeded the limit, it seems. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 17 Share Posted January 17 52 minutes ago, mikromundo said: I need to add a class to an UniDateTimePicker. For this control you should use this approach: Quote Link to comment Share on other sites More sharing options...
mikromundo Posted January 17 Share Posted January 17 thanks for the feedback @Sherzod sorry but I did not understand. I'm wanting to add a css class dynamically and not call a method. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18 Share Posted January 18 9 hours ago, mikromundo said: sorry but I did not understand. I'm wanting to add a css class dynamically and not call a method. Okay. Well, I didn’t give a solution here, but an approach... And in the example above, we change the configuration, and do not call the method. Do you want to add cls during initialization or? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted January 18 Share Posted January 18 thanks again. I didn't really understand how to use your model. What I need is to apply css to any component at any time in the application, just as it is possible to do with edits, buttons....I came across this message because I hadn't had the need to apply it to a unitetimepicker before. I just imagined it would be easy like other components. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19 Share Posted January 19 22 hours ago, mikromundo said: I didn't really understand how to use your model. Well. 22 hours ago, mikromundo said: What I need is to apply css to any component at any time in the application, just as it is possible to do with edits, buttons....I came across this message because I hadn't had the need to apply it to a unitetimepicker before. Okay, So that you understand, there are at least two points. The first, at the time of initialization, say OnCreate the form, or dynamic creation of components. The second is at runtime, when the component is already created and displayed. Well, that's simply put. 22 hours ago, mikromundo said: I just imagined it would be easy like other components. UniDateTimePicker is a complex component that includes two components, but that's not important, what's important is that we have access to UniDateTimePicker configurations during initialization, only through ClientEvents at the moment. Quote Link to comment Share on other sites More sharing options...
mikromundo Posted January 19 Share Posted January 19 ok my friend and many thanks for your ( attention always available ) help. Quote Link to comment Share on other sites More sharing options...
mikromundo Posted April 18 Share Posted April 18 On 1/19/2024 at 5:57 AM, Sherzod said: Well. Okay, So that you understand, there are at least two points. The first, at the time of initialization, say OnCreate the form, or dynamic creation of components. The second is at runtime, when the component is already created and displayed. Well, that's simply put. UniDateTimePicker is a complex component that includes two components, but that's not important, what's important is that we have access to UniDateTimePicker configurations during initialization, only through ClientEvents at the moment. @Sherzod I observed that in debug the error cited in previous posts( "There is no Default JavaScript Object" ) but in release does not occur, and the CSS class can be applied. That said, it would not be possible for you to review and try to adapt this to TunidateTimePicker Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.