0
Good morning guys.
I’m sending data to the other domain, using ajax + php. Only I need to make this generated link open, so they can send the data of the site, because of captcha.
$.ajax({
url: "webproxy.php?url=" + encodeURIComponent("http://ecoprintq.com/index.php/partnerApplication/create"),
data: "User_full_name:aaaaaaa&User_institution:sssss",
crossDomain:true,
type: "GET",
timeout: 30000,
dataType: "text", // "xml", "json"
success: function(data) {
},
error: function(jqXHR, textStatus, ex) {
alert(textStatus + "," + ex + "," + jqXHR.responseText);
}
});
This ajax returns:
jquery-1.10.2.js:7 XHR finished loading: GET "http://127.0.0.1/ecoLicenseLayout/webproxy.php?url=http%3A%2F%2Fecoprintq.c…FpartnerApplication%2Fcreate&User_full_name:aaaaaaa&User_institution:sssss".
send
@ jquery-1.10.2.js:7ajax
jquery-1.10.2.js:7(anonymous function)
@ teste.php:44
I was wondering if you had any function
"http://127.0.0.1/ecoLicenseLayout/webproxy.php? url=http%3A%2F%2Fecoprintq.c…FpartnerApplication%2Fcreate&User_full_name:aaaaaaa&User_institution:sssss"
Try inside the Success function:
console.log(data);
and see what happens– Miguel
it appears all html
– Gabriel falieri
As an answer he receives an html and you would like to extract that link? It puts the relevant HTML in the question, what has that link, and it also explains this in the question. Vai a http://answall.com/posts/171006/edit. Welcome, http://answall.com/tour
– Miguel
Man, I was already editing it, look there
– Gabriel falieri
What you need to see is the HTML that said it was sent in response, and the link (
data
)– Miguel
you want to see the generated html?
– Gabriel falieri
My dear, the html I speak, is a whole answer. But you can only see it on the console. <! DOCTYPE html> <html dir="Ltr" lang="en-US"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/> <link rel="stylesheet" type="text/css" href="/Assets/477107c0/jui/css/base/jquery-ui.css" /> <link rel="stylesheet type=""text/css" href="/Assets/b0bfca91/mbmenu.css" media="screen" /> <script type="text/javascript" src="/Assets/477107c0/jquery.js"></script> ...
– Gabriel falieri
Okay, this is the link to this html you want to extract?
– Miguel
Not quite this html, it’s an html that sends to this page, but is generated by ajax. ... http://127.0.0/ecoLicenseLayout/webproxy.php? url=http%3A%2F%2Fecoprintq.com%2Findex.php%2FpartnerApplication%2Fcreate&User_full_name:aaaaaaa&User_Institution:sssss This I want to recover
– Gabriel falieri
I think I get it, I’m already responding
– Miguel
Okay, thank you my dear
– Gabriel falieri
Gabriel, this generated link comes in the middle of HTML (
data
) right? If yes, put this HTML instead of php in the question, and say which link in the middle of this HTML you want to extract– Miguel
No, there is no link in the middle of the expensive html '-' .
– Gabriel falieri
XHR finished loading: GET "http://127.0.0.1/ecoLicenseLayout/webproxy.php? url=http%3A%2F%2Fecoprintq.c... FpartnerApplication%2Fcreate&User_full_name:aaaaaaa&User_institution:sssss". You have this link ai... I need to get this link from localhost to ssss, with javascript, but this only appears in the console
– Gabriel falieri
got what I need?
– Gabriel falieri
someone can help?
– Gabriel falieri