ajax doesn't work using folks?

Feb 12, 2008 at 12:49 AM
Default.aspx:
------------------
<div>
<asp:button ID="Button1" runat="server" text="Button" rel="folks" />
<asp:TextBox ID="TextBox1" runat="server" rel="folks" />
</div>

Default.aspx.vb:
--------------------
Partial Class _Default
Inherits Folks.UI.FolksPage

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = "123..."
End Sub
End Class


Web.config:
---------------
<httpHandlers>
<add verb="*" path="FolksResource.ashx" type="Folks.Handlers.FolksResourceLoader, Folks"/>
</httpHandlers>
</system.web>
</configuration>


But it still post back as normal, not thru AJAX. May i know why? Thanks!
Coordinator
Feb 12, 2008 at 1:03 PM
Hi oliverwhk,

please verify if the JS scripts was loaded correctly. You must have 2 script tags with src attribute addressed to FolksResource.ashx?r=(hash) in your html. Please tell me if is correct.

In your Default.aspx you can just put rel="folks" in your Button1 control. Why? It's only one to fire a event.

Default.aspx:
------------------
<div>
<asp:button ID="Button1" runat="server" text="Button" rel="folks" />
<asp:TextBox ID="TextBox1" runat="server" />
</div>

I'm recreating the same scenario and testing it here. I'll write the results until the today's end.

If you have any idea or suggestion please tell us. :D
Coordinator
Feb 12, 2008 at 2:50 PM
Hi oliverwhk,

Now I know what happens. You must running under ASP.NET Development Server, the Folks doesn't works with ASP.NET Server yet (I added this restriction at Home). It works fine with IIS.

And I found a error, the Button postback mapping was wrong. I'm creating an Issue and fixing it. This will be released in version 0.0.2.
Feb 13, 2008 at 6:24 PM
Yes i have just checked it contains 2 script tags with src attribute addressed to FolksResource.ashx?r=(hash) in the html.
Feb 13, 2008 at 6:32 PM
Edited Feb 13, 2008 at 6:45 PM
it's working now... hooray!