Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

A new AJAX IDE !

The Release of JoyiStar AJAX WebShop 3 Beta

The JoyiStar AJAX WebShop development team is proud to announce the release of JoyiStar AJAX WebShop 3.0 Beta for Personal Edition. This release is a major improvement in the AJAX WebShop series, which includes a large number of new features and security enhancements.
Further details and the full list of changes about this release can be found in JoyiStar AJAX WebShop 3.0 Beta for personal edition.
Free download link (http://www.joyistar.com)

[transshipment]http://www.joyistar.com
[561 byte] By [ajaxtoday] at [2007-11-11 10:02:40]
# 1 Re: A new AJAX IDE !
Data binding analysis of AJAX DataSet and DBControl in AJAX WebShop

Viky commend
Brief introduction:

Register the Objects list related to data, and when the related events happen, an information should be send to these objects. After they receive these information, the related operation would carry out according to the information ID and data.

Information ID:

modify:12
open:0
refresh:5
close:7
move record:3
append:1
delete:2
firedatachange:6
post:13
cancel:9
apply:8
fieldvalue firechange:4
notify lookup dataset:11

Codes analysis:

Here we will take the DBEdit as the example to analysis the way of data binding.
Set the property of DBEdit as DataSet or SetDataSet. Register DBEdit to the data binding list by LinkObj. Actually, the data binding list is an array. When the events happen in DataSet, system will call Notify to notice all the objects in the list and all the objects have an implement of the interface HandleMessage to be called by DataSet. Refer to the source code below:

DataSet.prototype.Notify=function(act,recno,p){var os=this.linkobjs;if(!os||this.AutoControl==false)return;for(var j=0;j<os.length;j++)if(os[j].HandleMessage)os[j].HandleMessage(this,act,recno,p);}

function DC_handlemessage(sender,msg,recno)
{
if(msg!=6&&msg!=12)
this.Refresh();
}
function DC_refresh()
{
var v,f;
if(this.DataSet.Active){
f=this.DataSet.Fields.Field[this.DataField];
if(!f)jcl_err(this.Name+'.DataField:'+this.DataField+Err_NoField);
if(f){
this.readOnly=f.ReadOnly;
v=f.GetValue();
if(v==null)v='';this.value=v;
if(this.Type=='span')this.innerHTML=v;//DBLabel
if(this.Type=='checkbox'){
if(this.CheckedValue == v){
this.checked=true;
this.defaultChecked=true;
}
else{
this.checked=false;
}
}
}
}
else{
this.value='';
if(this.Type=='span')this.innerHTML='';//DBLabel
}
}
ajaxtoday at 2007-11-11 23:42:31 >
# 2 Re: A new AJAX IDE !
Hi, ajaxtoday. Be careful that the administrator spam you. Hurrah...

But Thanks for your information about AJAX WebShop. It's more than what I expected.
Mars.Yan at 2007-11-11 23:43:25 >
# 3 Re: A new AJAX IDE !
Good!
dabo at 2007-11-11 23:44:35 >