Changes for page WOActiveImage

Last modified by Pascal Robert on 2012/02/11 08:52

From version 14.1
edited by Pascal Robert
on 2012/01/08 20:49
Change comment: There is no comment for this version
To version 16.1
edited by Pascal Robert
on 2012/02/11 08:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -16,8 +16,6 @@
16 16  <a href="/cgi-bin/WebObjects/DynamicElements.woa/wo/nSZJRma4bnNG7UdGL12KDw/3.1" name="1"><img border="0" ismap="ismap" src="/WebObjects/DynamicElements/WebServerResources/WO.jpeg" width="180" height="180"></a>
17 17  {{/code}}
18 18  
19 -
20 -
21 21  = Usage =
22 22  
23 23  {{code}}
... ... @@ -63,6 +63,7 @@
63 63  | target | Frame in a frameset that will receive the page returned as a result of the user's click.
64 64  | disabled | If disabled evaluates to true, a regular image element (<IMG>) is generated rather than an active image.
65 65  | secure | Changes the URL prefix from http to https when WebObjects generates URLs for component actions and direct actions for this element. For this attribute to have any effect, you must provide bindings either for the action, directAction, actionClass, or pageName attribute (respecting the valid combinations).
64 +| alt | Specify a tooltip (string) on the image. It adds the "title" attribute to the generated <a> tag. Project Wonder addition (Wonder will automatically switch to ERXActiveImage if you extend from ERXApplication).
66 66  
67 67  = Examples =
68 68  
... ... @@ -78,7 +78,6 @@
78 78  == Inline bindings (WOOGNL) ==
79 79  
80 80  Calling a method "doSomething" with an image named "WO.jpeg" coming from the Web server resources:
81 -
82 82  
83 83  {{code}}
84 84  
... ... @@ -86,6 +86,14 @@
86 86  
87 87  {{/code}}
88 88  
87 +Calling a method "doSomething" with an image coming from a NSData object (image stored in a BLOB object from the database):
88 +
89 +{{code}}
90 +
91 +<wo:WOActiveImage action="~doNothing" data="$myEO.imgData" mimeType="image/jpeg" />
92 +
93 +{{/code}}
94 +
89 89  = Related documents =
90 90  
91 -[[ERXActiveImage>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/components/_private/ERXActiveImage.html]]
97 +[[ERXActiveImage>>http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXActiveImage.html]]