[jQuery] Load problem

2006-10-10 Thread Glen Lipka
Just updated to 1.0.2. I am not sure what I am doing wrong on this page.http://glenlipka.kokopop.com/jQuery/slideMenu.htm - this one works. I explicitly put the divs on the page.
http://glenlipka.kokopop.com/jQuery/slideMenu/slideMenu.htm - this one does not work. In this one, I am trying to make the footprint zero so that all the different people who will use this only need to add the jQuery library and the 1 script and the 1 css. Although I'd like to append the CSS too in the script. 
What am I doing wrong? Suggestions for being more effecient?This will get used by alot of our sites in the next 4 months if I can nail it.Thanks,Glen
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Load problem

2006-10-10 Thread Karl Swedberg
Hi Glen,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");worth a shot?Karl___Karl Swedbergwww.englishrules.comwww.learningjquery.com On Oct 10, 2006, at 1:16 PM, Glen Lipka wrote:Just updated to 1.0.2.  I am not sure what I am doing wrong on this page.http://glenlipka.kokopop.com/jQuery/slideMenu.htm - this one works.  I explicitly put the divs on the page. http://glenlipka.kokopop.com/jQuery/slideMenu/slideMenu.htm - this one does not work.  In this one, I am trying to make the footprint zero so that all the different people who will use this only need to add the jQuery library and the 1 script and the 1 css.  Although I'd like to append the CSS too in the script.  What am I doing wrong? Suggestions for being more effecient?This will get used by alot of our sites in the next 4 months if I can nail it.Thanks,Glen___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Load problem

2006-10-10 Thread Karl Swedberg
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___Karl Swedbergwww.englishrules.comwww.learningjquery.com___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Load problem

2006-10-10 Thread Glen Lipka
It's not obvious. I'm not that good. :) I need the fundamentals.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.
GlenOn 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___Karl Swedberg
www.englishrules.comwww.learningjquery.com
___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Load problem

2006-10-10 Thread Glen Lipka
Ok, I took out {test: true}, and now it works.What is the thing for? It's in the API, but the AJAXModule Wiki page did not have it.Maybe someone should check the API detail for Load and see if the specifics are not valid anymore?
GlenOn 10/10/06, Glen Lipka [EMAIL PROTECTED] wrote:
It's not obvious. I'm not that good. :) I need the fundamentals.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.
GlenOn 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___Karl Swedberg

www.englishrules.comwww.learningjquery.com

___jQuery mailing listdiscuss@jquery.com

http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Load problem

2006-10-10 Thread Glen Lipka
This works perfect. Thank you.What is the difference between having the test and not having the test the way I wrote previously?GlenOn 10/10/06, 
Karl Swedberg [EMAIL PROTECTED] wrote:
On Oct 10, 2006, at 2:30 PM, Glen Lipka wrote:
It's not obvious. I'm not that good. :) I need the fundamentals.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
doesfire.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.
GlenWell, I'm not that bright, so we're even. ;-)And since I couldn't explain well enough what I'd do to change things, I rebuilt your page on my server, minus a couple images:
http://test.learningjquery.com/slideMenu/slideMenu.htm
It's working here for me in IE and Firefox. Feel free to copy it all back to your server if you want.Cheers,Karl___
Karl Swedbergwww.englishrules.com
www.learningjquery.com
___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/