Bootstrap Modal Testing

HTML

<script src="http://josephdpurcell.com/test/modal.js"></script>
<a data-toggle="modal" data-target="#myModal" data-refresh="true" data-remote="http://josephdpurcell.com/test/example1.php" class="btn btn-primary btn-large">Launch 1</a>

<a data-toggle="modal" data-target="#myModal" data-refresh="false" data-remote="http://josephdpurcell.com/test/example2.php" class="btn btn-primary btn-large">Launch 2</a>

<a class="btn btn-primary btn-large launch3">Launch 3</a>

<a class="btn btn-primary btn-large launch4">Launch 4</a>

<a class="btn btn-primary btn-large show-me">Show</a>

<a class="btn btn-primary btn-large refresh-me">Refresh</a>

        <!-- Modal -->
        <div class="modal" id="myModal">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Modal title</h4>
                    </div>
                    <div class="modal-body">
                    </div>
                    <div class="modal-footer">
                        <a href="#" class="btn" data-dismiss="modal">Close</a>
                        <a href="#" class="btn btn-primary">Save changes</a>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dalog -->
        </div><!-- /.modal -->

CSS

/*!
 * Bootstrap v3.0.0
 *
 * Copyright 2013 Twitter, Inc
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Designed and built with all the love in the world by @mdo and @fat.
 */

/*! normalize.css v2.1.0 | MIT License | git.io/normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden] {
  display: none;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
}

a:focus {
  outline: thin dotted;
}

a:active,
a:hover {
  outline: 0;
}

h1 {
  margin: 0.67em 0;
  font-size: 2em;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

hr {
  height: 0;
  -moz-box-sizing: content-box;
       box-sizing: content-box;
}

mark {
  color: #000;
  background: #ff0;
}

code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}

pre {
  white-space: pre-wrap;
}

q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 0;
}

fieldset {
  padding: 0.35em 0.625em 0.75em;
  margin: 0 2px;
  border: 1px solid #c0c0c0;
}

legend {
  padding: 0;
  border: 0;
}

button,
input,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
}

button,
input {
  line-height: normal;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}

button[disabled],
html input[disabled] {
  cursor:...

JavaScript

$('.launch3').click(function(e){
    e.preventDefault();
    $('#myModal').modal({
        remote: 'http://josephdpurcell.com/test/example3.php',
        refresh: true
    });
});
$('.launch4').click(function(e){
    e.preventDefault();
    $('#myModal').modal({
        remote: 'http://josephdpurcell.com/test/example4.php',
        refresh: false
    });
});
$('.show-me').click(function(e){
    e.preventDefault();
    $('#myModal').modal('show');
});
$('.refresh-me').click(function(e){
    e.preventDefault();
    $('#myModal').modal('refresh');
});