Subversion Repositories munaweb

Rev

Rev 121 | Rev 128 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 121 Rev 126
Line 822... Line 822...
822
    url += "&siteid=0";
822
    url += "&siteid=0";
823
    url += "&MaxEntries=1";
823
    url += "&MaxEntries=1";
824
    url += "&MessageID=";
824
    url += "&MessageID=";
825
    url += index;
825
    url += index;
826
    if (isNumeric(identifier)) {
826
    if (isNumeric(identifier)) {
827
        url += "&ProductID.Type=EAN&ProductID.Value=" + identifier.trim();
827
        url += "&ProductID.Type=UPC&ProductID.Value=" + identifier.trim();
828
    } else {
828
    } else {
829
        url += "&QueryKeywords=";
829
        url += "&QueryKeywords=";
830
        url += encodeURIComponent(identifier.trim().replace(/ /g, "+"));
830
        url += encodeURIComponent(identifier.trim().replace(/ /g, "+"));
831
    }
831
    }
832
 
832
 
Line 837... Line 837...
837
            _cb_getTitleFromeBay(JSON.parse(this.responseText));
837
            _cb_getTitleFromeBay(JSON.parse(this.responseText));
838
        }
838
        }
839
    };
839
    };
840
 
840
 
841
    xhttp.open("GET", configProxyUrl, true);
841
    xhttp.open("GET", configProxyUrl, true);
842
    xhttp.setRequestHeader("X-Proxy-Url", encodeURI(url));
842
    xhttp.setRequestHeader("X-Proxy-Url", /*encodeURI(*/url/*)*/);
843
    xhttp.send();
843
    xhttp.send();
844
 
844
 
845
    return false;
845
    return false;
846
}
846
}
847
 
847
 
Line 1154... Line 1154...
1154
    url += "&appid=" + configAppid;
1154
    url += "&appid=" + configAppid;
1155
    url += "&responseencoding=JSON";
1155
    url += "&responseencoding=JSON";
1156
    url += "&siteid=0";
1156
    url += "&siteid=0";
1157
    url += "&MaxEntries=1";
1157
    url += "&MaxEntries=1";
1158
    if (isNumeric(keyword)) {
1158
    if (isNumeric(keyword)) {
1159
        url += "&ProductID.Type=EAN&ProductID.Value=" + keyword.trim();
1159
        url += "&ProductID.Type=UPC&ProductID.Value=" + keyword.trim();
1160
    } else {
1160
    } else {
1161
        url += "&QueryKeywords=";
1161
        url += "&QueryKeywords=";
1162
        url += encodeURIComponent(keyword.trim().replace(/ /g, "+")).substr(0, 98);
1162
        url += encodeURIComponent(keyword.trim().replace(/ /g, "+")).substr(0, 98);
1163
    }
1163
    }
1164
 
1164