add parameters to Image preview (IMG tag) in the edit form
Posted: Wed Jan 11, 2012 10:40 am
What function can I use in the Delegate class to replace or revise the output of the Wrapper/Preview of an image? I want to add a class or ID parameter to the IMG tag so that Jquery interprets it.
I tried these two possibilities to no avail...
Thanks,
Frank
I tried these two possibilities to no avail...
- Code: Select all
function NL_photo__renderCell( &$record ) {
return "<img id=\"jcrop_image\" src=\"http://".$_SERVER['SERVER_NAME']."/images/article/".$record->strval('NL_photo')."\" width=130>";
}
and...
function NL_photo__htmlValue(&$record){
return "<img id=\"jcrop_image\" src=\"http://".$_SERVER['SERVER_NAME']."/images/article/".$record->strval('NL_photo')."\" width=130>";
}
Thanks,
Frank