Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Monday, August 3, 2015

Upgrade your windows to Windows10

It’s easy to get your free upgrade – here’s how (follow the given steps just as it is):

Note: Windows XP and earlier versions of Windows shall not be upgraded to Windows 10. Only Windows 7 (with Service Pack 1) and above shall be upgraded to Windows 10

§  First, try running Windows Update and install any available required and recommended updates for your existing Windows 7 or Windows 8 PC.

§  After all the necessary updates are loaded on your windows7 or windows 8 PC, you shall get a small white coloured Windows logo in your task bar at the bottom-right corner of your screen.

§  You need to reserve your free Windows 10 upgrade, by clicking on the Windows 10 icon located in the lower right side of the system tray (lower right side of the system tray).

§  Once in the Get Windows 10 app, click “Reserve your free upgrade” in the app window.

§  Enter your email if you want confirmation of this reservation.

§  Windows 10 shall be downloaded to your device and you shall be notified when it’s ready. You can cancel your reservation at any time.

§  You can download the Windows 10 Upgrade by keeping all your existing Apps and files and their settings intact, or you may choose to have a fresh install that shall format the drive in which your windows is loaded and install the entire Windows 10 application


Newly Upgraded to Windows 10? Three Things to look out for

Any new computer operating system will have things you want to change and Windows 10 is no exception. In fact, it may have more than the usual quirks and unwanted settings since this is a work still in progress. Here are three of the things that new users may want to check out.


Change the default web browser from Microsoft Edge

Most people will probably use the default express mode to upgrade their system. When they do, they will find that the default web browser has become the new Microsoft offering called Edge, no matter what had been set as the default browser before the upgrade. Your previous browser is still there but it’s been bumped. Returning it as the default is easy, however, and here is the procedure.
  1. Open the Start Menu.
  2. Choose “Settings”.
  3. In the left pane, select “Default apps”.
  4. Scroll down in the right pane until you see “Web browser”
  5. A Microsoft Edge icon is probably shown under the “Web browser” entry.  Click or tap this and a list of possible browser options will be displayed. The graphic below shows an example. Your previous browser should be in the list.  Click the entry for your old browser to set the default browser back to your previous choice.
Choosing Windows 10 default browser

Enable System Protection and System Restore

It isn’t a perfect backup system by any means but System Protection with its ability to create restore points is a very useful feature. For some reason it is often disabled in upgrading to Windows 10. There are a variety of ways to access the settings for System Protection but here is one way to turn it back on.
  1. Enter “system protection” (without quotes) in the search box on the left side of the taskbar.
  2. At the top of the dialog box that opens, click “Create a restore point”.
  3. The System Properties window will open. Select the tab “System Protection”.
  4. The left image in the graphic below shows the System Protection settings. Click the button “Configure”.
  5. A second window will open as shown on the right side of the graphic below. Click the button on the left side of “Turn on system protection”.
  6. Under “Disk space usage”, move the slider to your preferred setting.
  7. Click “OK”. The second window will close.
  8. In the System Properties window, click “OK” and it will close.
Configure Windows 10 System Protection

Configure the privacy settings

Windows 10 has a lot of different privacy settings to contend with. For one thing, Microsoft wants to know a lot more about you than it has in the past and they really, really want you to have a Microsoft account. And, by the way, they want to sell you things from their shiny new online store. That said, here is how to configure many of the privacy settings.
  1. Open the Start menu and select “Settings”.
  2. Click or tap “Privacy”. 
  3. The window shown in the first graphic below will open. As can be seen in the list in the left pane, there are a host of settings. The settings shown in the right-side pane are General settings and are just the beginning. For example, another group of settings is “Speech, inking, & typing” and these are shown in the second graphic below. Here is where you can turn off Cortana if you choose. Otherwise, she will start collecting all sorts of information about you. Some will find the Cortana digital assistant very useful but others may not.

Windows 10 general privacy settings

Windows 10 Cortana settings
And there you have it- three important areas to check after upgrading to Wondows 10.

