2011-01-15 2 views
0

J'essaie d'utiliser une zone de recherche Bing sur mon site Web. Je viens de coller le code HTML fourni par le site Web de Bing et lorsque j'exécute mon .aspx, j'obtiens cette erreur dans le fichier .js à partir de laquelle j'ai l'option de rompre, de continuer ou d'ignorer.Erreur JScript avec le champ de recherche Bing

L'erreur est "Erreur d'exécution Microsoft JScript: objet attendu". Je viens de mettre en place ce fichier dans ma 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/bootstrap.js?market=en-US&ServId=SearchBox&ServId=SearchBoxWeb&Callback=WLSearchBoxScriptReady"></script> 

L'erreur est que je pense que dans ce dernier fichier de script nommé^TransientScriptDocument167.js

Répondre

0

Hmm, il peut être un fichier que le js d'amorçage est compris par l'un de ses scripts dynamiques, essayez d'ouvrir Firefox et Si vous avez installé des outils de développement, jetez un oeil à la source rendue.

Si tel est le cas, il appartient alors aux développeurs MS de corriger.

+0

Je ne reçois pas cette erreur dans Firefox: -/ – Cipher

+0

Est-ce actuellement sur un site en direct? – picus

+0

umm .. Pas encore en ligne: - / – Cipher