Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ============= This code does not work, however, it works on every browser except IE11 (11.0.9600.17728) =============
- <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
- <input onClick="dispatchAll()" type="button" id="Btn2" value="Dispatch All Units" class="btnStyle span3" />
- <script type="text/javascript">
- function dispatchAll() {
- $.post("#",
- {
- dispatchAllUnits: true
- },
- function (data) {
- }
- );
- return false;
- }
- </script>
- ============= This code works =============
- <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
- <input onClick="dispatchAll()" type="button" id="Btn2" value="Dispatch All Units" class="btnStyle span3" />
- <script type="text/javascript">
- function dispatchAll() {
- $.ajax({
- type: "POST",
- url: 'index.php',
- data: {
- dispatchAllUnits: true
- },
- success: function () {
- },
- error: function () {
- alert('dispatchAll() failure');
- }
- });
- return false;
- }
- </script>
- ============= Some more notes =============
- For the second code it refused to work with # on IE, however, that's not a big deal ill just type index.php instead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement