Wie redirect-Antwort von ajax-Anfrage

Brauche ich die Umleitung zu einer Seite von der Antwort. Ich machte einen ajax-call und kann mit Erfolg. Es gibt html-Seite, die Antwort, aber wie leiten Sie Sie zur Seite.
Hier ist mein code.

$("#launchId").live('click',function(){
    var id= $("#id").val();
    var data = 'id='+id;
    $.ajax({
        url: "xyz.json",
        type: "post",
        data: data,
        dataType: 'json',
        complete : function(response) {
             window.location.href = response;                  
        }
    });
 });
live ist veraltet !!!
ist die Antwort eine url?
Hinzufügen eines console.log(JSON.stringify(response)); vor window.location.href = response; - und post-was Sie hier erhalten.
Ist dies für eine mobile HTML-website?
keine Antwort ist ein Objekt, das gesamte html-Inhalt

InformationsquelleAutor hemanth | 2013-06-01

Schreibe einen Kommentar