使用Jquery的HTML中的多种语言

编程入门 行业动态 更新时间:2024-10-24 14:19:01
本文介绍了使用Jquery的HTML中的多种语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 我正在将HTML与J-query + Web服务一起使用以与后端连接.所有的Web服务都来自后端&它工作正常.现在,我要在网站中实现多种语言.我有点努力把它拿出来. 我附上了HTML&此处的jQuery代码

Hi All I am using HTML with J-query + Web services to connect with back end. All the web Services are coming from back end & it is working fine. Now the thing is i want to implement multiple language in the site. i''m little bit struggling to bring it out. I am attaching the HTML & Jquery code here

<!doctype html> <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <head> <title>Lumiin | CRM</title> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="copyright" content=""> <meta name="author" content=""> <meta name="language" content="English"> <meta name="robots" content="index, follow"> <meta property="fb:page_id" content="XXX"> <!-- XXX = Facebook Fan Page ID --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php include 'include/home-header.php'; ?> <script src="js/custom/registeration.js"></script> </head> <body class="login"> <div class="login-wrapper"> <!-- Notification --> <div id="errormsg"> </div> <!-- /Notification --> <!-- Full width content box --> <article class="content-box minimizer"> <header> <h2>Lumiin Admin</h2> <nav> <p id="logaction">Not a member yet? <a class="regtoggle" href="#">Join us</a>!</p> <p id="regaction">Already a member? <a class="regtoggle" href="#">Log in</a>!</p> </nav> </header> <section> <div id="logform"> <form> <dl> <dt> <label>Login</label> </dt> <dd> <input type="text" id="username" name="loginName" value=""> </dd> <dt> <label>Password</label> </dt> <dd> <input type="password" id="password" name="loginPass" value=""> </dd> <dt class="checkbox remember"><label>Remember me</label></dt> <dd class="remember"><input type="checkbox" name="loginRemeber"></dd> </dl> <button id="loginsubmit" type="button">Submit</button> </form> </div> <div id="regform"> <h3>Create an Account</h3> <form class="vertical-form"> <dl> <dt> <label class="mandatory">First Name:</label> </dt> <dd> <input type="text" id="firstname" name="firstname" value=""> </dd> <dt> <label class="mandatory">Last Name:</label> </dt> <dd> <input type="text" id="lastname" name="lastname" value=""> </dd> <dt> <label class="mandatory">Email:</label> </dt> <dd> <input type="text" id="email" name="email" value=""> </dd> <dt> <label class="mandatory">Password:</label> </dt> <dd> <input type="text" id="password" name=" password" value=""> </dd> <dt> <label class="mandatory">Reppassword:</label> </dt> <dd> <input type="text" id="reppassword" name="reppassword" value=""> </dd> <dt> <label>Country:</label> </dt> <dd> <select><option>Choose</option></select> </dd> <dt> <label>Industries:</label> </dt> <dd> <select> <option>Choose</option> <option>INSR</option> <option>BANK</option> <option>REALESTATE</option> </select> </dd> <!--<dt> <input type="text" value="Enter your company name"> </dt>--> <dt> <label>Role:</label> </dt> <dd> <select> <option>Choose</option> <option>Manager</option> <option>CA</option> </select> </dd> <dt class="checkbox remember"><label>Remember me</label></dt> <dd class="remember"><input type="checkbox" name="loginRemeber"></dd> <button onClick="addregisteration();" type="button">Submit</button><!--or <a href="#" class="regtoggle">Cancel, I already have an account</a>--> </form> </div> </section> <footer> <ul class="login-links"> <li><a href="#">Lost password?</a></li> </ul> </footer> </article> <!-- /Full width content box --> </div> <?php include 'include/home-footer.php'; ?> </body> </html>

Here the java script code is pasted :

Here the java script code is pasted :

function addregistration() { alert("kaaaarthick"); var form = $(this).parents('form:first'); var request = new Request(); request.service = "88.80.223.163:8080/lumiin-service/lumiin/control/user/registration"; request.method = "POST"; alert("==== form nameVal ===" + $("input[name='id']",form).val()); var reqdata = { "id": null, "fullName": null, "status": 0, "lastName": $("#lastname").val(), "firstName": $("#firstname").val(), "industryTypeId": { "name": "INSR", "id": 1, "description": "Insurance", "isDeleted": "N" }, "memeber": false, "profileType": "Manager", "userCode": "muy", "localOrg": "lnj", "authenticatedAccess": -1, "emailId": $("#emailid").val(), "uuid": null, "passWord": $("#password").val(), "abteilung": { "id": null, "description": null, "code": null, "parentId": null, "domainId": 0, "isDeleted": null }, "isDeleted": "N" }; request.data = JSON.stringify(reqdata); request.method = "POST"; RequestHandler(request,registerationdata1); } function registerationdata1(data){ //var cont = data.contents; if (typeof (data.contents) != "object") { if(data.contents.indexOf("\r\n\r\n") != -1) { data.contents = JSON.parse(data.contents.split("\r\n\r\n", 2)[1]); } } $("#successaddmsg").html('<div class="notification info"> <a href="#" class="close-notification tooltip" title="Success">x</a> <h4>Success</h4> <p>registered successfully</p> </div>'); processShowedit(data); }

Any one pls help me out to add German language to the above code. Any help will be appropriated ... 问候 Karthick

Any one pls help me out to add German language to the above code. Any help will be appropriated ... Regards Karthick

推荐答案

(this).parents('form:first'); var request = new Request(); request.service = "88.80.223.163:8080/lumiin-service/lumiin/control/user/registration"; request.method = "POST"; alert("==== form nameVal ===" + (this).parents('form:first'); var request = new Request(); request.service = "88.80.223.163:8080/lumiin-service/lumiin/control/user/registration"; request.method = "POST"; alert("==== form nameVal ===" +

("input[name='id']",form).val()); var reqdata = { "id": null, "fullName": null, "status": 0, "lastName": ("input[name='id']",form).val()); var reqdata = { "id": null, "fullName": null, "status": 0, "lastName":

("#lastname").val(), "firstName": ("#lastname").val(), "firstName":

更多推荐

使用Jquery的HTML中的多种语言

本文发布于:2023-11-01 20:28:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550332.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多种   语言   Jquery   HTML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!