HI,
iframe has a property called src. You are using the jquery here and its very easy to append an attribute on success of the method.
Use the following code on success method.
document.getElementsByID("your iframe id here").attr("src",input);
Thanks