Click here to Skip to main content
16,011,702 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi,
I have java script file for multiple languages. It works perfectly on text boxes and text areas in asp.net. But while implementing it on editor it is not working. Some one told me ," it works on text area and text box
only but not for editable iframe/div. If the ajax editor in turn uses
editable iframe/div box, you have to manually add those to the java script Handler object."
What does it means and what should I do?


this is my code:-

XML
<form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <table>
        <tr>
        <td>
            <cc1:Editor ID="Editor1" runat="server" ActiveMode="Html" />
        </td></tr></table>

        <script language="javascript" type="text/javascript">

          <big>var pph = new PramukhPhoneticHandler();
          pph.convertToIndicIME("Editor1", document.getElementById('Editor1'), 'gujarati');
          pph.convertToIndicIME("TextBox1", document.getElementById('TextBox1'), 'gujarati');
</big>


            // setToggleKey function is optional. The keycode for F12 key is 123. It means that
            // by pressing F12, user can toggle between selected Indic Language and English. Default is also F12.
            // You can pass 115 instead of 123 for changing a toggle key to F4.
            // pph.setToggleKey(123);
                    </script>
        <%--<script type="text/javascript" language="javascript">
            var pph = new PramukhPhoneticHandler();
            pph.convertPageToIndicIME('devanagari');


        </script>
--%>
    </div>
    </form>
</body>
</html>


when i tested this code in text box i can use other language but in editor i cant.
Posted
Updated 20-Mar-12 20:37pm
v2
Comments
Sergey Alexandrovich Kryukov 21-Mar-12 2:18am    
"Not working" is not informative. Could you create a short but complete code sample manifesting the problem? Post it using "Improve question" above.
--SA
betu.009 21-Mar-12 2:43am    
I just improve question just have a look please...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900