开发者

Getting JScript error with Bing search box

开发者 https://www.devze.com 2023-02-05 01:32 出处:网络
I am trying to use a Bing search box on my website. I have just pasted the HTML code supplied by the Bing website and when I run my .aspx, I getting this error in .js file from which I am given the op

I am trying to use a Bing search box on my website. I have just pasted the HTML code supplied by the Bing website and when I run my .aspx, I getting this error in .js file from which I am given the option to break, continue or ignore.

The error is "Microsoft JScript runtime error: object expected". I just had put up this file in my source.

<meta name="Search.WLSearchBox" content="1.1, en-IN" />
<div id="WLSearchBoxDiv" style="float:right">
<table cellpadding="0" cellspacing="0" style="width:180px; height:28px;"><tr id="WLSearchBoxPlaceholder"><td style="width:100%; border:solid 1px #cccccc; border-right-style:none; padding-left:10px; padding-right:10px; vertical-align:middle;"><input id="WLSearchBoxInput" type="text" value="&#x4c;&#x6f;&#x61;&#x64;&#x69;&#x6e;&#x67;&#x2e;&#x2e;&#x2e;" disabled="disabled" style="background-image:url(http://www.bing.com/siteowner/s/siteowner/searchbox_background_k.png); background-position:right; background-repeat:no-repeat; font-family:Arial; font-size:14px; color:#000000; width:100%; border:none 0 transparent;"/></td><td style="border:solid 1px #cccccc; border-left-style:none; padding-left:0px; padding-right:3px;"><input id="WLSearchBoxButton" type="image" src="http://www.bing.com/siteowner/s/siteowner/searchbutton_normal_k.gif" style="border:none 0 transparent; height:24px; width:24px; vertical-align:top;"/></td></tr></table>
    <script type="text/javascript" charset="utf-8">
        var WLSearchBoxConfiguration =
    {
        "global": {
            "serverDNS": "www.bing.com",
            "market": "en-US"
        },
        "appearance": {
            "autoHideTopControl": false,
            "width": 600,
            "height": 400,
            "theme": "Green"
        },
        "scopes": [
            {
                "type": "web",
                "caption": "&#x57;&#x65;&#x62;&#x41;&#x73;&#x73;&#x69;&#x73;&#x74;",
                "searchParam": "site:www.webassist.in"
            }
            ,
            {
                "type": "web",
                "caption": "&#x57;&#x65;&#x62;",
                "searchParam": ""
            }
        ]
    }
    </script>
    <script type="text/javascript" charset="utf-8" src="http://www.bing.com/bo开发者_开发百科otstrap.js?market=en-US&ServId=SearchBox&ServId=SearchBoxWeb&Callback=WLSearchBoxScriptReady"></script>

The error is I think in this last script file named ^TransientScriptDocument167.js


Hmm, it may be a file that the bootstrap js is including through one of its dynamic scripts, try opening firefox and if you have developer tools installed, take a look at the rendered source.

If that is the case then then it is up to the MS devs to fix.

0

精彩评论

暂无评论...
验证码 换一张
取 消