Hi..
Is it possible to remove an image, which i uploaded with imagefield, programmatically?

I want to reset the field by my module.

I tried to click the "remove" button via JQuery ( $("#id_from_imagefield").click(); ). But then the whole site was submitted. This was not what i wanted :)

Is there a way to reset the imagefield programmatically?

Comments

quicksketch’s picture

Oddly all AJAX behaviors are bound to mousedown() instead of click() (some kind of IE compatibility thing). So you might try:

$("#id_from_imagefield").mousedown();
quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity.