By lipinponmala007 on
Hi
During my module development i want to shoe a form in a small pop up box this pop up should come when we click the submit button of another form.how to do this ?pleas help me. anything is welcome.
thanks in advance
Comments
Docs Here
Hi.
Drupal has a great facility for generating forms called the Form API (FAPI). Here a couple links:
http://api.drupal.org/api/file/developer/topics/forms_api.html/6
http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....
Drupal also comes bundled with the javascript library JQuery. You can use JQuery to display a popup window. You add custom javascript (including extending jQuery) with the Drupal API method drupal_addj_js detailed here: http://api.drupal.org/api/function/drupal_add_js
There is also a good overview of Drupal and javascript here:
http://drupal.org/node/205296
One last suggestion. It's worth downloading and going through the module examples located here:
http://drupal.org/project/examples
Hope that helps, or at least gets you started :) .
Thank you very much
Thank you very much