[jQuery] Re: window close function _
On Sep 30, 11:21 am, -JD- juhand...@gmail.com wrote: Al cerrar una pagina necesito llamar a otra para poder hacer algunos cambios en mi DB. Intenté con esto: $(window).unload( function () { alert(Bye now!); } ); Which is so much simpler than: window.onunload = function () { alert(Bye now!); }; -- Rob
[jQuery] Re: window close function _
In that it handles the case where distinct independent (mutually unaware, even) portions of the page may want their own unload callbacks invoked, I'd say so. 2009/9/29 RobG robg...@gmail.com: On Sep 30, 11:21 am, -JD- juhand...@gmail.com wrote: Al cerrar una pagina necesito llamar a otra para poder hacer algunos cambios en mi DB. Intenté con esto: $(window).unload( function () { alert(Bye now!); } ); Which is so much simpler than: window.onunload = function () { alert(Bye now!); }; -- Rob -- Turtle, turtle, on the ground, Pink and shiny, turn around.
[jQuery] Re: window close function _
On Sep 30, 2:02 pm, Mike McNally emmecin...@gmail.com wrote: In that it handles the case where distinct independent (mutually unaware, even) portions of the page may want their own unload callbacks invoked, I'd say so. If you like breaking fast history navigation, go for it. Better to avoid unload listeners altogether. -- Rob
[jQuery] Re: window close function _
I don't like them, but they're useful for applications where there are compositional dialog-like things, such as email or email-like applications, or maybe a blog. It's nice to be able to warn people that they're about to dump all their typing on the floor. But I agree that when possible it's better to design around the need for such things. On Tue, Sep 29, 2009 at 11:10 PM, RobG robg...@gmail.com wrote: On Sep 30, 2:02 pm, Mike McNally emmecin...@gmail.com wrote: In that it handles the case where distinct independent (mutually unaware, even) portions of the page may want their own unload callbacks invoked, I'd say so. If you like breaking fast history navigation, go for it. Better to avoid unload listeners altogether. -- Rob -- Turtle, turtle, on the ground, Pink and shiny, turn around.
[jQuery] Re: window close
I think your close link is in the wrong scope for what you want to do. You probably want to have something along these lines: div id=the_pop_up_div [close link] div [external content here] /div /div On Wed, Nov 26, 2008 at 12:30 AM, Namrata Vagyani [EMAIL PROTECTED]wrote: yes the content of pop-up is in external file. I tried with ID also but not able to hide it. On Tue, Nov 25, 2008 at 10:41 AM, brian [EMAIL PROTECTED] wrote: Is the content of the pop-up (including the close link) an external file? In any case, why not just give the pop-up div an ID? On Tue, Nov 25, 2008 at 12:05 AM, Namrata Vagyani [EMAIL PROTECTED] wrote: This is also not working :( On Mon, Nov 24, 2008 at 7:51 PM, Isaak Malik [EMAIL PROTECTED] wrote: Try: $(this).parents('.popup_window_wrapper').hide(); On Mon, Nov 24, 2008 at 6:08 AM, Debby [EMAIL PROTECTED]wrote: Hi all, On click of hyperlink, i am cerating one popup which is under one div having class but no id. On click of close window hyperlink in the popup i want to hide this popup. But not able to hide this. I tried this, but not working $(this).parent('.popup_window_wrapper').css({'display':'none'}); popup_window_wrapper: Is the class of popup div. Please help me. -- Isaak Malik Web Developer
[jQuery] Re: window close
Is the content of the pop-up (including the close link) an external file? In any case, why not just give the pop-up div an ID? On Tue, Nov 25, 2008 at 12:05 AM, Namrata Vagyani [EMAIL PROTECTED]wrote: This is also not working :( On Mon, Nov 24, 2008 at 7:51 PM, Isaak Malik [EMAIL PROTECTED] wrote: Try: $(this).parents('.popup_window_wrapper').hide(); On Mon, Nov 24, 2008 at 6:08 AM, Debby [EMAIL PROTECTED] wrote: Hi all, On click of hyperlink, i am cerating one popup which is under one div having class but no id. On click of close window hyperlink in the popup i want to hide this popup. But not able to hide this. I tried this, but not working $(this).parent('.popup_window_wrapper').css({'display':'none'}); popup_window_wrapper: Is the class of popup div. Please help me. -- Isaak Malik Web Developer
[jQuery] Re: window close
yes the content of pop-up is in external file. I tried with ID also but not able to hide it. On Tue, Nov 25, 2008 at 10:41 AM, brian [EMAIL PROTECTED] wrote: Is the content of the pop-up (including the close link) an external file? In any case, why not just give the pop-up div an ID? On Tue, Nov 25, 2008 at 12:05 AM, Namrata Vagyani [EMAIL PROTECTED] wrote: This is also not working :( On Mon, Nov 24, 2008 at 7:51 PM, Isaak Malik [EMAIL PROTECTED] wrote: Try: $(this).parents('.popup_window_wrapper').hide(); On Mon, Nov 24, 2008 at 6:08 AM, Debby [EMAIL PROTECTED] wrote: Hi all, On click of hyperlink, i am cerating one popup which is under one div having class but no id. On click of close window hyperlink in the popup i want to hide this popup. But not able to hide this. I tried this, but not working $(this).parent('.popup_window_wrapper').css({'display':'none'}); popup_window_wrapper: Is the class of popup div. Please help me. -- Isaak Malik Web Developer
[jQuery] Re: window close
Try: $(this).parents('.popup_window_wrapper').hide(); On Mon, Nov 24, 2008 at 6:08 AM, Debby [EMAIL PROTECTED] wrote: Hi all, On click of hyperlink, i am cerating one popup which is under one div having class but no id. On click of close window hyperlink in the popup i want to hide this popup. But not able to hide this. I tried this, but not working $(this).parent('.popup_window_wrapper').css({'display':'none'}); popup_window_wrapper: Is the class of popup div. Please help me. -- Isaak Malik Web Developer
[jQuery] Re: window close
This is also not working :( On Mon, Nov 24, 2008 at 7:51 PM, Isaak Malik [EMAIL PROTECTED] wrote: Try: $(this).parents('.popup_window_wrapper').hide(); On Mon, Nov 24, 2008 at 6:08 AM, Debby [EMAIL PROTECTED] wrote: Hi all, On click of hyperlink, i am cerating one popup which is under one div having class but no id. On click of close window hyperlink in the popup i want to hide this popup. But not able to hide this. I tried this, but not working $(this).parent('.popup_window_wrapper').css({'display':'none'}); popup_window_wrapper: Is the class of popup div. Please help me. -- Isaak Malik Web Developer