Thursday, March 6, 2014

Telegram-Safe Alternative for WhatsApp

Telegram-Safe Alternative for WhatsApp

Telegram is one of messenger that is available among others. It has some beneficial features compared to others. It is set apart from WhatsApp and Co. that are always get critic. Telegram is also a secure transmission messages, files and even able to be used on multiple devices. Here, we would like post about telegram app.

teaser-telegram

Features & Use

Telegram is quite similar with other messengers. It is required for you to verify your number and you will get SMS about its code. Enter the code and you can see the contacts in your phone who have used the app.
It is easy for you to access the last-seen status, phone number, profile information about your chart partner. Those all could be done in quick way. Moreover, custom notification ringtone is available to be set for each contact. Exchanging videos, location data and also photos could be seen under “Shared Media”.

telegram-screenshot-2


The secret chat is the one which makes the application is seriously special. It allows end-to-end encryption which means that you can set an option in your profile of chat partner like “Start Secret Chat” so you will chat in a new window. It is 200% secure.


telegram-screenshot-3.jpg



Self-destruct timer allows you to destruct the message after a certain time that you set.


telegram-screenshot-4

 

Screen & Controls

It is intuitive and easy to use. It boasts a clear and clean interface. In setting, there are few options available but functional so it is not too busy options app. By using specific contacts, you can encrypt the chat. It nice for you since it is completed with backgrounds and sounds.


telegram-screenshot-5

 

 

Speed & Stability

It works very stable and has a reliable performance. The messages are delivered with no delay. It is claimed as the fastest messenger apps at this time.

 

 Price/Performance Ratio

It is free to download. It contains no advertisement or additional premium content, plus it is available for iOS.


But why it is becoming so popular?
The Telegram software differentiates itself from WhatsApp by stating on their website, "Unlike WhatsApp, Telegram is cloud-based and heavily encrypted. As a result, you can access your messages from several devices including desktops and share an unlimited number of photos, videos and documents. Thanks to our multi-data center infrastructure and encryption, Telegram is also faster and way more secure.
On top of that, Telegram is free and will stay free — no ads, no subscription fees, forever."
Telegram is financially supported by Pavel Durov who founded VK, a social media website known as Russia's Facebook, while the technological aspects are looked after by Nikolai Durov.
Telegram has been set up as a non-commercial organisation and the funding comes from Durov's donation.
The idea is that Telegram should therefore not be influenced by the interest of a person or company.



Why are people switching to Telegram?
A lot of people who migrated to Telegram from WhatsApp say they don't want Facebook to have even more data on them. Sure, another company would have it, but for most of them, that's acceptable.
They are fine with a company having access to my email, another company having access to their social network, another one to their chat history. But having one company having access to all of that seems to scare a lot of people.
Telegram is not the only encrypted messaging app seeing a rise in sign-ups following WhatsApp's acquisition by Facebook. Threema – which also touts encryption as a key feature – doubled its user base in 24 hours, with 200,000 new users paying €1.79 ( Rs 184) each for the App, TechCrunch reports.

Samsung Galaxy Grand I9082 Android KitKat 4.4 Update Coming in June-July 2014

Samsung Galaxy Grand I9082 Android KitKat 4.4 Update Coming


Samsung not only manufactures good quality dependable smartphones but also have a clear picture in mind as to what all its devices would be upgraded to the next level of software. The South Korean company believes in providing support to its older smartphones even though they might not make a business sense for it. Treading on the same line, the Samsung Galaxy Grand I9082 Android KitKat 4.4 Update would be out soon.

