• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxSubmitButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxSubmitButton


  • Subject: Re: AjaxSubmitButton
  • From: "pavan.jayam" <email@hidden>
  • Date: Thu, 08 Sep 2011 12:25:29 +0530

Hi List,

Followed the same way that mentioned below email threads. It is working fine with Firefox/Safari/Chrome but the "action = myAction" is not calling when i click the Image1( surrounded by button) in "IE 7 or 8 versions".

(<WEBOBJECT NAME=AjaxSubmitButton3>
   <WEBOBJECT NAME=Image1></WEBOBJECT>
</WEBOBJECT>)

Please advise.

Regards,
JPK.

----------------
> 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')";
   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@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:
>>> > >>> >
>>> > 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
>
>
> _______________________________________________
> 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


smime.p7s
Description: S/MIME cryptographic signature




_______________________________________________ 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
  • Prev by Date: Re: Release of bunch of slides from WOWODC 2011
  • Next by Date: Re: Release of bunch of slides from WOWODC 2011
  • Previous by thread: Re: Release of bunch of slides from WOWODC 2011
  • Next by thread: one-to-many relationship question
  • Index(es):
    • Date
    • Thread