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 "success" page simply look
> like:
>
<html><head><script>parent.thickboxDone()</script></head><body></body></
html>
> 
> So when your form is successfully processed, your top level
> thickboxDone() function will get called. Bear in mind that this will
> only work if your form and your main page are on the exact same
> domain. If only the last part of the domain is the same (like one is
> www.site.com and the other is login.site.com), you can still make it
> work by setting document.domain to 'site.com' on both pages.

I think I can work with this but it becomes a bit of a kludge. (Not a
knock at you of course.)

Here are two scenarios:

Current, without Javascript:

Parent page > form page loads > back to parent page

Proposed solution, with Javascript:

Parent page > thickbox loads form page > successful page loads, thickbox
closes, back to parent

Proposed solution, without Javascript:

Parent page > form page loads > successful page loads, user just sits at
a blank page


I want to start writing my apps with progressive enhancement in mind so
considering the above, what are my other options?

I can say that I only chose the IFrame method of TB because it worked
correctly with my stylesheet. When I loaded the form page through the
AJAX method the styles from my page were totally ignored. I could go
back to the AJAX method if it would make my goal easier to achieve.


Thanks,
Chris.

Reply via email to