📄 changes.txt
字号:
Ajax.NET Professional Changes
=============================
Version 6.7.20.1
- Fixed JavaScriptArray bug when deserializing json [["..."],["..."]].
Version 6.7.19.1
- Fixed bug when AjaxMethod is using IJavaScriptObject as argument type.
- Removed ReflectionPermission security attribute from assembly meta data to run in medium
trust web applications.
Version 6.7.11.1
- Added generic method JavaScriptDeserializer.DeserialzeFromJson<T>( string );
Version 6.7.10.2
- Added stand-alone JSON library to use JSON without Ajax.
Version 6.7.10.1
- Fixed if using properties instead of public fields, comma removed.
Version 6.7.9.1
- Added support for new Date parsing for Deserialize().
Version 6.7.2.1
- Fixed IFrame support for disabled ActiveX in IE.
- Added full support for all IE7 configurations.
Version 6.6.30.1
- Fixed onLoading on document.onunload.
Version 6.6.29.2
- Fixed onLoading that has been called three times instead of two times.
Version 6.6.29.1
- Fixed "work off-line" mode on Internet Explorer.
- Fixed general errors in Firefox, Mozilla (Firefox and "[Exception...")
Version 6.6.28.1
- Fixed onError call on every callback. Will call the method only if res.error != null.
Version 6.6.26.1
- Fixed wrong Content-Type header value in XMLHttpRequest request.
Version 6.6.23.1
- Fixed missing inheritance for DataRow, too. This will fix the problem with type-safe
DataSets.
Version 6.6.22.1
- Fixed missing inheritance for DataSet, DataTable and DataView.
Version 6.6.20.1
- Added JavaScriptUtil.GetIJavaScriptObjectFromXmlNode(XmlNode) to get a JSON representation
from XmlDocument, see http://developer.yahoo.com/common/json.html#xml.
- Fixed JavaScript timeout, added new return value to indicate if request should be canceled
or not (note: don't use Fiddler to capture this effect, Ethereal will show real data).
- Added JavaScriptSource as new IJavaScriptObject that can return any JavaScript code
(i.e. new JavaScriptSource("new MyClass()");)
Version 6.6.14.2
- Fixed IDictionary support as AjaxMethod argument.
- Changed IDictionary and NameValueCollection use on client-side JavaScript. Use following
methods of res.value:
.getValue(key)
.getKeys()
.setValue(key, value)
.add(key, value)
Version 6.6.14.1
- Fixed missing onLoading(false) when request running longer than AjaxPro.timeoutPeriod.
- Return true in onTimeout if you want to cancel the request, otherwise the onTimeout will
be invoked after AjaxPro.timeoutPeriod again. First argument for onTimeout is the duration
time in milliseconds, the second on is the request with following properties and functions:
.context, .method, .args, .abort(), .xmlHttp
Version 6.6.13.2
- Added Pocket PC 2003 support.
- Internet Explorer 4 will not support XMLHttpRequest. There is a version available
of Internet Explorer where the ActiveXObject is installed, but not on every IE 4
it is available. Due there is missing try..catch support, and a lot of other features
missing I will not make Ajax.NET Professional available for Internet Explorer 4 at all.
- Fixed gzip/deflate but for clients not accepting compression.
Version 6.6.13.1
- Fixed NameValueCollection bugs.
Version 6.6.12.1
- Added Windows Mobile 5 (Pocket PC) support.
- Removed all addNamespace calls in JavaScript code.
- Moved addNamespace function to ms.ashx, if you need it copy&paste it or activate
the ms.ashx include.
- Fixed bug if converter already exists in internal list.
- Added String.prototype.split.
- Added new Initialize method to IJavaScriptConverter that will use an StringDictionary
for converter configuration, removed old one!!
- Changed AsyncHttpHandler code, will add more configuration later.
- Added res.duration for JavaScript callback.
- Fixed bug using cache attribute, didn't store differenct cache if parameters are
different.
Version 6.6.8.2
- Fixed bug when request fails should not call timeout handler.
Version 6.6.8.1
- Fixed missing /* on cached results.
Version 6.6.7.1
- Removed Obsolete(true) for RegisterConverterForAjax.
- Changed HttpHandlers to internal.
- Added new urlNamespaceMappings/allowListOnly attribute for security reasons.
Version 6.6.6.1
- Added HttpCompressionModule.
- Fixed wrong ContentType for IFrameProcessor if cached.
- Fixed modSince http header bug.
Version 6.6.5.2
- Fixed old Firefox bug with http response headers.
Version 6.6.2.2
- Fixed AjaxServerCache attribute use, didn't cached it for each method.
- Fixed HTTP 100 Continue problem when running with Win2003 Server (RFC 2616).
Version 6.6.2.1
- Added BitmapConverter.
- IJavaScript objects new ctor added.
Example:
AjaxPro.JavaScriptObject o = new AjaxPro.JavaScriptObject();
o.Add("firstName", new AjaxPro.JavaScriptString("Michael"));
o.Add("age", new AjaxPro.JavaScriptNumber(29));
o.Add("isMarried", new AjaxPro.JavaScriptBoolean(true));
o.Add("x", new AjaxPro.JavaScriptNumber(2.3456));
o.Add("y", new AjaxPro.JavaScriptArray(new AjaxPro.IJavaScriptObject[] { new AjaxPro.JavaScriptBoolean(true), new AjaxPro.JavaScriptNumber(2.33) }));
return o;
- Fixed missing IJavaScriptObject serializer, added generic support for internal stuff.
- AjaxPro.timeoutPeriod is now set to 10 seconds by default.
- Removed MS.Position, MS.Keys, MS.setText, MS.setHtml, MS.cancelEvent, MS.getEvent,
MS.getTarget,... to ms.ashx, enable with ajaxNet/ajaxSettings/oldStyle/includeMsPrototype.
- Completly removed $(...), Class.create:
Object.extend(window, {
$: function() {
var elements = new Array();
for(var i=0; i<arguments.length; i++) {
var e = arguments[i];
if(typeof e == 'string')
e = document.getElementById(e);
if (arguments.length == 1)
return e;
elements.push(e);
}
return elements;
},
Class: {
create: function() {
return function() {
if(typeof this.initialize == "function")
this.initialize.apply(this, arguments);
}
}
}
}, false);
- Completly removed Function.isFunction (return typeof f == "function").
- Completly removed MS.Debug (will be added in a special debug version).
- Completly removed AjaxPro.getInstance and AjaxPro.getType.
- Completly removed StringBuilder (use arrays instead or ms.ashx)
- Completly rewritten de-/serializable methods, now everything is a converter.
New added converters:
DecimalConverter
EnumConverter
ExceptionConverter
GuidConverter
PrimitiveConverter
StringConverter
The remove tag in ajaxNet/ajaxSettings/jsonConverters is working, now.
Also there a big changes in the common de-/serializable methods to improve performance.
- Removed old Hashtables and replaced by Dictionary<,> if .NET 2.0.
- New AjaxNoTypeUsageAttribute wich you can add to custom classes. This will prevent
the engine to add the __type JavaScript property, so it is a one-way communication for
this type only.
- Changed IJavaScriptConverter interface, added protected variable m_AllowInheritance to
allow searching for the same type in inherited classes. This is false by default, used in
IListConverter with true.
Added two new methods TrySerializeValue and TryDeserializeValue to do some more test
insetad of only comparing the Type.
New property ConverterName which will be written to converter.ashx JavaScript file.
- Added ajaxNet/ajaxSettings/oldStyle/allowNumberBooleanAsString tag to allow
posting JavaScript number and boolean as string. If not configured JavaScript
numbers are converter to System.Int64 and boolean to System.Boolean.
- prototype.ashx and core.ashx can be combined to "prototype-core.ashx", which will
save one http request.
- Added ajaxNet/ajaxSettings/oldStyle/sessionStateDefaultNone tag to set
default HttpSessionStateRequirement to None instead of new default ReadWrite.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -