here is the code for the on opencard
Code: Select all
set the URL of widget "MyBrowser" to ("file://" & specialFolderPath("resources") & "/info.html")
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
set the URL of widget "MyBrowser" to ("file://" & specialFolderPath("resources") & "/info.html")
Code: Select all
put URL ("file://" & specialFolderPath("resources") & "/info.html") into temp
set the htmlText of of widget "MyBrowser" to temp
As far as I know (but I could be VERY wrong), you don't put forward slashes preceeding specialFolderPath statements, and, even if you did, you would not use 2 of them as a single slash indicates the root level of the file system.malee wrote: ↑Mon Jul 18, 2016 1:33 pmi tried to get the new browser widget to view local html file on android but failed , it works on window desktop . i searched this forum and found someone with similar issue but couldn't get it solved, upload the a zip stack
here is the code for the on opencard
set the URL of widget "MyBrowser" to ("file://" & specialFolderPath("resources") & "/info.html")
Code: Select all
set the URL of widget "Browser" to "file:" & specialFolderPath("resources") & "/info.html")