Showing posts with label impressed. Show all posts
Showing posts with label impressed. Show all posts

Saturday, March 24, 2012

Atlas Under the Covers

Hi,

I am greatly impressed by Atlas but would really like to gain a better understanding of what is actually going on under the covers. Yes I understand how AJAX works and have even built some prototypes with it. That said is there a direction that you might point me in. I am currently looking at the Atlas.dll with reflector and this is helping a bit but if there are any good articles out there that might explain more thoroughly what is going on under the covers I would greatly appreciate looking at them.

Thanks In Advance

When you install Atlas March CTP. You can find all atlas scripts in Program Files\Microsoft ASP.NET\Atlas\v2.0.50727\Atlas\ScriptLibrary. Be sure to look at this:http://atlas.asp.net/docs/atlas/doc/javascript/default.aspx


howdy.

well, if you want to know what's going on, then reflector is the way to go :)

ok, so where do you start? on the client side, you should start by looking at the atlas.js file. now the server side. here you have plenty of stuff to understand :)

ok, let's start with the web service calls. to understand this, you should start by looking at the scripthandlerfactory,which is the entry point for web services calls (you'll have plenty of stuff to look at here: besides plain web services calls, you'll see also how the services like authentication are implemented). if you look at the atlas server approach, based on updatepanels, then start by looking at the oninit of the scriptmanager class: here you'll find plenty about the way scriptmanager handles several events (just look at how the prerendercomplete event of the page is rendered...the setrendermethoddelegate is a non documented method that let's you handle the html generation of the page - pretty cool this method :))...so many things...so where do you want to start? ;)

Wednesday, March 21, 2012

Atlas quirk in IE 6

Hello all,
First time Atlas user over here, and I just wanted to say that I'm damn impressed with the toolkit.. that and I've noticed a graphical quirk in IE when using Atlas.

I currently have a master page with everything positioned in CSS (menus, background, content etc). I have a small section of my default webpage use atlas to update a a label from a textbox after I click a submit button (basically: lblChat.text=TextBox1.text;). The thing works fine in firefox, however, in IE 6 when I click on the submit button the background of the webpage flashes to grey for a second (the page doesn't refresh though, just the background disappears for a second).

I have set the background of the webpage in a CSS file as follows:
body
{
background-image: url(Images/background.jpg);
background-attachment: fixed;
}

Any idea why this is happening?

Thanks.

Styles are re-sent to the page on any callback, to enable the serv-erside processing to change the stylesheet as well as the data. So if the background is set via CSS, this will refresh, and may cause a flicker as the browser re-paints.

It does seem like a pain in situations like yours, but it is really handy being able to change the styles for the whole page without having to re-query the data for the whole thing (when you want that behaviour).

Richard.