Home / All Articles

Blog Archives

How to Get Query Strings and Parameters in node js

Introduction We’ll be going over how to extract information from a URL in node.js. Specifically, how do we extract information from a query string and URL path parameters? In this article, I assume you have some experience with Node.js and creating Express.js servers (or at least simple ones) then you …

Read More »

How to submit ckeditor textarea value in html format or text via form?

Ajax jQuery textarea CKEDITOR form submit code First you include some important library. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="https://cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/ckeditor/4.5.9/adapters/jquery.js"></script> Ajax code $(document).ready(function(){ $('#add_page_details_to_DB').click(function() { var dataStrings = $('form#create_page_to_DB').serialize(); //for ckeditor textarea field for (instance in CKEDITOR.instances) { CKEDITOR.instances[instance].updateElement(); } $.ajax({ url: "/admin/add-city-content", type: "POST", data: dataStrings, success: function(response) …

Read More »

jquery onchange input field value in input field demo

<html> <head> <title>Text Object Value</title> <script type="text/javascript"> function passInInput() { document.getElementById("output").value = document.getElementById("input").value; } </script> </head> <body> Enter lowercase letters for conversion to uppercase:<br> <form name="converter"> <input type="text" name="input" id="input" value="sample" onchange="passInInput()" /><br /> <input type="text" name="output" id="output" value="" /> </form> </body> </html>

Read More »