Showing posts with label moving. Show all posts
Showing posts with label moving. Show all posts

Monday, March 26, 2012

Atlas vs Yahoo UI Library

Hi folks,

I was testing Atlas and learning the basis of it and Ajax. The Tasklist sample that comes with Atlas just crash my Firefox when moving the Note div !
Anyways.. that's not the point, and I still believe in Atlas. Might just be an extension that make it crashes!

This post is more about the popularity of Atlas vs Yahoo UI Library or any other ajax / UI related library.

I would like to know which ones tend to be used among web developpers, the pros and cons of the major players..

Thanks for any help!

Hi Martin,

One of the things we are trying to-do with Atlas is provide a very strong foundation base for building Ajax UI controls and libraries on top. So I think you'll find that Atlas probably has a richer foundation and library platform layer than most Ajax libraries out there.

Having said that, it is still new -- so we don't have all the controls out there that we would like to have. We will be announcing a new Atlas Control Pack shortly with a bunch of additional controls that help with this, but until then you can probably find cool libraries like the Yahoo one that have more cool UI widgets.

Over the next few months, as the Atlas control ecosystem grows, I think you'll find even more cool UI widgets with Atlas and .NET.

Hope this helps,

Scott


Thanks for your reply Scott!

By curiosity, how many people work on such a great project? is it a few like ~5 people or is it more like 20 or even more?

Right now, I'm developping an intranet for a customer of ours, and I'd like to integrate drag and drop functionnality. Does atlas is stable enough for me to use that? As I said, one of the demo just crash my firefox.

I'm really excited about Atlas and would prefer continu using MS stuff over other stuff.

Thanks

Saturday, March 24, 2012

Atlas to AJAX conversion problem with delegate. Need help.

I'm having trouble with the sample below since moving from Atlas to AJAX.
I've done a LOT of research with prototypes and delegates, but I can't get
this simple, "class-like" example to work in AJAX as it did in Atlas.
Any help greatly appreciated. Thanks in advance.

============ASPX PAGE=============

<%@dotnet.itags.org. Page Language="vb" AutoEventWireup="false" CodeBehind="test.aspx.vb" Inherits="WebApplication1.test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" ID="ScriptManager1">
<Services>
<asp:ServiceReference Path="WS1.asmx" />
</Services>
</asp:ScriptManager>
<input type='button' value='Click me' id='myButton' onclick='doThis(778899)' />
</form>
</body>
</html>

<script type="text/javascript">

function doThis( MyNumber ){

var tmpOjb = new MySampleClass( MyNumber );
tmpOjb._StartMyFunction();
tmpOjb = null;

}
MySampleClass = function( MyNumber )
{
this._MyNumber = MyNumber;

this._StartMyFunction = function()
{
// This WORKS, but with asyncronous call...
// ... this._MyNumber is lost when _MyReturnHandler is run
/* */
WebApplication1.WS1.HelloWorld(
this._MyNumber,
this._MyReturnHandler);
/* */

// This DOES NOT WORK anymore, but DID with Atlas..
// How can I get this to work again??
/*
WebApplication1.WS1.HelloWorld(
this._MyNumber,
{onMethodComplete: Function.createDelegate(this, this._MyReturnHandler)});
*/
}

this._MyReturnHandler = function(result)
{
alert(result + "::::" + this._MyNumber);
}
};

</script>


============ASMX PAGE=============
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Text
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.ComponentModel

<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<System.Web.Script.Services.ScriptService()> _
<ToolboxItem(False)> _
Public Class WS1
Inherits System.Web.Services.WebService

<WebMethod()> _
Public Function HelloWorld(ByVal myNumber As String) As String
Return "Hello World [" & myNumber & "]"


End Function

End Class

The userContext is available for this purpose.

<script type="text/javascript">

function doThis( MyNumber ){

var tmpOjb = new MySampleClass( MyNumber );
tmpOjb.StartMyFunction();
tmpOjb = null;

}

MySampleClass = function(myNumber) {
this._myNumber = myNumber;
}

MySampleClass.prototype = {
StartMyFunction : function() {
var userContext = "Here is some text. This can be a JSON object too";
WebService.HelloWorld(
this._myNumber,
this._OnSucceed,
this._OnFail,
userContext);
},

_OnSucceed : function(result,userContext)
{
alert(result + "::::" +userContext);
},

_OnFail : function(error) {
alert(error);
}
}

</script>

http://ajax.asp.net/docs/ClientReference/Sys.Net/WebRequestClass/WebRequestUserContextMethod.aspx


Thanks Raj! That saved me a lot of time.
I wish I submitted the question earlier.

Thanks again.

Wednesday, March 21, 2012

Atlas Response.redirect

Is it possible to have the "no flash" atlas look while moving from page to page?The so-called "no flash" look you referred to is the product of updating only a portion of the entire page via AJAX/Atlas. If you're redirecting to another page, then it will most likely involve replacing the entire page content, thus the "flash" rather than the "no flash."

Ok, this is working great when I stay processing within one page...i didn't know if you could do it with redirecting, but it makes sense that you cannot.

Thanks for the help!


Hi

Actually Responce.Redirect site navigation between two different webpage (application) is not posssible. But with single application page navigation is possible . one of the best site iswww.nikhilk.net/ ,But I don't know how to navigate between pages. if any one knows pls reply.

Regards,

Gopianth., Gopinathnet@.gmail.com


Me Again,

I don't think page navigation is possible , but the above nikhilk blog is using "Web Page transitions" effects, if Any AJAX / Atals can support Responce.Redirect without page refresh , it would be greate.

Regards,

Gopinath


Addition of below code to your page is the secret to it....

<meta http-equiv="Page-Exit"
content="progid:DXImageTransform.Microsoft.Fade(duration=.5)" />


thanks dhruvparashar, thats a nice trick.

Yup! but only works in IE not Firefox


Hi, It woks excellent.

Can you explain how its working.