Executing JavaScript .JS file

About JavaScript: is a Server side scripting language (as similar to php) files are saved with .js extension (which is ) is a Sun MicroSystems (and later Oracles) and NetScape team developed system Microsoft’s developed compatible version is called JScript   Executing JavaScript: You a browser to execute the JavaScript code That is, you can NOT directly execute a JavaScript .js file instead you need to embed it in HTA/HTML pages. In a browser, you can run a JavaScript Onliners in the address bars example: JavaScript: alert("it ran in browser address bar"); Advertisements


FIX: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)

Error: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO) Scenario: After very first setup of your own wamp/xamp with MySQL DB and updated password for DB root user, you notice that your php code fails to connect/communicate to the mySQL DB with above error.   CAUSE and FIX: This error message indicates that you are attempting to connect/logon to the MySQL with reported user “root” without specifying any password or it’s password value is NULL.   To fix it, you need to provide the appropriate root user password for on your MySQL DB connection string or call.   […]

Understanding how URLs are linked to Code in the HTML pages

Whenever we launch a website in the browser, it then gets modified as we navigate the other elements on that web site page.  We notice that, the modified URL will mostly have the website actual website but with more strings attached to it starting with a ?. Example: We open a main web site  page say http://www.yahoo.com/ Then we navigate to Yahoo mail login page: https://login.yahoo.com/?.src=ym&.intl=us&.lang=en-US&.done=http://mail.yahoo.com    In the above we see the web site of yahoo.com is having URL with   https://login.yahoo.com/   +  ?  + .src=ym&.intl=us&.lang=en-US&.done=http://mail.yahoo.com   This process of URL modification is called the URL encoding.  This is […]