Good afternoon all,

Please forgive me if this is a rookie error. (I'm a designer).

I have this bit of code  $("#pageArea").load(urlToLoad+" #pageArea");
which, for the most part, is doing what I'd expect it to. Swapping out
the #pageArea in the current page, for the #pageArea in another page.

However it's generously adding empty paragraph tags to the content
it's loading in, can't for the life of me work out why.

Chunk of code is, (I'm using the jQuery Address plug-in, by the way)

                $('a').click(function() {
                        urlToLoad = $(this).attr("href");
                        $.address.value(urlToLoad);
                        // Animate #pageArea off the page
                        $("#pageArea").load(urlToLoad+" #pageArea");
                        // Animate #pageArea back into the page
                        return false
                });

If anyone can help me figure out where these mystery empty paragraph
tags are coming from I'd be very very grateful.

Thanks,
Tom

Reply via email to