Category Archives: Web Development

Multilanguage support & Internationalization (i18n) in Java Web Application


1. Create a Simple dynamic web project in eclipse and name it as “Test”. 2. create a package “com.example.test and place the property file inside the package 3. create the JSP page with name “index.jsp” and place the code below in that page. 4 create the JSP page with name “tt.jsp” and place the below [...]

Change browser url without page reloading with ajax request using JavaScript, HTML5 history API, jQuery, PHP like Facebook, Github navigation menu


When you are working with ajax, the problem is that after you have loaded some content using ajax, you can’t change the URL of the browser according to the content. Because of this, reloading the page causes the new ajax content to disappear and it shows the previous page. Although you can resolve this problem [...]

Facebook, Twitter like JSON feeds with PHP, JavaScript, Ajax, jQuery, MySQL


flow

When you go to Facebook or Twitter, The first thing you notice is that the page is loaded and within seconds the status feeds will be displayed. That is because the page is loaded first and after that it sends an ajax request to another page and gets back the feeds in the JSON format [...]

Influence of American English vs British English


Web designers and web developers would often misspell “Center” (US English) as “Centre” (UK English). While developing a new theme, suddenly my mind got diverted into knowing when did this center vs center originate and which one is dominating now? so, i did some research online and finally ended up with the help of Google [...]

Facebook like friendly time with GMT and UTC using PHP & Javascript


Usually when we want to insert timestamps in a database. We will either put the column default as ‘Current Timestamp’ or insert the value ‘date(“Y-m-d H:i:s”)’ into that column. But both the methods will result in inserting only the server time in the database and visitors from all over the world will see the same server time in the website. [...]

Both sement based and query string(GETmethod) variables in url of codeigniter site


codeigniter-segment-and-query-string-url

By default codeigniter doesn’t support query string or get method variables, we can use only segment based url. To enable both segment base and query string (GET method) variables, you need to follow the upcoming steps… 1 ) In yout codeigniter config file change the uri_protocol as specified bellow, application/config/config.php $config['uri_protocol']    = ‘AUTO’; to $config['uri_protocol']   [...]

Remove index.php from url of codeigniter site using htaccess


codeigniter-remove-index.php-htaccess

Usually when we run a CodeIgniter website, the url will have index.php after the hostname. To remove this we need to use mode_rewrite, htaccess. First just check your php info of your server whether you have loded mod_rewrite module. To check this create  ‘php-info.php’ file and put the following contents and run it. php-info.php <?php [...]

Find Real IP address and location details of visitor


Finding real IP address of a user is becoming highly important now-a-days, that too if the visitor is behind any firewall it’s getting as a tough task for the webmasters to trace the real ip address of the visitor. Mostly all the webmasters make use of Google Analytics to trace their visitors, where in the IP [...]