Skip to content

Ajax modal won't work #13

Description

@pochenok

jQuery("myElement").addEvent("click", function(){
id = jQuery(this).attr('rel');
var SM = new SimpleModal({"width":600});

  SM.addButton("Cancel", "btn");
  SM.show({
    "model":"modal-ajax",
    "title":"Title",
    "param":{
      "url":"http://mysite.com/bla/"+id
    }
  });

});

I get rel attribute (post numbers from my blog) and then add obtained id to the url of handler page. "Loading failed"...

Activity

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