As an owner, you could expect the Samsung Galaxy Grand I9082 Android KitKat 4.4 Update to arrive in the month of June – July. It would bring with it a whole lot of new features and changes.
  • For the starters, the notification bar would go translucent and would house more number of accessible options. The app icons would be bigger in size and would sport a cleaner look.
  • The dialling pad would come in a complete new look and would still maintain the ease of dialling. A new immersive mode enables the users to keep the navigation and the status bar hidden while using the phone. You could record the screen to through a built in application.
  • Heavy applications like the Google Chrome, YouTube, Google Maps etc. have been toned down and now require less amounts of RAM. This in turn keeps the level of the free RAM up and smartphone does not slows down.
  • The phone houses a 2100 mAh battery under the hood. The Samsung Galaxy Grand I9082 Android KitKat 4.4 Update would see this battery last longer because of the above mentioned feature and also a couple of software enhancements that enable the device to stay on for longer periods without plugging in.
  • The update also brings the wireless printing capability to the Grand. This means if your printer is Wifi or Bluetooth enabled then you could print your documents over the air without connecting to the USB dock.
  • Apart from the these features, the Samsung Galaxy Grand I9082 Android KitKat 4.4 Update would provide more security and performance enhancements. When you install the update and check for yourself, you would feel quite an improvement in the user speeds. Jumping from one app to another would be a lot faster and swiping the screens and accessing different features including the tweaks would be smoother.
  • For an old device it is always good to be upgraded to the latest software. It enables the users to install the new applications which their current software does not supports. 

So keep some patience and you would be loving your Galaxy Grand phone once again!

Saturday, March 1, 2014

Android: All you want to know



Android Information
How to Remove Unwanted Apps From Your Apps List in Google Account
In this urge of exploring Google Play Store, I got a list of over hundreds of apps in my Play Store account database. These apps were either installed on my smartphone or were installed a long time ago, though may not be present in the smartphone. Previously Google Play store always kept a track back of which apps you have installed. So even if you uninstalled an app, it would still show up in the “All” Apps list. Play Store does not allowed removing of apps from their. However i wished i could remove unwanted apps to give that list a cleaner look with only useful apps in the apps list.
Google Play Store App Updated
However, post a recent update in Google Play Store App, it though still keeps a track of apps you have installed but now you can also remove unwanted apps from this list which you are willing to remove and do not want to install later. These apps may include some buggy app or any app which you never found useful. You may keep those apps which you find useful but does not need at the moment.
This recent update from Google is loved by most of the android smartphone holders and personally by me as well. I cleared up over 100 of apps present in the list which were of no use to me and I am dead sure I am not going to use them in future. Thus I ended up with a list of only those apps I really need to know about.
Play Store App update rolled out recently and you might have got that. The best feature it brings out is that now you can remove unwanted apps.
How to remove unwanted apps all together from your All Apps list in Play store at once.
  • Launch Google Play Store and tap on menu button. You will see My Apps option. Select that.
  • Once you enter that you will see two option viz. Installed and All . Select All.
  • You might be surprised to see the number of apps it will show. These are apps you installed from the day you have used that Gmail account with android smartphone.
  • Those apps which are still installed on your system won’t show a cross mark in the corner. But those which have been uninstalled from the system will show. You can remove them one by one by clicking at the cross button and confirming that you are willing to remove them. make sure you want to remove unwanted apps from the list.
  • In case you have too many of unwanted apps, Just tap and hold on each of those apps you wish to remove and then head over to the top where it shows a cross mark. It will be present just after it says ( X numbers of app selected). Tap on that and confirm that you are willing to remove them. That’s all you need to do to remove unwaanted apps in one click.

How To Format EFI Partition system

You might have always noticed that your hard disk label shows much more capacity than what you actually get. For example,  The laptop I bought few months ago came with a configuration of 1TB of hard disk. However after opening it, I saw only 931GB of available space. Though I knew that there are always some memory space which are reserved and which cannot be used but this was a lot of space.
Hence to be more sure if where the space was actually been used, I launched my Disk Management tool.
To open Disk Management Tool in windows 8 or 8.1 just type disk management and open any of the option saying create or delete partition and anything similar. In windows 7 open start menu and type in the search box Disk Management.
Universal way for all Mentioned OS, just open run and type compmgmt.msc and click ok.
Now once I opened my disk management tool, I saw two EFI partition, which I created when I once installed Ubuntu on my system. The two counted for 24GB of space. Since I was not running Ubuntu on my system anymore, The EFI partition was not doing any good to me. Hence I though to get rid of them.
Being marked as System Partition, Due to EFI type, Windows won’t allow the deletion or modification of these partitions. Hence I figured out yet another way to get rid of them. This is the simplest way I found after searching for a long time on the web and passing through a number of things which seemed a lot high-tech.

