SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dynamic file list

    Hi,
    this is my first post on Javascript board and I admit that I never used javascript.

    I will have a form done in php.
    I will use the form to upload a file in xml format and to upload a dynamic list of images.
    Basically the xml file will contain the article and I need with that form to upload the images of that article to the server.

    What I'm asking is a way to build a dynamic list of image,
    so when I will click on submit button I will receive the xml article and all the images.
    I "don't" want to upload each image separately.

    I thought that can be done "client side" so using javascript.
    Is there a way to obtain that using javascript or whatever ?!?

    I hope I was clear.

    Thank you for your time!



    pippo
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  2. #2
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It isn't that clear, esp. this part:
    What I'm asking is a way to build a dynamic list of image,
    so when I will click on submit button I will receive the xml article and all the images.
    psst! I'm also not very good at JavaScript

  3. #3
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's something like with hotmail,
    where you can add/edit the attachments.
    What I want to do is to create a list of images that must me uploaded to the server when I will click the submit button.

    Example of the form:
    Article File [ file_name.xml ] [ BROWSE ]
    Published date [ 2002-11-12 ]
    Images [ image1.jpg ] [ BROWSE ]
    [ image2.jpg ] [ BROWSE ]
    [ image3.jpg ] [ BROWSE ]

    [ SUBMIT ] [ RESET ]

    That was my old way,
    the problem is that some articles could have up to 11 images,
    so I didn't want to create 11 browse fields.

    What I want is something like:

    Article File [ file_name.xml ] [ BROWSE ]
    Published date [ 2002-11-12 ]
    Images [ image1.jpg ] [ ADD IMAGE ] [ DELETE IMAGE ]
    [ image2.jpg ]
    [ image3.jpg ]

    [ SUBMIT ] [ RESET ]

    So the [ ADD IMAGE ] button will be used to create the list of images I want to upload.
    While the [ DELETE IMAGE ] button will be used to delete the list of the images I want to upload ( it will not delete the image on the server ).

    While I'm writing these notes,
    I think that maybe an ftp upload is the better way.
    I see that it could be interesting to delete some images from the server too.

    Suggestions are welcomed!



    pippo
    Attached Images Attached Images
    Last edited by pippo; Nov 12, 2002 at 01:53.
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03


Bookmarks

Posting Permissions

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