Posts by DecSoft

Show threads by DecSoft
3403 posts found, page 39 of 227

DecSoft (In thread: JSON response in ASPX)

Hello Denis,

Unfortunately I have no experience with ISS nor ASPX (I touch a bit of C# in the past however), but, I will try to help you. My bet is that what fail here is the lack of CORS permissions. The behaviour of the HTTP control that you describes probably means that CORS are not well configured in the server side, and, you must do it in order to properly communicate your app with the server.

Please, take a look at this website: https://enable-cors.org/server.html, or, anyway, try to search how to configure the CORS permissions in ISS / ASPX, because I think this is what must be done: I am not sure if you can do it in the same ASPX script (by some properties of methods of the "Response" object), or if you must configure the server in another way, directly touching the server's configuration. For example, in PHP we can do that: configure a script in order to set the CORS permissions, so we no need to touch the configuration of the server (Apache, etc.). Probably it's possible to do it also in an ASPX script.


DecSoft (In thread: Populating user interface items in Javascript)

Hello John,

Yes; certainly we no need to add "options" into the select: we must deal with the "items" property, so, for example, we can change the items in the select in this way:

Or we can add a new item to the select in this way (remember, "items" is an Array variable):


DecSoft (In thread: Browser plugins and Ajax requests)

Hello John,

If you can do the job, maybe it's enough. Maybe you can study a bit more the event delegation (explained above) or the Mutation interface (explained above)... just in case you can get it working without the timer usage.


DecSoft (In thread: Browser plugins and Ajax requests)

Hello John,

I never deal with something like that, but, may you can take a look at the MutationObserver interface.


DecSoft (In thread: Browser plugins and Ajax requests)

Hello John,

I think there is no way to know when all the AJAX calls in the content page has been done: we can't control something like that. However, maybe we can use event delegation. I will talk about the jQuery event delegation: as a task for you, may you can find some possible vanilla JS to be used, so you no need to add the jQuery library as a content script.

If you add the jQuery library as a content script, you can write some code like the below in another content script or the WebExtContent app's event:

The above jQuery / Javascript code attach a click event handler to all the paragraphs in the body, but, not only the existing ones: also the possible paragraphs added later into the body.


DecSoft (In thread: Populating user interface items in Javascript)

Hello John,

If you refers to AB controls, we can use the value property in both the Text input control and the value property of the Textarea control, and, the items and the value properties in the Select control. Take a look at that help topics and post here if you have some further questions about it.


DecSoft (In thread: Browser plugins and Ajax requests)

Hello John,

If we are talking about our own Ajax calls (for example, using jQuery), then yes... may we can do something about... however, if we are talking of the Ajax calls made by the content page... I think there is not a way to know that, John, at least in my knowledge. If you refer here what you are trying to do, maybe we can find a possible workaround, for example, maybe can be stupid, but, these days a page can't take too much time in order to be loaded, so, if we wait a few seconds (five, more?) may we can **asume** that all the things are already loaded...


DecSoft (In thread: http control done and fail handler functions)

Hello Mario,

Please, no problem nor inconvenience at all! I am happy to help when possible. So don't hesitate to post here everytime you think I (or may other of our mates) can do something for you. Have a nice weekend too (yes... if possible...)!


DecSoft (In thread: http control done and fail handler functions)

Hello Mario,

A bit more about the possible flag variable to be used. Before you made the HTTP call, you can set a flag variable in order to know if the work has been done or not. This variable can be set to "false", for example. In the HTTP control Done event, you can set that flag variable to "true". If no error occur and the user back to the main view, that flag variable is "true". If some error occur, since the Done code is not executed (after the error), then the flag variable is still "false", and you can know if in the main view.

It's just an idea, of course: I am not sure if that can be exactly what you wanted, but, I hope you got the idea. This kind of flag variable can maybe also combined with the app's ViewChange event: if the flag variable is "true", you allow the user to back to the main view from the another one: if the variable is "false", you cancel the navigation to the main view, or do something before if needed.


DecSoft (In thread: Input File pick image and or capture image)

Hello Mario,

Thank you David!

I endet up with your fourth solution with two buttons one for select and one for capture.

Because and Android and iOS app only.

Thank you!

Always thank you for your trust!


DecSoft (In thread: http control done and fail handler functions)

Hello Mario,

I am near to understand your point, however, I am not completely sure. Please, let me to explain. Certainly, the situation is like you describe, and, an error occur, however, it's not a fatal error, that is, once the user back to the main view, everything in that view continue working as expected, even the ability to go again to the another view.

So what's the point to check if "self" is defined or not? I mean, if the error occur, your code after the error is not executed, but, nothing else... I supose that you do something if the error did not occur, but, if the error occur, because the user go back to the main view, then you do nothing (because your code is not executed) and then nothing happens...

If you need from the main view that something is well executed in the another view, then you can use a flag variable, so, if the done event of the Http control is well executed, your flag variable is "true", for example, and, if the error occur, that flag variable can be "false" (you can set to "false" when enter the view), so, you can check that flag variable in the main view, so you know if the work is done or not.

Another possible idea is to use the app's ChangeView event, which allows to look what is the next view and the prev view: we can event prevent the user to change to a view from another, for example, until some code has been executed. So please, let me know if all of these can help you and just post here if you want to explain me a bit more about or what to place any questions.


DecSoft (In thread: Rollover images)

Hello John,

We can use the MouseEnter and MouseLeave events of the Image control.

Supose we set an "a.png" to the Image's Url property, then, in the MouseEnter event, we can write something like this:

... so we are changing the Image's Url to "b.png", and, in the MouseLeave event we can back to the original image:


DecSoft (In thread: Issues with adding images to frames)

Hello John,

Yes; must be some issue related with the cache and the Frame controls. I am sorry. I wil take a look when possible and try to see what can happen. Certainly the cache can have some issues like this: I'll try to do my best, but, certainly some issues can appear related with the cache and in particular with the Frame controls. I will take a look when possible!


DecSoft (In thread: Master View in the new AB)

Thank you for your kindly words, John!


DecSoft (In thread: New App Builder 2021.19)

Hello to all,

Here is a new DecSoft App Builder with the below changes, fixes and enhancements:

Read the entire product's history

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses cookies only to store your preferences.

Ok! Hide this note More information