Hi,

Is there a best practice to add a static image to a form that is accessible at runtime?

The image is a captcha image and needs to have the src attribute added at runtime since the location changes depending on the referrer.

The yaml extract is as follows

  - type: block
    id: captcha_image
    tag: img

If the yaml file contains attributes_xml: {src: http://localhost:3000/feedback/captcha} all works ok with the rendered tag as <img id="captcha_image" src="http://localhost:3000/feedback/captcha";></img>

As the block does not appear to have a name tag I don't seem able to find it easily with get_element().

Thanks,
Alan

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to