Below are the steps on how to Format EFI System Partition.

  1. Launch your disk management tool to verify if you have any EFI type partition or not.
  2. Make sure you verify for the correct EFI partition system which you want to delete and not the EFI partition system which contains Windows Boot Information. Anyways, even if you do, Windows won’t allow you deleting the Windows partition.
  3. We will be using CMD [Command Prompt] for this as you cannot do this via the normal menu options. Hence launch RUN and type in CMD. Then click on RUN.
  4. Once CMD is open. Type in DISKPART . A list of internal and external Hard Disk Connected would popup in CMD. Identify the Hard Disk which has the EFI partition system you want to delete. Once you get the number of that Disk suppose 0, Type in CMD – SELECT DISK 0.
  5. Once the disk is selected, Type in LIST PART to show all the partition in the selected disk. Once it shows ups the partitions, verify for the position of the partition which you want to delete. For example if the EFI partition system is 1, then type SELECT PART 1 . For 2 type SELECT PART 2 and so on.
  6. It will mention the selected partition as active. Now to delete the partition type DELETE PART OVERRIDE or you may even type DELETE PARTITION OVERRIDE .
  7. As already mentioned, if the partition you selected to delete does not has any boot files which is needed by OS, then it will be deleted successfully.

Once the partition is deleted, Open up your disk management tool and now the EFI partition would be showing as UNALLOCATED SPACE.
To create a new partition, right click on that space, Choose the desired option and Click OK. Once you are done creating a new partition, Launch My computer and you can see that partition listed there with other local drives.









Find My Phone App (Web Based App) – Google’s Android Device Manager

This service acts as a web based app which lets you ring your device to its max volume. Hence you can hear it loud and clear and locate its situation. Even if your device is at Vibrate or Silent mode, it will override all settings and will ring your smartphone to its maximum volume.
If you are thinking how can I find my phone with this service, here is the way for this.
Since you are using an Android Smartphone then you should be having a Gmail id which you used up to SignUp in the Play Store.
Just Follow the link Android Device Manager , and use the same email id and password to access the service. It will automatically show you the name of your smartphone which is saved with this account. (See The Picture below). Once you log in, it will automatically detect the present location of the device and present before you.
Find My Phone – Android Device Manager
The left pic shows this find my phone service trying to establish a connection with my device and the second one shows the present location of the device. It will also show the location of the device on Google Map.
There are two services offered by the web based app.
Google’s Android Device Manager Features:
Ring Feature
Ring : This is the feature about which I was talking before. It will help you ring your device to the maximum possible volume.
Wipe Feature
Wipe : This is bonus features. Suppose you lost your phone. And in case it has some personal information which you don’t want to be leaked, then you can use this service to wipe all those data from your smartphone.To use this feature you will need to enable the Factory reset option form your android smartphone. These will be asked by your smartphone the very first day, you will be registering for this service.
You can select which one of the two service are you willing to use on your android smartphone. Based on the permission you provided you can use it.
Android Device Manager Permission
Note : In case you are unavailable to track down youe phone, then this means that your phone is either out of any coverage area, or is switched.

This is not a very new kind of technology. In fact to be precise, features and services like this are available from a long time in other android apps (mostly by some of the best antivirus apps) . Not to forget the famous Find My iPhone app, which is just similar. The only thing with Android Device Manager is that this is being served the Tech Giant Google.


















Samsung Galaxy Grand 4.2.2 Firmware Update Method

One step solution to upgrading your Samsung Galaxy Grand and removing all problems after the Android 4.2.2 Upgrade

