Skip to Content
0

How to get contents of any html page using XSJS

Feb 21, 2017 at 05:42 AM

75

avatar image
Former Member

I am making an XSJS application, and I need to get the contents (html) of the entire page of any specified url, as a string for further parsing. I know this is not possible in the front end because of cross domain restrictions, but it should be possible in the backend. Eg: Node.js has a special function to take in a URL and return the html contents of the same. I wanted to know if there was an equivalent in XSJS. If not , could you please guide me as to how I can write it myself.


Thank you

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jan 03 at 02:14 PM
0

You can use NodeJs Library with XS Advanced or you can use $.web.WebRequest() if you work with XS Classic

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 03 at 09:12 AM
0

Am Shara, I am also searching for the same answer. :(

Share
10 |10000 characters needed characters left characters exceeded