Store the html file in a custom property... then when the stack opens move the custom property into a file... as in
Code: Select all
/*put the custom property cMap into a file 'dvNav.html' in the documents folder */
put the cMap of this stack into URL("file:" & specialFolderPath("documents") & "/dvnav.html" )
Then when you want to build your browser
Code: Select all
if browserID is empty then
put "file://" & specialFolderPath("documents") & "/dvnav.html" into theURL
replace space with "%20" in theURL
put 0,44, the width of this card, the height of this card into theSize
mobileControlCreate "browser"
put the result into browserID
mobileControlSet browserID, "url", theURL
mobileControlSet browserID, "rect", theSize
mobileControlSet browserID, "autofit",true
mobileControlSet browserID, "delayRequests", true
mobileControlSet browserID, "dataDetectorTypes", "link, calendar event, phone number, address"
mobileControlSet browserID, "visible", "true"
end if
Attached a stack that will display a 'google map' when you run in the simulator. Look in the custom properties of the stack and you will see the html file...
Hope it helps...