To Update Galaxy Grand Duos I9082 to Android 4.2.2 follow the following simple steps:
  1. First of all extract the Odin zip file and run the odin.exe on your PC. The Odin version should be Odin 3.072. 
  2. Now you need to Reboot your Galaxy Grand Duos into Download Mode. Here is how to do it:
    1. First Switch-Off your Galaxy Grand
    2. Then Press and Hold the ‘Volume Down+Home+Power’ Buttons at the same time, till you see the warning screen.
    3. Now just hit the Volume Up button to enter download mode.
3. Once in the download mode, connect your device using the data cable to your PC.

4. Now again come to Odin screen, and make sure it has detected your device, the ID:COM port when yellow or blue means that it has detected your device. Otherwise try changing the USB port or try reinstalling the USB drivers.

5. One more thing to do with Odin, is make sure that the Auto Reboot and F. Reset Time is checked.


6. Now finally you can hit the PDA button and browse the Official Android 4.2.2 Jelly Bean Firmware file you’ve downloaded earlier.

7. Then, click on the START Button, to start flashing the Android 4.2.2 Update on your Galaxy Grand Duos I9082.

8. You should have patience, because it can take time depending on your device and PC.

9. Once it gets completed, Odin3 will notify you and your device will Rebooted automatically.

10. Now just wait for your device to boot normally. You’ll have Android 4.2.2 Jellybean installed on Grand Duos I9082 with improved performance and features.

11. Now you got to delete the Cache from the Mobile that may be present. For this follow the following simple steps:

a. Just remove the battery for 3 seconds and then replace the battery
b. Press hold volume up + Home + Power it boots into the recovery mode
c. Simply choose wipe data/cache by using the volume up and down buttons for scrolling
d. Once you arrive at the selected option press power button to select
e. Once that is done, choose wipe dalwik cache and press power button again to select.
f. Then select the option Reboot.

Your mobile shall now Reboot and there you Go . You have successfully loaded Android 4.2.2

Now IMMEDIATELY disable the Gallery App that is the Root cause of all the Galaxy Grand problems post the Android 4.2.2 Update. For this follow the following simple steps:

Go to Settings—–Application Manager——-All——-
Now All the processess running shall be displayed.
Scroll down to find the process GALLERY
Click on Clear Data
Click on Force Stop.
Click on Disable
This shall DISABLE the Gallery App from your mobile.

4. Howevev you need a good gallery app and hence download and install the following Gallery App from google play. The app name is QUICKPIC. This app works in the same manner as Gallery and is very light in weight and does not auto load in memory as well.

5. Now your mobile should be lightning fast and minus any/all the problems


At the end, hoping that you’ve learned, How to manually install the Official Android 4.2.2 Jellybean Firmware on your  Grand Duos I9082 Smartphone. If you need further support/help let know in the comment section.

Link to necessary softwares:

Link to Download Samsung Galaxy Grand Duos USB Drivershttp://www.mediafire.com/download/7iy79emc0bf1fb4/SAMSUNG_USB_Driver_for_Mobile_Phones.exe


Link to Download Android Firmware 4.2.2 (Build Number: I9082XXUBMK3)
http://samsung-updates.com/device/?id=GT-I9082


Link to Download Odin 3.07
http://www.mediafire.com/download/772dlmuaxfgm0x2/Odin307.zip



Also watch this Video from youtube
http://www.youtube.com/embed/hA3arBphLcY?autoplay=1&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=3&hd=1&vq=hd720

Friday, October 22, 2010

Computer Basics

And now some bytes of info Kilo, Mega, What? With so many different file sizes, it may be hard to keep them all straight, so here is a little refresher that any computer user can always use!

So, what really are the differences in all of the sizes you see on your computer?
Kilobytes,
megabytes,
gigabytes, etc?

File sizes tend to be one of the more perplexing issues for both the fledgling and intermediate computer user. So, we've put together a breakdown of the various file size "units" you may encounter.
  • Bit - The smallest unit in computing. It can have a value of 1 or 0.  You'd be hard pressed to find a file size listed in bits.
  • Byte - A (still small) unit of information made up of 8 bits.
  • Kilobyte(KB) - A unit of approximately 1,000 bytes (1,024 to be exact). Most download sites use kilobytes when they give file sizes.
  • Megabyte (MB) - 220 bytes = 1,048,576 bytes or 1,024 kilobytes. Sometimes used to mean 1 million bytes.
  • Gigabyte (GB) - Approximately 1 billion bytes (1,024 MB).  Most hard drive sizes are listed in gigabytes.
I know that even with the information above, it can still be confusing, so I thought I would compare these digital units of measure to some everyday objects. Just picture them being completely hollow so you can store information in them.
  • Bit - Let's call this a regular sized marble.
  • Byte - Compared to the marble, this would be a baseball.
  • Kilobyte - Now we jump up to a pickup truck size.
  • Megabyte - Now for the leap - this would be a medium sized sky scraper.
  • Gigabyte - Take 1,024 of the medium sized sky scrapers and stick them together for this one!

OK, now for a little practical application.
  •  A 3 1/2" floppy disk holds 1.44 Megabytes (1,474 KB).
  • A CD Rom holds 650 to 700 Megabytes (though most programs you get don't utilize the whole amount). This would be around 450 of those 3.5 floppies.
  • A 20 Gig hard drive will hold the same amount of info as 31 CD ROMs or 14,222 floppy disks.
  • It takes between 7 to 10 minutes to download a one megabyte (1,024 KB) file using the average dial up Internet connection.
  • A typical page of text is around 4KB.
  • To see the size of a given file, just right-click it (in Explorer or My Computer) and select Properties from the resulting menu (or Alt+ double click the file).
Regards and Cheers
Amey Nevrekar
ameynevrekar@gmail.com

Printer Buying Guide

Printer Buying Guide

Here are some guidelines you can follow when you go out printer shopping! Here are some questions you should keep in mind to ask the sales person at the printer store of your choice:

1.) How does the printer handle different types of paper? Check and see if the printer can handle things like envelopes, cards or other types of paper you might use. Also, ask how much paper the printer is able to hold at one time. You don't want to be constantly refilling the paper and you don't want to run into any paper jams.

2.) What type of ink cartridge does the printer take? You'll want to ask about black and color ink cartridges. Check on the cost of them (you don't want to be forking out tons of money for ink later on), how easy the installation is for refills, etc. Ink is what makes your projects turn out at all, so you want your new printer to be top notch in that area. Also, even if you're buying a printer on the cheaper side, it may cost more to refill the ink down the road, so always double check on this.

3.) How easy is it to install this printer on my computer? Always ask the sales person who is helping you how the installation process is. Some printers can be more difficult than others and you can save yourself some hassle by asking. Most printers just come with a CD kit and you just have to walk through the process with a wizard, but make sure that is all you're getting yourself into.

4.) How durable is the printer? Depending on what you're going to be printing with your new printer, you'll want to find out how much it can handle. If you're only going to be printing items every so often, a standard printer will be fine, but if you're going to be printing in high volume, you may need something a little more advanced.

5.) Does the printer handle postscript language? If you're going to be printing a lot of heavy graphics and so forth, make sure your printer supports the language.

6.) How noisy is this printer? You should definitely ask the sales person to do a quick test print for you so that you will be able to see exactly how your printer will act and also how it will sound. You don't want your printer to be so noisy that
every time you print something, you can't even hear yourself think.

7.) What type of warranty does the printer come with? Always check on this to keep yourself covered.

8.) And finally, the most important question of all: How much does it cost? If you keep these sample questions in mind, you should be able to find the printer of your dreams and one that will fulfill all your needs.

Keep Smiling
Amey Nevrekar
ameynevrekar@gmail.com

Thursday, October 21, 2010

Ajax Anywhere

Brief IntroductionAJAX

