Modal Ajax

Component ID

1494084

Component name

Modal Ajax

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Drupal 6 and Drupal 7 module

Enables modal functionalities to your site, using hash information to append it.
Using this hash #menu_address, you will open in your site, any menu item (drupal cms nodes, hook_menu items), in a modal, using a theme, selected afer the # caracter. And you can make your own modal template.

To load a node, or a hook_menu item into a modal, just call your modal, in location hash, appended by the addreess. The modal theme called, just be declared in your hook_theme.

You can call a form menu, a webform, a node, or any menu created, and can configure into settings, to submit your modal into the modal.

Examples:

* Calling the modal by href anchor attribute:
<a href="#[node-address-or-hook-menu-item]">Modal example</a>
<a href="#node/1">Modal example</a>

* Calling using javascript

location.hash='node/1';

Demo links

Node 2

Ajax Sample Form