SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Dynamic file list
-
Nov 12, 2002, 01:46 #1
- 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
-
Nov 12, 2002, 02:21 #2
- 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.
-
Nov 12, 2002, 02:40 #3
- 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!
pippoLast edited by pippo; Nov 12, 2002 at 02:53.
Bookmarks