Changes for page WOActiveImage
Last modified by Pascal Robert on 2012/02/11 08:52
From version 16.1
edited by Pascal Robert
on 2012/02/11 08:52
on 2012/02/11 08:52
Change comment:
There is no comment for this version
To version 17.1
edited by Pascal Robert
on 2012/02/11 08:52
on 2012/02/11 08:52
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,4 +1,4 @@ 1 -{{toc }}{{/toc}}1 +{{toc/}} 2 2 3 3 = Introduction = 4 4 ... ... @@ -43,25 +43,97 @@ 43 43 44 44 = Bindings = 45 45 46 -| filename | Path to the image relative to the WebServerResources directory. 47 -| framework | Framework that contains the image file. This attribute is only necessary if the image file is in a different location from the component. That is, if the component and the image file are both in the application or if the component and the image file are both in the same framework, this attribute isn't necessary. If the image file is in a framework and the component is in the application, specify the framework's name here (minus the .framework extension). If the image file should be in the application but the component is in a framework, specify the "app" keyword in place of the framework name. 48 -| src | URL containing the image data. Use this attribute for complete URLs; for relative URLs use filename instead. 49 -| value | Image data in the form of a WOElement object. This data can come from a database, a file, or memory. 50 -| action | Method to invoke when this element is clicked. If imageMapFile is specified, action is only invoked if the click is outside any mapped area. In other words, action defines the default action of the active image. 51 -| href | URL to direct the browser to as a default when the image is clicked and no hot zones are hit. 52 -| actionClass | The name of the class in which the directActionName can be found. Defaults to "DirectAction". 53 -| directActionName | The direct action method to invoke when the URL is accessed (minus the "Action" suffix). Defaults to "default". 54 -| data | Specifies an image resource in the form of an NSData; this data can come from a database, a file, or memory. If you specify resource data, you must specify a MIME type. 55 -| mimeType | A string designating a MIME resource type, such as "image/gif", to be put in the content-type header field; this type tells the client what to do with data. If you provide data but no MIME type, an exception is thrown. 56 -| key | A string that the application uses as a key for caching the data specified in data. If you do not provide a key, the data object must be fetched each time it is needed. For further information, see the reference documentation for the WOResourceManager class, (in particular, see the flushDataCache method). 57 -| imageMapFile | Name of the image map file. See "The Image Map File" (page 17) for more details. 58 -| name | If name is specified then the hit point is specified as name.x=value; name.y=value; in the form. This is useful when you need to use this element to 59 -\\submit a form to an external URL that expects the hit point to be expressed in a certain format. 60 -| x, y | If specified, returns the coordinates of the user's click within the image. 61 -| target | Frame in a frameset that will receive the page returned as a result of the user's click. 62 -| disabled | If disabled evaluates to true, a regular image element (<IMG>) is generated rather than an active image. 63 -| 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). 46 +|((( 47 +filename 48 +)))|((( 49 +Path to the image relative to the WebServerResources directory. 50 +))) 51 +|((( 52 +framework 53 +)))|((( 54 +Framework that contains the image file. This attribute is only necessary if the image file is in a different location from the component. That is, if the component and the image file are both in the application or if the component and the image file are both in the same framework, this attribute isn't necessary. If the image file is in a framework and the component is in the application, specify the framework's name here (minus the .framework extension). If the image file should be in the application but the component is in a framework, specify the "app" keyword in place of the framework name. 55 +))) 56 +|((( 57 +src 58 +)))|((( 59 +URL containing the image data. Use this attribute for complete URLs; for relative URLs use filename instead. 60 +))) 61 +|((( 62 +value 63 +)))|((( 64 +Image data in the form of a WOElement object. This data can come from a database, a file, or memory. 65 +))) 66 +|((( 67 +action 68 +)))|((( 69 +Method to invoke when this element is clicked. If imageMapFile is specified, action is only invoked if the click is outside any mapped area. In other words, action defines the default action of the active image. 70 +))) 71 +|((( 72 +href 73 +)))|((( 74 +URL to direct the browser to as a default when the image is clicked and no hot zones are hit. 75 +))) 76 +|((( 77 +actionClass 78 +)))|((( 79 +The name of the class in which the directActionName can be found. Defaults to "DirectAction". 80 +))) 81 +|((( 82 +directActionName 83 +)))|((( 84 +The direct action method to invoke when the URL is accessed (minus the "Action" suffix). Defaults to "default". 85 +))) 86 +|((( 87 +data 88 +)))|((( 89 +Specifies an image resource in the form of an NSData; this data can come from a database, a file, or memory. If you specify resource data, you must specify a MIME type. 90 +))) 91 +|((( 92 +mimeType 93 +)))|((( 94 +A string designating a MIME resource type, such as "image/gif", to be put in the content-type header field; this type tells the client what to do with data. If you provide data but no MIME type, an exception is thrown. 95 +))) 96 +|((( 97 +key 98 +)))|((( 99 +A string that the application uses as a key for caching the data specified in data. If you do not provide a key, the data object must be fetched each time it is needed. For further information, see the reference documentation for the WOResourceManager class, (in particular, see the flushDataCache method). 100 +))) 101 +|((( 102 +imageMapFile 103 +)))|((( 104 +Name of the image map file. See "The Image Map File" (page 17) for more details. 105 +))) 106 +|((( 107 +name 108 +)))|((( 109 +If name is specified then the hit point is specified as name.x=value; name.y=value; in the form. This is useful when you need to use this element to 110 +submit a form to an external URL that expects the hit point to be expressed in a certain format. 111 +))) 112 +|((( 113 +x, y 114 +)))|((( 115 +If specified, returns the coordinates of the user's click within the image. 116 +))) 117 +|((( 118 +target 119 +)))|((( 120 +Frame in a frameset that will receive the page returned as a result of the user's click. 121 +))) 122 +|((( 123 +disabled 124 +)))|((( 125 +If disabled evaluates to true, a regular image element (<IMG>) is generated rather than an active image. 126 +))) 127 +|((( 128 +secure 129 +)))|((( 130 +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). 131 +))) 132 +|((( 133 +alt 134 +)))|((( 135 +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). 136 +))) 65 65 66 66 = Examples = 67 67 ... ... @@ -69,11 +69,8 @@ 69 69 70 70 == WOD-style == 71 71 72 -{{code}} 144 +{{code/}} 73 73 74 - 75 -{{/code}} 76 - 77 77 == Inline bindings (WOOGNL) == 78 78 79 79 Calling a method "doSomething" with an image named "WO.jpeg" coming from the Web server resources: ... ... @@ -94,4 +94,4 @@ 94 94 95 95 = Related documents = 96 96 97 -[[ERXActiveImage>>http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXActiveImage.html]] 166 +[[ERXActiveImage>>url:http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXActiveImage.html||shape="rect"]]