Aşağıdaki kodu DGFlow icin url verince acılacak hale getirebilecek biri var mı ?
Yani
Kod:
var dgFlow = new PAYPAL.apps.DGFlow();
yerine
Kod:
var dgFlow = new PAYPAL.apps.DGFlow(url);
dediğimizde verdiğim urlye yonlenmesini istiyorum.
Kodumuz bu:
Kod:
if (typeof PAYPAL == 'undefined' || !PAYPAL) ; } PAYPAL.apps = PAYPAL.apps || ; (function() ; PAYPAL.apps.DGFlow = function(userConfig) ; that._init(userConfig); return , startFlow : function(url) else }, closeFlow : function() , isOpen : function() }; }; PAYPAL.apps.DGFlow.prototype = else } } this.port = (this.port == lisanssız) ? "" : ":" + this.port; this.stage = (this.stage == lisanssız) ? "www.paypal.com" : "www." + this.stage + ".paypal.com" + this.port; if (this.trigger) this._addCSS(); if (this.NoB == true && this.sole == 'true') }, _render : function() else if (this.expType == 'mini') else if (window.screen.width) win = window .open( '', this.name, 'top=' + top + ', left=' + left + ', width=' + width + ', height=' + height + ', location=0, status=0, toolbar=0, menubar=0, resizable=0'); return win; } else }, _addCSS : function() '; css += '#' + this.name + ' .panel '; css += '#' + this.name + ' .panel iframe '; css += '#' + this.name + ' .mask '; css += '.nameOnButton '; css += '.nameOnButton img '; styleEl.type = 'text/css'; if (styleEl.styleSheet) else document.getElementsByTagName('head')[0].appendChild(styleEl); }, _buildDOM : function() catch (e) this.UI.iframe.frameBorder = '0'; this.UI.iframe.border = '0'; this.UI.iframe.scrolling = 'no'; this.UI.iframe.allowTransparency = 'true'; this.UI.mask = document.createElement('div'); this.UI.mask.className = 'mask'; this.UI.panel.appendChild(this.UI.iframe); this.UI.wrapper.appendChild(this.UI.mask); this.UI.wrapper.appendChild(this.UI.panel); document.body.appendChild(this.UI.wrapper); }, _createMask : function(e) else if (document.body.scrollHeight > document.body.offsetHeight) else if (window.innerHeight) else if (document.documentElement && document.documentElement.clientHeight) else if (document.body) width = (windowWidth > scrollWidth) ? windowWidth : scrollWidth; height = (windowHeight > scrollHeight) ? windowHeight : scrollHeight; this.UI.mask.style.width = width + 'px'; this.UI.mask.style.height = height + 'px'; }, _centerLightbox : function(e) else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) else if (document.body && (document.body.clientWidth || document.body.clientHeight)) this.UI.panel.style.left = Math .round((width - this.UI.iframe.offsetWidth) / 2) + 'px'; var panelTop = Math .round((height - this.UI.iframe.offsetHeight) / 2) + scrollY; if (panelTop < 5) this.UI.panel.style.top = panelTop + 'px'; }, _bindEvents : function() , _setTrigger : function(el) } else else if (el && el.tagName.toLowerCase() == 'a') addEvent(el, 'click', this._triggerClickEvent, this); } }, _getImage : function(url, callback) var self = this; var imgElement = new Image(); imgElement.src = ""; if (imgElement.readyState) }; } else ; } imgElement.src = url; }, _addImage : function(img, obj) ; wrapperObj.callback = obj._removeImage; wrapperObj.url = url; wrapperObj.outer = obj; var el = obj.trigger; if (el.constructor.toString().indexOf('Array') > -1) } else } }, _placeImage : function(el, img, obj) , _removeImage : function(img, obj) else } }, _removeMultiImages : function(obj) } }, _triggerClickEvent : function(e) , _destroy : function(e) if (this.interval) removeEvent(window, 'resize', this._createMask); removeEvent(window, 'resize', this._centerLightbox); removeEvent(window, 'unload', this._destroy); removeEvent(window, 'message', this._windowMessageEvent); this.isOpen = false; } }; var eventCache = []; function addEvent(obj, type, fn, scope) ; obj.addEventListener(type, wrappedFn, false); } else if (obj.attachEvent) ; fn.call(scope, e); }; obj.attachEvent('on' + type, wrappedFn); } eventCache.push([ obj, type, fn, wrappedFn ]); } function removeEvent(obj, type, fn) else if (obj.detachEvent) } } } } function getParent(el) while (el && el.nodeType != 1); return el; } function getPreviousSibling(el) while (el && el.nodeType != 1); return el; } function checkEmptyImage(img) }());