Re: Getting Webpage Information
Hi Tom, I found htmltext gave me html not just text. I tried the following, and it yielded a lot of formatting junk, plus some useable text. set the HTMLText of field “MyTestTextField" to the HTMLtext of widget “MyWebBrowser" Bob is correct about javascript variable contents not coming across. I have found that aspect to be a source of much frustration. If we could just have a command that would copy and paste from the widget like a human we would be able to capture those javascript variable values. Thanks for the suggestions. Rick > On Mar 28, 2022, at 4:38 PM, Tom Glod via use-livecode > wrote: > > Rick, > > try the htmltext property instead of text. I just tested it, it works and > text does not. ___ 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
Re: Getting Webpage Information
It seems to me that in order for the browser widget to DISPLAY all the text, even in Javascript objects, it must KNOW what the text is. If it KNOWS, maybe there is a way to update the widget to make that information available in a property? Bob S > On Mar 28, 2022, at 13:50 , Bob Sneidar via use-livecode > wrote: > > I get the web page text, but not any of the values in the fields, nor even > any of the body text. I think that is because the page I am looking at is > Java based. I'd LOVE to figure out a way to get THAT text as it would make my > job of backing up copier data during installs MUCH quicker. > > Bob S > > >> On Mar 28, 2022, at 13:38 , Tom Glod via use-livecode >> wrote: >> >> Rick, >> >> try the htmltext property instead of text. I just tested it, it works and >> text does not. >> >> >> On Sun, Mar 27, 2022 at 5:53 PM Rick Harrison via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> Hi Keith, >>> >>> Yes, I have tried that several times and ways. It doesn’t seem to work. >>> One would think that would work fine. >>> >>> Other ideas? >>> >>> Thanks, >>> >>> Rick >>> On Mar 27, 2022, at 3:58 PM, Keith Clarke via use-livecode < >>> use-livecode@lists.runrev.com> wrote: Hi Rick, Maybe try 'put the text of widget "youtBrowserName" into field >>> "yourFieldName" ' to get the plain text? If you need the html source, try >>> '...the htmlText' of widget... Best, Keith >>> >>> ___ >>> 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 ___ 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
Re: Getting Webpage Information
I get the web page text, but not any of the values in the fields, nor even any of the body text. I think that is because the page I am looking at is Java based. I'd LOVE to figure out a way to get THAT text as it would make my job of backing up copier data during installs MUCH quicker. Bob S > On Mar 28, 2022, at 13:38 , Tom Glod via use-livecode > wrote: > > Rick, > > try the htmltext property instead of text. I just tested it, it works and > text does not. > > > On Sun, Mar 27, 2022 at 5:53 PM Rick Harrison via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Hi Keith, >> >> Yes, I have tried that several times and ways. It doesn’t seem to work. >> One would think that would work fine. >> >> Other ideas? >> >> Thanks, >> >> Rick >> >>> On Mar 27, 2022, at 3:58 PM, Keith Clarke via use-livecode < >> use-livecode@lists.runrev.com> wrote: >>> >>> Hi Rick, >>> Maybe try 'put the text of widget "youtBrowserName" into field >> "yourFieldName" ' to get the plain text? If you need the html source, try >> '...the htmlText' of widget... >>> Best, >>> Keith >> >> ___ >> 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
Re: Getting Webpage Information
Rick, try the htmltext property instead of text. I just tested it, it works and text does not. On Sun, Mar 27, 2022 at 5:53 PM Rick Harrison via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Keith, > > Yes, I have tried that several times and ways. It doesn’t seem to work. > One would think that would work fine. > > Other ideas? > > Thanks, > > Rick > > > On Mar 27, 2022, at 3:58 PM, Keith Clarke via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Hi Rick, > > Maybe try 'put the text of widget "youtBrowserName" into field > "yourFieldName" ' to get the plain text? If you need the html source, try > '...the htmlText' of widget... > > Best, > > Keith > > ___ > 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
Re: Getting Webpage Information
Hi Keith, Yes, I have tried that several times and ways. It doesn’t seem to work. One would think that would work fine. Other ideas? Thanks, Rick > On Mar 27, 2022, at 3:58 PM, Keith Clarke via use-livecode > wrote: > > Hi Rick, > Maybe try 'put the text of widget "youtBrowserName" into field > "yourFieldName" ' to get the plain text? If you need the html source, try > '...the htmlText' of widget... > Best, > Keith ___ 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
Re: Getting Webpage Information
Hi Rick, Maybe try 'put the text of widget "youtBrowserName" into field "yourFieldName" ' to get the plain text? If you need the html source, try '...the htmlText' of widget... Best, Keith > On 27 Mar 2022, at 19:01, Rick Harrison via use-livecode > wrote: > > I have been playing around with the WebBrowser > widget, and I can’t seem to grab the content results of > what the page returns. > > Example: If I use the Browser to navigate to google, > I can program a way to search for “Bird”. > When the results are returned in the browser, I can > manually perform a select all. I can then do a simple > copy and paste of the copied text into a field. > > I just can’t perform the above programmatically > with LiveCode. What am I missing here? > > Thanks, > > Rick > > > > ___ > 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