Jump to content

Javascript Error!!! :(


adam84

Recommended Posts

I am getting the following Javascript error "the system cannot locate the resource specified".

 

I have a form, where the user enters some data. The user then clicks the save button, which calls a javascript function which does some validation and if everything is good, i use ajax to insert the data into my database. Simple stuff.

 

In my form I have a textarea, If i enter a few sentences it works perfect. But if I enter like 200 words in one of the textareas, I get that javascript error.

 

I am just confused on why that error is coming up, when it works fine in one instance, then its screws up in the next.

 

This is the line where the error occurs


var desc = document.getElementById('desc').value;
...
...
...
sendRequest('updateInfo.php?id='+id+'&sDate='+sDate+'&eDate='+eDate+'&title='+encodeURIComponent(title) +'&serious='+serious+'&far='+far+'&result='+result+'&description='+encodeURIComponent(desc), 'contentDIV');

*desc is the variable that holds the lengthy text

 

Any ideas? Any suggestions? Thanks

Link to comment
https://forums.phpfreaks.com/topic/88327-javascript-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.