:
AJAX (Asynchronous JavaScript and XML) is a method of building interactive applications for the Web that process user requests immediately. Ajax combines several programming tools including JavaScript, dynamic HTML (DHTML), Extensible Markup Language (XML), cascading style sheets (CSS), the Document Object Model (DOM), and the Microsoft object, XMLHttpRequest. Ajax allows content on Web pages to update immediately when a user performs an action, unlike an HTTP request, during which users must wait for a whole new page to load. For example, a weather forecasting site could display local conditions on one side of the page without delay after a user types in a zip code.

Google Maps is one well-known application that uses Ajax. The interface allows the user to change views and manipulate the map in real time. Ajax applications do not require installation of a plug-in, but work directly with a Web browser. Because of the technique's reliance on XMLHttpRequest, early applications worked only with Microsoft's Internet Explorer browser, but most other browsers now support Ajax.

AjaxAnywhere Introduction:

AjaxAnywhere is designed to turn any set of existing JSP or JSF components into AJAX-aware components without complex JavaScript coding.
In contrast to other solutions, AjaxAnywhere is not component-oriented. You will not find here yet another AutoComplete component.
Simply separate your web page into multiple zones, and use Ajax Anywhere to refresh only those zones that needs to be updated.


What is AjaxAnywhere?

·         AjaxAnywhere, a JSP tag library that uses AJAX to refresh "zones" on a web page.
·         This is a simple way to enhance an existing JSP / Struts / Spring / JSF application with AJAX.



How it works?

  1. Mark "reload-capable" zones of a web page with AjaxAnywhere custom tags.
  2. Instead of submitting a form in traditional way, do it by AjaxAnywhere javascript API.
  3. During request processing on the server-side, determine the zones to refresh. (You can implement this logic either on the client-side via JavaScript or on the server-side, via AjaxAnywhere API.)
  4. On the server-side AjaxAnywhere will generate an XML containing only the "updated" HTML.
  5. On the client-side AjaxAnywhere javascript will receive the XML, parse it and update the selected zones.
Note: Explained in detail with an example

Why go for AjaxAnywhere?

  • Less JavaScript to develop and to maintain. Absence of commonly accepted naming convention, formatting rules, patterns makes JavaScript code messier then Java/JSP. It is extremely difficult to debug and unit-test it in multi-browser environment. Get rid of all those complexities by using AjaxAnywhere.
  • Lower technical risk. Switch whenever you need between AJAX and traditional (refresh-all-page) behaviour of your web application. Your application can also support both behaviors.
  • Default graceful degradation. You do not need to develop another interface for older browers support. If XMLHttpRequest is not available, application will keep working in traditional way, refreshing the entire page.
  • JavaScript received by AJAX is treated in a special way. AjaxAnywhere executes it via eval(""), it is also able to extract the declared functions into the proper context. (as if the page was reloaded completely). However, it is impossible to execute document.write() command inside AJAXable zone.
  • The zones to reload might be known before submitting the request. In this case, override AjaxAnywhere.getZonesToReload() JavaScript function on the client-side. No additional server side logic is necessary.
  • response.sendRedirect() during Ajax request is transformed into location.href=.. JavaScript commmand.
  • AjaxAnywhere doesn't require changes to the underlying code, so while it's more coarse than finely-tuned AJAX, it's also easier to implement, and doesn't bind your application to AJAX (i.e., browsers that don't support AJAX can still work.)


Limitations on AjaxAnywhere

·         AxajAnywhere is not as dynamic as pure-JavaScript AJAX solutions.
·         Can only update a set of complete DHTML objects without breaking then apart.


Get started with AjaxAnywhere:

AjaxAnywhere Installation (Along with Struts 1.1):

·         Download the tool kit for AJAXAnywhere from internet (http://sourceforge.net/projects/ajaxanywhere/)
·         Extract JavaScript file(s) (aa.js) from the binary distibution file into your web application root. In my case I have placed it along with my JSP files
·         Copy the JAR file to /WEB-INF/lib or your web application
·         Add AAFilter mapping for dynamic URLs to web.xml. Make sure that AjaxAnywhere filter in the first one in the chain.
      <display-name>AjaxAnywhere</display-name>
      <filter>
            <filter-name>AjaxAnywhere</filter-name>
            <display-name>AjaxAnywhere</display-name>
            <filter-class>org.ajaxanywhere.AAFilter</filter-class>
      </filter>
      <filter-mapping>
            <filter-name>AjaxAnywhere</filter-name>
            <url-pattern>*.jsp</url-pattern>
      </filter-mapping>
      <filter-mapping>
            <filter-name>AjaxAnywhere</filter-name>
            <url-pattern>*.do</url-pattern>
        </filter-mapping>



Lets implement AjaxAnywhere with an Example:
Abstract of the example: We would be displaying three different time zones in a drop down, on selecting a particular Time zone it has to call the action class and display the time accordingly. For this we will be using AjaxAnywhere, where in the complete page should not be refreshed on selecting the Zone (Normal AJAX functionality)

Step 1) Complete AjaxAnywhere Installation

Follow the above installation steps i.e., downloading the jar file and extracting aa.js and placing along with the Project files and making the configuration setting in web.xml
Please note: I would be using Struts 1.1 in my example to explain the functionality.

Step 2) Create New JSP File

Create a new JSP file for the time zone drop downs along with the zone(s) on Ajax call as below:

<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://ajaxanywhere.sourceforge.net/" prefix="aa" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>Time Zones</TITLE>
<script language="javascript" src="aa.js"></script>


<SCRIPT>
function getCountryList(ref){
      if(ref.value == " "){
            alert("Please select a Time Zone.");
            document.getElementById('showTime').style.display="none";
            return;
      }
      ajaxAnywhere.submitAJAX();
      document.getElementById('showTime').style.display="block";
}
</SCRIPT>
</HEAD>
<BODY onload="alert('This Alert is just to show that the page is loaded only once.');">
<html:form action="SampleServlet.do">
<table>
      <tr>
            <td>Time Zone:</td>
            <td></td>
            <td>
            <html:select property="dropDownValue" onchange="getCountryList(this)">
                  <html:option value=" ">---Select---</html:option>
                  <html:option value="Asia/Calcutta">INDIA</html:option>
                  <html:option value="GMT">UK</html:option>
                  <html:option value="America/New_York">NEW YORK</html:option>
            </html:select>
            </td>
      </tr>
</table>
<div style="display:none" id="showTime">
<aa:zone name="countriesList">
<%=request.getAttribute("TIME_ZONE")%>
</aa:zone>
</div>
</html:form>
</BODY>
</HTML>

Step 3) Create the Action Class with below code:



     
      Date now = new Date();
     
      DateFormat df = new SimpleDateFormat("MM-dd-yyyy HH:mm:ss z");
      df.setTimeZone(TimeZone.getTimeZone(((DropDown)form).getDropDownValue()));
     
      System.out.println(df.format(now));
           

      request.setAttribute("TIME_ZONE", df.format(now));
      if(AAUtils.isAjaxRequest(request)){
            AAUtils.addZonesToRefresh(request, "countriesList"); 
      }    
      return mapping.findForward("SUCCESS");

Step 4) Create Form Bean as below:


      private String dropDownValue;
     
      /**
       * @return
       */
      public String getDropDownValue() {
            return dropDownValue;
      }

      /**
       * @param string
       */
      public void setDropDownValue(String string) {
            dropDownValue = string;
      }

Step 5) struts-config.xml

<struts-config>

<form-beans>
      <form-bean name="DropDown" type="com.wipro.forms.DropDown"/>
</form-beans>

<action-mappings>
<action path="/SampleServlet" type="com.wipro.servlet.SampleServlet" name="DropDown">
 <forward name="SUCCESS" path="/JSP/DependentDropDown.jsp" />
</action>
</action-mappings>

</struts-config>


  

CONCLUSION

  • AjaxAnywhere doesn't require changes to the underlying code, , it's also easier to implement, and doesn't bind your application to AJAX (i.e., browsers that don't support AJAX can still work.)