0
I am using a adapted API that retrieves the following XML data
<?xml version="1.0" encoding="utf-8" ?>
<ajax>
<cmd p="innerHTML" t="shurlmsg">
<![CDATA[<div class="myWinLoadSD">This link is already on your list</div>]]>
</cmd>
<cmd p="js">
<![CDATA[
$('#shurlin').removeClass('ajaxloading');
setTimeout("$('#shurlmsg').html('');", 4000);
$('#noresult').remove();
$('#urls').prepend('');
$('#shurlin').val('');
$('#shurlout').val('http://example.com/Um5-Cg').show().focus().select();
]]>
</cmd>
What I want is to get the shortened URL http://example.com/Um5-Cg
.
Do you want to capture the URL and shorten it then? Or did you mean "I want to get that shortened url," if that’s it then the @xsquirrel answer seems to be a way.
– Guilherme Nascimento