Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
My code as follows

$.ajax({

type: "POST",
url: "VendorMaster.aspx/SanDocumentData",
data: '{reqvehicleregistrationname: "' + vehicleregistrationname + '",reqvehicleregistrationpath:"' + vehicleregistrationpath + '" }',

contentType: "application/json; charset=utf-8",
responseType: "json",
cache: false
}
);

From the above code the below line exceed 120 characters, how to split .

data: '{reqvehicleregistrationname: "' + vehicleregistrationname +
'",reqvehicleregistrationpath: "' + vehicleregistrationpath + '" }',

how to do.

What I have tried:

JavaScript
 My code as follows
 
$.ajax({
                             
 type: "POST",
 url: "VendorMaster.aspx/SanDocumentData",
data: '{reqvehicleregistrationname: "' + vehicleregistrationname + '",reqvehicleregistrationpath:"' + vehicleregistrationpath + '" }',

contentType: "application/json; charset=utf-8",
responseType: "json",
      cache: false
           }
           );

 From the above code the below line exceed 120 characters, how to split .

data: '{reqvehicleregistrationname: "' + vehicleregistrationname +
'",reqvehicleregistrationpath: "' + vehicleregistrationpath + '" }',

how to do.
Posted
Updated 11-Oct-16 21:25pm
Comments
#realJSOP 12-Oct-16 7:28am    
Why are you asking this question again?

1 solution

Don't use such long names.
Even with single character "variables" you are still looking at over 60 characters for your string:
reqvehicleregistrationname: "?",reqvehicleregistrationpath: "?"
So with pretty much any kind of file path you are going to exceed 120 characters very quickly.
If you need a shorter string, shrink the content. And that means not using most of it for names, I'm afraid!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900