From: Brandon M. <bnd...@ho...> - 2000-11-09 22:26:11
|
RE: [Dynapi-Dev] issues with 11-07 releaseno. It's more like netscape changed the way they parse, and how they support = DHTML between versions 4.04 and 4.06 of their browser. Most of the scripts I had written prior to working with DynAPI, had been = used with NS4.04, but due to script engine difference, I had to move up = the minimums. ----- Original Message -----=20 From: Samuel, Michael M=20 To: 'dyn...@li...'=20 Sent: Thursday, November 09, 2000 3:55 PM Subject: RE: [Dynapi-Dev] issues with 11-07 release The problem with upgrading to a new version is that in the corporate = environment I'm working in, they have set the minimums at IE4.01 and = NS4.04. I can't alter that... Once NS6 becomes official -I'll be trying = to lobby for that as the new minimum... but until then - I have to work = with NS 4.04 =20 Does adding the line return false harm the application? =20 Mike -----Original Message----- From: Pascal Bestebroer [mailto:pa...@dy...] Sent: Friday, 10 November 2000 5:13 AM To: dyn...@li... Subject: RE: [Dynapi-Dev] issues with 11-07 release It's not a bad thing.. the change that is, netscape 4.04 IS a bad = thing, there are a few other methods in the DynAPI that will popup the "not always return" = message.. you should really try and upgrade to a newer version of = Netscape =20 Pascal Bestebroer pa...@dy...=20 http://www.dynamic-core.net=20 =20 =20 -----Oorspronkelijk bericht----- Van: dyn...@li... = [mailto:dyn...@li...]Namens Samuel, Michael M Verzonden: donderdag 9 november 2000 1:41 Aan: 'dyn...@li...' Onderwerp: RE: [Dynapi-Dev] issues with 11-07 release Okay - I think I may have fixed the following issue. Can someone = tell me if the change I've made is a bad thing?=20 Nutscrape 4.04 was whinging that a particular function in = events.js didn't always return a value:=20 DynLayer.prototype.captureMouseEvents=3Dfunction() {=20 if (!this.eventListeners) this.eventListeners=3D[]=20 this.hasEventListeners=3Dtrue=20 if (!this.created) return false=20 var elm=3Dthis.elm=20 if (is.ns4) elm.captureEvents(Event.MOUSEDOWN | = Event.MOUSEUP | Event.CLICK | Event.DBLCLICK)=20 = elm.onmousedown=3Delm.onmouseup=3Delm.onmouseover=3Delm.onmouseout=3Delm.= onclick=3Delm.ondblclick=3DDynLayer.prototype.EventMethod if (is.ie5) this.elm.oncontextmenu=3Dfunction() {return = false}=20 return false=20 }=20 I added the last line "return false" and that appeased Netscape - = and now the whole program works again - also using loadhtml.js in NS4 = and IE 4+ Mike=20 -----Original Message-----=20 From: Samuel, Michael M [mailto:Sam...@ed...] = Sent: Wednesday, 8 November 2000 5:28 PM=20 To: 'dyn...@li...'=20 Subject: RE: [Dynapi-Dev] issues with 11-07 release=20 Sorry for the extensive post of sourcecode. The errors appear = onload.=20 Where can I get the loadPanel from?=20 Thanks=20 Mike=20 <Script Language=3D"Javascript" = src=3D"/Include/dynlayer/dynapi.js"></script>=20 <Script Language=3D"Javascript">=20 var strUserLongList =3D <% Response.Write(chr(34) & strResults & = Chr(34)) %>;=20 function makeUser(strAlias, strFullName, strType, strEdit){=20 this.Alias =3D strAlias;=20 this.FullName =3D strFullName;=20 this.Type =3D strType;=20 this.Edit =3D strEdit;=20 }=20 function loadUserIntoArray(){=20 if (strUserLongList !=3D ""){=20 var arrUserLongList =3D = strUserLongList.split('&&');=20 var strSelectBox =3D "";=20 var arrUserIndiv;=20 for (var i=3D0;i<arrUserLongList.length;i++){=20 arrUserIndiv =3D = arrUserLongList[i].split('!!');=20 arrUserList[i] =3D new = makeUser(arrUserIndiv[0],arrUserIndiv[1],arrUserIndiv[2],arrUserIndiv[3])= ;=20 strSelectBox +=3D "<option = value=3D'"+i+"'>"+arrUserIndiv[1]+"</option>";=20 }=20 strSelectBox =3D "<form name=3D'frmListUser' = id=3D'frmListUser' onSubmit=3D'return false'><center><select = id=3D'selListUser' name=3D'selListUser' = size=3D'9'>"+strSelectBox+"</select></center></form>"; listLayer.setHTML(strSelectBox)=20 }else{=20 listLayer.setHTML("No results were = returned.<br><form name=3DfrmListUser id=3DfrmListUser = onSubmit=3D'return false'><center><select id=3D'selListUser' = name=3D'selListUser' size=3D'9'><option value=3D''> = </option></select></center></form>") }=20 }=20 var arrUserList =3D new Array();=20 var strUserString =3D "";=20 DynAPI.setLibraryPath('/Include/dynlayer/lib')=20 DynAPI.include('dynapi.api.*')=20 DynAPI.include('dynapi.ext.loadhtml.js')=20 DynAPI.onLoad=3Dfunction() {=20 mainLayer =3D new DynLayer(null,0,0,650,410,'#C0C0C0')=20 headingLayer =3D new DynLayer(null,25,10,600,35,null)=20 findLayer =3D new DynLayer(null,25,60,250,25,null)=20 resultsLayer =3D new DynLayer(null,25,105,250,150,null)=20 descriptionLayer =3D new = DynLayer(null,25,285,250,100,null)=20 descriptionContentsLayer =3D new = DynLayer(null,5,5,240,90,null)=20 buttonLayer =3D new DynLayer(null,300,123,100,100,null)=20 listContainerLayer =3D new = DynLayer(null,420,55,205,205,null)=20 listHeadingLayer =3D new DynLayer(null,5,5,195,40,null)=20 listLayer =3D new DynLayer(null,5,50,195,150,null)=20 instructionLayer =3D new = DynLayer(null,300,285,325,100,null)=20 instructContentsLayer =3D new = DynLayer(null,5,5,315,90,null)=20 =20 = mainLayer.moveTo((this.document.getWidth()-mainLayer.w)/2,(this.document.= getHeight()-mainLayer.h)/2)=20 =20 mainLayer.BorderL=3Dnew = DynLayer(null,0,0,3,mainLayer.h,'#f0f0f0')=20 mainLayer.BorderT=3Dnew = DynLayer(null,0,0,mainLayer.w,3,'#f0f0f0')=20 mainLayer.BorderR=3Dnew = DynLayer(null,mainLayer.w-3,1,3,mainLayer.h-3,'#808080')=20 mainLayer.BorderB=3Dnew = DynLayer(null,1,mainLayer.h-3,mainLayer.w-3,3,'#808080')=20 mainLayer.addChild(mainLayer.BorderL)=20 mainLayer.addChild(mainLayer.BorderT)=20 mainLayer.addChild(mainLayer.BorderR)=20 mainLayer.addChild(mainLayer.BorderB)=20 instructionLayer.BorderR=3Dnew = DynLayer(null,0,0,1,instructionLayer.h,'#f0f0f0')=20 instructionLayer.BorderB=3Dnew = DynLayer(null,0,0,instructionLayer.w,1,'#f0f0f0')=20 instructionLayer.BorderL=3Dnew = DynLayer(null,instructionLayer.w-1,1,1,instructionLayer.h-1,'#808080')=20 instructionLayer.BorderT=3Dnew = DynLayer(null,1,instructionLayer.h-1,instructionLayer.w-1,1,'#808080')=20 instructionLayer.addChild(instructionLayer.BorderL)=20 instructionLayer.addChild(instructionLayer.BorderT)=20 instructionLayer.addChild(instructionLayer.BorderR)=20 instructionLayer.addChild(instructionLayer.BorderB)=20 instructionLayer.addChild(instructContentsLayer)=20 descriptionLayer.BorderR=3Dnew = DynLayer(null,0,0,1,descriptionLayer.h,'#808080')=20 descriptionLayer.BorderB=3Dnew = DynLayer(null,0,0,descriptionLayer.w,1,'#808080')=20 descriptionLayer.BorderL=3Dnew = DynLayer(null,descriptionLayer.w-1,1,1,descriptionLayer.h-1,'#f0f0f0')=20 descriptionLayer.BorderT=3Dnew = DynLayer(null,1,descriptionLayer.h-1,descriptionLayer.w-1,1,'#f0f0f0')=20 descriptionLayer.addChild(descriptionLayer.BorderL)=20 descriptionLayer.addChild(descriptionLayer.BorderT)=20 descriptionLayer.addChild(descriptionLayer.BorderR)=20 descriptionLayer.addChild(descriptionLayer.BorderB)=20 descriptionLayer.addChild(descriptionContentsLayer)=20 listContainerLayer.BorderR=3Dnew = DynLayer(null,0,0,1,listContainerLayer.h,'#808080')=20 listContainerLayer.BorderB=3Dnew = DynLayer(null,0,0,listContainerLayer.w,1,'#808080')=20 listContainerLayer.BorderL=3Dnew = DynLayer(null,listContainerLayer.w-1,1,1,listContainerLayer.h-1,'#f0f0f0'= )=20 listContainerLayer.BorderT=3Dnew = DynLayer(null,1,listContainerLayer.h-1,listContainerLayer.w-1,1,'#f0f0f0'= )=20 listContainerLayer.addChild(listContainerLayer.BorderL)=20 listContainerLayer.addChild(listContainerLayer.BorderT)=20 listContainerLayer.addChild(listContainerLayer.BorderR)=20 listContainerLayer.addChild(listContainerLayer.BorderB)=20 listContainerLayer.addChild(listHeadingLayer)=20 listContainerLayer.addChild(listLayer)=20 headingLayer.setHTML('<h2><center><% = Response.Write(strHeading) %></center></h2>')=20 findLayer.setHTML('<center><form onsubmit=3D"return = false"><input type=3Dtext name=3DstrFindString> <input = type=3Dbutton name=3DbtnFind value=3DFind = onclick=3DfindUser(strFindString.value)></form></center>') instructContentsLayer.setHTML('<span = class=3DsmallFont><b>To find a user:</b><br>Enter a persons name in the = text box and click Find.<br><br><i><b>Hint:</b> For best results, search = using Initial and Surname (e.g. J Citizen)</i><span>') buttonLayer.setHTML('<center><form onsubmit=3D"return = false"><input type=3Dbutton name=3DbtnAdd value=3D"Add ->" = onclick=3DmoveUser(1)><br><input type=3Dbutton name=3DbtnRemove = value=3D"<- Remove" onclick=3DmoveUser(0)><br><input type=3Dbutton = name=3DbtnSave value=3DSave onClick=3DsaveChanges()></form><center>') listLayer.setHTML('<span class=3DsmallFont><b>Please = Wait...</b><br><br>Loading list of users</span>')=20 listHeadingLayer.setHTML('<center><span = class=3DsmallFont><b><% Response.Write(strUserDescription) = %></b></span></center>') mainLayer.addChild(headingLayer)=20 mainLayer.addChild(findLayer)=20 mainLayer.addChild(resultsLayer)=20 mainLayer.addChild(descriptionLayer)=20 mainLayer.addChild(buttonLayer)=20 mainLayer.addChild(instructionLayer)=20 mainLayer.addChild(listContainerLayer)=20 DynAPI.document.addChild(mainLayer)=20 loadUserIntoArray()=20 }=20 -----Original Message-----=20 From: Robert Rainwater [mailto:rra...@ya...]=20 Sent: Wednesday, 8 November 2000 5:29 PM=20 To: Samuel, Michael M=20 Subject: Re: [Dynapi-Dev] issues with 11-07 release=20 Do you have an example where you get these errors (especially in = the=20 events file)? The loadHTML is not going to be supported in this=20 distribution. It is being replaced with the LoadPanel, so it has = not=20 been kept up. So, there is a good possibility that it does not = work.=20 \\Robert=20 --=20 rra...@ya...=20 _______________________________________________=20 Dynapi-Dev mailing list=20 Dyn...@li...=20 http://lists.sourceforge.net/mailman/listinfo/dynapi-dev=20 |