Why won't this work ?...:-(

John Dixon dixonja at hotmail.co.uk
Thu Feb 2 13:55:00 EST 2012


The script below will run on a Mac, under Windows XP but not under Windows 7... anyone able to tell me why not ?

on openCard
   /* set the rect of the image on which to overlay revBrowser */
   set the rect of image "browserimage" to 0, 0 & "," & (the width of this stack) & "," & (the height of this stack -16 )
   /* get the path to the html file */
   put the defaultFolder & "/mapFolder/map.html" into adJustWindows
   /* replace the spaces, if there are any, in the URL filepath */
   replace space with "%20" in adjustWindows
   /* set up the browser instance */
   put revBrowserOpen (the windowId of this stack, "file://" & adjustWindows) into browserID
   revBrowserSet browserID, "rect",rect of image "browserimage"
   revBrowserSet browserID, "scrollbars", false
   revBrowserSet browserID, "showborder", true
end openCard

Just get a blank revBrowser under WIndows 7

Dixie
 		 	   		  


More information about the use-livecode mailing list