• 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: Proper way to close AMD so the Browser does not Prompt Leave Page?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to close AMD so the Browser does not Prompt Leave Page?


  • Subject: Re: Proper way to close AMD so the Browser does not Prompt Leave Page?
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Mon, 24 Feb 2014 12:06:13 -0500

Hi Paul,

I guess you are doing a full page refresh to get that message?

Looking at the JS you could do "AMD.close();” in _javascript_ to get it to close. You could call it programmatically on the _javascript_ client side. 

Alternatively if JS gives you the “heebie jeebies” there is another way. Looking at the pure java, you could access a static method from your bound “action” response by calling “AjaxModalDialog.close()” that will end up invoking that same _javascript_ for you.

A pure _javascript_ close like this should not give the error you speak of.

Cheers,
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike
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
References: 
 >Proper way to close AMD so the Browser does not Prompt Leave Page? (From: Paul Yu <email@hidden>)

  • Prev by Date: Re: Same model with multiple databases and no EOs --a vendor "database"
  • Next by Date: Re: Programmatically loading new models in a new EOModelGroup
  • Previous by thread: Proper way to close AMD so the Browser does not Prompt Leave Page?
  • Next by thread: Ponder docs or examples
  • Index(es):
    • Date
    • Thread