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 :)

CommentFileSizeAuthor
#6 imagefield-js.patch2.46 KBnedjo
imagefield.zip7.84 KBCreazion

Comments

dopry’s picture

Assigned: Unassigned » dopry
Category: support » feature

Oh 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.

Schoonzie’s picture

Hi,

is anything happening with this feature? Will it work with the latest 4.7 version of imagefield?

Thanks!

dopry’s picture

This 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.

ray007’s picture

couldn't imce be used to upload and select existing images?

dopry’s picture

imce 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.

nedjo’s picture

StatusFileSize
new2.46 KB

Here'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 on upload_js().

dopry’s picture

@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.

dopry’s picture

Status: Active » Fixed

@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.

Anonymous’s picture

Status: Fixed » Closed (fixed)
macm’s picture

Assigned: dopry » macm
Status: Closed (fixed) » Postponed (maintainer needs more info)

Tracking. 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.

robloach’s picture

macm: Look at the DRUPAL-5--2 branch of ImageField. It implements the ImageField with the file AJAX uploader similar to the upload module.

dopry’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Never reopen a closed issue to file a feature request if you ever want me to pay attention to a thing you say.