LC8-dp15 browser widget's URL history

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

LC8-dp15 browser widget's URL history

Post by [-hh] » Wed Feb 24, 2016 12:07 am

The browser widget provides by rightClick to go "Back/Forward" in URL history.
I can't find any way to access this history for use in scripts. What's the trick?

hh
shiftLock happens

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1209
Joined: Thu Apr 11, 2013 11:27 am

Re: LC8-dp15 browser widget's URL history

Post by LCMark » Fri Mar 04, 2016 10:57 am

Actually, the browser widget probably *shouldn't* always provide that popup menu as script will probably want control over whether a popup menu appears at all, and what it contains.

In regards to going back and forward... Then this should work:

Code: Select all

go backward in widget "mybrowser"
go forward in widget "mybrowser"
I've filed a bug about getting more control over the context menu - http://quality.livecode.com/show_bug.cgi?id=17062

MWCoastMedia
Posts: 32
Joined: Fri Jan 16, 2015 5:31 pm

Re: LC8-dp15 browser widget's URL history

Post by MWCoastMedia » Wed Jul 20, 2016 3:36 pm

LCMark wrote: In regards to going back and forward... Then this should work:

Code: Select all

go backward in widget "mybrowser"
go forward in widget "mybrowser"
Thank you! Where is this documented? I can't find it in the release notes or the Dictionary entries for the Browser widget.

The LiveCode Script Dictionary has 'go in widget' as an entry, but is somewhat vague and doesn't mention any widget compatibility.

Post Reply

Return to “LiveCode Builder”