jquery - opening new tab on ipad triggered via AJAX not working -
seems not work opening new tab on ipad after ajax call has been made. here code.
html: <form id="confirmform" action="http://www.google.com" target="_blank" method="post"> <input type="hidden" name="hinp" value="1" /> </form> <div id="someel">click</div> js: $("#someel").click(function(){ var nid = 123; $.post("http://someurl.com", { eyed: nid }) .done(function () { $("#confirmform").submit(); }); });
on ipad not open new tab. bug? opens fine regular web browser not ipad. maybe security or something? need post form on completion of ajax call points server open in new tab.
it appears in .done() cannot open new window reason. not sure if bug, tried creating function window.open , firing .done() still no luck. since there lack of answers considering closed. work around open after ajax call , make synchronous in order.
Comments
Post a Comment