[Cartoweb-users] Upload georeferenced images with Edition plugin

Oliver Christen oliver.christen at camptocamp.com
Mon Jun 25 10:01:10 EDT 2007


ah indeed, I forgot about the [ ] thing.

well, you can try to access the element with:
window.opener.document.carto_form['edit_feature_1182802584661202[image]'].value 
= ...
in this case, the whole "edit_feature_1182802584661202[image]" is considered 
as a single string and the [image] is not interpreted

regards
Oliver

> Hi, Oliver!
>
> I've done what you suggessed but this function in _generated_
> popup window causes new error:
>
>   function pickName()
>   {
>   if (window.opener && !window.opener.closed)
> 
> window.opener.document.carto_form.edit_feature_1182802584661202 
> [image].value = document.aForm.filename.value;
>         window.close();
>   }
>
> The error is:
> "image is not defined". I suppose these [ and ] symbols are reserved  in 
> JavaScript.
>
> If I use additional field "attachFile" instead of "edit_feature_..."  - it 
> works to the end
> (updates this field, validates form, inserts point with correct link).
> But I don't want "a secondary form element in edition area".
>
> Thank you for your help!
> I think in a short time I will finish my task.
>
> Best regards, Igor. 



More information about the Cartoweb-users mailing list