How do I return the viewed text of the web page?
Thanks.
Code: Select all
on mouseUp
get URL "..."
put line 1 to 30 of it into field "textHolder"
end mouseUp
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseUp
get URL "..."
put line 1 to 30 of it into field "textHolder"
end mouseUp
David, that's what get url is supposed to do. It gets the raw file. You need to strip out the html tags with something like:david@ninetrees.com wrote:when doing a get URL "" request, I was surprised that it returned the source of the web page.
How do I return the viewed text of the web page?
Thanks.
Code: Select all
on mouseUp get URL "..." put line 1 to 30 of it into field "textHolder" end mouseUp
Code: Select all
on mouseUp
get URL "..."
set the htmlText of fld "textHolder" to line 1 to 30 of it
end mouseUp