Recover link generated by an ajax

Asked

Viewed 47 times

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

  • it appears all html

  • 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

  • Man, I was already editing it, look there

  • What you need to see is the HTML that said it was sent in response, and the link (data)

  • you want to see the generated html?

  • 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> ...

  • Okay, this is the link to this html you want to extract?

  • 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

  • I think I get it, I’m already responding

  • Okay, thank you my dear

  • 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

  • No, there is no link in the middle of the expensive html '-' .

  • 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

  • got what I need?

  • someone can help?

Show 11 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.