English 中文(简体)
TinyURL 人口开张,而不是一个表格
原标题:TinyURL popup opening instead a tab

我在此提出一个不寻常的问题。

我不得不呼吁卢旺达国防军的停职,以缩短我的卢旺达武装部队的工作时间。 之后,我不得不再说一表,但出于某种原因,这叫人满。

我假定,问题在于我称之为“无报酬工作”,但我不知道如何解决这一问题。

以下是为此撰写的编号I ve。

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); 
}

因此,我对面读本(无小孔径)也持有同样的“双向”,我认为这是第一种方法中的一个问题(AndreLoad();)

我已经使用了诸如:

http://skovalyov.blogspot.com/2007/01/how-to-prevent-pop-up-blocking-in.html and http://snipplr.com/view.php?codeview&id=29544

PS:The twitter is working I unblock the pop ups on chrome. 我所要做的是开一个新表格。

让我知道,你们的谎言是否像现在这样有些问题了,它非常麻烦!

谢谢。

问题回答

你们的住处被阻断的原因很多,但在此情况下,我注定,因为登峰不是对点击或键盘投入等用户活动的反应。

In your case that would mean doing the url shortening in the background before even letting the user choose to post to twitter, and when they do that you open that new page in response to their mouse event.

我再说一遍,我只是 figure了这个问题。

All I did was to avoid the TinyURL service and call directly the Twitter page updater as below.

var myString:String = "http://twitter.com/home?status=" + MESSAGE + " " + LINK;
var url:URLRequest = new URLRequest(myString);
navigateToURL(url);

简言之,“Twitter”有自己的“URL”缩短时间,当时你会把“http://”压缩到“url”的其余部分,但它却做了ir脏的工作。

感谢大家





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Sorting twodimensional Array in AS3

So, i have a two-dimensional Array of ID s and vote count - voteArray[i][0] = ID, voteArray[i][1] = vote count I want the top 3 voted items to be displayed in different colors, so i have a 2nd Array -...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

Red5 Security Tutorial

I am looking for a step by step tutorial on securing Red5 from intrusion. This seems to be a question that comes up alot in a google search, but is never really answered in a way that makes sense to ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

visible property of DisplayObject

For example I have a hierarchy of movie clips. mc1 is a child of mc, and mc2 is a child of mc1. Turns out that when I set mc1.visible = false; mc2.visible stays true. Is that supposed to happen?...

热门标签