I have been trying to get the text content of a standard web page and display it in a stack (in a field)
I found: set the htmlText of field "FromWebSite" to URL "http://www.xxxxx"
But that puts the actual code in the field- How do I display only the text content that is in the code?
Thanks.
Ron
Get text from URL- put into field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 106
- Joined: Wed May 31, 2006 9:56 pm
- Contact:
-
- Posts: 106
- Joined: Wed May 31, 2006 9:56 pm
- Contact:
Re: Get text from URL- put into field
Actually, I have lot of the web page content displayed in the field, but I also get extraneous code as well.
Is it possible to select content within elements (e. g. Divs, or elements with ID names)?
Is it possible to select content within elements (e. g. Divs, or elements with ID names)?
Re: Get text from URL- put into field
the htmltext of a field is not the same as xhtml 4.1 strict. It's not even html 1.0 for all I know. It's RevTML, so to say. As for your question, the only way is to parse the text in a repeat loop, or to copy/paste the text from a browser object.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode