{"id":298,"date":"2011-08-23T13:45:57","date_gmt":"2011-08-23T19:45:57","guid":{"rendered":"http:\/\/www.heiserfamily.com\/happenings\/?p=298"},"modified":"2011-08-23T14:13:12","modified_gmt":"2011-08-23T20:13:12","slug":"bing-search","status":"publish","type":"post","link":"http:\/\/www.heiserfamily.com\/happenings\/?p=298","title":{"rendered":"Bing Search"},"content":{"rendered":"<ul class='mp-share-buttons'><li class='mp-share-buttons-fb'><div class='fb-like' data-href='http%3A%2F%2Fwww.heiserfamily.com%2Fhappenings%2F%3Fp%3D298' data-width='' data-layout='button' data-action='like' data-size='small' data-share='true'><\/div><\/li><li class='mp-share-buttons-tw'><a class='twitter-share-button' href='https:\/\/twitter.com\/share'?url='http%3A%2F%2Fwww.heiserfamily.com%2Fhappenings%2F%3Fp%3D298' data-via='Breaker119'><\/a><\/li><li class='mp-share-buttons-li' style='margin-top:-10px !important;'><script type='in\/share' data-url='http:\/\/www.heiserfamily.com\/happenings\/?p=298'><\/script><\/li><\/ul><div class='mp-share-clear-fix'><\/div><p>Friends, I am by no stretch what one would call a developer, but lack of resources often requires me to dive into code on my own.  I only needed to add a simple web search box to my SharePoint landing page, but I couldn&#8217;t find a simple way.  Google has a simple method, but I wanted to use Bing as I find their search results often more accurate.  Plus, if I&#8217;m already in the MS stack I may as well go ahead and use their brand.  <\/p>\n<p>Unfortunately, Microsoft stopped supporting their method of simply adding a search box in favor of the more robust Bing API.  More power to them, but as I stated before &#8211; <strong>I am not a developer<\/strong>.  APIs and API documentation are useless to me unless they come with exact code samples.  I could not find a one&#8230;lot&#8217;s of code, but none of it complete.  After doing some research and scrounging I ended up with this:<\/p>\n<p><code language=\"html\"><br \/>\n&lt;FORM method=GET action=&#34;http:&#47;&#47;www.bing.com&#47;search&#34; target=&#34;_blank&#34;&gt;<br \/>\n   &lt;A HREF=&#34;http:&#47;&#47;www.bing.com&#47;&#34; target=&#34;_blank&#34;&gt;<br \/>\n\t  &lt;IMG SRC=&#34;&#47;PublishingImages&#47;img_windowsBingLogo.png&#34; border=&#34;0&#34;&gt;<br \/>\n   &lt;&#47;A&gt;<br \/>\n   &lt;INPUT TYPE=text name=search_phrase size=42 maxlength=255 value=&#34;&#34;&gt;<br \/>\n   &lt;INPUT type=&#34;image&#34; SRC=&#34;http:&#47;&#47;www.bing.com&#47;siteowner&#47;s&#47;siteowner&#47;Spyglass_20x20.gif&#34; alt=&#34;Search Bing!&#34;&gt;<br \/>\n&lt;&#47;FORM&gt;<br \/>\n<\/code><\/p>\n<p>Make an html out of it and render it in a Page Viewer web part.  It works like a champ for me.<\/p>\n<span id='mp-share-below-action'><\/span><ul class='mp-share-buttons'><li class='mp-share-buttons-fb'><div class='fb-like' data-href='http%3A%2F%2Fwww.heiserfamily.com%2Fhappenings%2F%3Fp%3D298' data-width='' data-layout='button' data-action='like' data-size='small' data-share='true'><\/div><\/li><li class='mp-share-buttons-tw'><a class='twitter-share-button' href='https:\/\/twitter.com\/share'?url='http%3A%2F%2Fwww.heiserfamily.com%2Fhappenings%2F%3Fp%3D298' data-via='Breaker119'><\/a><\/li><li class='mp-share-buttons-li' style='margin-top:-10px !important;'><script type='in\/share' data-url='http:\/\/www.heiserfamily.com\/happenings\/?p=298'><\/script><\/li><\/ul><div class='mp-share-clear-fix'><\/div>","protected":false},"excerpt":{"rendered":"<p>Friends, I am by no stretch what one would call a developer, but lack of resources often requires me to dive into code on my own. I only needed to add a simple web search box to my SharePoint landing &hellip; <a href=\"http:\/\/www.heiserfamily.com\/happenings\/?p=298\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62],"tags":[67,66,90],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-sharepoint","tag-bing","tag-search","tag-sharepoint"],"_links":{"self":[{"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":20,"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":415,"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/415"}],"wp:attachment":[{"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.heiserfamily.com\/happenings\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}