HTML5 Geolocation api allows us to get the current location using a simple JavaScript function. On the modern browsers the location information can be retrieved using the Navigator object. HTML5 Geolocation API Navigator.geolocation() This function simply queries the browser about the location from which the webpage is getting loaded.The browser which uses the location provider (in our case Google maps) to get the location information using the public IP address,MAC,Wifi information which is sent by the browser itself. As accessing the physical location impacts user privacy the above function will not work when the user denies the permission for it. Geolocation is not supported only in modern browsers with HTML5 capabilities. To ensure this first we have to check the geolocation support. 12345678if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(onsuccess,onfailure); } [&hellip
Author Archive
Yahoo’s popular email application Yahoo Mail gets a major upgrade for iPhone,android,Windows 8 and web version. Marissa Mayer announced this latest upgrades today on its company blog. The new version of yahoo mail is simple clean and has similar features like gmail. Yahoo lost its popularity when gmail was launched few years ago.But now yahoo’s new CEO Marissa Mayer carefully focuses on gaining and retaining customers for its products. Along with iphone and android versions yahoo announced the windows 8 version and updated web version.Though the web version will be rolled out in few days to all the users
You can call a website responsive if the design adopts itself according to the device it is viewed on.A website should re align based on the device viewport width. I have been working on converting my ordinary website to a responsive one and I want to share the tips here. Also Read : Online Tool to create Responsive grid layouts Optimize web page load time using Google page speed tool
Recently I Tried the ways to capture a webpage screenshot using php. There are many number of approaches to capture the screenshot but there are some difficulties with the default php functions and hence I concluded with the phantomjs JavaScript library to perform the screen capture function. I used php script to trigger the phantomjs code