|
From: Samuel, M. M <Sam...@ed...> - 2000-11-08 06:33:22
|
Sorry for the extensive post of sourcecode. The errors appear onload.
Where can I get the loadPanel from?
Thanks
Mike
<Script Language="Javascript" src="/Include/dynlayer/dynapi.js"></script>
<Script Language="Javascript">
var strUserLongList = <% Response.Write(chr(34) & strResults & Chr(34)) %>;
function makeUser(strAlias, strFullName, strType, strEdit){
this.Alias = strAlias;
this.FullName = strFullName;
this.Type = strType;
this.Edit = strEdit;
}
function loadUserIntoArray(){
if (strUserLongList != ""){
var arrUserLongList = strUserLongList.split('&&');
var strSelectBox = "";
var arrUserIndiv;
for (var i=0;i<arrUserLongList.length;i++){
arrUserIndiv = arrUserLongList[i].split('!!');
arrUserList[i] = new
makeUser(arrUserIndiv[0],arrUserIndiv[1],arrUserIndiv[2],arrUserIndiv[3]);
strSelectBox += "<option
value='"+i+"'>"+arrUserIndiv[1]+"</option>";
}
strSelectBox = "<form name='frmListUser' id='frmListUser'
onSubmit='return false'><center><select id='selListUser' name='selListUser'
size='9'>"+strSelectBox+"</select></center></form>";
listLayer.setHTML(strSelectBox)
}else{
listLayer.setHTML("No results were returned.<br><form
name=frmListUser id=frmListUser onSubmit='return false'><center><select
id='selListUser' name='selListUser' size='9'><option value=''>
</option></select></center></form>")
}
}
var arrUserList = new Array();
var strUserString = "";
DynAPI.setLibraryPath('/Include/dynlayer/lib')
DynAPI.include('dynapi.api.*')
DynAPI.include('dynapi.ext.loadhtml.js')
DynAPI.onLoad=function() {
mainLayer = new DynLayer(null,0,0,650,410,'#C0C0C0')
headingLayer = new DynLayer(null,25,10,600,35,null)
findLayer = new DynLayer(null,25,60,250,25,null)
resultsLayer = new DynLayer(null,25,105,250,150,null)
descriptionLayer = new DynLayer(null,25,285,250,100,null)
descriptionContentsLayer = new DynLayer(null,5,5,240,90,null)
buttonLayer = new DynLayer(null,300,123,100,100,null)
listContainerLayer = new DynLayer(null,420,55,205,205,null)
listHeadingLayer = new DynLayer(null,5,5,195,40,null)
listLayer = new DynLayer(null,5,50,195,150,null)
instructionLayer = new DynLayer(null,300,285,325,100,null)
instructContentsLayer = new DynLayer(null,5,5,315,90,null)
mainLayer.moveTo((this.document.getWidth()-mainLayer.w)/2,(this.document.getHeig
ht()-mainLayer.h)/2)
mainLayer.BorderL=new DynLayer(null,0,0,3,mainLayer.h,'#f0f0f0')
mainLayer.BorderT=new DynLayer(null,0,0,mainLayer.w,3,'#f0f0f0')
mainLayer.BorderR=new
DynLayer(null,mainLayer.w-3,1,3,mainLayer.h-3,'#808080')
mainLayer.BorderB=new
DynLayer(null,1,mainLayer.h-3,mainLayer.w-3,3,'#808080')
mainLayer.addChild(mainLayer.BorderL)
mainLayer.addChild(mainLayer.BorderT)
mainLayer.addChild(mainLayer.BorderR)
mainLayer.addChild(mainLayer.BorderB)
instructionLayer.BorderR=new
DynLayer(null,0,0,1,instructionLayer.h,'#f0f0f0')
instructionLayer.BorderB=new
DynLayer(null,0,0,instructionLayer.w,1,'#f0f0f0')
instructionLayer.BorderL=new
DynLayer(null,instructionLayer.w-1,1,1,instructionLayer.h-1,'#808080')
instructionLayer.BorderT=new
DynLayer(null,1,instructionLayer.h-1,instructionLayer.w-1,1,'#808080')
instructionLayer.addChild(instructionLayer.BorderL)
instructionLayer.addChild(instructionLayer.BorderT)
instructionLayer.addChild(instructionLayer.BorderR)
instructionLayer.addChild(instructionLayer.BorderB)
instructionLayer.addChild(instructContentsLayer)
descriptionLayer.BorderR=new
DynLayer(null,0,0,1,descriptionLayer.h,'#808080')
descriptionLayer.BorderB=new
DynLayer(null,0,0,descriptionLayer.w,1,'#808080')
descriptionLayer.BorderL=new
DynLayer(null,descriptionLayer.w-1,1,1,descriptionLayer.h-1,'#f0f0f0')
descriptionLayer.BorderT=new
DynLayer(null,1,descriptionLayer.h-1,descriptionLayer.w-1,1,'#f0f0f0')
descriptionLayer.addChild(descriptionLayer.BorderL)
descriptionLayer.addChild(descriptionLayer.BorderT)
descriptionLayer.addChild(descriptionLayer.BorderR)
descriptionLayer.addChild(descriptionLayer.BorderB)
descriptionLayer.addChild(descriptionContentsLayer)
listContainerLayer.BorderR=new
DynLayer(null,0,0,1,listContainerLayer.h,'#808080')
listContainerLayer.BorderB=new
DynLayer(null,0,0,listContainerLayer.w,1,'#808080')
listContainerLayer.BorderL=new
DynLayer(null,listContainerLayer.w-1,1,1,listContainerLayer.h-1,'#f0f0f0')
listContainerLayer.BorderT=new
DynLayer(null,1,listContainerLayer.h-1,listContainerLayer.w-1,1,'#f0f0f0')
listContainerLayer.addChild(listContainerLayer.BorderL)
listContainerLayer.addChild(listContainerLayer.BorderT)
listContainerLayer.addChild(listContainerLayer.BorderR)
listContainerLayer.addChild(listContainerLayer.BorderB)
listContainerLayer.addChild(listHeadingLayer)
listContainerLayer.addChild(listLayer)
headingLayer.setHTML('<h2><center><% Response.Write(strHeading)
%></center></h2>')
findLayer.setHTML('<center><form onsubmit="return false"><input
type=text name=strFindString> <input type=button name=btnFind
value=Find onclick=findUser(strFindString.value)></form></center>')
instructContentsLayer.setHTML('<span class=smallFont><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="return false"><input
type=button name=btnAdd value="Add ->" onclick=moveUser(1)><br><input
type=button name=btnRemove value="<- Remove" onclick=moveUser(0)><br><input
type=button name=btnSave value=Save onClick=saveChanges()></form><center>')
listLayer.setHTML('<span class=smallFont><b>Please
Wait...</b><br><br>Loading list of users</span>')
listHeadingLayer.setHTML('<center><span class=smallFont><b><%
Response.Write(strUserDescription) %></b></span></center>')
mainLayer.addChild(headingLayer)
mainLayer.addChild(findLayer)
mainLayer.addChild(resultsLayer)
mainLayer.addChild(descriptionLayer)
mainLayer.addChild(buttonLayer)
mainLayer.addChild(instructionLayer)
mainLayer.addChild(listContainerLayer)
DynAPI.document.addChild(mainLayer)
loadUserIntoArray()
}
-----Original Message-----
From: Robert Rainwater [mailto:rra...@ya...]
Sent: Wednesday, 8 November 2000 5:29 PM
To: Samuel, Michael M
Subject: Re: [Dynapi-Dev] issues with 11-07 release
Do you have an example where you get these errors (especially in the
events file)? The loadHTML is not going to be supported in this
distribution. It is being replaced with the LoadPanel, so it has not
been kept up. So, there is a good possibility that it does not work.
\\Robert
--
rra...@ya...
_______________________________________________
Dynapi-Dev mailing list
Dyn...@li...
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|