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="Loading..." 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": "WebAssist",
"searchParam": "site:www.webassist.in"
}
,
{
"type": "web",
"caption": "Web",
"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
Je ne reçois pas cette erreur dans Firefox: -/ – Cipher
Est-ce actuellement sur un site en direct? – picus
umm .. Pas encore en ligne: - / – Cipher