Skip to content

Commit

Permalink
version: 1.3.2 - bug fix: async should default to TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
Remy Blom committed Jan 16, 2014
1 parent 79d243b commit e4c31b3
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 24 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
jQuery Soap
===========
**file:** jquery.soap.js
**version:** 1.3.1
**version:** 1.3.2

jQuery plugin for communicating with a web service using SOAP.
--------------------------------------------------------------
Expand Down Expand Up @@ -309,6 +309,7 @@ Version numbers are [semver](http://semver.org/) compatible from version 1.0.0 a

Version | Date | Changes
--- | --- | ---
1.3.2 | 2014-01-16 | bugfix: _async_ defaulted to **false**? should have been **true**
1.3.1 | 2013-11-04 | minor changes: SOAPRequest is now SOAPEnvelope, request is now beforeSend
1.3.0 | 2013-10-31 | massive rewrite (fixes #14, #19, #20, lot of stuff from #21, #23)
1.2.2 | 2013-10-31 | fix for #24: a parameter set to NULL should be translated as <language nil="true" />
Expand Down
23 changes: 9 additions & 14 deletions demo/demo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*==========================
demo.js http://plugins.jquery.com/soap/ or https://github.com/doedje/jquery.soap
part of the jQuery.soap distribution version: 1.3.1
part of the jQuery.soap distribution version: 1.3.2
this file contains the javascript for the jQuery.soap demo
===========================*/
Expand Down Expand Up @@ -31,6 +31,7 @@ $(document).ready(function() {
appendMethodToURL: $('#appendMethodToURL').prop('checked'),
SOAPAction: $('#SOAPAction').val(),
soap12: $('#soap12').prop('checked'),
async: $('#async').prop('checked'),

data: data,
wss: wss,
Expand Down Expand Up @@ -61,6 +62,13 @@ $(document).ready(function() {
});
});

$(document).ajaxStart(function() {
console.log('ajaxStart!');
});
$(document).ajaxStop(function() {
console.log('ajaxStop!');
});

// just a little experiment with promises:
/*
$.soap({
Expand Down Expand Up @@ -109,19 +117,6 @@ $(document).ready(function() {
});
*/

$(document).bind('ajaxStart', function() {
console.log('ajaxStart')
})

/*
$(document).ajaxStart(function() {
console.log('ajaxStart')
})
$(document).ajaxStop(function() {
console.log('ajaxStop')
})
*/

});

function dom2html(xmldom, tabcount) {
Expand Down
6 changes: 5 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<body>
<header>
<h1>jQuery.soap demo page</h1>
In this demo you can test all features of jQuery.soap version 1.3.1
In this demo you can test all features of jQuery.soap version 1.3.2
</header>
<hr />
<form>
Expand All @@ -37,6 +37,10 @@ <h1>jQuery.soap demo page</h1>
<label>soap12:</label>
<input type='checkbox' id='soap12' class='no_width' />
</fieldset>
<fieldset>
<label>async:</label>
<input type='checkbox' id='async' class='no_width' checked='checked' />
</fieldset>
<fieldset>
<label>params:</label>
<select id='paramsType'>
Expand Down
2 changes: 1 addition & 1 deletion demo/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*==========================
main.css http://plugins.jquery.com/soap/ or https://github.com/doedje/jquery.soap
part of the jQuery.soap distribution version: 1.3.1
part of the jQuery.soap distribution version: 1.3.2
this file contains the css for the jQuery.soap demo
===========================*/
Expand Down
8 changes: 5 additions & 3 deletions jquery.soap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*==========================
jquery.soap.js http://plugins.jquery.com/soap/ or https://github.com/doedje/jquery.soap
version: 1.3.1
version: 1.3.2
jQuery plugin for communicating with a web service using SOAP.
Expand Down Expand Up @@ -31,15 +31,15 @@ For information about how to use jQuery.soap, authors, changelog, the latest ver
Visit: https://github.com/doedje/jquery.soap
Documentation about THIS version is found here:
https://github.com/doedje/jquery.soap/blob/1.3.1/README.md
https://github.com/doedje/jquery.soap/blob/1.3.2/README.md
======================*/

(function($) {
var enableLogging;
var globalConfig = { // this setup once, defaults go here
appendMethodToURL: true,
async: false,
async: true,
enableLogging: false,
noPrefix: false,
soap12: false
Expand All @@ -59,6 +59,8 @@ https://github.com/doedje/jquery.soap/blob/1.3.1/README.md
// function log will only work below this line!
enableLogging = config.enableLogging;

log('jquery.soap - config:', config);

// fallbacks for changed properties
SOAPTool.fallbackDeprecated(config);

Expand Down
6 changes: 3 additions & 3 deletions options.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
jQuery.soap Detailed Options List
=================================
**file:** jquery.soap.js
**version:** 1.3.1
**version:** 1.3.2

Note that all options are optional. To actually send a request [url](#url) en [data](#data) are the minimal requirements. More [general information about the usage of jQuery.soap](README.md)

Expand All @@ -23,9 +23,9 @@ will send a request to `http://server.com/webServices/`
async
-----
type: **boolean**
default: _false_
default: _true_

Set to true when you want the $.ajax call to be async.
Set to false when you want the $.ajax call to be sync.

beforeSend
----------
Expand Down
2 changes: 1 addition & 1 deletion soap.jquery.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "soap",
"title": "jQuery Soap",
"version": "1.3.1",
"version": "1.3.2",
"description": "jQuery plugin for communicating with a web service using SOAP. This script uses $.ajax to send the SOAP message. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too. Thanx to proton17, Diccon Towns and Zach Shelton! Let's $.soap()!",
"keywords": [
"soap",
Expand Down

0 comments on commit e4c31b3

Please sign in to comment.