Hi all,
Here is my code,
<html>
<head>
<script>
function saveFile() {
var html = document.getElementById(“saveHTML”)
if(html == “”) {
return false;
}
document.saveForm.hidHtml.value = html;
}
</script>
</head>
<body>
<form name=”saveForm” method=”post” action=”/save” onsubmit=” return saveFile();”>
<input type=”hidden” name=”hidHtml” value=”” />
<input type=”submit” name=”saveBtn” value=”Save” />
</form>
<div id=”saveHTML” style=”display:none;”></div>
</body>
</html>
“saveHTML” div contains some large html. (Contains a table with 600 rows and 50 columns).
When I click Save button, it takes a long time to save and get response from the server.
There is no problem with the Post size.
But the html content is large, so only it takes long time (I think so).
Is there any other way to do it in a fraction of second?
Correct me, If I am doing anything wrong?
Regards,
Suresh.