[FIXED] [V0.6] AjaxEvent not working

  1. #1

    [FIXED] [V0.6] AjaxEvent not working

    Hi
    Have problems with getting the AjaxEvent to work, I tried this examle from another thread
    (http://forums.ext.net/showthread.php...ght=AjaxEvents).
    Im using 0.6 of Coolite, and IE 7. The active tabpage does not change, i just get the Ajax loader, and when finished loading nothing happens.

    
    
    
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
    
    
    protected void Button1_Click(object obj, AjaxEventArgs e)
    {
        this.TabPanel1.ActiveTabIndex = 1;
    }
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title>Coolite Toolkit : Setting the .ActiveTabIndex on an AjaxEvent</title>
    </head>
    <body>
    <p><a href="ActiveTabIndex.aspx">Reload</a></p>
    <form id="Form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <ext:TabPanel ID="TabPanel1" runat="server" Height="300">
    <Tabs>
    <ext:Tab ID="Tab1" runat="server" Title="Tab 1" Html="Tab 1" />
    <ext:Tab ID="Tab2" runat="server" Title="Tab 2" Html="Tab 2" />
    </Tabs>
    </ext:TabPanel>
    <ext:Button ID="Button1" runat="server" Text="Submit">
    <AjaxEvents>
    <Click OnEvent="Button1_Click" />
    </AjaxEvents>
    </ext:Button>
    </form>
    </body>
    </html>

    Best regards
    Mikael
  2. #2

    RE: [FIXED] AjaxEvent not working

    Hello Jurke,

    Have you registered Coolite Ajax in your Web.Config? Discussed here: http://forums.ext.net/showthread.php...1360-16-2.aspx and announced in the ReadMe.txt :)

    Cheers,
    Timothy
  3. #3

    RE: [FIXED] AjaxEvent not working

    Hi Mikael,

    Can you check please that code in Button1_Click was executed (for example, under debug set breakpoint in Button1_Click)?

    If code executed then please change the Button1_Click

    protected void Button1_Click(object obj, AjaxEventArgs e)
    {
          this.TabPanel1.AddScript("alert('The request completed');");
          this.TabPanel1.ActiveTabIndex = 1;
    }
    If all correct the after request you shouild see the alert window. Please let me know about results

  4. #4

    RE: [FIXED] AjaxEvent not working

    Hi Guys
    Thank you for your quick reply. It was my mistake, I have missed the web.config part. Im my defense, I just got the 0.6 dll by mail without the read me. :)

    Its now working fine!

    Best regards
    Mikael

Similar Threads

  1. AjaxEvent - Response not working
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Oct 19, 2010, 7:03 PM
  2. Replies: 4
    Last Post: May 07, 2009, 11:21 AM
  3. Replies: 7
    Last Post: Feb 13, 2009, 3:27 PM
  4. [FIXED] [V0.8.0] Bug in Coolite.AjaxEvent
    By abertram in forum Bugs
    Replies: 5
    Last Post: Jan 23, 2009, 10:52 AM
  5. [FIXED] [V0.6] Button AjaxEvent Success
    By Timothy in forum Bugs
    Replies: 6
    Last Post: Sep 14, 2008, 10:16 AM

Posting Permissions