Android Question WebViewExtras2: setting data attributes...???

Mashiane

Expert
Licensed User
Longtime User
Hi there

I am able to run alert("Hello World!") via executeJavascript using webviewextras2, however I cant seem to get the setting of data attributes to work? Can someone please advise?

B4X:
$('#rsa').attr('data-ej-showroundedcorner', 'false');

I have even tried using getDocumentByID and also its not working at as the contents inside the webview remain unchanged..

This is an example of my dom element...

B4X:
<div id="rsa" data-role="ejmtile" data-ej-imageposition="fill" data-ej-caption-alignment="center" data-ej-tilesize="small" data-ej-showroundedcorner="true" data-ej-caption-position="outer" data-ej-caption-text="Select Me" data-ej-imageclass="imgrsa" data-ej-rendermode="auto" data-ej-touchstart="itemclicked"></div>

Ta!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…