• 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: AjaxModalDialog.close(context()) being ignored
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxModalDialog.close(context()) being ignored


  • Subject: Re: AjaxModalDialog.close(context()) being ignored
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 1 Feb 2011 19:11:22 -0800

Hi Paul,

Do both buttons have evalScripts = true?  That method returns JavaScript that needs to be evaluated on the client side.  You can also use the JS AMD.close(); to close it.  You should not NEED to do this, but it may provide a clue as to what is or is not wrong.


Chuck


On Feb 1, 2011, at 7:02 PM, Paul Hoadley wrote:

> Hello,
>
> I'm using WO 5.4.3, and Ajax.framework that I downloaded just now to see if there had been a fix, but the rest of Wonder from a month or so ago.
>
> I have a page that contains two AjaxModalDialogs with different 'id' bindings.  They're quite similar, both containing two AjaxSubmitButtons, one of which is a "Cancel" button, the other performs some task.  The action methods for both of those task buttons are pretty similar: perform a task, AjaxModalDialog.close(context());, return null.  One of the AMDs closes after the action is performed, the other doesn't.  The page gets updated properly behind the translucent drop-down, but I have to click the 'X' button to close the AMD.
>
> I can't put my finger on any relevant differences between the two AMDs, or their action methods.  I've simplified the page and removed the AMD that functions correctly, the other one still fails to respond to AjaxModalDialog.close(context()) when it's the only AMD on the page.  I see nothing in Safari's error console.  Firebug shows two fewer GET requests in the AMD that's not closing compared to the one that is.
>
> Are there known conditions where AjaxModalDialog.close(context()) will fail?
>
>
> --
> Paul.
>
> http://logicsquad.net/
>
>
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







Attachment: 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

  • Follow-Ups:
    • Re: AjaxModalDialog.close(context()) being ignored
      • From: Paul Hoadley <email@hidden>
References: 
 >AjaxModalDialog.close(context()) being ignored (From: Paul Hoadley <email@hidden>)

  • Prev by Date: AjaxModalDialog.close(context()) being ignored
  • Next by Date: Re: Better D2W question: pull down lists for relationships
  • Previous by thread: AjaxModalDialog.close(context()) being ignored
  • Next by thread: Re: AjaxModalDialog.close(context()) being ignored
  • Index(es):
    • Date
    • Thread