none
about the ms bing text translator error. RRS feed

  • Question

  • I suggested your solution "Bing text translator" to my customer as a way to automatically change the korean characters to various languages in the web service page.

    Therefore, I tested to see your solution before I apply.

    so We've created a test system as your solution guide by creating an HTML document with javascript that i could test while checking documents on the internet.

    And we have tested the results by calling the text translator API and the result is always failed with a message about the failure is shown.

    Please check bellow of my testing code with error.


    1. Type : HTML File (included javascript)

    2. API Call Methodology : jquery $.ajax

       for a instance,

         var dataObj = {

    appId: 'Bearer 43a85f62-4d1e-4783-b310-a44c005f393b bf85bd50-39fd-4a9e-b3e4-3cbb67dceff7',  ===> How to make the appId

    from : 'kr',

                 to: 'de',

                 text: textStr

         };

         $.ajax({

                url: "http://api.microsofttranslator.com/V2/Ajax.svc/Translate",

                data: dataObj,

          type : "GET",

                dataType: 'jsonp',

          jsonp : 'oncomplete',

         jsonCallback : 'ajaxTranslateCallback'

         })

         .done(function (jqXHR, textStatus, errorThrown) {

         

         })

         .fail(function (jqXHR, textStatus, errorThrown) {

            ===> always fail.

         });

         function ajaxTranslateCallback(response) {

             alert('ajaxTranslateCallback('+response+')');

         };

     3. Error Message 

        parser error. jQuery111006460342485671373_1524115990232 was not called

    If it's possible, could you tell me how to get the right "appId" code ?

    and If you have sample guide for code developing please send me as soon as possible. 


    Thank you!

    Thursday, April 19, 2018 8:11 AM