[BUG] RevBrowser fails to render from htmltext property if no url was loaded before.

Jan Schenkel janschenkel at yahoo.com
Tue Jan 19 01:34:28 EST 2010


The eaésiest workaround is to first open a blank page; so on opening the revBrowser instance, I set the initial URL to "about:blank" and that seems to do the trick.
Maybe this should be the default URL for new revBrowser instances - either that or they should make it very clear in the docs that a valid URL is required :-)

HTH,

Jan Schenkel
=====
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


--- On Mon, 1/18/10, Andre Garzia <andre at andregarzia.com> wrote:
> 
> If you create a revbrowser object on
> windows xp and didn't set it to go to
> any url (pass empty in revbrowseropen) and then tries to
> set the content by
> setting the htmltext property of the revbrowserinstance, it
> will fail to set
> and will not render.
> 
> If you set the url property to some url and then after
> rendering, you set
> the htmltext property, it will work.
> 
> It appears that revbrowser will not instantiate on windows
> if it is not told
> to load a url.
> 
> bz#8549
> 
> http://quality..runrev.com/qacenter/show_bug.cgi?id=8549
> 
> This is a blocker to anyone trying to use RevBrowser to
> render custom media
> players or displays. For example, I use it to play youtube
> videos but not
> youtube home page, I assemble a htmltext using merge and
> set it, this is
> elegant for the temporary page never touches the disk but
> it is not working
> on windows, on the mac it works great. I also use it to
> play audio and video
> files using JW FLV player which works quite well on macs
> but on windows is
> failing.
> 
> If I set the revbrowser to some other url and then try to
> set it to my
> htmltext, then it works ok.. I believe the activeX or
> whichever thing is used
> to load the browser component on windows fails to
> initialize if not pointed
> to an url.
> 
> Cheers and votes welcome.
> 
> Andre
> 


      




More information about the use-livecode mailing list