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
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
It is definately the onAfter that FF doesn't like in this scenario.
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
> > >
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
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
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!
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
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
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
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
> > 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!
> 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.
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
Thanks, I will try it.
> > 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);
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!
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,
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
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
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
> 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
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
23 matches
Mail list logo