locked
Jquery RRS feed

  • Question

  •  Hi

       How can i open a aspx page as pop up and get some value from open page and return on same page to display those value in text using Ajax hit . i just started Jquery and write below code so pls suggest .

      $.ajax({
                                                 type: "POST",
                                                 url: "a1.aspx?from=1&type=2",
                                                 data: {},
                                                 contentType: "application/json;charset=utf-8",
                                                 dataType: "html",
                                                 success: function (data) {
                                                      var RetData = data.d;
                                                      
                                                 },
                                                 error: function (data) {
                                                      alert('Error in ImageButton1 click')
                                                 }
                                            });

    Thursday, May 14, 2015 11:54 AM

All replies

  • Maybe, it looks a like ....

    var arrayLength = RetData.length;
    for (var i = 0; i < arrayLength; i++) {
        alert(myStringArray[i]);
        //Do something
    }


    Friday, February 17, 2017 10:07 AM