Jump to content

Why does this "There is no Default JavaScript Object" error occur?


eduardosuruagy

Recommended Posts

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]).

Link to comment
Share on other sites

  • 2 years later...

@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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...