Another Browser Widget Question

Bleiler, Timothy bleiler at buffalo.edu
Fri Jul 28 14:18:26 EDT 2017


Thank you Mark,

I'm reluctant to file a bug report if I’m just not handling the appropriate message.
I’ve tried catching the following messages in the script of the browser widget and none of them appear to be sent when clicking on the example link in a page with nothing else defined.
The web page works as expected in my web browser.


BrowserNavigateBegin pUrl, pError

BrowserNavigateFailed pUrl, pError

BrowserDocumentLoadBegin pUrl

BrowserDocumentLoadFailed pUrl, pError

browserUnhandledLoadRequest pURL

browserFrameDocumentLoadBegin pURL

browserFrameDocumentLoadFailed pUrl, pError

I don’t see any other messages in the dictionary that look applicable. If one of these was expected to work, then I’ll file the bug report.

Tim Bleiler, Ph.D.
Instructional Designer, HSIT
University at Buffalo

On Jul 28, 2017, at 1:46 PM, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

On 2017-07-28 19:30, Bleiler, Timothy via use-livecode wrote:
It’s the browser’s responsibility to handle this html syntax
<a target="_blank|_self|_parent|_top|framename”>
example: <a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>
Is there a way to deal with this using the browser widget in Livecode?

In the context of the browser widget, you should get a message when something like this occurs, it is then up to your code to decide what to do (it allows you to have some control over what happens within the widget).

I must confess I can't remember exactly which message you might need in this instance. However, if you take a look in the dictionary under the browser widget then there are a fair few to try.

Note: If you find that none of them do work for you in this scenario, file an bug in the Quality Center and we'll take a look more deeply.

Warmest Regards,

Mark.

--
Mark Waddingham ~ mark at livecode.com<mailto:mark at livecode.com> ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list