[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Chris W. Parker
On Wednesday, April 04, 2007 12:08 PM Erik Beeson <> said: > The page doesn't have to be blank, you could at least have a link back > to where the user came from or something. [snip] This approach makes a bit more sense to me. Thanks for all the information. Chris.

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
The page doesn't have to be blank, you could at least have a link back to where the user came from or something. But it's true that that isn't quite as clean. The way I do this is to use ajax on the form page, and do the thickboxDone() stuff from the ajax callback. With the form plugin, it's rea

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
It'll still work fine. _top and _parent both load in the current window if it is already the top level window. --Erik On 4/4/07, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: yep but it would become obtrusive javascript enabled --> thickbox loads ---> so I need to "give the link to the

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Chris W. Parker
On Wednesday, April 04, 2007 11:05 AM Erik Beeson <> said: > It's almost 11am and I'm still awake from yesterday. I'm very likely > not communicating well :) It's ok. Thanks for taking the time to answer my question. :) > If you're using separate > pages for your form, you could have the "succe

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Olivier Percebois-Garve
yep but it would become obtrusive javascript enabled --> thickbox loads ---> so I need to "give the link to the parent" no javascript ---> the iframe load like a normal pahe ---> there is no parent so the link should behave normally what do u think ? Erik Beeson wrote: Depending on your

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
It's almost 11am and I'm still awake from yesterday. I'm very likely not communicating well :) To close the thickbox, you need to call TB_remove(). But you can't just call TB_remove from one of your pages that have been loaded in the thickbox iframe, it needs to be called from the top level page

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Olivier Percebois-Garve
ohh sorry I didn't had in mind that it was a form not a link Chris W. Parker wrote: Hello, I'm using ThickBox in IFrame mode and I'm loading a form that submits to another page and then redirects to a third page. I just did a test of this and ThickBox loads my form page fine but after I submit

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
Depending on your setup, you could instead just set the target of your links to _parent or _top. --Erik On 4/4/07, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: I use this in my iframe code : $(document).ready(function() { $('a').click(function(){ parent.locatio

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Olivier Percebois-Garve
I use this in my iframe code : $(document).ready(function() { $('a').click(function(){ parent.location.href=$(this).href(); }); }); Olivier Chris W. Parker wrote: Hello, I'm using ThickBox in IFrame mode and I'm loading a form that submits to another page and

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Chris W. Parker
On Wednesday, April 04, 2007 10:15 AM Erik Beeson <> said: > TB_remove() closes the thickbox, but you need to call it from the > context of the top window, not the inner iframe window. So you > probably want to do something like parent.TB_remove() on the last > page. Or, if you want to remove the

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
TB_remove() closes the thickbox, but you need to call it from the context of the top window, not the inner iframe window. So you probably want to do something like parent.TB_remove() on the last page. Or, if you want to remove the thickbox and update the underlying page, you might want to just do