AB de Villiers made fastest Century in world cup Cricket History 2015
Author: Sijo Thomas
Applications invites for various posts in Kochi Metro Rail ltd
Last date of Application: march 18 2015 How to apply Address to send Applications Dy. General Manager (HR & Training), Kochi Metro Rail Ltd., 8th Floor, Revenue Tower, Park Avenue, Kochi- 682011 Download Application Form I.OPERATIONS DEPARTMENT – TOTAL POSTS = 74 Name of the post Addl. General Manager (Operations) Total No. of posts 1…
Seven Emirates in UAE
1.Abudhabi 2,Ajman 3.Dubai 4.Fujaira 5.Sharjah 6.Ras Al Kahimah 7.Umm Al Qaiwan
Get URL parameters using javascript or jquery
Example URL https://smarttips.in?newsletter=1 <script> var queryString = (function(url) { if (url == “”) return {}; var smart = {}; for (var i = 0; i < url.length; ++i) { var pS=url[i].split(‘=’, 2); if (pS.length == 1) smart[pS[0]] = “”; else smart[pS[0]] = decodeURIComponent(pS[1].replace(/+/g, “””)); } return pS; })(window.location.search.substr(1).split(‘&’)); $(document).ready(function(){ if(queryString[“newsletter”]==1) { alert(‘Got it!!!’) } }); </script>
Restrict ckeditor to basic toolbar
We can use javascript or jquery to apply ckeditor configuration HTML <textarea id=”textarea” cols=”15″ name=”txtdesc” rows=”5″></textarea> Javascript Must be included ckeditor.js Take the instance of ckeditor and replace with new configuration <script type=”text/javascript”> var editor = CKEDITOR.instances[‘txtdesc‘]; if (editor) { editor.destroy(true); } var editorContent =CKEDITOR.replace(‘txtdesc‘, { toolbar: [ { name: ‘document’, items: [ ‘Source’, ‘-‘,…
