Browser object links

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Browser object links

Post by Andycal » Sat Aug 25, 2007 8:53 am

I've got a browser object showing a page from my site that has links in it. I assumed that if I put a target of blank in the URL then when users clicked from within my stack it would open a browser, but it doesn't.

Anyone know how to acheive this?

Klaus
Posts: 14192
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Aug 25, 2007 12:06 pm

Hi Andy,

the Rev browser has a life on its own :-)

So if you want to open the "real" browser after the user clicked a link in your Rev browser, then you will have to script this behaviour!

Check e.g. the "BrowserBeforeNavigate" command in the docs that will get you started.


Regards

Klaus

Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Post by Andycal » Sat Aug 25, 2007 3:20 pm

OK, thanks for that pointer - nearly made a breakthrough, although not quite!

I added:

Code: Select all

on browserBeforeNavigate sBrowserId, pUrl
  revGoURL pUrl
    end browserBeforeNavigate
to the card script but now it opens a two browser windows when it starts, one is a navigation cancelled page, the other is the page that opens within the card itself.

Clicking on the links within the card script still doesn't work. Very odd...

Post Reply