Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Jul 17, 2018 4:31 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HTTPViewer intercept page source before DocumentComplete
PostPosted: Thu Jul 14, 2011 9:31 pm 
Offline

Joined: Wed Jul 13, 2011 9:09 am
Posts: 4
Hello,

Is there a way to intercept source and stop loading of the HTMLViewer? I have a page that displays javascript alert onLoad if there is an error message. I am wanting to stop loading that page and move to the next. I have tried the MBS plugins and thought I would ask for some guidance here, before resorting to re-writing the code back to HTTPSocket functionality. I tried the DocumentBegin, but for some reason the source is only available after the document loads, which is too late.

Thanks,

Patrick


Top
 Profile  
Reply with quote  
 Post subject: Re: HTTPViewer intercept page source before DocumentComplete
PostPosted: Thu Jul 14, 2011 10:40 pm 
Offline

Joined: Wed Jul 13, 2011 9:09 am
Posts: 4
I managed to resolve the problem myself. In case anyone needs this in the future, paste the following as the first line above any other code in DocumentComplete of HTMLViewer
call HTMLViewer1.IERunJavaScriptMBS "window.alert = function() {};"


I assumed the Windows platform.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group