On Jan 22, 2010, at 8:08 AM, Ramsey Lee Gurley wrote:
>
> On Jan 22, 2010, at 2:24 AM, Venu A wrote:
>
>> Hi,
>> Thanks for giving reply,I have the image is in my project's Resources/folder
>> it self. If i given only WOImage (without AjaxSubmitButton) it is appearing
>> on UI. But not appearing when i used the WOImage with AjaxSubmitButton.
>> Am sending the code which is i have,
>>
>> <WEBOBJECT NAME=AjaxSubmitButton3><WEBOBJECT
>> NAME=Image1></WEBOBJECT></WEBOBJECT>
>
> So if you change this to
>
> <WEBOBJECT NAME=Image1></WEBOBJECT>
> <WEBOBJECT NAME=AjaxSubmitButton3><WEBOBJECT
> NAME=Image1></WEBOBJECT></WEBOBJECT>
>
> then Image1 shows up on the outside of the button, but not on the inside???
> That would be really weird. If you change elementName="button"; to
> elementName="div"; do you get the same thing also?
>
> Ok, so if that doesn't work, try to put the image on the button using CSS.
> Something like:
>
> <WEBOBJECT NAME=AjaxSubmitButton3></WEBOBJECT>
>
> --WOD
> AjaxSubmitButton3: AjaxSubmitButton {
> updateContainerID = "MyUpdateContainerID";
> elementName = "div";
> style = "background: url('mybutton.gif')";
I should have probably put a height on that div, otherwise, it will be flat and
you won't see anything. Also adding display:block just in case... Something
like
style = "background: url('mybutton.gif');height: 50px;display:block;";
> action = myAction;
> }
>
>
>>
>>
>> AjaxSubmitButton3: AjaxSubmitButton {
>> updateContainerID = "MyUpdateContainerID";
>> elementName = "button";
>> action = myAction;
>> }
>>
>> Image1: WOImage {
>> filename = "mybutton.gif";
>> }
>>
>> AjaxUpdateContainer2: AjaxUpdateContainer {
>> id = "MyUpdateContainerID";
>> }
>>
>> The image is placed at my project's Resources/mybutton.gif
>>
>> Thanks
>> venu
>>
>> On Thu, Jan 21, 2010 at 8:15 PM, Ramsey Gurley <[email protected]> wrote:
>> If you are not seeing an image it is because the WOResourceManager is not
>> finding your image file. On your eclipse console, you will see a log line
>> that includes something like "ERROR_FILE_NOT_FOUND". Continuing with the
>> example below, you would need to make sure you have an image named
>> "submitImage.jpg" in your project's Resources/ folder. If you have the
>> image anywhere else, it will not be found. If, for example, you had your
>> image in an "Images" folder in your resources folder (Resources/Images/),
>> then you would need to include that like filename="Images/submitImage.jpg";
>>
>> Ramsey
>>
>> On Jan 21, 2010, at 8:52 AM, Venu A wrote:
>>
>>> Hi,
>>>
>>> Thanks for giving the exact information what i want, but it is not working.
>>> The problem is the image(image which is given for WOImage) is not appearing
>>> in the UI.
>>> It is appearing without any image, the small empty button is appearing(but
>>> action is working fine
>>> when i clicked on it),what do i do for getting button with image.
>>>
>>> Thanks and regards,
>>> Venu
>>>
>>>
>>> On Thu, Jan 21, 2010 at 6:20 PM, Ramsey Lee Gurley <[email protected]> wrote:
>>> Please keep the replies on list so other's can benefit from your question.
>>>
>>> An example would be
>>>
>>> <webobject name="SubmitButton"><webobject name="Image"/></webobject>
>>>
>>> SubmitButton: AjaxSubmitButton {
>>> elementName = "button";
>>> updateContainerID = "someID";
>>> }
>>>
>>> Image: WOImage {
>>> filename = "submitImage.jpg";
>>> }
>>>
>>> Or, if you prefer, you could use elementName="a" or "div" or something else
>>> since no version of IE really handles the button element correctly.
>>>
>>> Ramsey
>>>
>>> On Jan 21, 2010, at 2:35 AM, Venu A wrote:
>>>
>>>> Hi,
>>>> thanks for helping, but am not getting exactly, can u post clearly with
>>>> required properties for AjaxSubmitbutton and WOActiveImage. I want to use
>>>> WOActiveImageButton insted of normal html button which is generated by
>>>> AjaxSubmitButton.
>>>>
>>>> Thanks and regards,
>>>> Venu
>>>>
>>>> On Thu, Jan 21, 2010 at 12:01 PM, Ramsey Lee Gurley <[email protected]>
>>>> wrote:
>>>> You can use a binding like
>>>>
>>>> elementName="button";
>>>>
>>>> And then wrap your image with the button.
>>>>
>>>> http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/ajax/AjaxSubmitButton.html
>>>>
>>>>
>>>> On Jan 21, 2010, at 1:22 AM, Venu A wrote:
>>>>
>>>> > Hi all,
>>>> >
>>>> > When i use AjaxSubmitButton it is generated a normal html button, insted
>>>> > of that normal html button i want to use rich button which is created by
>>>> > the tool like
>>>> > submit.jpg button.How can i use the submit.jpg button with same
>>>> > AjaxSubmitButton functionality.plz help me.
>>>> >
>>>> >
>>>> > thanks and regards,
>>>> > Venu
>>>> > _______________________________________________
>>>> > Do not post admin requests to the list. They will be ignored.
>>>> > Webobjects-dev mailing list ([email protected])
>>>> > Help/Unsubscribe/Update your Subscription:
>>>> > http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com
>>>> >
>>>> > This email sent to [email protected]
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com
>>>
>>> This email sent to [email protected]
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com
>>
>> This email sent to [email protected]
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com
>
> This email sent to [email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
