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

Data injection for images #17

Open
der-robert opened this issue Mar 16, 2013 · 2 comments
Open

Data injection for images #17

der-robert opened this issue Mar 16, 2013 · 2 comments

Comments

@der-robert
Copy link

Hi,

i have a form where i can upload images.
Now i want to show the image on the edit page. Is it posible to inject data to image tags? -->

data: [
{id: 1,upload_image:"the_image.jpg"},
{id: 2,upload_image:"./images/the_image.jpg"}
]

or the id to a button tag as id or rel atribute?

@lechuky
Copy link

lechuky commented Mar 17, 2014

you can use callback function afteradd to find the input with the image src an then put it in the img src tag.

@Nebel54
Copy link

Nebel54 commented Oct 11, 2014

This issue may be a bit old, but as i ran into this problem as well: The afterAdd-Callback is fired too early, you need to use afterFill instead.

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

3 participants