Forum Moderators: open
<input type="text" id="http" value="http://www.example.com">
<br>
<input type="button" id="submit" onclick="myhttp()" value="Send!"/>
<script>
function myhttp() {
var http = document.getElementById("http").value;
var dataString = 'lsd=AVrls4dL&email=email@gmail.com';
$.ajax({
type: "GET",
url: http,
data: dataString,
async: false,
success: function(data){
alert(data);
}
});
}
</script>
> What type of data is the request returning?
That's the question i can't get access to any type of data to work with.
Is it html, JSON, a string?
The goal is to have access to the html page and automatically select the info/input fields data and show to the user (In one simple request).
The url that i'm posting is a 3rd party website.
Is the url you are POSTing to controlled by you or is it a 3rd party website?