WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

getting error while loading bingAPI #83

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions