I'm looking for a way to make a page request in Ajax and retrieve the request page to a string. This string should be available to any function but in the example below it isn't because alert(data); doesn't popup. After converting to a string i want to manipulate the text by using "find" to look for a string or a text in a determined area. Can this be done?
Yes, is giving CORS error, do you have any other language suggestion? I tried in JS and PHP but it doesn't work.
Also, while i was searching i found a Python Script that does half of the work that what i'm trying to build. Is Python more open in terms of development?
You can call a PHP script on the same domain as the Javascript. That PHP script can fetch the contents of another domain, parse it, and return data to the Javascript script.