Browser widget - is there something similar to browserBeforeNavigate

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Sun May 5 17:57:46 EDT 2019


Thanks Ralph,

tried that already (should have mentioned that), but the URL is loaded right away in the widget and then the script in the message handler browserNavigateBegin is executed.

This is my script
on browserNavigateBegin pURL

    if not (pURL begins with "https://forums.livecode.com <https://forums.livecode.com/>")

    then

        answer "Forum jetzt verlassen" with "ja" or "nein"

        if it is "ja" 

        then

          pass browserNavigateBegin

       else

         go back in widget "mrBrowser"

      end if

   end if

end BrowserNavigateBegin

Am i missing something?

Regards
Matthias



> Am 05.05.2019 um 23:42 schrieb Ralph DiMola via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
> 
> browserNavigateBegin
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net <mailto:rdimola at evergreeninfo.net>
> 
> 
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
> Of Matthias Rebbe via use-livecode
> Sent: Sunday, May 05, 2019 5:36 PM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Browser widget - is there something similar to
> browserBeforeNavigate
> 
> Hi,
> does anyone know how can i check the URL before the URL is loaded in the
> Browser widget.
> 
> The old revBrowser had the message browserBeforeNavigate.
> Is there something similar i can use for the browser widget?
> 
> Regards,
> Matthias Rebbe
> 
> _______________________________________________
> use-livecode mailing list
> 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
> 
> 
> _______________________________________________
> use-livecode mailing list
> 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