Local files in revBrowser
I wonder if someone could shed some light on a problem I am having. The script below works fine running under MacOSX, but it does not want to work running under Windows ?.. If having the stack would help, I would send it to you. I am really stumped... any help would be appreciated. local browserID on preOpenStack set itemDel to / set the defaultfolder to item 1 to -2 of (the effective fileName of this stack) set the loc of this stack to screenLoc() end preOpenStack on openCard /* 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, scrollbars, false revBrowserSet browserID, showborder, true revBrowserSet browserID, rect,rect of image browserimage end openCard on resizeStack /* keep the browser 16 pxs from the bottom to be able to get to the resize window box */ set the rect of image browserImage to 0, 0 , (the width of this stack) , (the height of this stack -16 ) revBrowserSet browserID, rect, rect of image browserImage pass resizeStack end resizeStack on closeCard /* destroy the browser instance when the card closes */ if browserID is not empty then revBrowserClose browserID end closeCard take care, Dixie ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Local files in revBrowser
--- On Thu, 6/9/11, John Dixon dixo...@hotmail.co.uk wrote: I wonder if someone could shed some light on a problem I am having. The script below works fine running under MacOSX, but it does not want to work running under Windows ?.. If having the stack would help, I would send it to you. I am really stumped... any help would be appreciated. local browserID on preOpenStack set itemDel to / set the defaultfolder to item 1 to -2 of (the effective fileName of this stack) set the loc of this stack to screenLoc() end preOpenStack on openCard /* 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, scrollbars, false revBrowserSet browserID, showborder, true revBrowserSet browserID, rect,rect of image browserimage end openCard on resizeStack /* keep the browser 16 pxs from the bottom to be able to get to the resize window box */ set the rect of image browserImage to 0, 0 , (the width of this stack) , (the height of this stack -16 ) revBrowserSet browserID, rect, rect of image browserImage pass resizeStack end resizeStack on closeCard /* destroy the browser instance when the card closes */ if browserID is not empty then revBrowserClose browserID end closeCard take care, Dixie Hi Dixie, Microsoft wouldn't be Microsoft if things weren't slightly different in their world - but then the same can be said the other way around about Apple ;-) Anyway, here's a blog entry from MS HQ which should be of interest: http://blogs.msdn.com/ie/archive/2006/12/06/file-uris-in-windows.aspx HTH, Jan Schenkel. = Quartam Reports PDF Library for LiveCode www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Local files in revBrowser
John sent me a copy of the files, the revbrowserstuff is working fine, it seems to be javascript related (the errors are javascript errors) but i'm not much on javascript so this is over my head. On Thu, Jun 9, 2011 at 8:42 AM, Jan Schenkel janschen...@yahoo.com wrote: --- On Thu, 6/9/11, John Dixon dixo...@hotmail.co.uk wrote: I wonder if someone could shed some light on a problem I am having. The script below works fine running under MacOSX, but it does not want to work running under Windows ?.. If having the stack would help, I would send it to you. I am really stumped... any help would be appreciated. local browserID on preOpenStack set itemDel to / set the defaultfolder to item 1 to -2 of (the effective fileName of this stack) set the loc of this stack to screenLoc() end preOpenStack on openCard /* 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, scrollbars, false revBrowserSet browserID, showborder, true revBrowserSet browserID, rect,rect of image browserimage end openCard on resizeStack /* keep the browser 16 pxs from the bottom to be able to get to the resize window box */ set the rect of image browserImage to 0, 0 , (the width of this stack) , (the height of this stack -16 ) revBrowserSet browserID, rect, rect of image browserImage pass resizeStack end resizeStack on closeCard /* destroy the browser instance when the card closes */ if browserID is not empty then revBrowserClose browserID end closeCard take care, Dixie Hi Dixie, Microsoft wouldn't be Microsoft if things weren't slightly different in their world - but then the same can be said the other way around about Apple ;-) Anyway, here's a blog entry from MS HQ which should be of interest: http://blogs.msdn.com/ie/archive/2006/12/06/file-uris-in-windows.aspx HTH, Jan Schenkel. = Quartam Reports PDF Library for LiveCode www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Local files in revBrowser
Hi Mike, Am 09.06.2011 um 18:53 schrieb Mike Bonner: John sent me a copy of the files, the revbrowserstuff is working fine, it seems to be javascript related (the errors are javascript errors) but i'm not much on javascript so this is over my head. Yep, same here! Looks like John wanted a second opinion ;-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Local files in revBrowser
Got the map itself working, but still stuck on the route generation portion. On Thu, Jun 9, 2011 at 10:59 AM, Klaus on-rev kl...@major.on-rev.comwrote: Hi Mike, Am 09.06.2011 um 18:53 schrieb Mike Bonner: John sent me a copy of the files, the revbrowserstuff is working fine, it seems to be javascript related (the errors are javascript errors) but i'm not much on javascript so this is over my head. Yep, same here! Looks like John wanted a second opinion ;-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Local files in revBrowser
Hi Mike Klaus ... John sent me a copy of the files, the revbrowserstuff is working fine, it seems to be javascript related (the errors are javascript errors) but i'm not much on javascript so this is over my head. What confuses me, and it doesn't take at lot, is that it all runs fine under OSX... It works on OSX if I open the html file by using rev browser and it opens if I use a web browser it just won't under windows... my simple mind and short attention span just can't get to grips with this at all... be well Dixie ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Local files in revBrowser
There was some definite corruption (possibly during the move from the mac to windows machine?). I cleaned things up as best I could, got the map to work, but not the route stuff. I then grabbed the example of simple direction (the one that just draws the route) and adjusted the map.html to match, including the extra parameters you had set up. In chrome it works great (I have it set up with 2 fields so you can pull up a route between wells and bristol) It also works famously when pulled up with iexplore directly from the file. In revbrowser, it loads, the screen goes blank, (just the browser portion), the map is no longer showing (no errors.) If I resize the stack, the map flickers in and out, and if I stop at a good location, the map draws and looks fine. If I then use the dropdown selectors I added to bring up the route between wells and bristol, screen flickers, and poof. Map is gone again. Resizing makes it come back if I drop in the right spot. Same with zooming in and out using the controls. Its hit or miss (mostly miss) as to whether the map will or won't show. On Thu, Jun 9, 2011 at 11:46 AM, John Dixon dixo...@hotmail.co.uk wrote: Hi Mike Klaus ... John sent me a copy of the files, the revbrowserstuff is working fine, it seems to be javascript related (the errors are javascript errors) but i'm not much on javascript so this is over my head. What confuses me, and it doesn't take at lot, is that it all runs fine under OSX... It works on OSX if I open the html file by using rev browser and it opens if I use a web browser it just won't under windows... my simple mind and short attention span just can't get to grips with this at all... be well Dixie ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode