By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,109 Members | 969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,109 IT Pros & Developers. It's quick & easy.

save and load image file with php and jquery

P: 1
<div id="main_layer">
<img src="" style="position:absolute;height:inherit;width:inhe rit;top:0px; left:0px;" id="bg_image_set"/>
</div>

--Now,On click of save button ,I want to convert the contents of tag into an image and save that image in particular folder.
Apr 5 '12 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,059
simple

Expand|Select|Wrap|Line Numbers
  1. document.getElementById("bg_image_set").src='your image source';
will change do the trick. but what do you mean in particular folder? if particular means users local folder that you choose not user, then in javascript you wont get benefit. cause most user disable those option. but if you mean in your server then you will have to ask the question again, but if you mean user can chose where to save then you will have to do the trick with header
Apr 6 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.