开发者

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

开发者 https://www.devze.com 2023-03-14 15:15 出处:网络
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.

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

精彩评论

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