Entradas de Andrea

Mostrar hilos de Andrea
45 posts found, page 1 of 3

Andrea (In thread: Condition into Report (AB1))

Thank you David,

Yes it is always nice to study more suitable solutions based on what is needed, thanks for your support ;)


Andrea (In thread: Condition into Report (AB1))

Thanks David, good to know.

I was also thinking of another method via css.

I have many divs with the volume attribute.

The volume goes from 0 to 4.

I was thinking of such a solution to avoid writing conditions for each div.

do you think it is a suitable solution?


Andrea (In thread: Condition into Report (AB1))

Hello David, I hope you are doing wonderfully well, I would need to know if this condition technique is also applicable outside reports (without using reports), in an html that has an ID that has an attribute.

For example I have an ID that has attribute volume=1 and I would like the text "MINIMUM" to be displayed in the div.

how should i do if it is possible to create the condition like your above examples.

it might be interesting to know if it is possible to do something similar also starting from a variable SetVar "volume" "1" "String"

if it is possible in the html check the condition

Thank you


Andrea (In thread: Http client CORS (AB1))

Well, I'm happy to contribute to the problem I had. (even if you will eventually realize that it is a dirty solution)

I try to be as clear as possible.

1) The mission was from an online web app located in any public domain (no ssl), to be able to make requests to your local private web server (no ssl).

(clearly to work the client browsing the public domain had to be connected to the same wifi or lan network as the webserver).

So the ip of the connected machine (client) xxx.xxx.1.x and web server in the same family of xxx.xxx.1.x).

The problem that I had never encountered before is that requests from the web app present in a xxx.domain.xxx domain to the local web (xxx.xxx.1.xxx) server gave CORS security errors.

The reason is now clear, explained on this page (there are others similar)

https://developer.chrome.com/blog/private-network-access-preflight/

In practice, now for security reasons to do what has been said we must apparently start from the assumption that the web domain and web server must be in SSL.

And also new automatic headers are introduced before the classic browser requests (Chrome and Edge),

while on Firefox (still briefly it will work without any changes)

Access-Control-Allow-Private-Network, InsecurePrivateNetworkRequestsAllowed.

In practice, if the http request is made from an online webapp to a local webserver (connected in the same network as the client), the request is passed with a PRIVATE status, which at that point requires additional checks, such as those above.

All this I understand from the requests that are displayed in the header and from this clear message from chrome.

Having said that I have not solved it cleanly, because in my opinion I should have ssl both online and local and my webserver does not have it, and among other things I could not point to a localhost but to a specific ip.

The dirtiest but effective solution I have found is to overcome the security problems of the online domain in question by creating some keys in the windows registry:

This way I solved the problem.

I know it's not programming, but it's still been a solution for me. (solve a problem on a specific pc)


Andrea (In thread: Http client CORS (AB1))

Hi David and company, unfortunately I have to go back to this discussion.

I have a problem, which I explain in the simplest situation in which I find myself.

For simplicity I have created an example to reproduce the problem (AB1).

With a button that starts an HTTPclient (to a local server, http://192.xxx.xxx.xxx/test.php)

Inside the file php I just have this.

If I run from a browser with a local url, I have no problem getting the answer.

If I put the app online, I have problems with corss when httpclient connect to local ip (The online domain it points to is intentionally HTTP and not HTTPS, also to avoid various mixed problems).


Andrea (In thread: InAppBrowser URL schemes)
Hello David, honestly I could not get it to work, for now I am satisfied to take the single variable window.shouldClose = "true" and put in place of TRUE what I needed. In the future when I need multiple values ​​I will try to work a little harder. The important thing is to have arrived at the goal thanks to your good advice. Thank you

Andrea (In thread: InAppBrowser URL schemes)

thanks David, for your usual participation,

now I check yours, but an easy way is to pass the contents of the variable instead of True hahaha;

your solution now I will check it to understand how to pass more variables, it is always useful


Andrea (In thread: InAppBrowser URL schemes)

something seems to go wrong, the close event is not executed alerts why the variable (myVariablesObject) is not called, the alert(values[0].example) is correct? in the meantime I'm trying


i tried to debug from android studio emulator: and among the various messages: [INFO: CONSOLE (81)] "Uncaught Error: executeScript requires exactly one of code or file to be specified" [INFO: CONSOLE (4)] "Uncaught ReferenceError: windows is not defined", I don't know if it can be useful
maybe this helps Pass variable

Andrea (In thread: InAppBrowser URL schemes)

hello David, I hope everything is fine, I went back to review this solution that I had implemented (which worked perfectly), only now I need to close the IN APP BROWSER the content of a variable from the web page (server) to the app.

Currently the code is as follows:

APP SIDE

SERVER SIDE

for example purposes only; I would like to pass the contents of the Example variable to the app

Any solution, thanks


Andrea (In thread: Camera Fix for API 30 (AB1))

sorry, better this way, it must have been a coincidence (maybe I will have deleted the compiled folder) that with that code no longer gave me an error.


Andrea (In thread: Camera Fix for API 30 (AB1))

Hi David, the problem as mentioned above was with AB1, with the api level 29 no problem, with the 30 the camera did not open, I had tried both with my app and with the Sample Camera4 AB1.

I found the solution here: Can't open camera on Android 11 with targetSdkVersion=30


Andrea (In thread: Camera Fix for API 30 (AB1))

Hello everybody,

If compile the app (AB1) for Android with target SDK Api Level 30 camera plugin dont work (i tried both from the simulator and from the physical device)

Log:

Solved with this:


Andrea (In thread: Http client CORS (AB1))
thank you, it works perfectly!

Andrea (In thread: Http client CORS (AB1))

I write here to avoid creating new threads, since the argument is always an HTTP request.

Hi David and all, hope all is well, 1 million dollar question.

I noticed that if I send an HTTP request from (AB1) to a server that is not connected, the error response times are quite long (about 6 seconds) from android or ios APP.

Is this something that can be resolved from the client element (without using a timer), or do you necessarily have to make the request some other way?

Thank you


Andrea (In thread: Http client CORS (AB1))
I swear you read my mind, I was doing just that! :) Thank you

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.