473,473 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need some fresh ideas


Hi.

I have been wrestling with a problem for over a week now and I think I
need to breathe
and rethink my approach. I am wondering if somebody wouldn't mind
telling me how
they would tackle the problem (rather than tell me why my code is
failing)?

The problem:

* I have an upload form that allows a user to browse and select
multiple files for upload.
* The form has several elements on it for data input. All elements
are reused for each file.
* A user clicks on a file in the upload queue, activating the
elements for this particular file.
He then adds text, selects radio buttons, etc. When he is done, the
information is saved
for that given file when he moves to the next file. If he returns
to a file that already has
user-defined data for it, then that data is loaded.

This is what I am trying to do. The way I am currently approaching the
problem is:

* When a user adds a new file, an addFile function is triggered that
fills a multidimensional
array fileList[the file number][data elements on the page]
* When a user clicks on a file for upload, selectFile is triggered
which both a) loads previously
added user-defined data if it exists and b) dynamically adds the
editFile() function to the data
elements passing the clicked-on file as a parameter.
* editFile updates the form data (if need be).

I am not looking for code (although demos are always appreciated) but
simply a fresh perspective on how to tackle this. I am trying to
rethink my current code but, if you want to take a look at it, let me
know.

Thanks for your patience.

Oct 9 '07 #1
2 1286
On Oct 9, 8:34 am, pbd22 <dush...@gmail.comwrote:
Hi.

I have been wrestling with a problem for over a week now and I think I
need to breathe
and rethink my approach. I am wondering if somebody wouldn't mind
telling me how
they would tackle the problem (rather than tell me why my code is
failing)?

The problem:

* I have an upload form that allows a user to browse and select
multiple files for upload.
* The form has several elements on it for data input. All elements
are reused for each file.
* A user clicks on a file in the upload queue, activating the
elements for this particular file.
He then adds text, selects radio buttons, etc. When he is done, the
information is saved
for that given file when he moves to the next file. If he returns
to a file that already has
user-defined data for it, then that data is loaded.

This is what I am trying to do. The way I am currently approaching the
problem is:

* When a user adds a new file, an addFile function is triggered that
fills a multidimensional
array fileList[the file number][data elements on the page]
* When a user clicks on a file for upload, selectFile is triggered
which both a) loads previously
added user-defined data if it exists and b) dynamically adds the
editFile() function to the data
elements passing the clicked-on file as a parameter.
* editFile updates the form data (if need be).

I am not looking for code (although demos are always appreciated) but
simply a fresh perspective on how to tackle this. I am trying to
rethink my current code but, if you want to take a look at it, let me
know.
Do you have a demo or some screen shots that shows your UI?

Peter

Oct 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Powell | last post by:
$sql = 'DELETE FROM nnet_produkt_bestilling ' . 'WHERE nnet_produkt_placement > ' . 'nnet_produkt_placement + \'' . date("Y-m-d H:i:s", time() + $maxCartTime) . '\''; This is supposed to delete...
2
by: Martin | last post by:
I'm developing a page - mostly for the learning experience - that includes a form with several text fields and a submit button. When it's submitted, there is some server-side processing and the...
3
by: Slash | last post by:
Hello everyone I'm looking for seminar topics (and project ideas too) for my final year in Computer Engineering. I'm considering doing something on C++/Linux, considering that I love it so much...
0
by: sanjay gupta | last post by:
Hi All, I have recently installes mysql -4.0.0.1 on my redhat 7.1 machine . After installing when enter into mysql it gives me message " Access denied for user root@local host .......using...
5
by: KC | last post by:
Hello I installed MySQL ver 4.0.20d on a Windows XP Professional PC. I created a user and database that I would like to delete, and at this point I would just like to uninstall MySQL and do a...
1
by: Sutapa | last post by:
Hi, I have created a tlb file in .net to use in VB6 application. this application works fine in my Pc which has development environemnt. Now i want to deploy this VB6 exe to other fresh...
5
by: jensen bredal | last post by:
I need to keep track on user "session data" while still turning session off as i do not want users login to expire? Thanks JB
5
by: JCCDEVEL | last post by:
Hello All, I'm getting frustrated with the syntax of a jscript edit I'm using on a VBScript page. Here is what I have: var re = /\+\_\{\}\`\~\=\|]/; if...
7
by: ojsimon | last post by:
Hi I found this script on a forum and have been trying to make it work, but all it returns is a blank screen, i tried using the debug error reporting but got nothing from that either just a blank...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.