Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49103

Wondering would this ajax code work within my controller?

$
0
0

@ecribin wrote:

I don't have a computer until tomorrow to test this but just wondering would this work or is there a way to alternate and make it work for ionics framework

$.ajax({
url: 'path/to/servertest.php',
type: 'GET',
data: {
u: Username,
p: Password
},
success: function (data) {
data = $.parseJSON(data);

    if (data === true) {
        alert('it was true');
    }
}

});

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>