[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-11 Thread OutOfTouch
On Nov 11, 9:35 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > For some reason  var index = $ > > (this).parent().children().index(this); returns -1  and it appears to > > be stuck in the onAfter method. > > Hmm.  Try this instead: > > function onAfter(curr, next, opts) { >     var index = opts.c

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-11 Thread OutOfTouch
Hi Mike, After several tests for some reason FF doesn't like the onAfter and stops working for me after changing values in the select list and getting new image data. For some reason var index = $ (this).parent().children().index(this); returns -1 and it appears to be stuck in the onAfter metho

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
It is definately the onAfter that FF doesn't like in this scenario.

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
On Nov 10, 12:52 pm, OutOfTouch <[EMAIL PROTECTED]> wrote: > On Nov 10, 11:50 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > > > The only code you would have to write is > > > some php method to take in a parameter to give you the images data > > >

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
On Nov 10, 11:50 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > The only code you would have to write is > > some php method to take in a parameter to give you the images data > > array for the selected value in the dropdown. > > http://jquery.malsup.com/cycle/sets.html > > 1) Starts with an empty

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
On Nov 10, 10:02 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Have you been able to reproduce a similar error using php and FF? > > Maybe you could try with an empty container like me and load the > > slides with some data from the server, very similar to your add6 > > example. > > You need to m

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
Hi Mike, Have you been able to reproduce a similar error using php and FF? Maybe you could try with an empty container like me and load the slides with some data from the server, very similar to your add6 example. Thank You!

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-08 Thread OutOfTouch
I just noticed that I still need to hide everything and return false when the "Please Select a Value is chosen in the dropdown. The bug I am seeing in FF though is going back and forth between two real values where I get real images loaded. JavaScript: var length; var mailPieceGroups; var slides

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-07 Thread OutOfTouch
On Nov 7, 6:42 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > I forgot to mention that I hide the containing div when nothing is > > loaded as well as the nav container. > > Then I show it in step2 maybe FF doesn't like me calling show > > everytime when it is already showing? > > Can you post a li

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-07 Thread OutOfTouch
On Nov 7, 6:10 pm, OutOfTouch <[EMAIL PROTECTED]> wrote: > Mike, I just wanted to say thanks for all your help again. > Everything works great in IE7, but in FF for some reason the next and > prev buttons stop functioniong after awhile > 1) Page loads no images in containing

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-07 Thread OutOfTouch
Mike, I just wanted to say thanks for all your help again. Everything works great in IE7, but in FF for some reason the next and prev buttons stop functioniong after awhile 1) Page loads no images in containing div 2) Select a value from drop down get json data from server, stop cycle, load images

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-06 Thread OutOfTouch
> > Is there a way to get the index of the image in the after method? > > View source on this page to see how to get the index: > > http://www.malsup.com/jquery/cycle/after.html Perfect thanks!

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-06 Thread OutOfTouch
> Looks to me like '#slideshow' is empty when you call cycle.  That is > not allowed.- Hide quoted text - > > - Show quoted text - Yep that was it so I guess I will have to append the images before .cycle is called. And use the onAfter to set my description text when the next or prev is clicked.

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-06 Thread OutOfTouch
Ok I am actually trying stuff now and can't get the onBefore to fire. Here is what I decided to do: When the selected value in a dropdown changes I make an ajax call and get JSON data back. And load all the images at once, no images are prexsting in the markup. Here is my JavaScript. $('#nav2').h

[jQuery] Re: Hide/Show in IE 6

2008-11-05 Thread OutOfTouch
Thanks, I will try it.

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-05 Thread OutOfTouch
> > Can I clear out what was previously loaded, so the only the selected > > category is being viewed? > > Yes.  Stop the slideshow, empty it, reload it, and then restart it. > > var $slideshow = $('#slideshow').cycle('stop').empty(); > $slideshow.append( mySlide1); > $slideshow.append( mySlide2);

[jQuery] Hide/Show in IE 6

2008-11-05 Thread OutOfTouch
Will this work in IE 6? $('#listings').show(); I can't remember for sure but I thought that didn't work in IE 6. Thanks!

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-04 Thread OutOfTouch
On Nov 4, 10:08 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Can I still load the image but not cycle if there is only one image > > and also hide the prev/next buttons? > > Sure. I just mean that cycle will not function with only a single > slide. You can manipulate the DOM however you choose,

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-04 Thread OutOfTouch
On Nov 4, 5:59 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Thanks for the help with the change event hookup and the new example. > > Can I have no slides preloaded and just load them on the fly? > > No, when you call cycle there must be at least two slides in the > container. > Can I still loa

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-03 Thread OutOfTouch
Hi Mike, Thanks for the help with the change event hookup and the new example. Can I have no slides preloaded and just load them on the fly? I have dropdown where users will choose what category they want to view images from that will make an ajax call to get the images for the selected category

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-02 Thread OutOfTouch
Hi Mike, A couple more questions. I know this off topic but I am searching for in the Jquery documentation how to hook into the selection changed of a dropdownlist to implement my ajax call, if you could point me in the right direction I would be much appreciative. Where can I view the api doc

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-02 Thread OutOfTouch
> No, the add2 demo shows a way to fetch one image at a time.  Cycle > provides the hooks to do whatever you need to do.  There are before/ > after callbacks and there is an addSlide method on the options object > which is passed into them.  But it's up to you to determine the best > approach for

[jQuery] How to load only one image at a time using JQuery Cycle Plugin?

2008-11-02 Thread OutOfTouch
Hi, I am looking for some help on how to only have one image at a time in the page using an ajax call to get the images, or get all images using ajax, but when next or prev navs are clicked to only load the next or previous image by cycling thru a JavaScript array. Loading alot of images at once