By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

To remove limitation on data send using JSONP

P: 23
Can we remove the limitation on data send using JSONP. Below is my code. What i am trying to do is to pass 3000 characters(actuallly a image which is converted to base64 data) at a time to service(serviceCall.ashx). As my data is large up to 30,000-40,000 characters i am dividing it in packets(3000 each ) and then sending it. Is there any way i can send this complete data in one go. Reason for switching to JSONP is to avoid the pop up on IE which says 'This page is accessing info that is not.....'. I know as JSONP uses GET method there would obviously a data limitation but is there any way to work around this problem.
Expand|Select|Wrap|Line Numbers
  1. $.ajax({
  2.         type: "GET",
  3.         url:'http://sys108/restnew1/serviceCall.ashx',
  4.         dataType: "jsonp",
  5.         contentType: "application/json; charset=utf-8",
  6.         async: false,
  7.         data: { 
  8.          datachunk: imgdatachunk,
  9.          packetlen: imgdatachunk.length, 
  10.          imagekey: imageid },
  12.          success: function (data) {
  13.   },
  14.          error: function (jqXHR, textStatus, errorThrown) {
  15.                  if (window.console) console.log("Error... " + textStatus + "        " + errorThrown);
  16.                                             }
  17.                                         });
Oct 4 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
may be something like this: helps?
Oct 4 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.