save and load image file with php and jquery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkpsami
    New Member
    • Apr 2012
    • 1

    save and load image file with php and jquery

    <div id="main_layer" >
    <img src="" style="position :absolute;heigh t:inherit;width :inherit;top:0p x; left:0px;" id="bg_image_se t"/>
    </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.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    simple

    Code:
    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

    Comment

    Working...