hi friends , i found a code for tamil language comment box in blogger and also its executed successfully but one problem i cant post a comment . only box alone coming in this code . please check it and give me a proper code .

<script src="https://www.google.com/jsapi" type="text/javascript">
</script>
<script type="text/javascript">

      // Load the Google Transliterate API
      google.load("elements", "1", {
            packages: "transliteration"
          });

      function onLoad() {
        var options = {
          sourceLanguage: 'en',
          destinationLanguage: ['ta',],
          shortcutKey: 'ctrl+g',
          transliterationEnabled: true
        };

        // Create an instance on TransliterationControl with the required
        // options.
        var control =
            new google.elements.transliteration.TransliterationControl(options);

        // Enable transliteration in the textfields with the given ids.
        var ids = [ "transl1", "transl2" ];
        control.makeTransliteratable(ids);

        // Show the transliteration control which can be used to toggle between
        // English and Tamil and also choose other destination language.
        control.showControl('translControl');
      }
      google.setOnLoadCallback(onLoad);

    </script><script src="https://www.google.com/uds/?file=elements&amp;v=1&amp;packages=transliteration" type="text/javascript"></script><script src="https://www.google.com/uds/api/elements/1.0/2d89ac65281c5ee3c7e4d40778e41f97/transliteration.I.js" type="text/javascript"></script>

<div id="translcontrol"></div>
<textarea id="transl1" style="width: 350px; height: 100px; line-height: 1.5em; font-family: Arial,Helvetica,sans-serif; font-size: 14px;"></textarea>

Check the snapshot below . i can type in the comment box but i dont have option to post . pls help me

[IMG]http://i53.tinypic.com/r0o9jo.jpg[/IMG]

Recommended Answers

All 5 Replies

Your textarea and your button must be inside form. you should also set action page for the form, where you will actually insert comment in your table.

@urtrivedi i got this code through google . its the code of box translator . . check that image . if i type in that box it will change automatically to tamil language but there is no option to post that comment in blog post . pls help me

Your textarea and your button must be inside form. you should also set action page for the form, where you will actually insert comment in your table.

i got this code through google . its the code of box translator . . check that image . if i type in that box it will change automatically to tamil language but there is no option to post that comment in blog post . pls help me

YOu have to develop it on your own. google will only give translater script. rest thing you have to develop.

YOu have to develop it on your own. google will only give translater script. rest thing you have to develop.

if u known the code means please share it here . . help me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.