[CLOSED] Mobile / Button problem

  1. #1

    [CLOSED] Mobile / Button problem

    I am able to fill out the fields but can not click on buttons....

       <form id="form1" runat="server">
             <h1>
                        <b>..:::Maintelligent </b></h1>
                    <h2>Login</h2>
            <ext:ResourceManager ID="ResourceManager1" ScriptMode="Debug" runat="server" />
    
    
                    <ext:Window  ID="Window1"
                        runat="server"
                        Title="Login"
                        Width="400"
                        Frame="true"
                        BodyPadding="13"
                        DefaultAnchor="100%">
                        <Items>
    
                            <ext:NumberField MinValue="1000" MinLength="4" runat="server" ID="txtCompanyId" Text="1000" FieldLabel="Company Id" Width="250"
                                AllowBlank="false" BlankText="Company Id" EmptyText="1000 for USA">
                            </ext:NumberField>
                            <ext:TextField runat="server" ID="txtUserName" FieldLabel="User Name" Text="" Width="250"
                                AllowBlank="false" BlankText="User Name required!">
                            </ext:TextField>
                            <ext:TextField runat="server" InputType="Password" AllowBlank="false" ID="txtPassword" Text=""
                                FieldLabel="Password" Width="250">
                            </ext:TextField>
                        </Items>
                        <Buttons>
    
                            <ext:Button ID="btnLogin" Icon="Server" Text="Login" runat="server">
    
                                <DirectEvents>
                                    <Click OnEvent="loging">
                                        <EventMask ShowMask="true" Msg="Verifiying User...." MinDelay="500">
                                        </EventMask>
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:Button ID="Button1" Text="Forgot Password ?" runat="server">
                                <DirectEvents>
    
                                    <Click OnEvent="FortogettenPassword">
    
                                        <EventMask ShowMask="true"></EventMask>
                                    </Click>
    
                                </DirectEvents>
                            </ext:Button>
                        </Buttons>
                    </ext:Window>
        </form>
    Last edited by geoffrey.mcgill; Feb 06, 2015 at 12:12 AM. Reason: [CLOSED]
  2. #2
    Is it a MVC or a WebForms project?
    Last edited by RCN; Jan 28, 2015 at 11:52 PM.
  3. #3
    In MVC it is working as expected.
    <!DOCTYPE html>
    <html>
    <head id="Head2" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" ScriptMode="Debug" />
        <h1>
            <b>..:::Maintelligent </b></h1>
        <h2>Login</h2>
    
        <ext:Window ID="Window1"
            runat="server"
            Title="Login"
            Width="400"
            Frame="true"
            BodyPadding="13"
            DefaultAnchor="100%">
            <Items>
                <ext:NumberField MinValue="1000" MinLength="4" runat="server" ID="txtCompanyId" Text="1000" FieldLabel="Company Id" Width="250"
                    AllowBlank="false" BlankText="Company Id" EmptyText="1000 for USA">
                </ext:NumberField>
                <ext:TextField runat="server" ID="txtUserName" FieldLabel="User Name" Text="" Width="250"
                    AllowBlank="false" BlankText="User Name required!">
                </ext:TextField>
                <ext:TextField runat="server" InputType="Password" AllowBlank="false" ID="txtPassword" Text=""
                    FieldLabel="Password" Width="250">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" Icon="Server" Text="Login" runat="server">
                    <DirectEvents>
                        <Click Url="~/Example/loging">
                            <EventMask ShowMask="true" Msg="Verifiying User...." MinDelay="500">
                            </EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="Button1" Text="Forgot Password ?" runat="server">
                    <DirectEvents>
                        <Click Url="~/Example/FortogettenPassword">
                            <EventMask ShowMask="true"></EventMask>
                        </Click>
    
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </body>
    </html>
    namespace RCNBS.Visions.SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            public ActionResult Index()
            {
                return View();
            }
    
            public ActionResult loging()
            {
                System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
                X.Msg.Notify("Direct Event", "loging").Show();
    
                return this.Direct();
            }
    
            public ActionResult FortogettenPassword()
            {
                System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
                X.Msg.Notify("Direct Event", "FortogettenPassword").Show();
    
                return this.Direct();
            }
        }
    }
    Last edited by geoffrey.mcgill; Jan 30, 2015 at 9:03 PM.
  4. #4
    I suspect you are using MVC. The following example reproduces the issue presented by you

    <script runat="server">
        public void loging(object sender, DirectEventArgs e)
        {
            System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
            X.Msg.Notify("Direct Event", "loging").Show();
        }
    
        public void FortogettenPassword(object sender, DirectEventArgs e)
        {
            System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
    
            X.Msg.Notify("Direct Event", "FortogettenPassword").Show();
        }
    </script>
    <!DOCTYPE html>
    <html>
    <head id="Head2" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" ScriptMode="Debug" />
        <h1>
            <b>..:::Maintelligent </b></h1>
        <h2>Login</h2>
        <ext:Window ID="Window1"
            runat="server"
            Title="Login"
            Width="400"
            Frame="true"
            BodyPadding="13"
            DefaultAnchor="100%">
            <Items>
                <ext:NumberField MinValue="1000" MinLength="4" runat="server" ID="txtCompanyId" Text="1000" FieldLabel="Company Id" Width="250"
                    AllowBlank="false" BlankText="Company Id" EmptyText="1000 for USA">
                </ext:NumberField>
                <ext:TextField runat="server" ID="txtUserName" FieldLabel="User Name" Text="" Width="250"
                    AllowBlank="false" BlankText="User Name required!">
                </ext:TextField>
                <ext:TextField runat="server" InputType="Password" AllowBlank="false" ID="txtPassword" Text=""
                    FieldLabel="Password" Width="250">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" Icon="Server" Text="Login" runat="server">
                    <DirectEvents>
                        <Click OnEvent="loging">
                            <EventMask ShowMask="true" Msg="Verifiying User...." MinDelay="500">
                            </EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="Button1" Text="Forgot Password ?" runat="server">
                    <DirectEvents>
                        <Click OnEvent="FortogettenPassword">
                            <EventMask ShowMask="true"></EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Jan 30, 2015 at 9:04 PM.
  5. #5
    I am gonna check whether it's working in a WebForms project.
  6. #6
    Yes, it's working as expected in a WebForms project.
  7. #7
    Hi @ebeker,

    Please ensure you use the latest Ext.NET from SVN trunk.
  8. #8
    I am using the latest from SVN , and i am testing it on Safari mobile (iphone) and does not let me click on buttons. It s a webforms project.
  9. #9
    Hello,

    I tried to run your original code sample and an exception was thrown.

    If you can spend a few minutes ensuring your code sample is runnable, and properly demonstrates how to reproduce the problem, then we'll take another look at testing on an iPhone.

    The forum guidelines contain plenty of tips on posting to the forums:

    http://forums.ext.net/showthread.php...ation-Required

    If we cannot copy+paste your code sample directly into a test project, and run without having to fix unnecessary exceptions, your chances of receiving timely support are diminished.

    As well, I should point out that the iPhone is not officially supported in Ext.NET. That said, once we have a runnable sample from you, we will do our best to test and fix any issues.
    Geoffrey McGill
    Founder & CEO
  10. #10
    I solved this issue and answer is :

    If the page that you are trying to Redirect has javascript errors the browser is not redirecting, instead its reloading the current page. You can close this thread thank you .

Similar Threads

  1. Mobile Compatibility
    By pessimca in forum 2.x Help
    Replies: 4
    Last Post: Feb 24, 2014, 12:53 PM
  2. Mobile development
    By cuki in forum 1.x Help
    Replies: 0
    Last Post: May 05, 2012, 6:06 PM
  3. [CLOSED] Mobile
    By rnfigueira in forum 2.x Premium Help
    Replies: 1
    Last Post: Mar 28, 2012, 3:14 PM
  4. [CLOSED] Mobile
    By rnfigueira in forum 1.x Premium Help
    Replies: 1
    Last Post: Aug 04, 2011, 2:32 PM
  5. Coolite on Windows Mobile 6.x
    By macap in forum Open Discussions
    Replies: 1
    Last Post: Aug 04, 2009, 10:03 AM

Posting Permissions