Do you get errors in firebug? Post the ajax call code.
Javascript Client Before:
This works:
<code>
var btnSet = $("#"+ctrl.id); // Re-cast the current controller so we can use JQuery extensions
console.log("Button:");
console.log(btnSet);
params['targeturi'] = btnSet.data('targeturi');
params['userid'] = btnSet.data('userid');
params['groupid'] = btnSet.data('groupid');
params['href'] = window.href;
// Store off the new document and send it
var ifDoc = window.ifrm.contentDocument;
var htDoc = ifDoc.getElementsByTagName('html')[0].innerHTML;
params["html0"] = htDoc.substr(0,25000);
params["html1"] = htDoc.substr(25000,25000);
params["html2"] = htDoc.substr(50000,25000);
params["html3"] = htDoc.substr(75000,15000);
var str = location.pathname.substr(location.pathname.lastIndexOf("/")+1).replace(".php",".html");
params["pageName"] = prompt("Please enter a name for this page: ",str);
displayMessage("Sending document "+params["pageName"]+" ("+htDoc.length+") to server for storage .... stand by ....");
console.log(params);
</code>
****
If I add 5 more K of data to the html it fails with the following:
- f.support.ajax.f.ajaxTransport.send.d
[/list]
****
Sending as a single parameter:
<code>
params["html"] = htDoc;
</code>
silently fails .... everything looks OK but the value of the 'html' parameter is empty on server side.
---------------------------------------------------------------------------------------------------------------------------------------------------
Server Side PHP:
<code>
$userID = $params['userid'];
$groupID = $params['groupid'];
$fName = $params['pageName'];
$URI = $params['targeturi'];
$URI = "http://localhost:8085/${URI}";
$htDoc = addslashes($params["html0"]);
$htDoc .= addslashes($params["html1"]);
$htDoc .= addslashes($params["html2"]);
$htDoc .= addslashes($params["html3"]);
//$result = $params; // Send back what I received
$result["replaced"] = 'false';
$result["fulluri"]=$URI;
//$result["html"]=$htDoc;
$result["length"]=strlen($htDoc);
$result["SQL"] = "DELETE FROM tbluserpages
WHERE UserID='$userID'
and PageName='$fName'
and GroupID='$groupID'
";
CustomQuery($result["SQL"]);
$result["replaced"] = 'true';
$result["SQL"] = "Insert into tbluserpages (
UserID
, GroupID
, PageName
, Document )
Values (
$userID
, $groupID
, '$fName'
, \"$htDoc\" ) ;";
CustomQuery($result["SQL"]);
$result["stored"] = 'true';
</code>
****
It feels like I am hitting two limits, one for the size of a single field and another for the total transaction size.