Re: AjaxSubmitButton
Re: AjaxSubmitButton
- Subject: Re: AjaxSubmitButton
- From: Venu A <email@hidden>
- Date: Fri, 22 Jan 2010 20:20:39 +0530
Hi Ramsey,
Finally i got the solution, and thanks for ur help by replying and am posting here the final solution.
When i used <WEBOBJECT NAME=Image1></WEBOBJECT> then the Image is appearing on UI.
When i used <WEBOBJECT NAME=AjaxSubmitButton3><WEBOBJECT NAME=Image1></WEBOBJECT></WEBOBJECT>
then the image is not appearing ,the empty button is appearing.Even i have tryed with elementName="div" (for elementName="button" or elementName="a").
By the adding one more binding(button=false) to the same , it is working fine ,that will be like following
AjaxSubmitButton3: AjaxSubmitButton {
updateContainerID = "MyUpdateContainerID";
elementName = "div";
action = "">
button = false;}
Image1: WOImage {
filename = "mybutton.gif";
}
AjaxUpdateContainer2: AjaxUpdateContainer {
id = "MyUpdateContainerID";
}
Or else using style ,it is working fine by a small modification that is along with height and display,we have to add width also like following
style = "background: url('mybutton.gif');height: 50px;display:block;width: 70px;";
AjaxSubmitButton3: AjaxSubmitButton {
updateContainerID = "MyUpdateContainerID";
elementName = "div";
style = "background: url('mybutton.gif');height: 50px;display:block;width: 70px;";
action = "">}
Thanks,
Venu
On Fri, Jan 22, 2010 at 6:42 PM, Ramsey Lee Gurley
<email@hidden> wrote:
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;";
AjaxSubmitButton3: AjaxSubmitButton {
updateContainerID = "MyUpdateContainerID";
elementName = "button";
action = "">}
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@hidden> 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@hidden> 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@hidden> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (
email@hidden)
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (
email@hidden)
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden