hub73 Active Member Licensed User Longtime User Mar 15, 2016 #1 i use a webview inside my application. i'm loading a php page. Is it possible to include some javascript inside the php code ? i'm trying this ... but no alert message displayed on screen : print (" <script language='JavaScript'> alert(\"This carriage return is placed\rin the middle of this line!\"); </script> "); In fact i need to confirm if the user delete an item from my Mysql Database. So my code : <a href='$gCheminFormulaireArticle?Pk_article=45&Action=Delete' onclick='return(confirm(\'Are you sure to delete this?\'));'>Delete it.</a> Thanks.
i use a webview inside my application. i'm loading a php page. Is it possible to include some javascript inside the php code ? i'm trying this ... but no alert message displayed on screen : print (" <script language='JavaScript'> alert(\"This carriage return is placed\rin the middle of this line!\"); </script> "); In fact i need to confirm if the user delete an item from my Mysql Database. So my code : <a href='$gCheminFormulaireArticle?Pk_article=45&Action=Delete' onclick='return(confirm(\'Are you sure to delete this?\'));'>Delete it.</a> Thanks.
DonManfred Expert Licensed User Longtime User Mar 16, 2016 #2 Add a webchromeclient and a javascriptinterface to the webview https://www.b4x.com/android/forum/threads/webviewextras.12453/ Last edited: Mar 16, 2016 Upvote 0
Add a webchromeclient and a javascriptinterface to the webview https://www.b4x.com/android/forum/threads/webviewextras.12453/