[jQuery] Re: Find array key of value

2010-01-12 Thread Šime Vidas
How does the user select which image he wants to view?

[jQuery] Re: Find array key of value

2010-01-12 Thread knal
@Sime The user is going to click 'Previous' 'Next' links... @Brian I have my images in an array (retrieved from the source, thanks for the tip) When i read the SRC from the current image, i want to know it's location in the array. This way i could either subtract 1 or add 1 to the current

Re: [jQuery] Re: Find array key of value

2010-01-12 Thread Karl Swedberg
On Jan 12, 2010, at 7:32 AM, knal wrote: @Brian I have my images in an array (retrieved from the source, thanks for the tip) When i read the SRC from the current image, i want to know it's location in the array. This way i could either subtract 1 or add 1 to the current indexkey so i know what

[jQuery] Re: Find array key of value

2010-01-12 Thread knal
Great!! That has to solve my quest! On Jan 12, 3:31 pm, Karl Swedberg k...@englishrules.com wrote: On Jan 12, 2010, at 7:32 AM, knal wrote: @Brian I have my images in an array (retrieved from the source, thanks for the tip) When i read the SRC from the current image, i want to know it's