<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="Include/JS/JqueryPlugin/jquery-1.8.2.min.js"></script> <script> function save() { try { $.ajax({ type: "POST", url: "http://192.168.10.113:8080/solr/update/json?commit=true", data: { "add": { "doc": { "id": "222222", "name": "Ruby on Trails" } } }, contentType: "application/json; charset=utf-8", dataType: 'jsonp', crossDomain: true, jsonp: 'json.wrf' }); } catch (err) { alert(err); } } </script> </head> <body> <input type="button" id="button" onclick="save()" value="Submit" /> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)