Skip to content

Custom Buttons #16

Description

@DuncanLewis

Is there any reason why buttons I am placing within the body of the modal would not work?

I have been trying for days to figure this out, and now I am wondering whether it is to do with the simple modal plugin.

All I am trying to do at the moment is alert when the button within body is clicked, however my event handler is not firing.

The really weird thing, that points me toward there being an incompatibility with the plugin, is that if I just copy and paste the HTML generated from the plugin on the page, and put it back in manually, then rerun the page (obviously not generating the modal via the plugin this time) my event handler works perfectly.

Thanks for any help you can provide me,
Duncan

Activity

  1. plasm commented on May 15, 2013

    @plasm
    Owner

    Hello Duncan,
    send me the package and see what it does not work

    2013/5/14 DuncanLewis notifications@github.com

    Is there any reason why buttons I am placing within the body of the modal
    would not work?

    I have been trying for days to figure this out, and now I am wondering
    whether it is to do with the simple modal plugin.

    All I am trying to do at the moment is alert when the button within body
    is clicked, however my event handler is not firing.

    The really weird thing, that points me toward there being an
    incompatibility with the plugin, is that if I just copy and paste the HTML
    generated from the plugin on the page, and put it back in manually, then
    rerun the page (obviously not generating the modal via the plugin this
    time) my event handler works perfectly.

    Thanks for any help you can provide me,
    Duncan

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/16
    .

  2. DuncanLewis commented on May 26, 2013

    @DuncanLewis
    Author
  3. plasm commented on May 27, 2013

    @plasm
    Owner

    you have to call the funcione drawHomeMenu ();

    2013/5/27 DuncanLewis notifications@github.com

    Here you are:
    https://www.dropbox.com/s/gxg3djgb2d52diu/simplemodal%20issue.zip

    Thanks for any insight you can provide :)

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18470612
    .

  4. DuncanLewis commented on May 30, 2013

    @DuncanLewis
    Author

    Ah yes, sorry. I forgot to mention that was purely for debugging purposes, the actual instance in the main area calls it after all other resources have been loaded.

    So the issue is, once drawHomeMenu(); has been called, the buttons do not work. Thats what I need help with :)

  5. plasm commented on May 31, 2013

    @plasm
    Owner

    Ahhh...ok
    You have the callback onAppend.
    You can assign all the behaviors of each object in the callback

    2013/5/30 DuncanLewis notifications@github.com

    Ah yes, sorry. I forgot to mention that was purely for debugging purposes,
    the actual instance in the main area calls it after all other resources
    have been loaded.

    So the issue is, once drawHomeMenu(); has been called, the buttons do not
    work. Thats what I need help with :)

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-18694754
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions