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