Htmltext of a field is not the same as htmltext of the browser widget.  A 
LiveCode field only supports a fraction of html.  In your example you need to 
just set the text of the field to see the page source.  Setting htmetext forces 
LiveCode to render the html and anything it does not understand is stripped.

Thanks,
Brian
On Apr 17, 2019, 2:23 PM -0400, Rick Harrison via use-livecode 
<use-livecode@lists.runrev.com>, wrote:
> Thanks for getting back to me on this.
>
> > The htmltext is the page source code. So
> >
> > put the htmltext of widget "browser" into field 1
>
> I thought it was the source code originally too,
> but it doesn’t work correctly.
>
> For example:
>
> set the HTMLText of field "HTMLTextField1" to URL field "WebAddressField1" of 
> this card
> (Where field "WebAddressField1" of this card = http://www.duckduckgo.com 
> <http://www.duckduckgo.com/> )
>
> Look at the output in field HTMLTextField1.
>
> Then go to the website with Safari with the Developer Menu turned on,
> and use the pull down menu option for “Show Page Source”.
>
> You will see there is a vast difference between what Safari shows
> versus what LiveCode HTMLText shows. (It’s less than useful!)
>
> Your thoughts?
>
> Thanks,
>
> Rick
>
>
>
> > On Apr 17, 2019, at 6:13 AM, hh via use-livecode 
> > <use-livecode@lists.runrev.com> wrote:
> >
> > > Rick H. wrote:
> > > I am able to load the browser widget with a URL
> > > and go to the URL successfully.
> > >
> > > I can get the HTMLtext of the page I have browsed to just fine.
> > > What I have yet to do is to get the page source code of the page
> > > I have browsed to in LiveCode into a field.
> >
> > The htmltext is the page source code. So
> >
> > put the htmltext of widget "browser" into field 1
> >
> > If you don't mean the htmltext but the *generated* htmltext then you
> > have to use JavaScript (see for example the firefox developer tools).
> >
> > > Rick H. wrote:
> > > I also would like the browser widget to show me any new URL address
> > > that I have gone to.
> >
> > This stack shows also one way how to implement "history" for the widget
> > in a few lines:
> > http://forums.livecode.com/viewtopic.php?p=174936#p174936
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to