I found the problem.

$('a.thickbox').click(function(){
                        $(*).css("padding",0);
                        $(*).css("margin",0);
                });

I hadn't pasted that in the mail because I didn't think of the missing
quotes around * causing a problem. I'm pretty sure I just pasted that
directly from somewhere... Anyway, don't ya hate it when you spend
hours scouring your code and questioning your sanity and the whole
time it was someone else's causing problems :/ Live and learn...

David D

On Apr 8, 10:53 pm, David D <[EMAIL PROTECTED]> wrote:
> I'm not for certain the event is firing. What seems kind of strange is
> hide, show, and other effects dont seem to work correctly in that
> particular area of the page as well. What marr.adam is saying does
> kind of describe what seems to be happening, but it only happens from
> the main page. I am running a php framework (xaraya) and any jquery
> code that is loaded from other templates appear to work correctly in
> IE 7. I'm rather stumped. The only thing I can think of is to work on
> the rest of the project and hope I find an answer somewhere along the
> way.
>
> David D
>
> On Apr 6, 10:35 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote:
>
> > Either the event didn't bind properly, or something is preventing it
> > reaching "return false;"
>
> > Is the even definitely firing? Do your other calls include the fadeOut
> > and, if not, does it work when you remove that line?
>
> > On Apr 7, 9:39 am, David D <[EMAIL PROTECTED]> wrote:
>
> > > I have a login box that loads inside a container via an ajax request,
> > > using .click. Here's the code:
>
> > > $(document).ready(function(){
> > >                 $('a.login').click(function(){
> > >                         var thiscontainer = "#" + this.rel;
> > >                         $.ajax({
> > >                                 url: this.href + "&pageName=html",
> > >                                 cache: false,
> > >                                 success: function(html){
> > >                                 $(thiscontainer).append(html);
> > >                                 }
> > >                         });
> > >                         $('.login').fadeOut('slow');
> > >                         return false;
> > >                 });
> > >         });
>
> > > It works fine in FF2, but in IE7 it just opens the url, instead of
> > > loading the requested page in the container (div).
>
> > > I have several other ajax requests that use the same code and they all
> > > seem to work fine in IE7. Any ideas why this particular request is
> > > different?  Thanks for the help.

Reply via email to