Using Javascript in webviewer?

javascript

#1

can you tell me if this is possible in webview of Thunkable x ?

javascript inject

https://puravidaapps.com/inject.php


How to fill out a form of a webpage and click a button using some JavaScript
#2

This is not something Iā€™m familiar with, but @actech would know more about this I think.

Did you try using the data URL property data:text/html?
Can you tell us a bit more about the app you are trying to build @ANAND_VELANDY and which site you are sending data to? Would the WebAPI component be a viable alternative, by any chance?


#3

I will have to check data:text/html.

Basically I have a website where normally user have to login with ID and Password.

I wish to make a webview App, with Save ID and Password Feature.
So once logged in, next time website login could be done automatically with javascript and stored ID+Password.

eg website: https://puravidaapps.com/webviewertest.html


#4

How to fill out a form of a webpage and click a button using some JavaScript.

This was possible in classic. wherein webviewer1.goToUrl: javascript:(function() {ā€¦}
worked.

Can this be done in Thunkable X Webviewer?
So that I can auto Login to my website, from App?


#5

Hi,

See the Canvas and HTML screens in this project.

https://x.thunkable.com/projects/5c8e64dfe1aad2f778a4c5ad/project/properties/designer/

If you need two-way data exchange between the app and WebViewer, then use FireBase and FireBase JavaScript for this.


#6

Good morning, I have the same problem with you. Have you solved it?