balazs-endresz/jquery-translate

getting error while loading bingAPI

GoogleCodeExporter opened this issue · 2 comments

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 muthuraj...@gmail.com on 6 Dec 2011 at 5:40

I have sent Balazs an Email with my thoughts on the same problem. The 
information provided in the Microsoft Azure Marketplace, related to the use of 
the Translator Service, bears no relation to the way the URL is formatted in 
translate.js, particularly with reference to the need for both a UserID and 
AppID. I suspect Microsoft have changed the goalposts.

Original comment by mark.ric...@conkas.com on 7 Dec 2011 at 11:55

Hello Mark,

Is there any improvement in this bug? Did you get any idea or reply about how 
to solve this one. I'll be happy if you shares the information, and will work 
further in the development.

Thanks,
Mani

Original comment by muthuraj...@gmail.com on 3 Jan 2012 at 6:36