Top of Page
Top of page

Keepalive Parameter Element

When editing an item within your application (component, template, module, etc...) you may be away from the editor form for a period of time doing research, or whatever. It's always a pain to find that when you return to your form, finish filling it in and click the submit button - Joomla has logged you out and your input has been lost.

This element implements the Joomla! AJAX keepalive behavior to prevent that timeout.

Implement this custom parameter type using Joomla Custom Parameter Documentation as a guide. Implement within your application config.xml file (assuming you named the element keepalive.php):

 
<params addpath="path/to/folder/elements">
 ...
 <param type="keepalive" />
</params>
 
keepalive.php:
 
<?php
//Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();
 
class JElementKeepalive extends JElement
{
  var  $_name = 'keepalive';
 
  function fetchElement($name, $value, &$node, $control_name)
  {
    JHtml::_('behavior.keepalive');
    return;
  }
}
 

Top Downloads

Joomla 1.5

  1. SplashR 23.4%
  2. ByeByeGenerator 16.5%
  3. AdminExile 14.4%
  4. CoolClock 11.9%
  5. ScriptsDown 8.9%
  6. Detect Language 7.6%
  7. Expires Headers 6.8%
  8. Clean Response 4.0%
  9. Answer Tips 2.1%
  10. Authentication - EMail 1.6%
  11. Settler Module 1.1%
  12. Settler Plugin 1.1%
  13. DomainRestriction 0.7%

Joomla 1.6/1.7

  1. AdminExile 17.1%
  2. Top of the Page 12.9%
  3. Favicon Package 11.1%
  4. CoolClock 10.1%
  5. SplashR 8.3%
  6. ByeByeGenerator 8.2%
  7. Detect Language 5.6%
  8. Content - MooAccordion 5.2%
  9. Authentication - EMail 3.5%
  10. Clean Response 3.4%
  11. Password Strength 2.6%
  12. Expires Headers 2.6%
  13. ScriptsDown 1.6%
  14. DomainRestriction 1.5%
  15. Answer Tips 1.5%
  16. Meta Character Count 1.4%
  17. Settler Module 1.0%
  18. Settler Plugin 1.0%
  19. System - Nomad 0.7%
  20. Profiler 0.5%
  21. User - StaticPassword 0.2%
RicheyWeb Extensions have been downloaded 103,168 times.
38 individuals and companies have made donations supporting future development.
Thank you Christopher Eaton!