Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="dog">
- <div class="dog_wrapper clearfix">
- <div class="col-lg-6 col-md-6 col-sm-6 left_sec">
- <div class="panel-heading">LIVE</div>
- <div class="col-md-6 col-sm-6">
- <div class="livefeed-left">
- <form class="button" method="post">
- <input type="hidden" value="DEPLOY" id="fieldID" name="fieldName"/>
- <input type="submit" value="Raise"/>
- </form>
- </div>
- </div>
- <div class="col-md-6 col-sm-6">
- <div class="livefeed-right">
- <form class ="button" method="post">
- <input type="hidden" value="RECOVER" id="fieldID" name="fieldName"/>
- <input type="submit" value="Lower"/>
- </form>
- </div>
- </div>
- </div>
- <div class="col-lg-6 col-md-6 col-sm-6 right_sec">
- <div class="panel-heading" id="sample" style="width: 100%; height:500px">MAP</div>
- <div class="col-md-6 col-sm-6">
- <div class="livefeed-left">
- <form class= "button" action="" method="post">
- <input type="hidden" value="UPLOAD" id="fieldID" name="fieldName"/>
- <input type="hidden" value="" id="lngHolderID" name="lngHolderName"/>
- <input type="hidden" value="" id="latHolderID" name="latHolderName"/>
- <input type="hidden" value="" id="altHolderID" name="altHolderName"/>
- <input type="hidden" value="" id="actHolderID" name="actHolderName"/>
- <input type="hidden" value="" id="actParamHolderID" name="actParamHolderName"/>
- <input type="submit" value="Upload" onclick="compileHolder()"/>
- </form>
- </div>
- <script type="text/javascript">
- $('.button').on('submit', function (event) {
- event.preventDefault(); // Stop the form from causing a page refresh.
- var data = {
- username: $('#username').val(),
- password: $('#password').val()
- };
- $.ajax({
- url: 'http://localhost/my/url',
- data: data,
- method: 'POST'
- }).then(function (response) {
- // Do stuff with the response, like add it to the page dynamically.
- $('body').append(response);
- }).catch(function (err) {
- console.error(err);
- });
- });
- </script>
- </body>
- </html>
- $('upload').on('submit', function (event) {
- event.preventDefault(); // Stop the form from causing a page refresh.
- var data = {
- username: $('#username').val(),
- password: $('#password').val()
- };
- $.ajax({
- url: 'http://localhost/my/url',
- data: data,
- method: 'POST'
- }).then(function (response)
- var data = $('#upload').serialize();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement