Results 1 to 4 of 4

Thread: Clearing Hidden Fields

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Clearing Hidden Fields

    Hi,

    I have several image boxes on my form and I do a drag drop using hiddenfields to store the imageurl. So basically the user would click add which enabled the controls and start to drag images on to each image box. I then have a save button which uses the hiddenfield value to save the image url. On the add I set all the image boxes image urls to "" but after saving one lot and add another on the save they still have the previous values. Only on the one's I've not dropped on. I am guessing it's something to do with server side / client side.

    How can I clear the values on click on the add button as server side does not work.

    Many Thanks,

    Jiggy

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Clearing Hidden Fields

    Any ideas please? Can't beleive no one knows a solution for this after 81 views

  3. #3
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Clearing Hidden Fields

    Any chance of putting some sample code on http://jsfiddle.net/ ?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Clearing Hidden Fields

    I ended up sorting it myself thanks. Not a strong forum for javascript coding. I basically needed to initialise my hiddenfields on a client button click because even though I was initialising them server side this did not change the client side.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width