File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 console . log ( 'asin ' + asin ) ;
3030 var imageUrl = 'http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=' + asin + '&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1' ;
3131 console . log ( imageUrl ) ;
32- $ . ajax ( {
33- type : "GET" ,
34- dataType : "jsonp" ,
35- jsonpCallback : 'jsonCallback' ,
36- url : baseUrl + 'url=' + encodeURIComponent ( imageUrl ) ,
37- contentType : "application/json; charset=utf-8" ,
38- async : false ,
39- error :jsonCallback ,
40- success :jsonCallback
41- } ) ;
32+ // $.ajax({
33+ // type: "GET",
34+ // dataType: "jsonp",
35+ // jsonpCallback: 'jsonCallback',
36+ // url: baseUrl + 'url=' + encodeURIComponent(imageUrl),
37+ // contentType: "application/json; charset=utf-8",
38+ // async: false,
39+ // error:jsonCallback,
40+ // success:jsonCallback
41+ // });
42+ jsonCallback ( {
43+ url : imageUrl
44+ } )
4245 } ;
4346
4447 var jsonCallback = function ( data ) {
You can’t perform that action at this time.
0 commit comments