Parley
view release on metacpan or search on metacpan
root/static/yui/uploader/uploader.js view on Meta::CPAN
PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
}
return PlayerVersion;
};
YAHOO.deconcept.PlayerVersion = function(arrVersion)
{
this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
};
YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
{
if(this.major < fv.major)
{
return false;
}
if(this.major > fv.major)
{
return true;
}
if(this.minor < fv.minor)
{
return false;
}
if(this.minor > fv.minor)
{
return true;
}
if(this.rev < fv.rev)
{
return false;
}
return true;
};
/* ---- get value of query string param ---- */
YAHOO.deconcept.util =
{
getRequestParameter: function(param)
{
var q = document.location.search || document.location.hash;
if(param === null) { return q; }
if(q)
{
var pairs = q.substring(1).split("&");
for(var i=0; i < pairs.length; i++)
{
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param)
{
return pairs[i].substring((pairs[i].indexOf("=") + 1));
}
}
}
return "";
}
};
/* fix for video streaming bug */
YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
{
var objects = document.getElementsByTagName("OBJECT");
for(var i = objects.length - 1; i >= 0; i--)
{
objects[i].style.display = 'none';
for(var x in objects[i])
{
if(typeof objects[i][x] == 'function')
{
objects[i][x] = function(){};
}
}
}
};
// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
if(YAHOO.deconcept.SWFObject.doPrepUnload)
{
if(!YAHOO.deconcept.unloadSet)
{
YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
{
__flash_unloadHandler = function(){};
__flash_savedUnloadHandler = function(){};
window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
};
window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
YAHOO.deconcept.unloadSet = true;
}
}
/* add document.getElementById if needed (mobile IE < 5) */
if(!document.getElementById && document.all)
{
document.getElementById = function(id) { return document.all[id]; };
}
/**
* Wraps Flash embedding functionality and allows communication with SWF through
* attributes.
*
* @namespace YAHOO.widget
* @class FlashAdapter
* @uses YAHOO.util.AttributeProvider
*/
YAHOO.widget.FlashAdapter = function(swfURL, containerID, attributes, buttonSkin)
{
this._queue = this._queue || [];
this._events = this._events || {};
this._configs = this._configs || {};
attributes = attributes || {};
//the Flash Player external interface code from Adobe doesn't play nicely
//with the default value, yui-gen, in IE
this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
attributes.version = attributes.version || "9.0.45";
attributes.backgroundColor = attributes.backgroundColor || "#ffffff";
//we can't use the initial attributes right away
( run in 0.996 second using v1.01-cache-2.11-cpan-39bf76dae61 )