I am trying to import an entire webpage into an html field. I am trying to use the getPageData Function from the HTTP Plug-in but I can’t get it to work. I would like to get all of the content of the page into a HTML field of my solution by a click of a button. Any idea on how I could achieve this?
Please do not post questions in multiple threads.
What is it what doesn’t work? getPageData should be just fine for that. Your problem might be that Sun’s (Java’s) HTML renderer has quite some limitations. One I can tell you right away: if you don’t remove META tags from the header, it won’t display anything. So first remove META tags and then try again.
jaleman:
Please do not post questions in multiple threads.
I will not do it again.
Thank very much you Patrick
I need a “how to” explanation. Could you or somebody else send me an example of the entire method as it is in one of you solutions? I am still learning how to work with Servoy’s functions in general.
JC
I figured this thing out. I just had to declare the variable to hold the data and then define the output. This is what I did:
//Get all page html in a variable (authentication only works with http client usage)
var pageData = plugins.http.getPageData(womenslegalhistory_url);
womenslegalhistory_webpage = pageData;
Sounds like an interesting web page