[pLog-svn] r1469 - plog/trunk/js/ui
mark at devel.plogworld.net
mark at devel.plogworld.net
Mon Mar 14 08:45:30 GMT 2005
Author: mark
Date: 2005-03-14 08:45:29 +0000 (Mon, 14 Mar 2005)
New Revision: 1469
Modified:
plog/trunk/js/ui/plogui.js
Log:
Fixed bug http://bugs.plogworld.net/view.php?id=339 .. Change the xmlHttpRequest fromt the "get" method to "post" method to oversome the url length problem.
Modified: plog/trunk/js/ui/plogui.js
===================================================================
--- plog/trunk/js/ui/plogui.js 2005-03-14 06:46:47 UTC (rev 1468)
+++ plog/trunk/js/ui/plogui.js 2005-03-14 08:45:29 UTC (rev 1469)
@@ -28,7 +28,9 @@
function sendData(url, data)
{
xmlhttp.onreadystatechange = processResponse;
- xmlhttp.open("GET", url, true);
+ xmlhttp.open("POST", url, false, null, null);
+ xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+ xmlhttp.setRequestHeader("Content-Length", data.length);
xmlhttp.send(data);
return true;
@@ -156,7 +158,8 @@
var formData = getPostEditFormElements( "newPost" );
// build up the final url
- url = plogAdminBaseUrl + "?op=saveXmlDraft&"+formData;
+ url = plogAdminBaseUrl;
+ data = "op=saveXmlDraft&"+formData;
//window.alert(url);
- sendData( url, null );
+ sendData( url, data );
}
\ No newline at end of file
More information about the pLog-svn
mailing list