hello.
well, i guess that currently VS doesn't add much support to atlas. if you want to learn xml-script, then you'll really need to look at the current docs and at the source files that come with atlas.
Liming,
I"m working on a guide to this for my job, showing how to switch between declarative and imperative Atlas coding for Drag and Drop (largely based on what other people have shown me in this forum). If you can wait a few days more, I should have it done by the end of next week.
Briefly, though, this:
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<components>
<control id="draggableDiv">
<behaviors>
<floatingBehavior handle="handleBar"/>
</behaviors>
</control>
</components>
</page>
</script>
is equivalent to this:
ctrl=$('draggableDiv');
ctrlHandle=$('handleBar');
var floatingBehavior = new Sys.UI.FloatingBehavior();
floatingBehavior.set_handle(ctrlHandle);
var ctrl = new Sys.UI.Control(ctrl);
ctrl.get_behaviors().add(floatingBehavior);
floatingBehavior.initialize();
-Vico
Thanks Luis and I guess I was trying to be a litter lazy and Vgima, a guide like that will DEFINITLY help! I can't wait. Please post here again when you are done! Thanks!
hello.
and, since Vgima's guide isn't ready, don't be shy: if you're facing any problems just ask here! i'm sure there's a lot of guys that will help you!
Liming,
Finally finished. I found that I couldn't write it at work, so I finally wrote the guide to dragging and dropping during some surprisingly rainy days on my vacation. It covers drag n drop using both declarative markup as well as programmatically. I also added a section on how to code drop targets. I've posted the drag and drop tutorial here:http://www.codeproject.com/Ajax/AtlasDragNDrop.asp Hope it isn't too late to help you with your development tasks.
WOW! you are the man. I was just getting into drag and drop and I couldn't figure it out by using the scripts. lol. Thanks man!
No comments:
Post a Comment