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
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
will be
greatly appreciated!
Thanks, Knal
$(function(){
if( !$( "div.introbody" ).length ){
$( ".project" ).initSlides()
}
$.fn.extend({
initSlides: function() {
var t = $(this).attr( "i
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
@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
ray.
I hope this kind of makes sense. Any help will be greatly appreciated!
Thanks,
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.
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
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(
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").
#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
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.
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
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
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
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
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
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
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
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
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
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)
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
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)
>
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
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
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
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
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
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
ext immediatly before the element:
errorPlacement: function(error, element) {
error.insertBefore(element);
}
Any help would be greatly appreciated.
Greetings Knal.
ext immediatly before the element:
errorPlacement: function(error, element) {
error.insertBefore(element);
}
Any help would be greatly appreciated.
Greetings 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
ext immediatly before the element:
errorPlacement: function(error, element) {
error.insertBefore(element);
}
Any help would be greatly appreciated.
Greetings Knal.
34 matches
Mail list logo