[jQuery] Re: Closing jqModal from inside of content loaded with AJAX
Close me http://www.warden.pl/jq/test1/# ... or Test mehttp://www.warden.pl/jq/test1/#... or You need to specify below code in examples/2.html: http://www.warden.pl/jq/test1/#a href=# onclick=parent.closeWindow();Close me/a in parent window $(document).ready(function(){ closeWindow= function() { parent.$.fn.colorbox.close(); } }); i hope this is helps u.. Thanks, On Wed, May 20, 2009 at 2:45 AM, wardenik radek.anton...@gmail.com wrote: On May 16, 1:33 pm, wardenik radek.anton...@gmail.com wrote: Hi, I've put the sample code here:http://www.warden.pl/jq/test1/ Any help appreciated cause I'm out of ideas... :/ After clicking Reload button, the same ajax.php is loaded, but the closeme doesn't work any more. Nor the test me which is invoked as you have written earlier. Anybody?
[jQuery] Re: Closing jqModal from inside of content loaded with AJAX
On May 16, 1:33 pm, wardenik radek.anton...@gmail.com wrote: Hi, I've put the sample code here:http://www.warden.pl/jq/test1/ Any help appreciated cause I'm out of ideas... :/ After clicking Reload button, the same ajax.php is loaded, but the closeme doesn't work any more. Nor the test me which is invoked as you have written earlier. Anybody?
[jQuery] Re: Closing jqModal from inside of content loaded with AJAX
Hi, Actually this doesn't work for me, not even in a very basic example from jquery modal page. Anyway, I was not specific enough. In your scenario it is enough to have a href=# class=jqmClose Close me /a inside of the AJAX loaded page. The problem I have is that I have a form inside the ajax page, that is using ajaxForm (jqForm plugin). And after the form is submitted, the link does not work anymore :( Any ideas?
[jQuery] Re: Closing jqModal from inside of content loaded with AJAX
Hi, I've put the sample code here: http://www.warden.pl/jq/test1/ Any help appreciated cause I'm out of ideas... :/ After clicking Reload button, the same ajax.php is loaded, but the close me doesn't work any more. Nor the test me which is invoked as you have written earlier. THanks!
[jQuery] Re: Closing jqModal from inside of content loaded with AJAX
Hi Dude, below is the solution for it: lets say ajax load page contains a href='#' onclick='parent.CloseAjaxPage();'Close Ajax/a And on parent page implement this code: CloseAjaxPage = function(){ $(#modalClose).click(); } I hope this is clear Please let me know if u have any issues Happy JQuerying.. On Thu, May 14, 2009 at 9:08 PM, wardenik radek.anton...@gmail.com wrote: Hi, I have a standard page loaded with jqmodal box that is loading a form via ajax. Now I want to close that modal after submit from the inside of page that was loaded, depending on the form result. I've tried parent.$(.jqmAlert).jqmHide(); and many other versions but I always get h is undefined or some other errors. Maybe somebody had this problem and can give me a hint? Thanks!