Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajax support for template #3

Closed
ghost opened this issue Aug 31, 2012 · 4 comments
Closed

ajax support for template #3

ghost opened this issue Aug 31, 2012 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 31, 2012

I would like to use this plugin for my modal windows through my application, but would require getting the information from the server first, is there a way you can incorporate ajax templates?

@voronianski
Copy link
Owner

Yes, you can init it in ajax success function and set data to template like -
success: function(data) {
$('element).avgrund({ template: data })
}

@ghost
Copy link
Author

ghost commented Aug 31, 2012

i would have to do a .click() at the end of that sequence or will it open automatically by doing that?

@voronianski
Copy link
Owner

You will need to click $('element') to open popup.
For now popup appears only on specified element click, but as I said in previous issue it's a very good idea for enabling custom events.

@ghost
Copy link
Author

ghost commented Aug 31, 2012

ok, thanks. I'll wait for next version before implementing.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant