|
// FIELDS
function SDX_Fields()
{
this.RootObject = null ; // Must be set after this object initiliaze
this.Fields=new Array();
this.Field=Field;
this.InsertField=InsertField;
this.Initialize=Initialize;
this.VisibleFields=null;
// FIELD
function Field(_RootObject, _ID, _Name)
{
this.RootObject = _RootObject ;
this.ID = _ID ;
this.Name = _Name ;
this.DefaultValue = null ;
this.DataSource = null ;
this.GetDisplayHTML = GetDisplayHTML ;
this.GetEditHTML = GetEditHTML ;
this.GetEvalObjectString = GetEvalObjectString ;
this.SetValue = SetValue ;
this.Onload = Onload ;
function GetDisplayHTML(_Value)
{
var html = _Value ;
return html ;
}
function GetEditHTML(_Cell)
{
var html = "<input type='textbox' value='" + _Cell.Value + "' />";
return html ;
}
function GetEvalObjectString()
{
return this.ParentObject.GetEvalObjectString() + "_Fields" + ID ;
}
function SetValue(_Cell, _Value)
{
return _Cell.SetValue(_Value) ;
}
function Onload(_Cell)
{
try
{
document.getElementById(_Cell.HTMLID).children[0].focus()
document.getElementById(_Cell.HTMLID).children[0].select()
}
catch(exception)
{
}
}
}
function InsertField(_Name)
{
this.Fields[this.Fields.length] = new Field(this.RootObject, this.Fields.length, _Name)
return this.Fields[this.Fields.length-1];
}
function Initialize()
{
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.