New topic: HTMLViewer - retrieve the URL currently in use
<http://forums.realsoftware.com/viewtopic.php?t=45907> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message CloudHugger Post subject: HTMLViewer - retrieve the URL currently in usePosted: Wed Nov 14, 2012 5:32 am Joined: Wed Nov 14, 2012 5:29 am Posts: 1 Hi there - newbie question sorry! For the life of me I cant figure out how to retrieve the current URL that a HTMLViewer object has loaded. Any pointers? Cheers, CH Top shaosean Post subject: Re: HTMLViewer - retrieve the URL currently in usePosted: Wed Nov 14, 2012 6:41 am Joined: Mon Aug 15, 2011 10:25 pm Posts: 219 I made a subclass of the HTMLviewer to give me some extra functions and use JavaScript to change the status to get the information from the JavaScript to RealStudio.. http://shaosean.tk/realstudio/ssHtmlViewerClass.zip The DocumentComplete event is over-ridden and just requires a small snippet of JS right before the </body> tag.. This is so you can have that event fire when loading local HTML files.. <script>window.status = 'DocumentComplete';</script> Any questions, suggestions or improvements, please feel free to reply here.. _________________ Real Studio 2012r1.1 | MacBook Pro i5, 10.6.8 | Windows 7 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
