Closed (fixed)
Project:
ImageField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Jul 2006 at 15:59 UTC
Updated:
21 Sep 2007 at 14:03 UTC
Jump to comment: Most recent file
Hi,
I've integrated an ajax upload field into the imagefield module and there are only one or two steps to complete it. I need help at the 'imagefield_js' function that I wrote. I don't understand how do generate the Imagefield again. How and where can I get the $node_field values?
Hope you can help me.
Thx :)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | imagefield-js.patch | 2.46 KB | nedjo |
| imagefield.zip | 7.84 KB | Creazion |
Comments
Comment #1
dopry commentedOh wow... I just found this.. so BUMP!
Its targeted for 5.0/prototype yes?
Any luck of getting a 4.7 .js as well?
What do you need imagefield to return exactly? The fully themed widget form?
I'll try to play with it tomorrow. I have some other tasks I need to take on tonight.
Comment #2
Schoonzie commentedHi,
is anything happening with this feature? Will it work with the latest 4.7 version of imagefield?
Thanks!
Comment #3
dopry commentedThis particular version won't go into imagefield. I'm sort of on the lookout for a jquery version or someone with JQuery exeprience to help me with it.
Comment #4
ray007 commentedcouldn't imce be used to upload and select existing images?
Comment #5
dopry commentedimce could be a possibilty, but then I need to add an image from the local server. That would be out of scope for imagefield, as it would be a feature all of drupal's file handling could benefit from.
I'll see if I can harass some jQuery brains to help me out on this.
Comment #6
nedjoHere's the basics. You don't need any js, just the right HTML to trigger the upload behaviour. The four pieces are the elements identified by ids ending in -wrapper, -hide, -button, and -url. You may need to move the pieces around a bit to get the desired effect. I've left the
imagefield_js()function as a stub for you to complete. You can model it onupload_js().Comment #7
dopry commented@nedjo, you're the bomb diggity danga diggity rockstar... I've commited the ajax upload code to the DRUPAL-5--2 branch, and she works.... I had to do some futzing with the wrappers, but now I know, and knowing is half the battle.
Comment #8
dopry commented@nedjo, you're the bomb diggity danga diggity rockstar... I've commited the ajax upload code to the DRUPAL-5--2 branch, and she works.... I had to do some futzing with the wrappers, but now I know, and knowing is half the battle.
Comment #9
(not verified) commentedComment #10
macm commentedTracking. I am looking for this too. I see 3 js files upload.js, progress.js, imagefield_js but 2 are missing.
basically I want my imagefield works like Gmail file upload button. (I dont need progress bar, its waste of time)
So I dont need press any button to upload image.
I just need limit file size before upload the file.
Do you have a final solution to use Ajax in imagefield?
If I find a solution I'll post here.
Comment #11
robloachmacm: Look at the DRUPAL-5--2 branch of ImageField. It implements the ImageField with the file AJAX uploader similar to the upload module.
Comment #12
dopry commentedNever reopen a closed issue to file a feature request if you ever want me to pay attention to a thing you say.