CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

CGJQButton > TypeError: a is undefined

Questions & Answers about IWCGJQuery Suite.

by freshslo » 10 Jun 2014 14:24

When i set AJAX to disable, I always get Error TypeError: a is undefined
Code: Select all
/*! IWCommon */
;var _numScrolls=0;var _scrolls=new Array();var _dragObject;var _thumbLayer;var _barLayer;var _scrollLayer;var _scrollInt;var _scrollImgs;var _loading=false;var _domain=document.domain;var eventList=new Array("abort","blur","change","click","dblclick","dragdrop","error","focus","keydown","keypress","keyup","load","mousedown","mousemove","mouseout","mouseover","mouseup","move","reset","resize","select","submit","unload");function stringIsEmpty(a){return(!a||a.length===0)}function HookEvent(d,c,b){var a=false;if(this.addEventListener){this.addEventListener(d,c,b);a=true}else{if(this.attachEvent){a=this.attachEvent("on"+d,c)}}return a}function UnhookEvent(d,c,b){var a=false;if(this.removeEventListener){this.removeEventListener(d,c,b);a=true}else{if(this.detachEvent){a=this.detachEvent("on"+d,c)}}return a}function FindEventByName(c){var b=-1;for(var a=0;a<eventList.length;a++){if(eventList[a]==c){b=a;break}}return b}function FindEvent(a){return FindEventByName(a.type)}function triggerIWEventHandler(h,g,b){var f=true;var e=FindEventByName(g);if(e<0){return false}var d=FindIWCL(h);if(d!=null){if(d.IEEventHandlers.length>0){var a=d.IEEventHandlers[e].length;for(var c=0;c<a;c++){d.eventFunc=d.IEEventHandlers[e][c];if(!d.eventFunc(b)){f=false;break}}}}return f}function triggerEvent(c,b){var a;if(document.createEvent&&c.dispatchEvent){a=document.createEvent("HTMLEvents");a.initEvent(b,true,true);c.dispatchEvent(a)}else{if(b=="change"){triggerIWEventHandler(c,b,null)}else{if(document.createEventObject&&c.fireEvent){a=document.createEventObject();c.fireEvent("on"+b,a)}}}}function getEnabled(a,d){var b=d;var c=document.getElementById(a);if(c){b=!(c.disabled===true)}return b}function setEnabled(a,c){var b=document.getElementById(a);if(b){b.disabled=!c;return true}}function fFrame(e,d,c,a,f,b,g){this.top=d;this.left=e;this.width=c;this.height=a;this.src=f;this.baseHREF=b;this.borderColor=g||"#DDDDDD";this.inSync=new Array();this.id=_numScrolls;this.load=_fLoadSrc;this.scrollTo=_fScrollTo;this.scrollBy=_fScrollBy;this.init=_fInit;if(f.indexOf("http://")!=-1){if(f.indexOf(_domain)==-1){alert("fframe.js: Sorry, the src you specified is not in this domain.");return}}document.body.innerHTML+="<IFRAME WIDTH="+c+" HEIGHT="+a+' SCROLL=AUTO NAME="scroll'+_numScrolls+'" ID="scroll'+_numScrolls+'" STYLE="position:absolute;left:'+e+";top:"+d+";width:"+c+";height:"+a+';" SRC="'+f+'"></IFRAME>\n';this.layer=document.all["scroll"+_numScrolls];this.layer.style.borderColor=this.borderColor;this.isInit=true;this.isSetup=true;_numScrolls++;_scrolls[this.id]=this}function _fLoadImages(a){if(_loading){setTimeout(_fLoadImages,100,a);return}_loading=true;_scrollImgs=new Array(13);_scrollImgs[0]=new Image(16,16);_scrollImgs[0].src=a+"vup.gif";_scrollImgs[1]=new Image(16,16);_scrollImgs[1].src=a+"vup2.gif";_scrollImgs[2]=new Image(16,16);_scrollImgs[2].src=a+"vdown.gif";_scrollImgs[3]=new Image(16,16);_scrollImgs[3].src=a+"vdown2.gif";_scrollImgs[4]=new Image(16,16);_scrollImgs[4].src=a+"hleft.gif";_scrollImgs[5]=new Image(16,16);_scrollImgs[5].src=a+"hleft2.gif";_scrollImgs[6]=new Image(16,16);_scrollImgs[6].src=a+"hright.gif";_scrollImgs[7]=new Image(16,16);_scrollImgs[7].src=a+"hright2.gif";_scrollImgs[8]=new Image(16,16);_scrollImgs[8].src=a+"vbg.gif";_scrollImgs[9]=new Image(16,17);_scrollImgs[9].src=a+"vthumb.gif";_scrollImgs[10]=new Image(16,16);_scrollImgs[10].src=a+"hbg.gif";_scrollImgs[11]=new Image(17,16);_scrollImgs[11].src=a+"hthumb.gif";_scrollImgs[12]=new Image(15,15);_scrollImgs[12].src=a+"null.gif";_loading=false}function _fInit(){_fRealInit(this)}function _fRealInit(c){if(_loading){setTimeout(_fRealInit,100,c);return}_loading=true;var b,a;b=new Layer(c.width+2);b.left=c.left-1;b.top=c.top-1;b.clip.width=c.width+2;b.height=c.height+2;b.clip.height=c.height+2;b.document.bgColor=c.borderColor;b.visibility="inherit";c.borderLayer=b;a=new Layer(c.width);a.captureEvents(Event.ONLOAD);a.onLoad=_fOnLoad;c.layer=a;c.layer.frame=c;c.vspLayer=new Layer(16);c.vsuLayer=new Layer(16);c.vsdLayer=new Layer(16);c.vssLayer=new Layer(16);_fInitComp(c.vspLayer,_scrollStartVJump,_scrollEndVJump,8);_fInitComp(c.vsuLayer,_scrollStartUp,_scrollEndUp,0);_fInitComp(c.vsdLayer,_scrollStartDown,_scrollEndDown,2);_fInitComp(c.vssLayer,_scrollStartDrag,_scrollEndDrag,9);c.vssLayer.parLayer=c.layer;c.vssLayer.spLayer=c.vspLayer;c.vspLayer.ssLayer=c.vssLayer;c.vsuLayer.ssLayer=c.vssLayer;c.vsdLayer.ssLayer=c.vssLayer;c.hspLayer=new Layer(c.width-29);c.hsuLayer=new Layer(16);c.hsdLayer=new Layer(16);c.hssLayer=new Layer(17);_fInitComp(c.hspLayer,_scrollStartHJump,_scrollEndHJump,10);_fInitComp(c.hsuLayer,_scrollStartLeft,_scrollEndLeft,4);_fInitComp(c.hsdLayer,_scrollStartRight,_scrollEndRight,6);_fInitComp(c.hssLayer,_scrollStartDrag,_scrollEndDrag,11);c.hssLayer.parLayer=c.layer;c.hssLayer.spLayer=c.hspLayer;c.hspLayer.ssLayer=c.hssLayer;c.hsuLayer.ssLayer=c.hssLayer;c.hsdLayer.ssLayer=c.hssLayer;c.nLayer=new Layer(15);_fInitComp(c.nLayer,_fDoNothing,_fDoNo...rm(e,d,c,a){if(IsLocked()||window.eventProcessing){return false}if(!stringIsEmpty(e)){var b=getEnabled(e,true);if(!b){return false}}window.eventProcessing=true;if(a.length==0){if(GActivateLock){ActivateLock()}return SubmitClick(e,d,c)}else{if(!GSubmitting){if(window.confirm(a)){if(GActivateLock){ActivateLock()}return SubmitClick(e,d,c)}else{window.eventProcessing=false;return true}}else{return false}}}function SubmitClick(h,g,f){if(GSubmitting==false){GSubmitting=true;var d=0;var c=0;var e;if(document.activeElement){GActiveControl=document.activeElement.id}else{GActiveControl=null}var a=getSubmitForm();if(a!=null){for(c=a.elements.length-1;c>=0;c--){var b=a.elements[c].name;if((b!="IW_Action")&&(b!="IW_ActionParam")&&(b!="IW_FormName")&&(b!="IW_FormClass")&&(b!=" IW_width")&&(b!="IW_height")){if(a.elements[c].type!="hidden"){if(document.getElementsByName(b).length==0){a.removeChild(a.elements[c])}}}}for(c=0;c<a.elements.length;c++){e=LocateInputElement(a.elements[c].name,a,ProcessElement)}}if(f==true){if(Validate()==false){GSubmitting=false;window.eventProcessing=false;return true}}a.elements.IW_Action.value=h;a.elements.IW_ActionParam.value=g;if(PreScript==true){PreProgressScript(g,h)}a.submit();GSubmitting=false;window.eventProcessing=false;if(a.elements.IW_Action.value==h){a.elements.IW_Action.value=""}if(a.elements.IW_ActionParam.value==g){a.elements.IW_ActionParam.value=""}}return true}function layerWrite(c,b,a){el=document.getElementById(c);if(el){el.innerHTML=a}}function layerWriteAppend(c,b,a){el=document.getElementById(c);if(el){el.innerHTML+=a}}function CheckReturnKey(a,b,c){if(a==13){SubmitClick(b,"",c);return false}else{return true}}function FindFocus(a){return FindElem(a)}function ValidateTimeEdit(a){var c=FindElem(a);if(c){var b=new RegExp("(^[0-9]+(h|H|m|M|d|D|w|W)?$)|(^[0-9]+:[0-9]+(h|H)?$)|(^[0-9]+[.][0-9]+(d|D|h|H|w|W){1}$)","i");return b.test(c.value)}}function DoAXReWrite(a){var b=document.getElementById(a);document.write(b.innerHTML)}function topmost(){if((parent!=self)&&(parent!=null)){try{return parent.IWTop()}catch(a){return window}}else{return window}}function delegate(c,b){if(arguments.length>2){var a=[];for(var d=2;d<arguments.length;++d){a.push(arguments[d])}return function(){return b.apply(c,a)}}else{return function(){return b.call(c)}}}function getTagName(a){if(a){return a.tagName.toLowerCase()}else{return"undefined"}}function getEventTarget(a){if(a){if(a.target){return a.target}else{return a.srcElement}}}function checkBoxClick(d,a){var e=a+"_CHECKBOX";var b=FindElem(e);var c=(getTagName(getEventTarget(d))=="span")&&b&&!b.disabled;if(c){b.checked=!b.checked;AddChangedControl(e)}if(c||(gIWBrowser.IsIE&&gIWBrowser.IEDocumentMode<9)){triggerEvent(b,"change")}}function radioButtonClick(d,e,a){var c=document.getElementsByName(e);for(var b=0;b<c.length;b++){AddChangedControl(c[b].id);if(!c[b].disabled&&c[b].id==a){if(!c[b].checked){c[b].checked=true;triggerEvent(c[b],"change")}else{if(gIWBrowser.IsIE&&gIWBrowser.IEDocumentMode<9){triggerEvent(c[b],"change")}}}}}function SelectRadioButton(b,a){return radioButtonClick(null,b,a)}function radioGroupClick(c,b){var a=document.getElementById(b);if(a){var d=a.name;radioButtonClick(c,d,a.id)}}function fixIEFocus(){if(gIWBrowser.IsIE){var b=document.activeElement||null;if(b){try{b.DisableAjaxEvents();b.blur();b.focus();b.EnableAjaxEvents(0)}catch(a){consoleWrite(a.message)}}}}function setDisplay(b,a){xDisplay=b.style.display;if(stringIsEmpty(xDisplay)){xDisplay="inherit"}if(xDisplay!=a){b.style.display=a;if(a=="none"){fixIEFocus()}}}function setVisibility(b,a){xVisibility=b.style.visibility;if(stringIsEmpty(xVisibility)){xVisibility="inherit"}if(xVisibility!=a){b.style.visibility=a}}function isWndBlocked(c,b){var a=false;if(!c||typeof(c)=="undefined"){a=true}if(!a&&!gIWBrowser.IsIE&&!gIWBrowser.IsSafari){a=(typeof(c.screenX)=="undefined"||typeof(c.innerHeight)=="undefined"||c.innerHeight===0)}if(a==true&&!stringIsEmpty(b)){alert(b);return a}}function createHiddenField(c,e,d){var b=document.createElement("input");b.type="hidden";b.name=e;b.value=d;var a=document.forms[c];if(a){a.appendChild(b)}}function hasClass(a,b){if((a!=null)&&(a.className)){return(" "+a.className+" ").indexOf(" "+b+" ")!==-1}else{return false}}function addClass(a,b){if(a!=null){if(!hasClass(a,b)){a.className+=" "+b+" ";return true}}}function removeClass(d,e){if(d!=null){var a="";var c=d.className.split(" ");for(var b=0;b<c.length;b++){if(c[b]!==e){a+=c[b]+" "}}d.className=a;return true}}if(gIWBrowser.IsIE&&(gIWBrowser.IEDocumentMode>8)){HTMLElement.prototype.hasClass=function(a){return hasClass(this,a)};HTMLElement.prototype.addClass=function(a){return addClass(this,a)};HTMLElement.prototype.removeClass=function(a){return removeClass(this,a)}}var IW_KeepAlive_Timer=null;function InitKeepAlive(a){if(IW_KeepAlive_Timer!=null){window.clearInterval(IW_KeepAlive_Timer);IW_KeepAlive_Timer=null}if(a>0){IW_KeepAlive_Timer=window.setInterval("sessionKeepAlive()",a)}};/*! IWCL */
;var IWCLForm;var alNone=0;var alTop=1;var alBottom=2;var alLeft=3;var alRight=4;var alClient=5;var iwclBase=0;var iwclDBBase=1000;var iwclLabel=1+iwclBase;var iwclEdit=2+iwclBase;var iwclComboBox=3+iwclBase;var iwclCheckBox=4+iwclBase;var iwclListBox=5+iwclBase;var iwclMemo=6+iwclBase;var iwclTreeView=7+iwclBase;var iwclDBNav=iwclDBBase+1;var iwclDBGrid=iwclDBBase+2;var GResizeScroll=true;function findObjectInArray(b,c){var a;for(a=0;a<AAraay.length;a++){if(b[a]==c){return a}}return -1}function hasClipStyle(c){var b=false;if(c){if(gIWBrowser.IsIE){b=c.currentStyle.clipTop!="auto"}else{var a=getComputedStyle(c,"");if(a!=null){if(gIWBrowser.IsOpera){b=a.getPropertyValue("clip")!="rect(0px, 0px, 0px, 0px)"}else{b=a.getPropertyValue("clip")!="auto"}}}}return b}function hasClip(b){var a=hasClipStyle(b);if(!a){a=hasClass(b,"IWCLIPCONTROL")}return a}function getStyleProp(a,b){if(a.style.getPropertyValue){return a.style.getPropertyValue(b)}else{return a.style.getAttribute(b)}}function setStyleProp(a,b,c){if(a.style.setProperty){return a.style.setProperty(b,c,"")}else{return a.style.setAttribute(b,c)}}function VisibilityStyle(a){if(gIWBrowser.IsIE){return a.currentStyle.visibility}else{return getComputedStyle(a,"").getPropertyValue("visibility")}}function SetVisibility(b,a){if(b!=null){if(a){if(VisibilityStyle(b)!="hidden"){b.Visible=true}else{b.Visible=false}}else{b.Visible=false}}return""}function isNotClipped(a){if(a!=null&&a!=window.document.body){if(hasClip(a)){return false}else{return isNotClipped(a.offsetParent)}}else{return true}}function Rect(d,c,a,b){this.Left=d;this.Top=c;this.Width=a;this.Height=b;this.equals=Rect_equals}function Rect_equals(a){return this.Width==a.Width&&this.Height==a.Height&&this.Left==a.Left&&this.Top==a.Top}function RectSize(a,b){this.Width=a;this.Height=b}function Point(b,a){this.X=b;this.Y=a}function CopyRect(a){return new Rect(a.Left,a.Top,a.Width,a.Height)}function CreateAnchors(d,a,c,b){this.Left=d;this.Right=a;this.Top=c;this.Bottom=b}function IWCL_FormRelease(){delete this.Rect;delete this.OriginalRect;var a;for(a=0;a<this.OwnedComps.length;a++){if(this.OwnedComps[a].IWRelease){this.OwnedComps[a].IWRelease()}this.OwnedComps[a]=null}if(this.oldCursors){for(a=0;a<this.oldCursors.length;a++){this.oldCursors[a]=null}for(a=0;a<this.HTMLelements.length;a++){this.HTMLelements[a]=null}}}function CreateIWCLForm(a,b){this.BorderWidthPixels=0;this.Item=window.document.body;this.Rect=new Rect(0,0,a,b);this.OriginalRect=new Rect(0,0,a,b);this.OwnedComps=new Array();this.UpdateRects=IWCL_UpdateRects;this.HookEvent=IWCL_HookEvent;this.IWRelease=IWCL_FormRelease;createHiddenField("SubmitForm","IW_SessionID_",GAppID)}function ReleaseIWCL(){IWCLForm.IWRelease();IWCLForm=null}function LocateInputElement(e,b,a){var d;var c;var f=FindElem(e,b);if((!gIWBrowser.IsIE)&&f==null){f=window.document.getElementById(e)}if(f!=null&&f.length&&f.length>0&&!f.tagName){for(d=0;d<f.length;d++){c=f[d];if(a==null){if(c.id==e){break}}else{a(c,b)}}return c}else{if(a!=null&&f!=null){a(f,b)}}return f}function LocateElement(f,c,b){var e;var d;var g=(gIWBrowser.IsIE)?window.document.all[f]:window.document.getElementById(f);var a=(g!=null)?g.length:0;if(g!=null&&a&&a>0&&!g.tagName){for(e=a;e>=0;--e){d=g[a-e];if(b==null){if(d.id==f){break}}else{b(d,c)}}return d}else{if(b!=null&&g!=null){b(g,c)}}return g}function CreateRect(a){var c;var b=getStyleProp(a,"display");if(b=="none"){setStyleProp(a,"display","block")}c=new Rect(a.offsetLeft,a.offsetTop,a.offsetWidth,a.offsetHeight);if(b=="none"){setStyleProp(a,"display","none")}if(!gIWBrowser.IsIE){if(a.Owner!=IWCLForm&&hasClip(a.Owner)){c.Left+=a.Owner.BorderWidthPixels;c.Top+=a.Owner.BorderWidthPixels}if(a!=IWCLForm&&hasClip(a)){InflateRect(c,-a.BorderWidthPixels,-a.BorderWidthPixels)}}return c}function IWCL_SetAlign(a){this.Align=a}function IWCL_SetAnchors(a){this.Anchors=a}function IWCL_SetFieldName(a){this.FieldName=a}function IWCL_OverrideIWCLType(a){this.SetIWCLTypeMehtodList[this.SetIWCLTypeMehtodList.length]=a}function IWCL_SetOnChange(a){this.SetOnChnage=a}function IWCL_SetIWCLType(b){switch(b){case iwclLabel:this.DoOnChange=IWCL_LabelOnChange;break;case iwclEdit:break;case iwclComboBox:break;case iwclCheckBox:break;case iwclListBox:break;case iwclMemo:break;case iwclTreeView:break;case iwclDBNav:this.DoOnChange=IWCL_DBNavigatorOnChange;break;case iwclDBGrid:break;default:for(var a=0;a<this.SetIWCLTypeMehtodList.length;a++){this.SetIWCLTypeMehtodList[a](b)}}}function IWCL_OnChange(a){}function IWCL_LabelOnChange(a){if(a){layerWrite(this.id,false,a.FieldByName(this.FieldName))}}function IWCL_DBNavigatorOnChange(a){var b=LocateElement(this.id+"IWCL_First");if(b!=null){if(a!=null){if(a.BOF()){b.src=this.First_Disabled}else{b.src=this.First_Enabled}}else{b.src=this.First_Disabled}}var b=LocateElement(this.id+"IWCL_Last");if(b!=null){if(a!=null){if(a.EOF()){b.src=this.Last_Disabled}else{b.src=this.Last_Enabled}}else{b.src=this.Last_Disabled}}var b=LocateElement(this.id+"IWCL_Next");if(b!=null){if(a!=null){if(a.EOF()){b.src=this.Next_Disabled}else{b.src=this.Next_Enabled}}else{b.src=this.Next_Disabled}}var b=LocateElement(this.id+"IWCL_Prior");if(b!=null){if(a!=null){if(a.BOF()){b.src=this.Prior_Disabled}else{b.src=this.Prior_Enabled}}else{b.src=this.Prior_Disabled}}var b=LocateElement(this.id+"IWCL_Refresh");if(b!=null){if(a!=null){b.src=this.Refresh_Enabled}else{b.src=this.Refresh_Disabled}}}function IWCL_SetVisible(a){var b;if(this.className=="tab-page"){return}if(a){this.style.visibility="visible";this.style.display=""}else{this.style.visibility="hidden";this.style.display="none"}for(b=0;b<this.OwnedComps.length;b++){this.OwnedComps[b].IWSetVisible(a)}}function IsVisible(a){if(a!=IWCLForm){if(!a.Visible){return false}else{if(a.Owner!=null){return IsVisible(a.Owner)}else{return true}}}else{return true}}function IWCL_Show(){if(IsVisible(this)){this.IWSetVisible(true)}else{this.IWSetVisible(false)}}function IWCL_Hide(){this.IWSetVisible(false)}function IWCL_ForceRefresh(){if(gIWBrowser.IsWebKit){var a=this.style.display;if(a!="none"){this.style.display="none";this.offsetHeight=this.offsetHeight;this.style.display=a}}}function IWCL_SetRect(c){if(this.Rect.equals(c)){return}if((c.Left+c.Width)>0||(c.Top+c.Height)>0||c.Width>0||c.Height>0){var b=CopyRect(c);if(!gIWBrowser.UseIEBoxModel){var a=(2*this.BorderWidthPixels);b.Width-=a;b.Height-=a}this.style.top=b.Top+"px";this.style.left=b.Left+"px";this.style.width=b.Width+"px";this.style.height=b.Height+"px";if(this!=IWCLForm&&hasClipStyle(this)){this.style.clip="rect(0px,"+b.Width+"px,"+b.Height+"px,0px)"}this.ForceRefresh()}}function IWCL_Release(){var i;this.Anchors=null;this.OriginalRect=null;this.Rect=null;this.SetAlign=null;this.SetAnchors=null;this.SetFieldName=null;this.SetOnChange=null;this.DoOnChange=null;this.SetIWCLType=null;this.SetRect=null;this.OverrideIWCLType=null;this.UpdateRects=null;this.UpdateTopLeft=null;this.HookEvent=null;this.IWRelease=null;for(i=0;i<this.SetIWCLTypeMehtodList.length;i++){this.SetIWCLTypeMehtodList[i]=null}this.SetIWCLTypeMehtodList=null;for(i=0;i<this.OwnedComps.length;i++){if(this.OwnedComps[i].IWRelease){this.OwnedComps[i].IWRelease()}this.OwnedComps[i]=null}this.OwnedComps=null;for(i=0;i<this.IEEventHandlers.length;i++){this.IEEventHandlers[i]=null}this.IEEventHandlers=null;this.Owner=null;eval(this.VarName+"= null;")}function NewIWCL(AOwner,AId,AVisibility){var varname=AId+"IWCL";var obj=CreateIWCLObject(AOwner,AId,varname);var evalStr="SetVisibility("+varname+","+(AVisibility?"true":"false")+");";eval(evalStr);return obj}function CreateIWCLObject(d,c,b){var a=LocateElement(c);if(a!=null){a.Owner=d;a.BorderWidth=0;a.BorderWidthPixels=0;a.DisableCount=0;a.Align=alNone;a.VarName=b;a.Anchors=new CreateAnchors(true,false,true,false);if(a.OriginalRect){a.Rect=CopyRect(a.OriginalRect)}else{a.OriginalRect=CreateRect(a);a.Rect=CopyRect(a.OriginalRect)}a.Visible=true;a.DisableAjaxEvents=IWCL_DisableAjaxEvents;a.EnableAjaxEvents=IWCL_EnableAjaxEvents;a.IsAsyncEventsDisabled=IWCL_IsAsyncEventsDisabled;a.IWShow=IWCL_Show;a.IWHide=IWCL_Hide;a.IWSetVisible=IWCL_SetVisible;a.SetAlign=IWCL_SetAlign;a.SetAnchors=IWCL_SetAnchors;a.SetFieldName=IWCL_SetFieldName;a.SetOnChange=IWCL_SetOnChange;a.DoOnChange=IWCL_OnChange;a.SetIWCLType=IWCL_SetIWCLType;a.SetIWCLTypeMehtodList=new Array();a.SetRect=IWCL_SetRect;a.OverrideIWCLType=IWCL_OverrideIWCLType;a.UpdateRects=IWCL_UpdateRects;a.UpdateTopLeft=IWCL_UpdateTopLeft;a.HookEvent=IWCL_HookEvent;a.IWRelease=IWCL_Release;a.OwnedComps=new Array();a.ForceRefresh=IWCL_ForceRefresh;if(a.Owner!=null){a.Owner.OwnedComps[a.Owner.OwnedComps.length]=a}a.IEEventHandlers=new Array()}return a}function InitRects(a,b){if(IWCLForm){ReleaseIWCL()}IWCLForm=new CreateIWCLForm(a,b)}function CustomAnchors(a,b){switch(b){case alTop:return !(a.Left&&a.Right&&a.Top&&!a.Bottom);break;case alBottom:return !(a.Left&&a.Right&&!a.Top&&a.Bottom);break;case alLeft:return !(a.Left&&!a.Right&&a.Top&&a.Bottom);break;case alRight:return !(!a.Left&&a.Right&&a.Top&&a.Bottom);break;case alNone:return !(a.Left&&!a.Right&&a.Top&&!a.Bottom)}}function IWCL_DisableAjaxEvents(){this.DisableCount++}function IWCL_EnableAjaxEvents(a){if(a!=null){var b=this;window.setTimeout(function(){if(b.DisableCount>0){b.DisableCount--}},a)}else{if(this.DisableCount>0){this.DisableCount--}}}function IWCL_IsAsyncEventsDisabled(){return(this.DisableCount>0)}function DoUpdateRects(d,e,f){
if (f.OnCGBeforeResize) f.OnCGBeforeResize();
if(hasClass(f,"IWNORESIZABLE")){return false}var h=f.Rect.Height;var b=f.Rect.Width;var c=f.Rect.Top;var k=f.Rect.Left;var j=f.Anchors;var i=d.ClientRect;if(e==alNone||CustomAnchors(j,e)){if(j.Left&&!j.Right){}else{if(j.Left&&j.Right){b=(d.Rect.Width-d.OriginalRect.Width)+f.OriginalRect.Width}else{if(!j.Left&&j.Right){k=f.OriginalRect.Left+d.Rect.Width-d.OriginalRect.Width}else{if(!j.Left&&!j.Right){k=((f.OriginalRect.Left+f.OriginalRect.Width/2)*d.Rect.Width)/d.OriginalRect.Width-(b/2)}}}}if(j.Top&&!j.Bottom){}else{if(j.Top&&j.Bottom){h=d.Rect.Height-(d.OriginalRect.Height-f.OriginalRect.Height)}else{if(!j.Top&&j.Bottom){c=f.OriginalRect.Top+d.Rect.Height-d.OriginalRect.Height}else{if(!j.Top&&!j.Bottom){c=((f.OriginalRect.Top+f.OriginalRect.Height/2)*d.Rect.Height)/d.OriginalRect.Height-(h/2)}}}}}var g=new Rect(k,c,b,h);switch(f.Align){case alTop:g.Height=h;g.Top=i.Top;g.Width=i.Width-(2*d.BorderWidthPixels);g.Left=i.Left;i.Top=i.Top+h;i.Height=i.Height-h;break;case alBottom:g.Height=h;g.Top=(i.Height+i.Top)-g.Height-(2*d.BorderWidthPixels);g.Width=i.Width-(2*d.BorderWidthPixels);g.Left=i.Left;i.Height=i.Height-h;break;case alLeft:g.Width=b;g.Left=i.Left;g.Top=i.Top;g.Height=i.Height-(2*d.BorderWidthPixels);i.Left=i.Left+b;i.Width=i.Width-b;break;case alRight:g.Width=b;g.Left=(i.Left+i.Width)-g.Width-(2*d.BorderWidthPixels);g.Top=i.Top;g.Height=i.Height-(2*d.BorderWidthPixels);i.Width=i.Width-b;break;case alClient:g.Top=i.Top;g.Left=i.Left;g.Width=i.Width-(2*d.BorderWidthPixels);g.Height=i.Height-(2*d.BorderWidthPixels);break}
if (f.OnCGResize) { if (!f.OnCGResize(g)) return } else
f.SetRect(g);f.UpdateRects(g);
if (f.OnCGAfterResize) f.OnCGAfterResize();
;return true}function AlignListSort(b,a){switch(a.Align){case alTop:return a.Rect.Top-b.Rect.Top;break;case alBottom:return b.Rect.Top-a.Rect.Top;break;case alLeft:return a.Rect.Left-b.Rect.Left;break;case alRight:return b.Rect.Left-a.Rect.Left;break;case alClient:return a.Rect.Top-b.Rect.Top;break}}function DoAlign(e,d){var c=e.OwnedComps.length;var b=new Array();var a;if(c>0){do{a=c-1;if(e.OwnedComps[a].Align==d&&IsVisible(e.OwnedComps[a])){b[b.length]=e.OwnedComps[a]}}while(--c)}if(d!=alNone){b.sort(AlignListSort)}c=b.length;if(c>0){do{DoUpdateRects(e,d,b[c-1])}while(--c)}}function IWCL_UpdateTopLeft(a){this.SetRect(this.Rect)}function FindSubmitElement(c){var b;var a=getSubmitForm();if(a!=null){for(b=0;b<a.elements.length;b++){if(c==a.elements[b].name){return a.elements[b]}}}return null}function IWCL_SendNewSize(a,b){if(!GSubmitting){GSubmitting=true;var c=LocateElement("onresize");if(c!=null){c.src=GResizeURL+"&IW_width="+a+"&IW_height="+b}}}function InflateRect(c,a,b){c.Width+=2*a;c.Height+=2*b}function IWCL_UpdateRects(a){if(this==IWCLForm){if(IWCLForm.timerid!=null&&(this.Rect.Width!=a.Width||this.Rect.Height!=a.Height)){clearTimeout(IWCLForm.timerid)}var c=LocateElement("onresize");if((c!=null)&&((this.Rect.Width!=a.Width)||(this.Rect.Height!=a.Height))){this.timerid=setTimeout("IWCL_SendNewSize("+a.Width+", "+a.Height+")",GOnResizetimeout)}var b=FindSubmitElement("IW_width");var d=FindSubmitElement("IW_height");if(b!=null&&d!=null){b.value=a.Width;d.value=a.Height}}this.ClientRect=new Rect(0,0,a.Width,a.Height);this.Rect=CopyRect(a);if(this.OwnedComps.length>0){DoAlign(this,alTop);DoAlign(this,alBottom);DoAlign(this,alLeft);DoAlign(this,alRight);DoAlign(this,alClient);DoAlign(this,alNone)}if(hasClass(this,"IWGRIDCONTAINER")){var e=document.getElementById("TBL"+this.id);if(e){if(hasClass(this,"IWAUTOFIT")){e.style.width=this.Rect.Width;e.style.height=this.Rect.Height}else{if(hasClass(this,"IWAUTOFIT_W")){e.style.width=this.Rect.Width}else{if(hasClass(this,"IWAUTOFIT_H")){e.style.height=this.Rect.Height}}}}}if((gIWBrowser.IsFirefox)&&(typeof(removeNS6SCDeadLock)=="function")){removeNS6SCDeadLock(this)}}function createIWLocker(a){var b=document.createElement("div");b.id="IWLocker";if(a>""){b.style.backgroundImage="url("+a+")"}b.style.position="absolute";b.style.backgroundPosition="center";b.style.backgroundRepeat="no-repeat";b.style.top="0px";b.style.left="0px";b.style.width="100%";b.style.height="100%";b.style.zIndex="10000";b.style.backgroundColor="transparent";document.getElementsByTagName("body")[0].appendChild(b);b.style.display="none";return b}function FindIWCL(b){var a=b;if(a!=null){if(a.IEEventHandlers==null){while(a!=null&&a.IEEventHandlers==null){a=a.parentNode}}}return a};/*! IWAjax */
;function AjaxRequest(){var a=new Object();a.timeout=null;a.generateUniqueUrl=true;a.url=window.location.href;a.method="GET";a.async=true;a.username=null;a.password=null;a.parameters=new Object();a.requestIndex=AjaxRequest.numAjaxRequests++;a.responseReceived=false;a.groupName=null;a.queryString="";a.responseText=null;a.responseXML=null;a.status=null;a.statusText=null;a.aborted=false;a.xmlHttpRequest=null;a.onTimeout=null;a.onLoading=null;a.onLoaded=null;a.onInteractive=null;a.onComplete=null;a.onSuccess=null;a.onError=null;a.onGroupBegin=null;a.onGroupEnd=null;a.xmlHttpRequest=AjaxRequest.getXmlHttpRequest();if(a.xmlHttpRequest==null){return null}a.xmlHttpRequest.onreadystatechange=function(){if(a==null||a.xmlHttpRequest==null){return}if(a.xmlHttpRequest.readyState==1){a.onLoadingInternal(a)}if(a.xmlHttpRequest.readyState==2){a.onLoadedInternal(a)}if(a.xmlHttpRequest.readyState==3){a.onInteractiveInternal(a)}if(a.xmlHttpRequest.readyState==4){a.onCompleteInternal(a)}};a.onLoadingInternalHandled=false;a.onLoadedInternalHandled=false;a.onInteractiveInternalHandled=false;a.onCompleteInternalHandled=false;a.onLoadingInternal=function(){if(a.onLoadingInternalHandled){return}AjaxRequest.numActiveAjaxRequests++;if(AjaxRequest.numActiveAjaxRequests==1&&typeof(window.AjaxRequestBegin)=="function"){AjaxRequestBegin()}if(a.groupName!=null){if(typeof(AjaxRequest.numActiveAjaxGroupRequests[a.groupName])=="undefined"){AjaxRequest.numActiveAjaxGroupRequests[a.groupName]=0}AjaxRequest.numActiveAjaxGroupRequests[a.groupName]++;if(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]==1&&typeof(a.onGroupBegin)=="function"){a.onGroupBegin(a.groupName)}}if(typeof(a.onLoading)=="function"){a.onLoading(a)}a.onLoadingInternalHandled=true};a.onLoadedInternal=function(){if(a.onLoadedInternalHandled){return}if(typeof(a.onLoaded)=="function"){a.onLoaded(a)}a.onLoadedInternalHandled=true};a.onInteractiveInternal=function(){if(a.onInteractiveInternalHandled){return}if(typeof(a.onInteractive)=="function"){a.onInteractive(a)}a.onInteractiveInternalHandled=true};a.onCompleteInternal=function(){if(a.onCompleteInternalHandled||a.aborted){return}a.onCompleteInternalHandled=true;AjaxRequest.numActiveAjaxRequests--;if(AjaxRequest.numActiveAjaxRequests==0&&typeof(window.AjaxRequestEnd)=="function"){AjaxRequestEnd(a.groupName)}if(a.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[a.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]==0&&typeof(a.onGroupEnd)=="function"){a.onGroupEnd(a.groupName)}}a.responseReceived=true;a.status=a.xmlHttpRequest.status;a.statusText=a.xmlHttpRequest.statusText;a.responseText=a.xmlHttpRequest.responseText;a.responseXML=a.xmlHttpRequest.responseXML;if(typeof(a.onComplete)=="function"){a.onComplete(a)}if(a.xmlHttpRequest.status==200&&typeof(a.onSuccess)=="function"){a.onSuccess(a)}else{if(typeof(a.onError)=="function"){a.onError(a)}}delete a.xmlHttpRequest.onreadystatechange;a.xmlHttpRequest=null};a.onTimeoutInternal=function(){if(a!=null&&a.xmlHttpRequest!=null&&!a.onCompleteInternalHandled){a.aborted=true;a.xmlHttpRequest.abort();AjaxRequest.numActiveAjaxRequests--;if(AjaxRequest.numActiveAjaxRequests==0&&typeof(window.AjaxRequestEnd)=="function"){AjaxRequestEnd(a.groupName)}if(a.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[a.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[a.groupName]==0&&typeof(a.onGroupEnd)=="function"){a.onGroupEnd(a.groupName)}}if(typeof(a.onTimeout)=="function"){a.onTimeout(a)}delete a.xmlHttpRequest.onreadystatechange;a.xmlHttpRequest=null}};a.process=function(){if(a.xmlHttpRequest!=null){if(a.generateUniqueUrl&&a.method=="GET"){a.parameters.AjaxRequestUniqueId=new Date().getTime()+""+a.requestIndex}var c=null;for(var b in a.parameters){if(a.queryString.length>0){a.queryString+="&"}a.queryString+=encodeURIComponent(b)+"="+encodeURIComponent(a.parameters[b])}if(a.method=="GET"){if(a.queryString.length>0){a.url+=((a.url.indexOf("?")>-1)?"&":"?")+a.queryString}}a.xmlHttpRequest.open(a.method,a.url,a.async,a.username,a.password);if(a.method=="POST"){if(typeof(a.xmlHttpRequest.setRequestHeader)!="undefined"){a.xmlHttpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded")}c=a.queryString}if(a.timeout>0){setTimeout(a.onTimeoutInternal,a.timeout)}a.xmlHttpRequest.send(c)}};a.handleArguments=function(b){for(var c in b){if(typeof(a[c])=="undefined"){a.parameters[c]=b[c]}else{a[c]=b[c]}}};a.getAllResponseHeaders=function(){if(a.xmlHttpRequest!=null){if(a.responseReceived){return a.xmlHttpRequest.getAllResponseHeaders()}logMessage("Cannot getAllResponseHeaders because a response has not yet been received")}};a.getResponseHeader=function(b){if(a.xmlHttpRequest!=null){if(a.responseReceived){return a.xmlHttpRequest.getResponseHeader(b)}logMessage("Cannot getResponseHeader because a response has not yet been received")}};return a}AjaxRequest.getXmlHttpRequest=function(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){
/*@cc_on @*/
;
/*@if(@_jscript_version >=5)
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(E){return null;}}@end @*/
}else{return null}}};AjaxRequest.isActive=function(){return(AjaxRequest.numActiveAjaxRequests>0)};AjaxRequest.get=function(a){AjaxRequest.doRequest("GET",a)};AjaxRequest.post=function(a){AjaxRequest.doRequest("POST",a)};AjaxRequest.doRequest=function(c,a){if(typeof(a)!="undefined"&&a!=null){var b=new AjaxRequest();b.method=c;b.handleArguments(a);b.process()}};AjaxRequest.submit=function(a,b){var d=new AjaxRequest();if(d==null){return false}var c=AjaxRequest.serializeForm(a);d.method=a.method.toUpperCase();d.url=a.action;d.handleArguments(b);d.queryString=c;d.process();return true};AjaxRequest.serializeForm=function(b){var e=b.elements;var a=e.length;var g="";this.addField=function(h,i){if(g.length>0){g+="&"}g+=encodeURIComponent(h)+"="+encodeURIComponent(i)};for(var d=0;d<a;d++){var f=e[d];if(!f.disabled){switch(f.type){case"text":case"password":case"hidden":case"textarea":this.addField(f.name,f.value);break;case"select-one":if(f.selectedIndex>=0){this.addField(f.name,f.options[f.selectedIndex].value)}break;case"select-multiple":for(var c=0;c<f.options.length;c++){if(f.options[c].selected){this.addField(f.name,f.options[c].value)}}break;case"checkbox":case"radio":if(f.checked){this.addField(f.name,f.value)}break}}}return g};AjaxRequest.numActiveAjaxRequests=0;AjaxRequest.numActiveAjaxGroupRequests=new Object();AjaxRequest.numAjaxRequests=0;var gSentValue=null;var gSenderName=null;function PrepareSubmitter(b){var d=0;var c=0;var h;var f=getSubmitForm();var a=f.cloneNode(true);if(a.childNodes.length==0){for(d=0;d<window.document.forms.length;d++){if(window.document.forms.item(d).name=="SubmitForm"){f=window.document.forms.item(d);logMessage("found submitform: "+f.elements.length);break}}logMessage("Adding child nodes");logMessage("child nodes:"+f.childNodes.length);for(c=f.elements.length-1;c>=0;c--){h=cloneNode(f.elements.item(c));a.appendChild(h);logMessage(f.elements.item(c).name+" "+f.elements.item(c).type)}}logMessage(a.childNodes.length);if(a!=null){var g;var e="";for(c=a.childNodes.length-1;c>=0;c--){h=a.childNodes.item(c);e=h.name;if(h.tagName=="INPUT"){if((e!="IW_Action")&&(e!="IW_ActionParam")&&(e!="IW_FormName")&&(e!="IW_FormClass")&&(e!="IW_width")&&(e!="IW_height")&&(e!="IW_TrackID_")&&(e!="IW_SessionID_")){g=!containsName(e);if(g){a.removeChild(h)}}}else{a.removeChild(h)}}gSentValue=null;for(c=0;c<a.childNodes.length;c++){h=a.childNodes.item(c);LocateInputElement(h.name,a,ProcessElement);AddChangedControl(h.name);if(b!=null&&h!=null&&h.name==b.name){gSentValue=h.value;gSenderName=b.name}}if(b!=null){if(!a.IW_Action){for(d=0;d<a.childNodes.length;d++){if(a.childNodes.item(d).name=="IW_Action"){a.childNodes.item(d).value=b.name;break}}}else{a.IW_Action.value=b.name}}}return a}function modifiers(a){return(a.altKey?"ALT_MASK,":"")+(a.ctrlKey?"CTRL_MASK,":"")+(a.metaKey?"META_MASK,":"")+(a.shiftKey?"SHIFT_MASK":"")}function Offsets(a){if(a.offsetX){return"&x="+a.offsetX+"&y="+a.offsetY}else{return"&x="+a.layerX+"&y="+a.layerY}}function MouseEvent(a){return Offsets(a)+"&which="+a.button+"&modifiers="+modifiers(a)}function KeyEvent(a){return Offsets(a)+"&which="+a.keyCode+"&modifiers="+modifiers(a)}var eventGenerators=new Array(null,function(a){return""},function(a){return""},function(a){return MouseEvent(a)},function(a){return MouseEvent(a)},function(a){return""},null,function(a){return""},function(a){return KeyEvent(a)},function(a){return KeyEvent(a)},function(a){return KeyEvent(a)},function(a){return""},function(a){return MouseEvent(a)},function(a){return Offsets(a)},function(a){return Offsets(a)},function(a){return Offsets(a)},function(a){return MouseEvent(a)},null,null,null,function(a){return""},null,null);function constructEventURL(d){var c;var a=null;for(c=0;c<eventList.length;c++){if(eventList[c]==d.type){a=d.type;break}}var b="";if(a!=null){var e=eventGenerators[c];b+=e(d)}return b}function SendPostRequest(h,d,c){var a=PrepareSubmitter(d);var f=GURLBase+"callback?callback="+c;window.ChangedControls="";a.action=f+h;logMessage("Ajax Submitting Form : "+a);logMessage("Action : "+a.action);logMessage("Elements: "+a.childNodes.length);for(var e=0;e<a.childNodes.length;e++){var g=a.childNodes.item(e);logMessage(g.name+" = "+g.value)}if(PreAsyncScript==true){PreAsyncProgressScript(h,c)}var b=AjaxRequest.submit(a,{onSuccess:function(j){var i;i=loadAjaxResponse(j.responseText);processAjaxResponse(i);if(PostAsyncScript==true){PostAsyncProgressScript(h,c)}processEventQueue();window.eventProcessing=false},onError:function(i){if(PostAsyncScript==true){PostAsyncProgressScript(h,c)}window.eventProcessing=false;if(i.responseText==""){window.serverProblem=true}else{var j=window.document.open("text/html","replace");j.write(i.responseText);j.close()}logMessage("Ajax-Error!\nStatusText="+i.statusText+"\nContents="+i.responseText)}});return b}window.serverProblem=false;window.ChangedControls="";window.eventProcessing=false;function updateChangeEvent(a){OnControlContentChange(a)}function containsName(b){var a=win...pValue==-1){xPropValue=0}}xObject.maxLength=xPropValue}else{if(xPropName=="hint"){xObject.title=xPropValue}else{if(xPropName=="src"){xObject.src=xPropValue}else{if(xPropName=="href"){if(stringIsEmpty(xPropValue)){xObject.removeAttribute("href")}else{xObject.href=xPropValue}}else{if(xPropName=="onclick"){if(stringIsEmpty(xPropValue)){xObject.removeAttribute("onclick")}else{xObject.setAttribute("OnClick",xPropValue)}}else{if(xPropName=="checked"){var el=null;var xChecked=xPropValue=="true";if(xType=="IWCHECKBOX"){el=IWTop().FindElem(xID+"_CHECKBOX")}else{if(xType=="IWRADIOBUTTON"){el=IWTop().FindElem(xID+"_INPUT")}}if(el){el.checked=xChecked}}else{if(xPropName=="select_type"){if(xType=="IWLISTBOX"){if(gIWBrowser.IsIE){xObject.multiple=!(xPropValue=="select-one")}else{if(xPropValue=="select-one"){xObject.removeAttribute("multiple")}else{xObject.setAttribute("multiple","")}}}}else{if(xPropName=="items"){if(xType=="IWLISTBOX"||xType=="IWCOMBOBOX"||xType=="IWRADIOGROUP"){while(xObject.childNodes.length>0){xObject.removeChild(xObject.childNodes[0])}var xItemsNode=aElement.childNodes[i];var xSelected=null;var nodeIdx=0;for(var ii=0;ii<xItemsNode.childNodes.length;ii++){if(xItemsNode.childNodes[ii].nodeType!=1){continue}var xItemNode=xItemsNode.childNodes[ii];var xEnabled=aElement.getAttribute("enabled");var xIsSelected=xItemNode.getAttribute("selected");var xItemValue=xItemNode.getAttribute("value");var xItemText=null;if(xItemNode.lastChild!=null){xItemText=xItemNode.lastChild.nodeValue}else{xItemText=""}if(xType=="IWLISTBOX"||xType=="IWCOMBOBOX"){if(gIWBrowser.IsIE&&(gIWBrowser.IEDocumentMode<=8)){var oOption=document.createElement("OPTION");oOption.text=xItemText;oOption.value=xItemValue;if(xIsSelected!=null){if(xSelected==null){xSelected=oOption}else{if(!(xSelected instanceof Array)){xSelected=new Array(xSelected)}xSelected.push(oOption)}}xObject.add(oOption)}else{var oOption=document.createElement("OPTION");xItemText=xItemText.replace(/ /gi,"\u00a0");oOption.text=xItemText;oOption.value=xItemValue;oOption.selected=xIsSelected!=null;xObject.appendChild(oOption)}}else{if(xType=="IWRADIOGROUP"){var xEnabled;var xRadioInput;var xSpan;var xVerticalLayout=aElement.getAttribute("layout").toLowerCase()=="vertical";nodeIdx++;if(gIWBrowser.IsIE&&(gIWBrowser.IEDocumentMode<=7)){var element="<input type='radio' name='"+xID+"_INPUT' value='"+xItemValue+"' "+(xIsSelected!=null?"CHECKED ":"")+"id='"+xID+"_INPUT_"+nodeIdx+"'></input>";logMessage("create element "+element);xRadioInput=document.createElement(element);element="<span onclick=\"radioGroupClick(event, '"+xID+"_INPUT_"+nodeIdx+"');\"/>";xSpan=document.createElement(element);xSpan.innerHTML=xItemText.replace(/ /gi,"\u00a0");xObject.appendChild(xRadioInput);xObject.appendChild(xSpan)}else{xEnabled=xItemNode.getAttribute("enabled").toLowerCase()=="true";xRadioInput=document.createElement("input");xRadioInput.name=xID+"_INPUT";xRadioInput.id=xID+"_INPUT_"+nodeIdx;xRadioInput.type="radio";xRadioInput.value=xItemValue;xRadioInput.checked=xIsSelected!=null;xRadioInput.disabled=!xEnabled;xObject.appendChild(xRadioInput);xSpan=document.createElement("span");if(xEnabled){xSpan.setAttribute("OnClick","radioGroupClick(event, '"+xID+"_INPUT_"+nodeIdx+"');")}xSpan.innerHTML=xItemText.replace(/ /gi,"\u00a0");xObject.appendChild(xSpan)}if(xVerticalLayout){xObject.appendChild(document.createElement("BR"))}}}}if(xSelected!=null){var obj={method:function(xSelected){if(xSelected instanceof Array){while(xSelected.length>0){xSelected.shift().selected=true}}else{xSelected.selected=true}}};window.setTimeout(delegate(obj,obj.method,xSelected),1)}}}}}}}}}}}}}}}}}}}}}function setObjectDisabled(a,b){var c=IWTop().FindElem(a);c.disabled=b}function setObjectReadOnly(a,c){var b=IWTop().FindElem(a);b.readOnly=c}function setObjectVisibility(a,b){var c=IWTop().FindElem(a);if(b){c.style.visibility="inherit"}else{c.style.visibility="hidden"}}function moveObjectTo(a,d,c,b){var e=IWTop().FindElem(a);e.style.left=d;e.style.top=c;if(b!=-1){e.style.zIndex=b}}function addItemListBox(a,c,b){var d=IWTop().FindElem(a);var e=document.createElement("option");e.text=c;e.value=b;d.appendChild(e)}function IWTimer(b,a,c){this.interval=a;this.enabled=b;this.callback=c;this.startTimer=function(){this.enabled=true;setTimeout(delegate(this.timeout,this.timeout.method,this),this.interval)};this.stopTimer=function(){this.enabled=false};this.updateInterval=function(d){this.interval=d};this.timeout={method:function(d){d.enabled=false;executeAjaxEvent("",null,d.callback,true);if(d.enabled){setTimeout(delegate(d.timeout,d.timeout.method,d),d.interval)}}};if(b){this.startTimer()}}function objToEventParams(c){res="";for(var a in c){if(c.hasOwnProperty(a)&&typeof c[a]!=="function"){if(typeof c[a]=="object"){res+=objToEventParams(c[a])}else{var b=c[a];res+="&"+a+"="+b}}}return res}function CreateDiv(c,a){var b=document.createElement("div");b.name=c+"_DIV";b.id=c;b.innerHtml=a;b.visibility="inherit";document.body.appendChild(b)};


I try to sync wwwroot, but It's nothing better.
I notice on onclick properties is Arguments key which is grey, but has value "e" which i cannot delete?!

I use CGDEV 1.9.0.3344 & Intraweb 14.0.24 with Delphi XE4.
freshslo
 
Posts: 3
Joined: 10 Jun 2014 14:08

by Jorge Sousa » 10 Jun 2014 15:33

Hi

Can you submit a test case please? t.i.a.

Arguments are readonly, is there for information, to know how the function handler is generated in script

click: function(e) { ... }

You can use the arguments in .BrowserParams of each event.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by freshslo » 11 Jun 2014 09:12

In attachment is test case
You do not have the required permissions to view the files attached to this post.
freshslo
 
Posts: 3
Joined: 10 Jun 2014 14:08

by Jorge Sousa » 11 Jun 2014 10:09

Your template has an invalid HTML, the body tag is not closed

You've to add

Code: Select all
</body>


at the end
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by freshslo » 11 Jun 2014 10:26

f.... off :roll:

Thanks man!
freshslo
 
Posts: 3
Joined: 10 Jun 2014 14:08

by Jorge Sousa » 11 Jun 2014 10:33

s... happens :D
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to Q & A

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.