+ Reply to Thread
Results 1 to 4 of 4

Thread: How to create a simple pop-up form

  1. #1
    chris.shiplett@gmail.com is offline Roundcube Newcomer
    Join Date
    May 2009
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default How to create a simple pop-up form

    I have a plugin I've written that allows a user to automatically make a "task" out of an email in a custom built task management system I use.

    Right now when a user clicks the plugin's "make a task" button, the task is automatically created.

    I want to have it, instead of automatically creating, pop up a modal form that allows the user to add characteristics of the task.

    I can't find anywhere a good explanation of how to pop up a simple modal form. I've tried to reverse engineer the modal form from the jquery calendar plugin and the modal form from the compose_addressbook plugin, without much success.

    Can someone point to a resource for creating a simple modal popup in roundcube? Actually, it doesn't even have to be modal.

    thanks,

    chris

  2. #2
    skaero's Avatar
    skaero is offline Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    You just need to have your content in a div, then use jQuery to do the pop up.
    Here is a simple tutorials that should work: How to generate simple pop up using Jquery - Stack Overflow

  3. #3
    chris.shiplett@gmail.com is offline Roundcube Newcomer
    Join Date
    May 2009
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    Skaero,

    Thanks, that tutorial will help a lot. It's also clarified for me what my central question is:

    How do you append a div to the html output in roundcube? I'd like to just have an include php file that has all my content, and then run a line of code in my plugin initialization function that adds that include into one of the containers (?) or makes a container (?) on the mail screen.

    Thanks,

    Chris

  4. #4
    corbosman's Avatar
    corbosman is offline Registered User
    Join Date
    Dec 2008
    Location
    Amsterdam, The Netherlands
    Posts
    235
    Downloads
    1
    Uploads
    0

    Default

    You can use the render_page hook for example.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts