Hi,

On 6/5/06, Osmosis311 <[EMAIL PROTECTED]> wrote:
>
> IJavaScript objects new ctor added.
>    Example:

you can use IJavaScriptObject to export any type of object for
JavaScript, now. Yes, you could do this in older version, too, if you
used as return value "object". It is nothing new, it is something
nicer... ;)


> Added ajaxNet/ajaxSettings/oldStyle/sessionStateDefaultNone tag to set
>   default HttpSessionStateRequirement to None instead of new default
> ReadWrite.
>   This is necessary to don't forget to set it and to keep-alive the
> session state on the
>   web server.

In older version the default was to do not use Sessions. This is
changed to use ReadWrite session. The problem is that if not added the
attribute in older versions your session may timeout and you will lose
data in the session objects. With ReadWrite the session will keep
"live".


> MS.getEvent, MS.getTarget, MS.setText, MS.setHtml. Will be replaced by
> prototype.js!!

Some nice and helpful functions for JavaScript and DOM developers.


> - Fixed bug when using AjaxNamespace: now it will search first all
> AjaxNamespaces defined  for methods, if nothing found use the
> MethodInfo.Name.

This is interessting if you are using different names for the
JavaScript code. In the older releases the name of the real method was
used instead of the defined name. This is now fixed.


> And I almost feel too stupid to ask, but how do you use the converters
> (for anything) and when should you use them?

It is not easy to have on answer. I will do this in another thread.
But, when you have a lot of data, then the default custom class
converter will be not very good (traffic, ...). See the example for a
DataTable. In a table you have some column names, and a lot of values.
So, with the custom converter it will use for each row something like
colum1=value1,column2=value2,... Wouldn't it be great to define the
names of the columns only once and forget them in the rows? In the
DataSet example I will return an array with the column names and an
array of rows. Each row will be an array, too, in the same sort of the
column names. So what I return is nearly 50% of the data. Does this
help?

Another reason would be if you need local methods. See the
BitmapConverter example. Locally you only need the url of the image,
but wouldn't it be nice to get a real Image JavaScript object, too? To
save this on every request I define it locally (in a JavaScript
converter script).

Reagrds,
Michael



>
> Thanks,
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to