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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

-- 
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to