ca开发者_如何学运维n anybody tell me hw to add images in an iframe at runtime. I am making a text editor using iframe and i want the facility for the user to add images to it by clicking a button.
Thanks in advance
You first need to upload your image to your site so you need to create a backend piece of code that manages that, you can send your image to the site via an Ajax call, and have the server respond with the same image.
Try looking here http://css-tricks.com/6522-ajax-image-uploading/
After that you should just display it in your iframe.
精彩评论