So I tried putting return false after the img lines as you suggested, but that didn't change it.
I also pulled it out completely and that had no change either.
If I get rid of the call back I end up with:
$("body").prepend("<div id='IntuitHeader'></div>");
$("#IntuitHeader").load("IntuitProducts.htm");
This loads properly, but no toggle.
However, when I do this:
$("body").prepend("<div id='IntuitHeader'></div>");
$("#IntuitHeader").load(" IntuitProducts.htm",
{test: true},
function()
{
alert('test');
}
);
In that case, the html from intuitHeader doesnt appear. However, the alert does fire.
Am I using the callback feature incorrectly? The reason I am using it is because I want to bind the toggle function after the html loads.
Glen
On 10/10/06, Karl Swedberg <[EMAIL PROTECTED]> wrote:
On Oct 10, 2006, at 1:41 PM, Karl Swedberg wrote:When I put "jQueryGlobalFunctions();" into FireBug, I got "False."I'm guessing that your "return false" inside toggle() is in the wrong place. Try putting it right after$("img.handle").src("images/barHandleup.gif");and$("img.handle").src("images/barHandledown.gif");
and remove it from where it is two lines below $("img.handle").src("images/barHandledown.gif");sorry, Glen. I think I was looking at the wrong page (the first, not the second,http://glenlipka.kokopop.com/jQuery/slideMenu/slideMenu.htm).Nevertheless, when I tried using your code to prepend the header and then .load() without the callbacks, it worked -- in Firebug.Maybe you could troubleshoot by taking the callbacks out of .load(). Then put the second one in there (the function() with toggle() ) and see if that works. If it does, then put that parameter back in ( {test: true}, ).By the way, not sure if it's necessary to have "return false" in your $(document).ready() ?My apologies if this is all painfully obvious stuff.Cheers,Karl
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/