I have used Visual Studio 2013 and use kendo Tabstrip. I have a Login Form.After successfully Login credentials I want to navigate home.html view.

function Login() {

   // debugger;
    var app = new kendo.mobile.Application();
    var UserId = $('#UserId').val();
    var Password = $('#Password').val();
    $.ajax({
        url: "http://localhost:1654/Webservice/TrakService.asmx/Login",
        data: JSON.stringify({ 'UserName': UserId, 'Password': Password }),
        type: 'POST',
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        async: false,
        success: function (response) {
            if (response.d) {
                debugger;
                app.navigate('views/home.html');
            }
        },
        error: function (jqXHR, textStatus, errorThrown) {
           // debugger;
            //alert("Error in saving database");
        }
    });
    return false;
}

It is not working.Redirect is not working. What should I write for this redirect.I want to write it dynamically.I want this ajax jquery success function.

Please help .Its urgent

asked 31 Aug '15, 07:29
Bubun's gravatar image

Bubun
111

closed 01 Sep '15, 12:19

shader's gravatar image

shader
3.9k7

The question has been closed for the following reason "Duplicate Question" by shader 01 Sep '15, 12:19

That would be the question to Telerik forums. Closing thread.

permanent link
answered 01 Sep '15, 12:18
shader's gravatar image

shader
3.9k7

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×447
×92
×3

question asked: 31 Aug '15, 07:29

question was seen: 725 times

last updated: 01 Sep '15, 12:19