Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
the big sell is that it will improve client side performance, what about that ?
Milan.
Depends Beware using MS Ajax, it will send back a Viewstate + other lengthy gubbins on every call, even if you just want to update one lousy little textbox.
It saves screen refreshes, but it makes your http traffic bitty.
Well, presumably the Ajax calls to the server will just return a bit of JSON for the client JavaScript to deal with, thus avoiding all that .NET mumbo-jumbo completely - which has to be an improvement straight away.
IF you roll your own Ajax (which I do, by preference) you get nice trim efficient packets of data (JSON, XML, pipe-delimeted, whatever you want) - .NET Ajax has wrapped up the nice simple functionality in its usual MS Bloat, sends back Viewstate and a whole load of other gubbins with every call, and a whole load of gubbins comes back - much MUCH more than is actually required to implement the dynamic client changes.
IF you roll your own Ajax (which I do, by preference) you get nice trim efficient packets of data (JSON, XML, pipe-delimeted, whatever you want) - .NET Ajax has wrapped up the nice simple functionality in its usual MS Bloat, sends back Viewstate and a whole load of other gubbins with every call, and a whole load of gubbins comes back - much MUCH more than is actually required to implement the dynamic client changes.
Good 'ole MS, got to keep those PC sales going, haven't we?
It's worth noting that older kit can be painfully slow with Ajax stuff. It's something to consider if your site is aimed at Joe Public or international audiences. This is something the BBC hasn't cottoned on to with their "Please turn on JavaScript. Media requires JavaScript to play." messages.
Behold the warranty -- the bold print giveth and the fine print taketh away.
Comment