javascript - Is there any way to load redirected page in div in jquery? -
i have links (like first link in below) , want links redirected (like second one)
for example:
i have link below:
and need link:
that redirect (or converted) first one.
when use .load()
function in jquery return javascript codes think second link dx.doi.org
server.
how can second link? (http://link.springer.com/journal/146
)
in other word, have http://dx.doi.org/10.1007/146.1435-5655
, need http://link.springer.com/journal/146
in string (not content of http://link.springer.com/journal/146
)
<html> <head> <title>todo supply title</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div id="swpicform">todo write content</div> <script type="text/javascript" src="js/jquery/jquery-1.8.3.min.js"></script> <script type="text/javascript"> $("#swpicform").load("http://dx.doi.org/10.1007/146.1435-5655", null, function() { alert($("#swpicform").html()); }); </script> </body> </html>
result is:
function (e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodetype===1?n.innerhtml.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlserialize||!wt.test(e))&&(v.support.leadingwhitespace||!pt.test(e))&&!nt[(vt.exec(e)||["",""])[1].tolowercase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodetype===1&&(v.cleandata(n.getelementsbytagname("*")),n.innerhtml=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)}
thanks all
Comments
Post a Comment