Skip to content

Commit fc2b870

Browse files
hansonrhansonr
authored andcommitted
Fix for POST not working
1 parent 4182796 commit fc2b870

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed
167 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190516082613
1+
20190516132838
167 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190516082613
1+
20190516132838
53 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// J2S._version set to "3.2.4.07" 2019.01.04; 2019.02.06
44

5+
// BH 5/16/2019 fixes POST method for OuputStream
56
// BH 2/6/2019 adds check for non-DOM event handler in getXY
67
// BH 1/4/2019 moves window.thisApplet to J2S.thisApplet;
78

@@ -1045,8 +1046,7 @@ console.log("J2S._getRawDataFromServer " + J2S._serverUrl + " for " + query);
10451046
info.url = url;
10461047
info.type = "POST";
10471048
info.processData = false;
1048-
info.data = (typeof data == "string" ? dataOut
1049-
: ";base64," + Clazz.load("javajs.util.Base64").getBase64$BA(dataOut).toString());
1049+
info.data = dataOut;//(typeof data == "string" ? dataOut : ";base64," + Clazz.load("javajs.util.Base64").getBase64$BA(dataOut).toString());
10501050
info.xhr = J2S.$ajax(info);
10511051
return info.xhr.responseText;
10521052
}

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10667,6 +10667,7 @@ return jQuery;
1066710667

1066810668
// J2S._version set to "3.2.4.07" 2019.01.04; 2019.02.06
1066910669

10670+
// BH 5/16/2019 fixes POST method for OuputStream
1067010671
// BH 2/6/2019 adds check for non-DOM event handler in getXY
1067110672
// BH 1/4/2019 moves window.thisApplet to J2S.thisApplet;
1067210673

@@ -11710,8 +11711,7 @@ console.log("J2S._getRawDataFromServer " + J2S._serverUrl + " for " + query);
1171011711
info.url = url;
1171111712
info.type = "POST";
1171211713
info.processData = false;
11713-
info.data = (typeof data == "string" ? dataOut
11714-
: ";base64," + Clazz.load("javajs.util.Base64").getBase64$BA(dataOut).toString());
11714+
info.data = dataOut;//(typeof data == "string" ? dataOut : ";base64," + Clazz.load("javajs.util.Base64").getBase64$BA(dataOut).toString());
1171511715
info.xhr = J2S.$ajax(info);
1171611716
return info.xhr.responseText;
1171711717
}

0 commit comments

Comments
 (0)