Welcome Guest, Not a member yet? Register   Sign In
jQuery, Add / Delete elements without page refresh
#5

[eluser]xwero[/eluser]
Why not only use one ajax upload field that returns the list of related files and an error message if needed instead of multiple upload fields that are only useful to upload other files. So in your view you would have something like
Code:
// empty form
<input type="file" name="userfile" id="userfile">
<input type="submit" id="upload" value="Upload">
<div id="files"></div>
In the files div comes a list/table of files with action buttons. The benefit of doing it like this is you can make the form php only.

I see there are many posts about ajax but i wonder how many back-up the ajax functionality with php only code. It's not always possible to do it but i think the basic code of the site should have php only back-up. Maybe i'm one of the 'old' guys who can't let go the BA (before ajax) time Smile


Messages In This Thread
jQuery, Add / Delete elements without page refresh - by El Forum - 10-29-2007, 09:35 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-29-2007, 10:49 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-30-2007, 12:30 AM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-30-2007, 07:13 AM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-30-2007, 09:35 AM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-30-2007, 07:02 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-30-2007, 10:41 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 10-30-2007, 10:49 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 11-06-2007, 11:46 AM
jQuery, Add / Delete elements without page refresh - by El Forum - 11-06-2007, 12:29 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 11-06-2007, 12:38 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 11-06-2007, 12:42 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 11-06-2007, 01:09 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 11-06-2007, 01:29 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 06-02-2009, 08:02 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 06-02-2009, 09:04 PM
jQuery, Add / Delete elements without page refresh - by El Forum - 06-03-2009, 12:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB