Mo, how familiar are you with the JS console? If you do this:

 dataFilter: function(data, type)
                        {
console.log("oriignal is "+data);
var temp = data.substring(10, data.length);
console.log("fixed is "+temp);
                return data.substring(10, data.length);
                        }

You can see in the console if your substring is correct. Please confirm
this.


On Wed, Nov 21, 2012 at 8:34 AM, Mo Lay <[email protected]> wrote:

>
> I think he is Andrew. I have added the $.ajaxsetup Ray was talking about
> .. Yes it has removed the tag but json still not working. So may be it is
> because that dev server we're using.
>
>
> here is my code :
>
> $.ajaxSetup({
>             dataFilter: function(data, type)
>                         {
>                 return data.substring(10, data.length);
>                         }
>
>            });
> $.ajax({
>
>   url: 'hardcoded-jsondata.cfm',
>   dataType: 'json',
>   type: 'GET',
>   success: function(res){
>   $("#example6grid").handsontable("loadData", res.data);
>   }
> });
>
> As a result it does not show anything no errors but no data.
>
> thought
>
> Thanks
>
>
>
> >Sounds like your senior developer is not a senior developer then.
> >
> >--
> >Regards,
> >Andrew Scott
> >WebSite: http://www.andyscott.id.au/
> >Google+:  http://plus.google.com/113032480415921517411
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5999
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to