Getting Error string value canot be longer than 65535 bytes

Hi

I am using javascript code to fetch the documents from view. But if the view has large number of documents then it is giving error “String value can not be longer than 65535 bytes” but if the the number of documents is not much then it is showing documents.

Here is below code to fetch the document list from the view and this list is displayed by using

Javascript Code:

function doLookup_projectlist() {

var server=document.forms[0].hostname.value;

var database=document.forms[0].databasename.value;

//Create a Hash of the parameters

var a=$H(

	{

		server: $F('Server_PM'),

		file: $F('Database_PM'),

		view: $F('View_PM'),

		key: $F('Key_PM'),

		column:$F('Fetch_PM')

	}

	

);

//Do the magic

var myAjax = new Ajax.Request(

    'http://'+server+'/'+database+'/doDBLookup?openpage',

    {method: 'get', parameters: a.toQueryString(), onComplete: update_values_projectlist}

);

}

//This function does the work once we’ve got the result

function update_values_projectlist(originalRequest) {

sHTML="<table class='sample' width=100%><tbody>" + originalRequest.responseText +"</tbody></table>";

document.getElementById('ProjectDetails').innerHTML=sHTML;

}

What is the solution or any alterative? Please help.

Thanks

Subject: Getting Error string value canot be longer than 65535 bytes

Gaurav,

AJAX wonot give u solution to fetch huge amount of data, certain amount of data only u can pass n retrieve.Can u more elaborate your requirement ? , so that sombody will better suggest you on this.

Cheers

Rishi