locked
How to add Bing web using JavaScript&Html5 in Windows Store App

    Question

  • I have add some websites in Windows Store App like <iframe id="webContentIframe" src="WebPage http url"></iframe>. It display normally.

    But I add the Bing web page like <iframe id="webContentIframe" src="BingWebPage(http: // www. bing. com) http url"></iframe>. It display with no search box and missing some buttons and links.

    Is there any other ways to display the correct Bing web page, or anything I should add?

    Monday, March 4, 2013 6:18 AM

Answers

  • The problem is not with rendering an external website (www.bing.com) in a Windows Store app, but rather the response that is generated by bing.com does not include the entire functionality of the page. In other words, bing.com is sending the response page without the search box. If you use fiddler tool (www.fiddlertool.com) to verify the traffic using the Windows Store app and a normal browser, you will understand the difference.

    To answer your question, it looks like you cannot include www.bing.com as a search engine from your Windows Store app.

    Thanks,

    Prashant.

    Tuesday, March 5, 2013 1:10 AM
    Moderator
  • Hi BeyongWang,

    If you want to integrate bing search function into your windows store app, you can consider using the bing search (web results) API which is now hosted in Windows Azure market place.


    #bing Search API – Web Results Only
    https://datamarket.azure.com/dataset/bing/searchweb


    And for windows store apps (either C# .NET or javascript), you can directly invoking the bing search service operation through HTTP requests. Here is the API quickstart and sample document:


    #Bing Search API – Quick Start and Code Samples 
    https://skydrive.live.com/view.aspx?resid=9C9479871FBFA822!112&app=Word&authkey=!ANNnJQREB0kDC04

    and if you have your own service server, you can also setup a proxy service which handle the bing search API call

    and return search result to clients. Then your windows store app can access your own service instead.

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, March 5, 2013 3:56 AM
    Moderator

All replies

  • The problem is not with rendering an external website (www.bing.com) in a Windows Store app, but rather the response that is generated by bing.com does not include the entire functionality of the page. In other words, bing.com is sending the response page without the search box. If you use fiddler tool (www.fiddlertool.com) to verify the traffic using the Windows Store app and a normal browser, you will understand the difference.

    To answer your question, it looks like you cannot include www.bing.com as a search engine from your Windows Store app.

    Thanks,

    Prashant.

    Tuesday, March 5, 2013 1:10 AM
    Moderator
  • Hi BeyongWang,

    If you want to integrate bing search function into your windows store app, you can consider using the bing search (web results) API which is now hosted in Windows Azure market place.


    #bing Search API – Web Results Only
    https://datamarket.azure.com/dataset/bing/searchweb


    And for windows store apps (either C# .NET or javascript), you can directly invoking the bing search service operation through HTTP requests. Here is the API quickstart and sample document:


    #Bing Search API – Quick Start and Code Samples 
    https://skydrive.live.com/view.aspx?resid=9C9479871FBFA822!112&app=Word&authkey=!ANNnJQREB0kDC04

    and if you have your own service server, you can also setup a proxy service which handle the bing search API call

    and return search result to clients. Then your windows store app can access your own service instead.

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, March 5, 2013 3:56 AM
    Moderator