[jQuery] Re: Function won't fire on load...

2010-01-15 Thread knal
efore you can > look for any elements, I moved the if statement below and wrapped it > in the ready function. This seems to work for me, it hides an image > inside . > > Good luck, > JT > > On Jan 14, 12:38 am, knal wrote: > > > Hi there, > > > I have

[jQuery] Re: Function won't fire on load...

2010-01-14 Thread knal
Darn, you are so right! Of course it makes sense once you know it. Thanks a lot!! On Jan 14, 10:01 am, Gus Waddell wrote: > Hi Knal, > > You need to have the function available before you try and call it. Try > putting the $.fn.extend at the top of

[jQuery] Function won't fire on load...

2010-01-14 Thread knal
will be greatly appreciated! Thanks, Knal $(function(){ if( !$( "div.introbody" ).length ){ $( ".project" ).initSlides() } $.fn.extend({ initSlides: function() { var t = $(this).attr( "i

[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 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 curr

[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 indexk

[jQuery] Find array key of value

2010-01-12 Thread knal
ray. I hope this kind of makes sense. Any help will be greatly appreciated! Thanks, Knal

[jQuery] Corresponding indexes with images

2010-01-07 Thread knal
te({opacity: 1}, 1000, 'linear'); }); return false; }) Of course, this only works if there are only two images in the containing div, but it's a dynamic amount. So i'll need to pass their indexes to the function, but how? Any help would be greatly appreciated! Thanks, knal.

[jQuery] Re: Pass object to function

2010-01-07 Thread knal
Aha, thanks for trhe extra info! Some other things are clear to me now! Thanks again! On Jan 6, 9:17 pm, Scott Sauyet wrote: > On Jan 6, 2:17 pm, knal wrote: > > > BTW It also works without the " return this.each() { " part! > > Yes, but that allows y

[jQuery] Re: Pass object to function

2010-01-06 Thread knal
Great!! I got it working! Thanks you very much!!! BTW It also works without the " return this.each() { " part! On 6 jan, 17:32, Šime Vidas wrote: > $("a.less").livequery( 'click', function() { >         $(this).closest(".project").closeProject(); >         return false; > > }); > > $.fn.extend(

[jQuery] Re: Pass object to function

2010-01-06 Thread knal
Because i'm using the slide effect on multiple places so i would like to create a function for it. I just seem to be unable to get the object passed into the function the way it 'should'... Thanks for your reply though! On Jan 6, 2:54 pm, Šime Vidas wrote: > why not just > >     $("a.less").

[jQuery] Pass object to function

2010-01-06 Thread knal
#x27;normal') } }); It works, but as you can see i pass the object twice to the function, but i know i shouldn't have to and be able to only write something like: $( "#"+$(this).closest( "div.project" ).attr( "id" ) ).closeProject (); // <-- nothing between last brackets! I hope this is clear and makes sense! Thanks in advance, Knal

[jQuery] Multiple Accordions outside window

2009-12-28 Thread knal
e one that's visible, the window doesn't know where to scroll, and lingers somewehere in between... Any ideas out there how to prevent the scrolling at all? Thanks, knal.

[jQuery] Append to .load() element

2009-11-19 Thread knal
Hi there, I have a (few) jQuery UI's accordions on a single page, ever accordion exists of two elements; one visible, one hidden. Initially the invisible one has no content, but it's loaded with jQuery. My code looks like this: [code] $('.project').each(function(){ var cu

[jQuery] Re: Replace image with SWF onClick

2009-10-17 Thread knal
tag onload? > > http://flowplayer.org/documentation/users-guide.html > > <http://flowplayer.org/documentation/users-guide.html> > - S > > 2009/10/17 knal > > > > > Hi group, > > > I'm trying to achieve something (which doesn't seem to diffic

[jQuery] Replace image with SWF onClick

2009-10-17 Thread knal
deofile. If the user clicks the link, i want to replace the link+image by the swf video with the same dimensions... Hope this kind of makes sense. Thanks in advance, Knal

[jQuery] Re: Manipulate href

2009-08-19 Thread knal
Miloš Rašić wrote: > You need the each() method because you are modifying each href to a > new value that depends on an old value. In order to do this, you need > to somehow retrieve the old value and for this you need the $(this) > pointer which is only available in the context of me

[jQuery] Re: Manipulate href

2009-08-17 Thread knal
Thanks again! On 17 aug, 21:19, Leonardo K wrote: > $("#my_list a").each(function(){ >     newhref = '#' + $(this).attr('href').split("/")[3]; >     $(this).attr('href', newhref); >   }); > > On Mon, Aug 17, 2009 at 16:07, knal

[jQuery] Manipulate href

2009-08-17 Thread knal
now how to achieve this. I've been googling it for three hours now, but i jus't can't get it to work. Any help would be greatly appreciated! Thanks, Knal

[jQuery] Difficulties with traversing

2009-07-29 Thread knal
Hi there, I'm trying to fake a hover effect. The markup (roughly) looks like this: [code] Portfolio Folio Project Description… Portfolio Folio Project 2 Description 2… [/code] While hovering the H1 link i want th

[jQuery] Re: Bug w/ AjaxSubmit?

2009-03-10 Thread knal
Great! Thanks, Knal On Mar 10, 1:03 am, Mike Alsup wrote: > > I'm using Validate and AjaxSubmit on a form of mine. > > It's on a "long" webpage, where you need to scroll to reach the form. > > > For this reason in the action i've added index.php#c

[jQuery] Bug w/ AjaxSubmit?

2009-03-09 Thread knal
m. Only, IE & AjaxSubmit seem to freeze on a hash in the action. Any clues? FF & AjaxSubmit / Safari & AjaxSubmit are just fine. I'm on Windows. It took me a while to figure out it was the hash in the action. Thanks, knal

[jQuery] Re: [Validate]

2009-03-06 Thread knal
Hi Jorn, Thanks for the quick reply! I will check it out later on. Thanks, Knal On Mar 6, 3:28 pm, Jörn Zaefferer wrote: > You can use validator.submitted, which maps the fields already submitted. > > For example, the default onclick handler: > > onclick: function(element)

[jQuery] [Validate]

2009-03-06 Thread knal
Hi there, I was wondering if there's some kind of flag, or variable that i can check, to see if a user has already tried to submit a form which is validated with Validate. Because only after the first submit i would like to call $ (".fields").valid(); on certain fields. Thanks, Knal

[jQuery] Re: Custom validation trigger

2009-03-03 Thread knal
Maybe there is already a flag implemented in Validate? Thanks, Knal On Mar 2, 7:14 pm, knal wrote: > I'll have to go with Jörn's answer, only it validates immediatey, > not after submit has already been clicked once (and the entire > Validation has already started) >

[jQuery] Re: Custom validation trigger

2009-03-02 Thread knal
I'll have to go with Jörn's answer, only it validates immediatey, not after submit has already been clicked once (and the entire Validation has already started) Should i se a flag or something, if yes, how? Thanks again, Knal On 2 mrt, 13:44, knal wrote: > Great! Thanks for yo

[jQuery] Re: [validate] Custom validation trigger

2009-03-02 Thread knal
Great! Thanks for your fast reply. I will try it tonight. The reason why i need this, is that i'm trying to combine Validate with jNice. Thanks again, Knal On Mar 2, 1:35 pm, Jörn Zaefferer wrote: > You can use the valid-method to trigger the validation any time: > $("#cont

[jQuery] [validate] Custom validation trigger

2009-03-02 Thread knal
form, but don't submit it. So it will manage the error messages, but won't take any further action. Also, i only want it to validate on myClass.click after the user has already tried ti submit, just like Validate's default behaviour. Hope things are clear. Many thanks, Knal

[jQuery] Re: Intercept and Append Param to All Ajax Requests

2008-12-12 Thread knal
Not completely sure why the thread is merged with James', but anyway, adding errorElement: "span", seemed to solve the problem! Thanks for the help, Knal. On Dec 12, 11:11 am, "James Hughes" wrote: > Hi, > > This has me confused.  I want to interce

[jQuery] Re: Problems with Validate's errorPlacement

2008-12-12 Thread knal
That's not the case, could it have something to do with the errorElement ? On Dec 12, 10:46 am, "Jörn Zaefferer" wrote: > The label is probably set to display:block. You could overrid that > with display:inline !important > > Jörn > > On Fri, Dec 12, 2008 at 1

[jQuery] Re: Problems with Validate's errorPlacement

2008-12-12 Thread knal
o fix this? Thanks, Knal On Dec 11, 11:06 pm, "Jörn Zaefferer" wrote: > Try this: > >      errorPlacement: function(error, element) { >            error.appendTo(element.prev()); >        } > > Jörn > > On Thu, Dec 11, 2008 at 3:30 PM, knal wrote: > > &g

[jQuery] Problems with Validate's errorPlacement

2008-12-11 Thread knal
ext immediatly before the element: errorPlacement: function(error, element) { error.insertBefore(element); } Any help would be greatly appreciated. Greetings Knal.

[jQuery] Problems with Validate's errorPlacement

2008-12-11 Thread knal
ext immediatly before the element: errorPlacement: function(error, element) { error.insertBefore(element); } Any help would be greatly appreciated. Greetings Knal.

[jQuery] [Validate] Problems with errorPlacement before element

2008-12-11 Thread knal
that. I know i have to use something _like_ the following function, but don't know exactly how to use it: errorPlacement: function(error, element) { } Any help would be greatly appreciated. Thanks, Knal

[jQuery] Problems with Validate's errorPlacement

2008-12-11 Thread knal
ext immediatly before the element: errorPlacement: function(error, element) { error.insertBefore(element); } Any help would be greatly appreciated. Greetings Knal.