Jump to content

[SOLVED] Error Reasoning


adam84

Recommended Posts

I have a page where the user can fill out information and there are two textareas where the user can enter up to 1000 characters in each textarea. If i put in a message about 200 characters long for each, everything works good. But if i enter 1000 characters in each textarea, i keep getting the same javascript error: 'The system cannot locate the resource specifed'. Do anyone know whats up with that???

Link to comment
Share on other sites

Straight forward Ajax

- every other ajax call works fine

 

function sendRequest(act,divtag) {
http.open('get', act); 
http.onreadystatechange = openRequest; 
divhandler.divtag = divtag; 
http.send(null); 
} 
function sendLog(act,divtag) { 
http.open('get', act); 
http.onreadystatechange = openLog; 
divhandler.divtag = divtag; 
http.send(null); 
} 

 

Function where the error occurs in

 

function submitReview( pID, back, fromGoto ){
var errors = ''; var concat = '';

// I deleted the data validation checks

if( errors != '' )
	document.getElementById('reviewErrorID').innerHTML = '<FONT COLOR=red>' +  errors + '</FONT>';
else{
	document.getElementById('reviewErrorID').innerHTML = '';

	var div = 'searchDIV';
	if(fromGoto>0)
		div = 'contentDIV';

	var str  = 'insertReview.php?';
	    str += 'pID='+pID;
	    str += '&title='+encodeURIComponent(title);
	    str += '&gender='+gender;
	    str += '&weight='+weight;
	    str += '&height='+height;
	    str += '&bf='+bf;
	    str += '&pros='+encodeURIComponent(pros);
	    str += '&cons='+encodeURIComponent(cons);
	    str += '&supps='+supps;
	    str += '&back='+back;
	    str += '&fromGoto='+fromGoto;

	sendRequest(str,div);
}
}

 

The pros/cons variables can hold upto 1000 characters.

 

This function works fine if:

- I comment out the sendRequest(str,div); line

- both pros/cons have under 400 characters

 

This function gets an error if:

- both pros/cons have over 400 characters

 

The error I get when I submit the page is 'The system cannot locate the resource specifed'.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.