{"id":56,"date":"2011-12-27T00:25:03","date_gmt":"2011-12-27T00:25:03","guid":{"rendered":"http:\/\/trackmyphones.com\/b\/?page_id=56"},"modified":"2015-08-08T01:59:25","modified_gmt":"2015-08-08T01:59:25","slug":"fleet-tracker-registration","status":"publish","type":"page","link":"https:\/\/trackmyphones.com\/b\/fleet-tracker-registration\/","title":{"rendered":"Fleet &#8211; Tracker : Registration"},"content":{"rendered":"<p><center><\/p>\n<form name=\"tmp\" id=\"tmp\" action=\"#\" method=\"POST\" onSubmit=\"return false;\">\n<table>\n<tr>\n<td>Name:<\/td>\n<td>\n<p><input name=\"name\" type=\"text\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>Email Id:<\/td>\n<td>\n<p><input name=\"emailid\" type=\"text\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>Password:<\/td>\n<td>\n<p><input name=\"password\" type=\"password\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>Reenter Password:<\/td>\n<td>\n<p><input name=\"reenter-password\" type=\"password\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" align=\"Center\"><font color=\"red\"><\/p>\n<div id=\"registermessage\" style=\"display: inline\"><\/div>\n<p><\/font><br \/>\n<input name=\"submit\" type=\"submit\" id=\"register\" value=\"Register\" OnClick=\"submitReq('register');return false;\" \/><\/td>\n<\/tr>\n<\/table>\n<\/form>\n<p>\n<\/center><br \/>\n<script type=\"application\/javascript\"  src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/2.0.2\/jquery.min.js\"><\/script><br \/>\n<script type=\"text\/javascript\">\nfunction submitReq (act)\n{\n\tconsole.log(\"act ==>\" + act );\n\t$('#action').val(act);\n        var messagetype = act + 'message';\n        var type = act;\n        $(document.getElementById(messagetype)).html('<font color=\"red\">Submitting Request<img decoding=\"async\" loading=\"lazy\" src=\"\/ct\/loader_spinner.gif\" align=\"left\" height=\"25\" width=\"25\" \/><\/font>');\n        $(document.getElementById(type)).hide();\n        sendData(act);\n}\nfunction sendData(act)\n{\n        var pars = $('form#tmp').serialize();\n\tconsole.log(\"Posting data\");\n        $.ajax({\n  \ttype: \"POST\",\n      \tdata:  pars,\n  \turl: '\/cgi-bin\/fleet-tracking\/register.cgi',\n  \tsuccess: function (data) {\n\tconsole.log(\"Inside Success\");\n\tvar messagetype = act + 'message';\n        if(data == \"1\")\n        {\n                $(document.getElementById(messagetype)).html('<font color=\"green\"><b>User Registered Successfully. <a href=\"\/cgi-bin\/fleet-tracking\/index.cgi\">Click here to Login. <\/a><\/b><\/font>');\n                \/\/$(document.getElementById(act)).show();\n        }\n        else\n        {\n                $(document.getElementById(messagetype)).html('<font color=\"red\">Request Failed. <b>' + data + '<\/b><\/font>');\n                $(document.getElementById(act)).show();\n        }\n  }\n});\nreturn false;\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Name: Email Id: Password: Reenter Password:&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1128,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"template.fullwidth.php","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/pages\/56"}],"collection":[{"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":14,"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/pages\/56\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/pages\/56\/revisions\/72"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/media\/1128"}],"wp:attachment":[{"href":"https:\/\/trackmyphones.com\/b\/wp-json\/wp\/v2\/media?parent=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}