Posts

Showing posts from February, 2018

Jquery href Click

HTML Code <a class="sign_new" href="#sign_up" data-value="110">Sign up</a> JavaScript+jQuery 1.8.3 $(document).ready(function(){    $('a[href="#sign_up"]').click(function(){       alert('Sign new href executed.');       var a = $(this).data("value");       alert(a);         }); }); To add a certain value to anchor tag? <a href="#" data-value="1">Text</a> <script type="text/javascript"> $("a").click(function(){     i=$(this).data("value");     $('#square').animate({'left': i * 360}); }); </script> DEMO: http://jsfiddle.net/pnGbP/

Using Jquery Ajax to retrieve data from Mysql

For retrieving data using Ajax+jQuery, you must write the following code:  <html>  <script type="text/javascript" src="jquery-1.3.2.js"> </script>  <script type="text/javascript">  $(document).ready(function() {     $("#display").click(function() {                      $.ajax({    //create an ajax request to display.php         type: "GET",         url: "display.php",                     dataType: "html",   //expect html to be returned                        success: function(response){        ...

Usefull Links

 What is an API? (Application Programming Interface) --  https://www.mulesoft.com/resources/api/what-is-an-api Framework vs Library vs Platform vs API vs SDK vs Toolkits vs IDE https://medium.com/@shashvatshukla/framework-vs-library-vs-platform-vs-api-vs-sdk-vs-toolkits-vs-ide-50a9473999db  JavaScript Tutorial -- https://javascript.info/ Websites Every Developer Should Visit: Programming News, Tutorials -- https://stackify.com/18-websites-every-developer-should-visit-right-now/ Gmail SMTP Debug Error https://stackoverflow.com/questions/20337040/gmail-smtp-debug-error-please-log-in-via-your-web-browser How to determine a user's IP address in node https://stackoverflow.com/questions/8107856/how-to-determine-a-users-ip-address-in-node request-ip Module https://www.npmjs.com/package/request-ip  Node.js get client IP address · GitHub https://gist.github.com/qiao/1626318#gistcomment-594711   ///****************************************************************...