开发者

HTML Add images dynamically to iframe (like a text editor)

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