HTML-Dojo
view release on metacpan or search on metacpan
lib/HTML/Dojo/src.pm view on Meta::CPAN
endCut = i * 1024 + value.length;
}
var piece = value.substring(startCut, endCut);
piece = this._encodeData(piece);
plugin.CallFunction("<invoke name=\"chunkArgumentData\" " + "returntype=\"javascript\">" + "<arguments>" + "<string>" + piece + "</string>" + "<number>" + argIndex + "</number>" + "</arguments>" + "</invoke>");
}
}, _chunkReturnData:function () {
var plugin = dojo.flash.obj.get();
var numSegments = plugin.getReturnLength();
var resultsArray = new Array();
for (var i = 0; i < numSegments; i++) {
var piece = plugin.CallFunction("<invoke name=\"chunkReturnData\" " + "returntype=\"javascript\">" + "<arguments>" + "<number>" + i + "</number>" + "</arguments>" + "</invoke>");
if (piece == "\"\"" || piece == "''") {
piece = "";
} else {
piece = piece.substring(1, piece.length - 1);
}
resultsArray.push(piece);
}
var results = resultsArray.join("");
return results;
}, _execFlash:function (methodName, methodArgs) {
var plugin = dojo.flash.obj.get();
plugin.startExec();
plugin.setNumberArguments(methodArgs.length);
for (var i = 0; i < methodArgs.length; i++) {
this._chunkArgumentData(methodArgs[i], i);
}
plugin.exec(methodName);
var results = this._chunkReturnData();
results = this._decodeData(results);
plugin.endExec();
return results;
}};
dojo.flash.Install = function () {
};
dojo.flash.Install.prototype = {needed:function () {
if (dojo.flash.info.capable == false) {
return true;
}
if (dojo.render.os.mac == true && !dojo.flash.info.isVersionOrAbove(8, 0, 0)) {
return true;
}
if (!dojo.flash.info.isVersionOrAbove(6, 0, 0)) {
return true;
}
return false;
}, install:function () {
dojo.flash.info.installing = true;
dojo.flash.installing();
if (dojo.flash.info.capable == false) {
var installObj = new dojo.flash.Embed(false);
installObj.write(8);
} else {
if (dojo.flash.info.isVersionOrAbove(6, 0, 65)) {
var installObj = new dojo.flash.Embed(false);
installObj.write(8, true);
installObj.setVisible(true);
installObj.center();
} else {
alert("This content requires a more recent version of the Macromedia " + " Flash Player.");
window.location.href = +dojo.flash.Embed.protocol() + "://www.macromedia.com/go/getflashplayer";
}
}
}, _onInstallStatus:function (msg) {
if (msg == "Download.Complete") {
dojo.flash._initialize();
} else {
if (msg == "Download.Cancelled") {
alert("This content requires a more recent version of the Macromedia " + " Flash Player.");
window.location.href = dojo.flash.Embed.protocol() + "://www.macromedia.com/go/getflashplayer";
} else {
if (msg == "Download.Failed") {
alert("There was an error downloading the Flash Player update. " + "Please try again later, or visit macromedia.com to download " + "the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info = new dojo.flash.Info();
}});
__CPAN_FILE__ src/loader_xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.resetXd = function () {
this.isXDomain = djConfig.useXDomain || false;
this.xdTimer = 0;
this.xdInFlight = {};
this.xdOrderedReqs = [];
this.xdDepMap = {};
this.xdContents = [];
this.xdDefList = [];
};
dojo.hostenv.resetXd();
dojo.hostenv.createXdPackage = function (contents, resourceName, resourcePath) {
var deps = [];
var depRegExp = /dojo.(requireLocalization|require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;
var match;
while ((match = depRegExp.exec(contents)) != null) {
if (match[1] == "requireLocalization") {
eval(match[0]);
} else {
deps.push("\"" + match[1] + "\", " + match[2]);
}
}
var output = [];
output.push("dojo.hostenv.packageLoaded({\n");
if (deps.length > 0) {
output.push("depends: [");
for (var i = 0; i < deps.length; i++) {
if (i > 0) {
output.push(",\n");
}
output.push("[" + deps[i] + "]");
}
output.push("],");
}
output.push("\ndefinePackage: function(dojo){");
output.push(contents);
lib/HTML/Dojo/src.pm view on Meta::CPAN
endCut = i * 1024 + value.length;
}
var piece = value.substring(startCut, endCut);
piece = this._encodeData(piece);
plugin.CallFunction("<invoke name=\"chunkArgumentData\" " + "returntype=\"javascript\">" + "<arguments>" + "<string>" + piece + "</string>" + "<number>" + argIndex + "</number>" + "</arguments>" + "</invoke>");
}
}, _chunkReturnData:function () {
var plugin = dojo.flash.obj.get();
var numSegments = plugin.getReturnLength();
var resultsArray = new Array();
for (var i = 0; i < numSegments; i++) {
var piece = plugin.CallFunction("<invoke name=\"chunkReturnData\" " + "returntype=\"javascript\">" + "<arguments>" + "<number>" + i + "</number>" + "</arguments>" + "</invoke>");
if (piece == "\"\"" || piece == "''") {
piece = "";
} else {
piece = piece.substring(1, piece.length - 1);
}
resultsArray.push(piece);
}
var results = resultsArray.join("");
return results;
}, _execFlash:function (methodName, methodArgs) {
var plugin = dojo.flash.obj.get();
plugin.startExec();
plugin.setNumberArguments(methodArgs.length);
for (var i = 0; i < methodArgs.length; i++) {
this._chunkArgumentData(methodArgs[i], i);
}
plugin.exec(methodName);
var results = this._chunkReturnData();
results = this._decodeData(results);
plugin.endExec();
return results;
}};
dojo.flash.Install = function () {
};
dojo.flash.Install.prototype = {needed:function () {
if (dojo.flash.info.capable == false) {
return true;
}
if (dojo.render.os.mac == true && !dojo.flash.info.isVersionOrAbove(8, 0, 0)) {
return true;
}
if (!dojo.flash.info.isVersionOrAbove(6, 0, 0)) {
return true;
}
return false;
}, install:function () {
dojo.flash.info.installing = true;
dojo.flash.installing();
if (dojo.flash.info.capable == false) {
var installObj = new dojo.flash.Embed(false);
installObj.write(8);
} else {
if (dojo.flash.info.isVersionOrAbove(6, 0, 65)) {
var installObj = new dojo.flash.Embed(false);
installObj.write(8, true);
installObj.setVisible(true);
installObj.center();
} else {
alert("This content requires a more recent version of the Macromedia " + " Flash Player.");
window.location.href = +dojo.flash.Embed.protocol() + "://www.macromedia.com/go/getflashplayer";
}
}
}, _onInstallStatus:function (msg) {
if (msg == "Download.Complete") {
dojo.flash._initialize();
} else {
if (msg == "Download.Cancelled") {
alert("This content requires a more recent version of the Macromedia " + " Flash Player.");
window.location.href = dojo.flash.Embed.protocol() + "://www.macromedia.com/go/getflashplayer";
} else {
if (msg == "Download.Failed") {
alert("There was an error downloading the Flash Player update. " + "Please try again later, or visit macromedia.com to download " + "the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info = new dojo.flash.Info();
__CPAN_DIR__ src/rpc
__CPAN_FILE__ src/rpc/Deferred.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.rpc.Deferred");
dojo.require("dojo.Deferred");
dojo.deprecated("dojo.rpc.Deferred", "replaced by dojo.Deferred", "0.6");
dojo.rpc.Deferred = dojo.Deferred;
dojo.rpc.Deferred.prototype = dojo.Deferred.prototype;
__CPAN_FILE__ src/rpc/YahooService.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.rpc.YahooService");
dojo.require("dojo.rpc.RpcService");
dojo.require("dojo.rpc.JsonService");
dojo.require("dojo.json");
dojo.require("dojo.uri.*");
dojo.require("dojo.io.ScriptSrcIO");
dojo.rpc.YahooService = function (appId) {
this.appId = appId;
if (!appId) {
this.appId = "dojotoolkit";
dojo.debug("please initialize the YahooService class with your own", "application ID. Using the default may cause problems during", "deployment of your application");
}
if (djConfig["useXDomain"] && !djConfig["yahooServiceSmdUrl"]) {
dojo.debug("dojo.rpc.YahooService: When using cross-domain Dojo builds," + " please save yahoo.smd to your domain and set djConfig.yahooServiceSmdUrl" + " to the path on your domain to yahoo.smd");
}
lib/HTML/Dojo/src.pm view on Meta::CPAN
this._parent._undoStack.splice(idx++, 0, this._undoStack[x]);
}
this._updateStatus();
}
}
}
return this._parent;
}
} else {
this._currentManager = this._currentManager.endTransaction.apply(this._currentManager, arguments);
}
}, endAllTransactions:function () {
while (this._currentManager != this) {
this.endTransaction();
}
}, getTop:function () {
if (this._parent) {
return this._parent.getTop();
} else {
return this;
}
}});
__CPAN_FILE__ src/undo/__package__.xd.js
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.hostenv.packageLoaded({depends:[["require", "dojo.undo.Manager"], ["provide", "dojo.undo.*"]], definePackage:function (dojo) {
dojo.require("dojo.undo.Manager");
dojo.provide("dojo.undo.*");
}});
__CPAN_DIR__ src/flash
__CPAN_DIR__ src/flash/flash8
__CPAN_FILE__ src/flash/flash8/ExpressInstall.as
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
/**
* Based on the expressinstall.as class created by Geoff Stearns as part
* of the FlashObject library.
*
* Use this file to invoke the Macromedia Flash Player Express Install functionality
* This file is intended for use with the FlashObject embed script. You can download FlashObject
* and this file at the following URL: http://blog.deconcept.com/flashobject/
*
* Usage:
* var ExpressInstall = new ExpressInstall();
*
* // test to see if install is needed:
* if (ExpressInstall.needsUpdate) { // returns true if update is needed
* ExpressInstall.init(); // starts the update
* }
*
* NOTE: Your Flash movie must be at least 214px by 137px in order to use ExpressInstall.
*
*/
class ExpressInstall {
public var needsUpdate:Boolean;
private var updater:MovieClip;
private var hold:MovieClip;
public function ExpressInstall(){
// does the user need to update?
this.needsUpdate = (_root.MMplayerType == undefined) ? false : true;
}
public function init():Void{
this.loadUpdater();
}
public function loadUpdater():Void {
System.security.allowDomain("fpdownload.macromedia.com");
// hope that nothing is at a depth of 10000000, you can change this depth if needed, but you want
// it to be on top of your content if you have any stuff on the first frame
this.updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
// register the callback so we know if they cancel or there is an error
var _self = this;
this.updater.installStatus = _self.onInstallStatus;
this.hold = this.updater.createEmptyMovieClip("hold", 1);
// can't use movieClipLoader because it has to work in 6.0.65
this.updater.onEnterFrame = function():Void {
if(typeof this.hold.startUpdate == 'function'){
_self.initUpdater();
this.onEnterFrame = null;
}
}
var cacheBuster:Number = Math.random();
this.hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/"
+"update/current/swf/autoUpdater.swf?"+ cacheBuster);
}
private function initUpdater():Void{
this.hold.redirectURL = _root.MMredirectURL;
this.hold.MMplayerType = _root.MMplayerType;
this.hold.MMdoctitle = _root.MMdoctitle;
this.hold.startUpdate();
( run in 2.954 seconds using v1.01-cache-2.11-cpan-cdf2f3d4e48 )