Hi everyone,

I'm having a problem with the Tapestry validation in IE6/7.

I'll try to explain as best as I can - please feel free to ask for more
details if required.

I've created a lightbox component (using Control.Window -
http://livepipe.net/control/window). The requirement is to have the
lightbox display immediately when a certain page is loaded. The content
for the lightbox window is inside a div already on the page. It works
correctly, the content is moved from its place on the page and put into
the lightbox which is then displayed on page load.

Here's the problem: the content we're putting into the lightbox is a
form and the validation initilization is failing in IE6/7. (After
upgrading to the latest version of Prototype, it's now working fine in
IE8.)

I've spent quite a bit of time trying to fix this problem and I've run
out of ideas. I've tracked it down to the very line in the code, but I'm
at a loss as to why it's occurring. This is what I've discovered:

The failure occurs during the Tapestry.init function. I've traced the
javascript execution through and I've found the exact line it's failing
on - during the call to the Tapestry.Initializer.validate function, it's
failing on this line:

        $(field.form).getFormEventManager();

and stepping through the function it's specifically failing within the
$() call! In prototype.js, when it comes to returning the extended
element (last line of the $() function):

        return Element.extend(element);

it fails and goes to the try/catch statement of Enumerable.each.

As I said, I've spent a stupid amount of time trying to debug this and
work around it, but I've now completely blown through every idea I've
had. I've tried using a different lightbox library but the same thing
happens - which is the only clue to the problem I have. Forms on a
normal page work just fine, it's just when the lightbox comes into play
that it fails.

Seeing how it works on everything but IE6/7 it's obviously a quirk with
them, but I'm completely at a loss as to what they are doing
differently.

If anyone has any ideas I'd be extremely appreciative!

Thanks,
Drew

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to