Ww Api
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://jquery-wikidot-api.wdfiles.com/local--code/code:jquery-wikidot-api"></script>
<script type="text/javascript" src="https://jsapi.wikidot.com/js/code/5"></script>
<style type="text/CSS">
body{
font-family: Tahoma, Helvetica, Arial, Verdana, sans-serif;
color: #333;
}
div.buttons input, input.button, button, a.button {
    height: auto;
    width: auto;
    padding: 2px 10px 3px 10px;
    background: url(https://wikiwealth.wdfiles.com/local--files/testtesthome%3A_start/buttons.png) -1px -1px no-repeat;
    margin: 0;
    color: #fff;
    text-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.27);
    border-left: 1px solid rgba(0,0,0,0.27);
    border-right: 1px solid rgba(0,0,0,0.27);
    border-top: 1px solid rgba(0,0,0,0.27);
    border-radius: 4px;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.27);
    font-weight: bold;
    cursor: pointer;
    opacity: .80 !important;
}    
 
div.buttons input:hover, input.button:hover, button:hover, a.button:hover {
    background: url(https://wikiwealth.wdfiles.com/local--files/testtesthome%3A_start/buttons.png) -1px -145px no-repeat;
    color: #fff !important;
    opacity: .80 !important;
}
 
div.buttons input:active, input.button:active, button:active, a.button:active {
    background: url(https://wikiwealth.wdfiles.com/local--files/testtesthome%3A_start/buttons.png) -1px -37px no-repeat !important;
    color: #fff !important;
    box-shadow: 0px 0px 0px rgba(0,0,0,0.1) !important;
    left: 0 !important;
    top: 0 !important;
    opacity: .80 !important;
}
 
.button45 a {
    height: auto !important;
    width: auto !important;
    padding: 5px 15px 6px 15px !important;
    background: url(https://wikiwealth.wdfiles.com/local--files/testtesthome%3A_start/buttons.png) -1px -1px no-repeat !important;
    margin: 0 !important;
    color: #fff !important;
    text-shadow: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.27)!important;
    border-left: 1px solid rgba(0,0,0,0.27) !important;
    border-right: 1px solid rgba(0,0,0,0.27) !important;
    border-top: 1px solid rgba(0,0,0,0.27) !important;
    border-radius: 4px !important;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.27) !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: .80 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    margin-top: 0px;
}    
 
.button45 a:hover {
    background: url(https://wikiwealth.wdfiles.com/local--files/testtesthome%3A_start/buttons.png) -1px -145px no-repeat !important;
    color: #fff !important;
    opacity: .75 !important;
}
 
.button45 a:active {
    background: url(https://wikiwealth.wdfiles.com/local--files/testtesthome%3A_start/buttons.png) -1px -37px no-repeat !important;
    color: #fff !important;
    box-shadow: 0px 0px 0px rgba(0,0,0,0.1) !important;
    left: 0 !important;
    top: 0 !important;
    opacity: .80 !important;
}
 
/* ----------------------------- Slider Info ------------------------- */
 
/* ----------------- Text Box Graphics -------------------*/
 
input[type=text], textarea {
    margin: 0;
    padding: 7px 5px;
    background: #fff;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#fff), color-stop(.2,#fff));
    background-image: -webkit-linear-gradient(top, #eee, #fff, #fff .2);
    background-image: -moz-linear-gradient(top, #eee, #fff, #fff .2);
    background-image: -o-linear-gradient(top, #eee, #fff, #fff .2);
    background-image: -ms-linear-gradient(top, #eee, #fff, #fff .2);
    background: linear-gradient(top, #eee, #fff, #fff .2);
    border: 1px solid rgba(0,0,0,.78);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,.4);
    -moz-box-shadow: inset 0 0 1px rgba(0,0,0,.4);
    box-shadow: inset 0 0 1px rgba(0,0,0,.4);
    opacity: 1;
    -webkit-transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
}
input[type=text]:hover, textarea:hover {
    opacity: 1 !important;
}
input[type=text]:focus, textarea:focus {
    border: 1px solid rgba(0,0,0,.8);
    outline: none;
    -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.4);
    -moz-box-shadow: inset 0 0 3px rgba(0,0,0,.4);
    box-shadow: inset 0 0 3px rgba(0,0,0,.4);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ccc), to(#fff), color-stop(.2,#fff));
    background-image: -webkit-linear-gradient(top, #ccc, #fff, #fff .2);
    background-image: -moz-linear-gradient(top, #ccc, #fff, #fff .2);
    background-image: -o-linear-gradient(top, #ccc, #fff, #fff .2);
    background-image: -ms-linear-gradient(top, #ccc, #fff, #fff .2);
    background: linear-gradient(top, #ccc, #fff, #fff .2);
    opacity: 1;
}
</style>
</head>
<body>
        <div style="font-size: 14px;"><b>Latest Project:</b> Add private companies to our database</div>
        <form id="newPrivateForm" action="javascript:;" onsubmit="newPrivateFunction();">
            <input class="text" id="newPrivateInput" type="text" size="30" maxlength="128" style="margin: 1px"><input type="submit" class="button" value="Add New Private Company" id="newPrivateSubmit" style="margin: 1px;"><br />
            <div id="newPrivateMessage" style="font-size: 10px; color: #333;"></div>
        </form>
    <script type="text/javascript">
        // The code below is Copyright (c) Kenneth Tsang 2012
        // Do not copy, re-use or reproduce in anyway without explicit permission from Kenneth Tsang or WikiWealth
        makingAJAXCall = false;
        function newPrivateFunction(){
            if(!makingAJAXCall){
                $("#newPrivateMessage").text("Loading...");
                makingAJAXCall = true;
                var unix = "private-venture:"+$("#newPrivateInput").val().toLowerCase().replace(/ /g,"-").replace(/\-\-+/g,"-").replace(/^\-/,"").replace(/\-$/,"");
                $.get("/quickmodule.php?module=PageLookupQModule&s=49912&q="+unix,function(d){
                    hasMatched = false;
                    if(d.pages.length>0){
                        $.each(d.pages,function(i,v){
                            if(v.unix_name==unix){ hasMatched = true; }
                        });
                    }
                    if(!hasMatched){
                        makingAJAXCall = false;
                        //$.wikidot('ww-homepage-promo', 'wqNk0FjiJmdJeSiXuWMuXiDtPX47zLDO').pages.save_one({"site": "wikiwealth", "page": unix, "title": $.trim($("#newPrivateInput").val())}, function(a){ window.top.location = "http://www.wikiwealth.com/"+unix; });
                        jsAPI("pages.save_one",{"site": "wikiwealth", "page": unix, "title": $.trim($("#newPrivateInput").val())}, 'wqNk0FjiJmdJeSiXuWMuXiDtPX47zLDO' , function(a){ window.top.location = "http://www.wikiwealth.com/"+unix; });
                        //window.top.location = "http://www.wikiwealth.com/"+unix+"/edit/true/title/"+escape($.trim($("#newPrivateInput").val()));
                    }else{
                        $("#newPrivateMessage").html("Oh no, the page already exist!  <a href=\"/"+unix+"\" target=\"_top\">Jump to page</a>");
                        makingAJAXCall = false;
                    }
                },"json");
            }
        }
    </script>
</body></html>