Re: Cancel browser widget navigation?

2018-01-05 Thread Trevor DeVore via use-livecode
On Fri, Jan 5, 2018 at 10:45 AM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > > > So, how should this work without using a lot of JavaScript (eventually > > > changing libbrowser)? > > > > The same way that browserLoadRequest works for the iOS mobile browser. If > > you don’t pass

Re: Cancel browser widget navigation?

2018-01-05 Thread hh via use-livecode
> > So, how should this work without using a lot of JavaScript (eventually > > changing libbrowser)? > > The same way that browserLoadRequest works for the iOS mobile browser. If > you don’t pass the message then the url isn’t loaded. This works from a WYSIWYG editor?

Re: Cancel browser widget navigation?

2018-01-05 Thread Trevor DeVore via use-livecode
On Fri, Jan 5, 2018 at 10:23 AM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > The browser widget doesn't know anything about what you do in the editor. > It has always the original htmltext you used for starting the editor. > > So, how should this work without using a lot of JavaS

Re: Cancel browser widget navigation?

2018-01-05 Thread hh via use-livecode
> Yes, I am aware of how to cancel clicks using JavaScript. Remember that my > original post stated that I was looking for a way to cancel navigation > using a method other than JavaScript (which is the solution I’m currently > using) :-) > > Ideally the browser widget would allow us to cancel nav

Re: Cancel browser widget navigation?

2018-01-05 Thread Trevor DeVore via use-livecode
On Fri, Jan 5, 2018 at 9:45 AM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > > > hh wrote: > > > 2. Don't do the navigation in the widget but later on in browsers: > > > Not really from a widget property. But you could use an attribute that > the > > > widget can't do: to open a n

Re: Cancel browser widget navigation?

2018-01-05 Thread hh via use-livecode
> > hh wrote: > > 2. Don't do the navigation in the widget but later on in browsers: > > Not really from a widget property. But you could use an attribute that the > > widget can't do: to open a new window. This works in "hhTextEditBasic". > > > > set the htmltext of widget 1 to > > http://www.scre

Re: Cancel browser widget navigation?

2018-01-05 Thread Trevor DeVore via use-livecode
On Fri, Jan 5, 2018 at 9:01 AM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > > Trevor D. wrote: > > Other than injecting javascript into each web page that cancels clicks on > > links, is there a way to cancel user clicks on links in a browser widget? > > 1. Cancel while navigatin

Re: Cancel browser widget navigation?

2018-01-05 Thread hh via use-livecode
> Trevor D. wrote: > Other than injecting javascript into each web page that cancels clicks on > links, is there a way to cancel user clicks on links in a browser widget? 1. Cancel while navigating: Catch the "current" htmltext: on browserNavigateBegin set the currentHTML of me to the htmlte

Cancel browser widget navigation?

2018-01-05 Thread Trevor DeVore via use-livecode
Other than injecting javascript into each web page that cancels clicks on links, is there a way to cancel user clicks on links in a browser widget? -- Trevor DeVore ScreenSteps www.screensteps.com ___ use-livecode mailing list use-livecode@lists.runrev.