문제

I just downloaded the Bing API 2.0 SDK. There are several html files in Bing API 2.0 SDK\Samples\JSON directory. I replaced the AppId in the JavaScript with my new AppId. These pages run fine in IE but I got 'syntax error' in Firefox, Firebug console. Does anyone have similar issues? What is in the page that is causing the 'syntax error'? Thank you very much. Jazure

도움이 되었습니까?

해결책

The culprit is the empty script src.

<script id="searchCallback" type="text/javascript" src="">
</script>

I fixed the sample code and is now working with most browsers as seen in http://www.pcrethinking.com/bingapi/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top