In my project I have a requirement to display the error message of webform submissions in a popup window. Webform is a module for creating simple or multi-step forms in Drupal in an easy way. To display the webform in popup is very hard to me. Webform Ajax module helps to meet this requirement. Its is very useful module for single or multi-step forms with pagination's in a popup box.
AJAX
Creating a module by ourselves, or a new requirement by client would let you to learn more, to research more. One of the latest requirement was to AJAXify a form. To do AJAX-ification was always a troublesome for me.
To replace a div by another on submitting a form always used to top the list of requirements. So I've choose to share how to use a handy command provided by ajax to replace a particular div by another.
The createItem() method lets you add data to the queue and the numberOfItems() method lets you see how many items are present in the queue. We use the claimItem() method of the queue object to get an item from the queue. claimItem() returns the data property, which contains whatever we put into the queue. If there is no item in the queue then claimItem() will return FALSE.
Steps for creating queue.
AJAX is now widely used in to web development to make the user interfaces simpler and faster. We may use AJAX to load images after page load in order to increase performance. However if you want to have a lightbox popup with the full image bound to an image loaded by AJAX then you might run into problems. You will find that even after linking the JS, CSS files and adding the rel="lightbox" attribute to the images it might not work.
A few Drupal users have encountered a situation where after they had created a View that returns nodes in a Grid format, the edit link field (?destination=views/ajax) they had added was redirecting them to a page containing JSON instead of the actual edit page. If you are encountering the same situation in your Drupal site then read on to find out the fix.
Some Drupal users have reported that there was a conflict with an external Jquery script and the Views Ajax. This occured when the Drupal user wanted to use the external script for some specifc purpose. The conflict was causing the Views UI to break. If you are experiencing this issue in your Views read on to find out the solution.