WidgetUtil = { debug: false, $: function(pElementId) { return document.getElementById(pElementId); }, toggle: function(pBase, pElementId, pOptions) { try { if (pOptions != null) { var showMessage = pOptions.show; var hideMessage = pOptions.hide; } var element = WidgetUtil.$(pElementId); var display = element.style.display; if (display == "block" || display == "") { element.style.display = "none"; if (pOptions != null) { pBase.innerHTML = showMessage; } } else { element.style.display = "block"; if (pOptions != null) { pBase.innerHTML = hideMessage; } } } catch(e) { if (WidgetUtil.debug) { throw e; } } } } var Widget = { Form: function(pBaseElementId, pRequestDispatchFrame) { this.mWaitForResponse = false; // create iframe this.getDispatchFrame = function() { if (this.mRequestFrame == null) { var frame = WidgetUtil.$(pRequestDispatchFrame); var self = this; frame.onload = function(pEvent) { self.onFrameLoaded(pEvent); }; frame.style.display = "none"; this.mRequestFrame = frame; return frame; } else { return this.mRequestFrame; } } this.onFrameLoaded = function(pEvent) { if (this.mWaitForResponse) { this.mWaitForResponse = false; WidgetUtil.$('__somewherein_widget_box').innerHTML = this.mRequestFrame.contentDocument.getElementById('__somewherein_widget_box').innerHTML; } } this.onSubmit = function(pEvent) { this.mWaitForResponse = true; } this.applyFormEvents = function() { this.getDispatchFrame(); this.mBaseElement.target = pRequestDispatchFrame; var self = this; this.mBaseElement.onsubmit = function(pEvent) { self.onSubmit(pEvent); } } this.mBaseElement = WidgetUtil.$(pBaseElementId); if (this.mBaseElement != null) { this.applyFormEvents(); } } } document.write(''); document.write('
faceless_void posted about 4 hours ago
neel_rajkonna from dhaka posted about 5 hours ago
schumonn from siddeshwary posted about 6 hours ago