December 2013 archive

What is Internationalization and localization?

One of the best way to reach larger audience across the globe is to have your applications in multiple languages. It is essential to understand some terminology. What is Internationalization? Internationalization refers to the ability of an application to be localized. What is Localization? The term localization refers to the adaptation of an application to …

Continue reading

Permanent link to this article: https://blog.openshell.in/2013/12/what-is-internationalization-and-localization/

How to remove special characters using jQuery ?

jQuery code can be used to remove special characters. [js] <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#input_field_name").keyup(function(event) { original_val = jQuery("#input_field_name").val(); rep_value = name.replace(/[^a-zA-Z 0-9.]+/g,”); jQuery("#input_field_name").val(rep_value); }); }); </script> [/js]

Permanent link to this article: https://blog.openshell.in/2013/12/how-to-remove-special-characters-using-jquery/

Submitting a form using jQuery AJAX

HTML form, that’s to be submitted by jQuery AJAX. [html] <form id=”employee” action=”employee.php” method=”POST” name=”contact”> <div>Name: <input id=”name” type=”text” name=”name” size=”30″ value=”" /></div> <div>Email: <input id=”email” type=”text” name=”email” size=”30″ value=”" /></div> <div>Phone: <input id=”phone” type=”text” name=”phone” size=”30″ value=”" /></div> <div><input id=”submit_btn” type=”submit” name=”submit” value=”Send” /></div> </form> <div id=”result”></div> [/html] Java Script code using jQuery AJAX …

Continue reading

Permanent link to this article: https://blog.openshell.in/2013/12/submit-form-using-jquery-ajax/

Dynamically create form in javascript on fly

To create a form dynamically using JavaScript on fly of the webpage. This which helps to create form and input controls dynamically. [javascript] /* To create form with javascript */ var form = document.createElement("form"); form.setAttribute(‘method’,"post"); // form method form.setAttribute(‘action’,"test.php"); // form action url form.setAttribute(‘name’,"frmName"); // form name form.setAttribute(‘id’,"frmId"); // form ID form.setAttribute(‘target’,"_blank"); // form target …

Continue reading

Permanent link to this article: https://blog.openshell.in/2013/12/dynamically-create-form-in-javascript-on-fly/