[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Image Widget Revisited


Hey guys,

I am back to work on the imagehelper widget and I've ran into a new problem.
When none is selected it doesn't cause the value in the field to be cleared.
When you reedit the record you see that the original image is still
selected. Selecting none does work properly with the imagedir widget.

I compared the output of each widget in the table editor and came up with
this:


IMAGEHELPER:

<td class="cwidget" style="vertical-align: top">
<A HREF="images/items/140.jpg">140.jpg</A>
<INPUT TYPE=hidden NAME=mv_data_file_field VALUE="image">
<INPUT TYPE=hidden NAME=mv_data_file_name_from VALUE="">
<INPUT TYPE=hidden NAME=mv_data_file_path VALUE="images/items">
<select name="mv_data_file_oldfile">
<option value="">(none)
<option value="100.jpg">100.jpg
...
</select>
<INPUT TYPE=file NAME="image" VALUE="140.jpg">
<input type="hidden" name="ui_filter:image" value="nullselect">
</td>


IMAGEDIR:

<td class="cwidget" style="vertical-align: top">
<input type="text" name="image" size="" value="">
<select name="image" class="s3">
<option value="">None
<option value="100.jpg">100.jpg
...
</select>
<input type="hidden" name="ui_filter:image" value="nullselect">
</td>


Do you think this is a widget issue or a problem in Data.pm?

Thanks,
Cameron

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.