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=""></script> <script src=""></script> <script src=""></script> <script src="//"></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 »