This repository was archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
getting error while loading bingAPI #83
Copy link
Copy link
Open
Description
jquery-translate version: jQuery nodesContainingText plugin Version: 1.1.2
jQuery version:1.3.2
browser: chrome
OS: windows
Hello Balazs Endresz,
Here is my code what am using in my page to translate the value which we are
entering into the textbox into other textbox.
$(document).ready(function(){
$('#textbox1').keyup(function(event) {
var lang_from = "english";
var lang_to = "spanish";
var sourceText = $('#textbox1').val();
$.translate.load("BCF031ED6CFCB1C03D51331D3839F32132E55CA0");
$.translate(sourceText,lang_from,lang_to, {
start: function(){ $('#throbber').show() },
complete: function(translation){
$('#textbox2').val(translation);
$('#throbber').hide();
},
error: function(){ $('#throbber').hide() }
});
});
});
When i tried to run this page, i got the error as,
$.ajax({url:
"http://api.microsofttranslator.com/V2/Ajax.svc/GetLanguagesForTranslate",
dataType: "jsonp", jsonp: "oncomplete", crossDomain: true, context: this, data:
{appId: appid}}) is undefined
[Break On This Error] data: {appId: appid}
on the jquery_transator script - line no. 659.
I've used bingAppId in my code.
Please help me to solve this issue.
Thanks,
Mani
Original issue reported on code.google.com by [email protected] on 6 Dec 2011 at 5:40