Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

call node js jquery http php

$(document).ready(function() {
    $.ajax({
        url: 'http://192.168.1.103:8124/',
        dataType: "jsonp",
        jsonpCallback: "_testcb",
        cache: false,
        timeout: 5000,
        success: function(data) {
            $("#test").append(data);
        },
        error: function(jqXHR, textStatus, errorThrown) {
            alert('error ' + textStatus + " " + errorThrown);
        }
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #node #js #jquery #http #php
ADD COMMENT
Topic
Name
9+5 =