Note that there are some explanatory texts on larger screens.

plurals
  1. POTinyURL popup opening instead a tab
    primarykey
    data
    text
    <p>I gotta an uncommon problem over here.</p> <p>I have to call the tinnyURL service to shorten my URL, it is working fine. After that, I have to call another tab, but for some reason, it calls a pop-up. </p> <p>I'm assuming that the problem is when I call the tinyURL service, but I don't know how to fix it.</p> <p>Below is the code I've wrote for this.</p> <pre><code>variables.url = String("http://www.google.com"); sendAndLoad("http://tinyurl.com/api-create.php", variables); // tinyURL service private function sendAndLoad( url:String, _vars:URLVariables ):void { request = new URLRequest(url); request.data = _vars; request.method = URLRequestMethod.POST; _urlloader = new URLLoader(); _urlloader.dataFormat = URLLoaderDataFormat.TEXT; _urlloader.addEventListener(Event.COMPLETE, handleComplete); _urlloader.load(request); } // once I get the tinyURL response this function is triggered private function handleComplete(event:Event):void { var s:String = event.target.data; finalURL = "http://twitter.com/home?status=" + MESSAGE + " " + s; var url:URLRequest = new URLRequest(finalURL); navigateToURL(url); } </code></pre> <p>So I have the same "way-to-do" for the facebook (without the tinyURL) and it works properly, I think it is a problem within the first method (sendAndLoad();)</p> <p>I've used already alternatives like:</p> <p><a href="http://skovalyov.blogspot.com/2007/01/how-to-prevent-pop-up-blocking-in.html" rel="nofollow">http://skovalyov.blogspot.com/2007/01/how-to-prevent-pop-up-blocking-in.html</a> and <a href="http://snipplr.com/view.php?codeview&amp;id=29544" rel="nofollow">http://snipplr.com/view.php?codeview&amp;id=29544</a></p> <p>PS:The twitter is working IF I unblock the pop ups on chrome. All I want to do is to open in a new tab.</p> <p>Let me know if you guys already had some problem like that, it is pretty troublesome!</p> <p>Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload