Good programming practices


Applet interaction with URL hash

March 15th, 2011

Applets don’t have to be just isolated box on a web page. They can communicate with a web page in which they are placed. Below is example of how can applet react to URL changes and also cause the changes.


  • Possibility to creates anchor which changes the state of an applet, for example selecting a tab in tabbed pane.
  • State changes are added to window history, so you can use back and forward buttons.
  • No need to reload applet nor web page.


AJAX and normal URL in each link

February 6th, 2011

AJAX allows you to change some part of a page without reloading the whole window. But this raises problems of accessibility for search engines and disabled users. However it is easy to combine both of these methods, offering an AJAX version only there, where it is possible. There is no need for the large changes in the code.


In a simple web pages it changes only the main content, thus, there is no need to reload the entire page. It can be easly changed – whenever you click on the link, AJAX is called, and if JavaScript is not supported, there will be a normal page reloading. More…