Below is the code that help to get the site url in javascript, the purpose of this code is Sometime we need the site url in using js, in mine case i need to call ajax and want to set site base url so I have used this code and passes this in ajax URL. […]
Here’s the Code that I have used for maintaining the scroll of web page I have visited Previously using localStorage. $(function () {/scroll maintaining states/var storedResult = localStorage.getItem(“location”);var storedURL = localStorage.getItem(“url”);if (storedURL !== ‘undefined’ && storedResult !== null) {if (storedResult !== ‘undefined’ && storedResult !== null) { $(window).scrollTop(storedResult);}}$(window).scroll(function () {var scrolledDown = window.scrollY;var currentUrl = […]
Flask provides an easy solution and code for file uploading, we here learn how to upload file in Flask from a local machine to a server by using flask from an HTML file. In this tutorial, you will learn how to uploading a file and connecting the MySQL database using Flask. We fetch file by […]
In this tutorial, you are going to learn session and cookies in Flask for web development in Python, Cookies and session play a important role in Web development, cookies is use to store data in client side on browser in a simple text files. Cookies are used for user experience, track data activities for some […]
In this tutorial, we are going to learn web development with Python using the Flask framework. We have already learned about routing and basic requirements of the flask setup earlier, if you have not read then check out this. So now you have learned the basic and routing tutorial of web development using flask lets […]
Python is a beginner’s favorite programming language, We use python for different purposes like to build software, servers. Python is also used for web development as a server to create a web application. Python is created by Guido van Rossum in 1991. We can develop website on Python by using its Web frameworks:- Django Flask […]
In this tutorial, you will know how to export a query result in excel CSV from MySQL PHPMyAdmin. Sometime we need to just export the query result in excel or csv for reports purpose or for any purposes, so this will help you out to achieve this. You can use this below query:- The above […]
Sometime while working with function in php, we want to know that how many argument is passing in a function or a variable parameter. For solving this situation we need to count the variable parameter by this function func_num_args() – it will return the number of argument pass to this function. Example:- func_get_args — This […]
In this tutorial, we are going to know how to send emails using Sendgrid in PHP. SendGrid is a customer communication platform marketing email. For PHP, SendGrid also provides its library that can be used for calling the SendGrid API. Here is the Step you have to follow for API Setup on SendGrid:- Before using […]
In this tutorial, we are going to learn, how to use JWT in Codeigniter for creating API Authorization token. We will use a JWT Class in CodeIgniter for encoding and decoding. Purpose of Authorization token is to an authorized API call to secure access. JWT:- JSON Web Token proposed in December 2010 for HTTP Authorization headers […]