[jQuery] Re: jquery documentation of exlusion pseudo-class

2008-05-30 Thread duck!


On second thoughts, it looks like you want the div that contains the span but
without the span in it?
I think there is something wrong that your logic there, but depending on
what you want to do something like this might work for you:
$("div:has(span)").find("span").remove().end();
That will remove that span from the document, and leave you only with its
containing div...


duck! wrote:
> 
> $("div:not(span)"); will return all the divs in the document that are not
> spans... all of them obviously
> 
> You want all the divs that don't (:not()) contain (:has()) spans.
> $("div:not(:has(span))");
> 
> hope this helps.
> 
> 
> jquertil wrote:
>> 
>> 
>> according to jquery documentation I should be able to select an
>> element that is NOT something, i.e. exclusion.
>> 
>> 
>> DOM:
>> hello there, how are you?
>> 
>> JQUERY SELECTOR:
>> $('DIV :not(SPAN)')
>> 
>> SHOULD RETURN:
>> hello you?
>> 
>> 
>> right? well, it's not happening for me... what am I dogin wrong?
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jquery-documentation-of-exlusion-pseudo-class-tp17569575s27240p17570530.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] [validate] Packed version not working in IE6

2008-05-30 Thread Drakanor

I just came across a strange problem with validation plugin not
working in IE6 at all. After testing a bit I found the reason: when
using the packed version of the plugin IE6 pops up a javascript error
and processes the form without validation, while working fine with the
unpacked version. Other browsers do fine. I'm just wondering if there
is any solution to this?

Thanks,
Drakanor


[jQuery] Contextmenu plugin help

2008-05-30 Thread Mauricio Farah

Hi, I need help with this plugin. I'm not sure if this is the place to
post it, I apologize if it isn't but I don't know how to contact the
developer. Basically Contextmenu let's you override the browser's
right click menu if you do it over some elements of your choice (more
reference on contextmenu homepage 
http://www.trendskitchens.co.nz/jquery/contextmenu/)

The menu is set inside the $(document).ready(function() {} block,
so it's loaded after the page is loaded completely. What I want to do
(and I don't know how) is to make the menu appear on some elements I
loaded AFTER the page, using $(#id).load(val); or $(#id).text(val);.
The menu doesn't show on those elements and I don't know how to load
it after loading those elements (or even if that's possible).

I hope someone could help me.

Thanks in advance.
Mauricio Farah.


[jQuery] Re: jquery documentation of exlusion pseudo-class

2008-05-30 Thread duck!


$("div:not(span)"); will return all the divs in the document that are not
spans... all of them obviously

You want all the divs that don't (:not()) contain (:has()) spans.
$("div:not(:has(span))");

hope this helps.


jquertil wrote:
> 
> 
> according to jquery documentation I should be able to select an
> element that is NOT something, i.e. exclusion.
> 
> 
> DOM:
> hello there, how are you?
> 
> JQUERY SELECTOR:
> $('DIV :not(SPAN)')
> 
> SHOULD RETURN:
> hello you?
> 
> 
> right? well, it's not happening for me... what am I dogin wrong?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jquery-documentation-of-exlusion-pseudo-class-tp17569575s27240p17570175.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: New Plugin: Magnify

2008-05-30 Thread jquertil

dude, that's a totally sweet plugin.


[jQuery] jquery documentation of exlusion pseudo-class

2008-05-30 Thread jquertil

according to jquery documentation I should be able to select an
element that is NOT something, i.e. exclusion.


DOM:
hello there, how are you?

JQUERY SELECTOR:
$('DIV :not(SPAN)')

SHOULD RETURN:
hello you?


right? well, it's not happening for me... what am I dogin wrong?


[jQuery] Re: timing of multiple "Cycle" slides (Cycle Plugin)

2008-05-30 Thread malsup

> I working on a site that uses 4 instances of the Cycle plugin to
> rotate divs filled with text. The client loves it, but they don't want
> them to all cycle at the same time. They want box 1 to cycle, short
> pause, box 2 to cycle, short pause...
> And I can't figure it out (obviously). Any help would be awesome. The
> page ishttp://client.grcmc.org/wip/grcvb/visit.phpand the portion in
> question is at the bottom of the page, the "Hot Happenings Around
> Town". Right now only the first 2 boxes have content to cycle.


Start the slideshows separately and use the 'delay' option.  Something
like this should stagger your 4 slideshows:

$('#hot_happenings .hh_content td .holder').each(function(i) {
$(this).cycle({
delay:   -8000 + (2000 * (i+1)),
timeout:  8000,
pause:1
});
});


[jQuery] Re: jquery.magnify by Josh

2008-05-30 Thread Josh Nathanson


Trend-King,

2. 
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html

here we have 2 magnify the first work, the second won’t work, I think
because of the #bild2 display:none; property if I chance the display
property to block by css both work, but if I chance the display
property by javascript on click to the littlesmall images on bottom it
won’t work have you an fix for that please.

In regards to this:  try binding the magnify to the link *after* it has been 
displayed -- something like:

$("#thumbnail").click(function() {
   $("#bild2").show();
   $("#thelink").magnify( options );
});

This is because the smaller image must be display: block for the width, 
height and position to be read correctly.


-- Josh


- Original Message - 
From: "Trend-King" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Friday, May 30, 2008 1:42 PM
Subject: [jQuery] jquery.magnify by Josh



Hi there. I like your script so much that i build it in our page
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html
but I found a few issues during testing the app.

1. If you go over the image the magnify appears, if you go fast out of
the image and then fast in the image the magnify won’t start. Then you
go out and in and the magnify works.
For me I changed the fade time that fixes the problem. Maybe there is
another chance to fix it. Or an duration property
2. 
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html

here we have 2 magnify the first work, the second won’t work, I think
because of the #bild2 display:none; property if I chance the display
property to block by css both work, but if I chance the display
property by javascript on click to the littlesmall images on bottom it
won’t work have you an fix for that please.

Good Work go on please

Greetings 



[jQuery] Re: jquery.magnify by Josh

2008-05-30 Thread Josh Nathanson


Trend-King, I've noted your comments here and off-list.  I just released the 
first version a couple of hours ago, so I don't know if it's 
production-ready yet, and I'm at my day job so I can't get much else done on 
it today.  Keep hacking away at it and let me know how it goes.


-- Josh


- Original Message - 
From: "Trend-King" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Friday, May 30, 2008 1:42 PM
Subject: [jQuery] jquery.magnify by Josh



Hi there. I like your script so much that i build it in our page
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html
but I found a few issues during testing the app.

1. If you go over the image the magnify appears, if you go fast out of
the image and then fast in the image the magnify won’t start. Then you
go out and in and the magnify works.
For me I changed the fade time that fixes the problem. Maybe there is
another chance to fix it. Or an duration property
2. 
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html

here we have 2 magnify the first work, the second won’t work, I think
because of the #bild2 display:none; property if I chance the display
property to block by css both work, but if I chance the display
property by javascript on click to the littlesmall images on bottom it
won’t work have you an fix for that please.

Good Work go on please

Greetings 



[jQuery] timing of multiple "Cycle" slides (Cycle Plugin)

2008-05-30 Thread aronduby

Hey all,

I working on a site that uses 4 instances of the Cycle plugin to
rotate divs filled with text. The client loves it, but they don't want
them to all cycle at the same time. They want box 1 to cycle, short
pause, box 2 to cycle, short pause...
And I can't figure it out (obviously). Any help would be awesome. The
page is http://client.grcmc.org/wip/grcvb/visit.php and the portion in
question is at the bottom of the page, the "Hot Happenings Around
Town". Right now only the first 2 boxes have content to cycle.

Thanks everybody.


[jQuery] jquery.magnify by Josh

2008-05-30 Thread Trend-King

Hi there. I like your script so much that i build it in our page
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html
but I found a few issues during testing the app.

1.  If you go over the image the magnify appears, if you go fast out of
the image and then fast in the image the magnify won’t start. Then you
go out and in and the magnify works.
For me I changed the fade time that fixes the problem. Maybe there is
another chance to fix it. Or an duration property
2.  
http://www.drum-factory.de/Drums/Schlagzeugwagen/Anbauteile/Tom-Tom-Winkel::34.html
here we have 2 magnify the first work, the second won’t work, I think
because of the #bild2 display:none; property if I chance the display
property to block by css both work, but if I chance the display
property by javascript on click to the littlesmall images on bottom it
won’t work have you an fix for that please.

Good Work go on please

Greetings


[jQuery] Re: Stop $.ajax() from clearing the page

2008-05-30 Thread eid

Fixed now, thanks to the great IRC channel :-)


[jQuery] Re: Do something, ONLY if parent has children

2008-05-30 Thread Giuliano Marcangelo
$('h3').hide();
 $('.calendarEvent').prev('h3').show();

2008/5/30 hubbs <[EMAIL PROTECTED]>:

>
> Sorry for not being clear.
>
> I would like to hide H3 when next element does not have class
> 'calendarEvent' (Meaning, there would be another H3, if there was not
> a div with class 'calendarEvent'
>
> E.g.:
>
> Text
> Text
> Text
> Text
> Text
> text
> Text
> text
>
> So, the first four H3 elements need to be hidden, as the next element
> does not have class "calendarEvent"
>
> Thanks so much for the help.
>
> On May 29, 2:42 am, Wizzud <[EMAIL PROTECTED]> wrote:
> > Can you be a bit more explicit about what it is that you want to do?
> >
> > eg.
> >
> > hide H1 where next element does not have class 'fred'
> >
> > or
> >
> > hide DIV, H1 and H6 where first child is not (DIV.dynamo)
> >
> > or
> >
> > hide P, H1 thru H6 where next element is not (P.kiev) or is (P.kiev
> > having a child of A.hideme)
> >
> > Then we can stop trying to second guess what it is that you need.
> >
> > On May 29, 3:37 am, hubbs <[EMAIL PROTECTED]> wrote:
> >
> > > Thank you.  So, if I wanted to check to see if there even were any p
> > > tags after an h1 tag, and I wanted to hide the h1 tag, I would do the
> > > following?
> >
> > > $('h1 + p:not(:has(*))').hide();
> >
> > > On May 28, 7:22 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote:
> >
> > > > Don't forget to check the jQuery documentation:
> http://docs.jquery.com/
> >
> > > > The selector you want is 'prev + next':
> http://docs.jquery.com/Selectors/next#prevnext
> >
> > > > Eg, if I wanted to highlight in blue every paragraph object that
> comes
> > > > after a h1 heading:
> >
> > > > $('h1 + p').css('color', 'blue');
> >
> > > > On May 29, 2:06 pm, hubbs <[EMAIL PROTECTED]> wrote:
> >
> > > > > Hey guys,
> >
> > > > > I realized that I misstated my problem.  I realized that the item I
> > > > > want to check for is NOT a child, but the element that comes AFTER
> a
> > > > > specific element.  So, I have a list of specific elements, and if
> an
> > > > > element with a specific class does not come after the first
> element,
> > > > > hide the first element.
> >
> > > > > Sorry this sounds strange.  I am trying to create a work around for
> my
> > > > > CMS.
> >
> > > > > On May 28, 5:53 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote:
> >
> > > > > > You can do it with selectors:
> >
> > > > > > $('#main:not(:has(*))').hide();
> >
> > > > > > Ie - 'select the element with the id "main" that does _not_
> contain
> > > > > > any other element'.
> >
> > > > > > Note that this is different from $('#main:empty') which includes
> text
> > > > > > nodes.
> >
> > > > > > On May 29, 12:10 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > I would do it by checking the DOM directly, just because it's
> reasonably
> > > > > > > straightforward and very efficient:
> >
> > > > > > > var $main = $('#main');
> > > > > > > if( $main[0] && $main[0].firstChild ) $main.hide();
> >
> > > > > > > -Mike
> >
> > > > > > > > I am wondering how I could check if a parent element has
> > > > > > > > children, and it it does not, I would like to hide the
> parent.
> >
> > > > > > > > I was looking at something like the following, but I am not
> > > > > > > > sure how to get it to work how I want:
> >
> > > > > > > > $("#main > *").hide;- Hide quoted text -
> >
> > > > > > > - Show quoted text -- Hide quoted text -
> >
> > > > > - Show quoted text -
>


[jQuery] mouse hover focus not working in FF2

2008-05-30 Thread skunkwerk

I'm using the jquery mousewheel plugin, which is working fine on IE 6
and firefox 3, but not firefox 2.  firebug shows no javascript errors.

my code is supposed to switch focus between two elements as the mouse
hovers over them (one contains a flash widget):

$(function() {
$('#widget')
.mousewheel(function(event, delta) {
event.preventDefault();//still propagates though
})
   .hover(function() { $('#widget').select(); $
('#widget').focus(); }, function() { $('#mainWrapper').select(); $
('#mainWrapper').focus(); });
});

on firefox 2, when i mouse over one, it prevents the other from
scrolling but doesn't scroll itself.  when i move to the other
element, both scroll.

is this a firefox 2 issue, or a jquery issue?
any suggestions/workarounds?

thanks


[jQuery] Re: Do something, ONLY if parent has children

2008-05-30 Thread hubbs

Sorry for not being clear.

I would like to hide H3 when next element does not have class
'calendarEvent' (Meaning, there would be another H3, if there was not
a div with class 'calendarEvent'

E.g.:

Text
Text
Text
Text
Text
text
Text
text

So, the first four H3 elements need to be hidden, as the next element
does not have class "calendarEvent"

Thanks so much for the help.

On May 29, 2:42 am, Wizzud <[EMAIL PROTECTED]> wrote:
> Can you be a bit more explicit about what it is that you want to do?
>
> eg.
>
> hide H1 where next element does not have class 'fred'
>
> or
>
> hide DIV, H1 and H6 where first child is not (DIV.dynamo)
>
> or
>
> hide P, H1 thru H6 where next element is not (P.kiev) or is (P.kiev
> having a child of A.hideme)
>
> Then we can stop trying to second guess what it is that you need.
>
> On May 29, 3:37 am, hubbs <[EMAIL PROTECTED]> wrote:
>
> > Thank you.  So, if I wanted to check to see if there even were any p
> > tags after an h1 tag, and I wanted to hide the h1 tag, I would do the
> > following?
>
> > $('h1 + p:not(:has(*))').hide();
>
> > On May 28, 7:22 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote:
>
> > > Don't forget to check the jQuery documentation:http://docs.jquery.com/
>
> > > The selector you want is 'prev + 
> > > next':http://docs.jquery.com/Selectors/next#prevnext
>
> > > Eg, if I wanted to highlight in blue every paragraph object that comes
> > > after a h1 heading:
>
> > > $('h1 + p').css('color', 'blue');
>
> > > On May 29, 2:06 pm, hubbs <[EMAIL PROTECTED]> wrote:
>
> > > > Hey guys,
>
> > > > I realized that I misstated my problem.  I realized that the item I
> > > > want to check for is NOT a child, but the element that comes AFTER a
> > > > specific element.  So, I have a list of specific elements, and if an
> > > > element with a specific class does not come after the first element,
> > > > hide the first element.
>
> > > > Sorry this sounds strange.  I am trying to create a work around for my
> > > > CMS.
>
> > > > On May 28, 5:53 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote:
>
> > > > > You can do it with selectors:
>
> > > > > $('#main:not(:has(*))').hide();
>
> > > > > Ie - 'select the element with the id "main" that does _not_ contain
> > > > > any other element'.
>
> > > > > Note that this is different from $('#main:empty') which includes text
> > > > > nodes.
>
> > > > > On May 29, 12:10 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
>
> > > > > > I would do it by checking the DOM directly, just because it's 
> > > > > > reasonably
> > > > > > straightforward and very efficient:
>
> > > > > > var $main = $('#main');
> > > > > > if( $main[0] && $main[0].firstChild ) $main.hide();
>
> > > > > > -Mike
>
> > > > > > > I am wondering how I could check if a parent element has
> > > > > > > children, and it it does not, I would like to hide the parent.
>
> > > > > > > I was looking at something like the following, but I am not
> > > > > > > sure how to get it to work how I want:
>
> > > > > > > $("#main > *").hide;- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -


[jQuery] Re: New Plugin: Magnify

2008-05-30 Thread Danjojo

WOW, I am impressed.

On May 30, 1:49 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> Got a new plugin for folks to check out - it allows you to create an image
> "magnifier" like those you see on a lot of e-commerce sites.  Here's the
> link:
>
> http://tinyurl.com/6kwzf9
>
> Features include:
> - Set show event to mouseover or click
> - Allows preloading of larger image, or not if desired
> - Written mostly in plain 'ol javascript for fast performance
>
> Have fun and let me know about any bugs.
>
> -- Josh


[jQuery] Re: [ANNOUNCE] New Plugin: Magnify

2008-05-30 Thread Rick Faircloth

Looks great, Josh... I will certainly be giving this a try!
Thanks for the work!

Rick

> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
> Nathanson
> Sent: Friday, May 30, 2008 1:49 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] [ANNOUNCE] New Plugin: Magnify
> 
> 
> Hey all,
> 
> Got a new plugin for folks to check out - it allows you to create an image
> "magnifier" like those you see on a lot of e-commerce sites.  Here's the
> link:
> 
> http://tinyurl.com/6kwzf9
> 
> Features include:
> - Set show event to mouseover or click
> - Allows preloading of larger image, or not if desired
> - Written mostly in plain 'ol javascript for fast performance
> 
> Have fun and let me know about any bugs.
> 
> -- Josh
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 269.24.4/1474 - Release Date: 5/30/2008 
> 7:44 AM



[jQuery] Re: New Plugin: Magnify

2008-05-30 Thread malsup

> Got a new plugin for folks to check out - it allows you to create an image
> "magnifier" like those you see on a lot of e-commerce sites.  Here's the
> link:
>
> http://tinyurl.com/6kwzf9


Nice!


[jQuery] Re: Video Tutorials - any down-loadable ??

2008-05-30 Thread steve_f

you could start here http://jqueryfordesigners.com/
 find the screencasts tag link - he has four or five you can download

On May 30, 4:40 pm, GiJeet <[EMAIL PROTECTED]> wrote:
> Hello, I'm looking for JQuery tutorials on video that I can download
> and watch offline.  I can't watch online.  If anyone knows where to
> find down-loadable tutorials of any level - beginner, intermediate,
> advanced, or on any specific topic,  please send link. I'm trying to
> learn as much about JQuery as I can.
>
> TIA
> Gi


[jQuery] jCarousel question

2008-05-30 Thread Amos

Jan:

I am using jCarousel within a jqModal box (http://dev.iceburg.net/
jquery/jqModal/). The problem is that sometimes the jCarousel style
sheet does not seem to operate. In short, sometimes the elements in
the carousel to do display horizontally but display as a list.
Occasionally, the carousel will display as a list and then pop into
horizontal display.

In the style sheet, I removed all references to vertical styles.

The misbehavior is the same in IE 6 and FF 2 and 3.

Site: www.satterlee.com/bec

Any hints on how to handle this will be much appreciated.

Amos


[jQuery] Re: need help superfish jquery for Joel Birch

2008-05-30 Thread Greg

Yes it's work !

Thank'S a lot Joel

On 30 mai, 05:46, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> This is an easy one to answer. You just need to include the
> "hoverIntent" plugin by Brian Cherne. Simply link to the plugin using
> a script tag and Superfish will automatically use it to do exactly
> what you want.
>
> http://cherne.net/brian/resources/jquery.hoverIntent.html
>
> Joel Birch


[jQuery] ASP.NET UpdatePanel vs. jQuery - Tutorials

2008-05-30 Thread vladv

Hi all,
I'm looking for some kind of tutorial for the topic in the title...


Thank you


[jQuery] Re: [ANNOUNCE] New Plugin: Magnify

2008-05-30 Thread Matthieu BARBE
Yeah, nice plugin !

Good work Josh !

2008/5/30 Josh Nathanson <[EMAIL PROTECTED]>:

>
> Hey all,
>
> Got a new plugin for folks to check out - it allows you to create an image
> "magnifier" like those you see on a lot of e-commerce sites.  Here's the
> link:
>
> http://tinyurl.com/6kwzf9
>
> Features include:
> - Set show event to mouseover or click
> - Allows preloading of larger image, or not if desired
> - Written mostly in plain 'ol javascript for fast performance
>
> Have fun and let me know about any bugs.
>
> -- Josh
>
>
>


[jQuery] Re: jEditable Used Many Times on a Page

2008-05-30 Thread Mika Tuupola



On May 29, 2008, at 8:48 PM, Roscoe wrote:

You might want to check this tutorial from CakeBaker:

http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/


jEditable.  I've included a code sample below.  Anything with 'opts.'
in front of it is a variable which can change from editable item to
editable item.For a sense of scale I'm talking about anywhere from
20-50 items per page that might need to be editable in some way.  The
code below only shows it for a select version.


I am not familiar with PHP Cake. But just give all item you want to be  
editable some class. For example "editable". Then call Jeditable like  
this:


$(".editable").editable("url_to_post_to", {
your_options: "here"
});


Has anyone attempted to use this on this kind of scale before?  Am I
perhaps approaching something the wrong way and making this too
difficult for myself?


It practically does not matter if you have 1 or 100 elements which are  
editable.



obj.editable(
"/cake/index.php/"+opts.saveCont+"/ajaxEdit?
isSelect=true&model="+opts.model+"&field="+opts.dispField,


This syntax looks a bit weird to me. What is obj in this case?


--
Mika Tuupola
http://www.appelsiini.net/



[jQuery] [ANNOUNCE] New Plugin: Magnify

2008-05-30 Thread Josh Nathanson


Hey all,

Got a new plugin for folks to check out - it allows you to create an image 
"magnifier" like those you see on a lot of e-commerce sites.  Here's the 
link:


http://tinyurl.com/6kwzf9

Features include:
- Set show event to mouseover or click
- Allows preloading of larger image, or not if desired
- Written mostly in plain 'ol javascript for fast performance

Have fun and let me know about any bugs.

-- Josh




[jQuery] Re: Symantic Markup with Nice Accordion.. ..

2008-05-30 Thread Danjojo

Hi all, did i post in the wrong forum for this?


Thanks,
D

On May 29, 1:28 pm, Danjojo <[EMAIL PROTECTED]> wrote:
> I had the original demo from a popular site to get the Accordion menu
> to work... I work with a team and we have designers who will want to
> access the markup with css perfectly.
> So of course we want the markup like this:
>
> 
> 
> Category
> One
> sub-Category
> c1_sub1
> 
> 
> Category Two style="display: none;">
> sub-Category
> c2_sub1
> sub-Category
> c2_sub2
> sub-Category
> c2_sub3
> 
> 
> 
> 
>
> I want to click the Category li item and have the ul linkContainer
> show or not show as needed.
>
> Here is the jQuery I am trying to modify:
>
> $(document).ready(function() {
> $('li.menuCat> ul.linkContainer:not(:first)').hide();
> $('div.demo-show2>ul> li.menuCat').click(function() {
> var $nextUL = $(this).next();
> var $visibleSiblings = $nextUL.siblings('div.demo-
> show2>ul>li.menuCat> ul.linkContainer:visible');
>
> if ($visibleSiblings.length ) {
> $visibleSiblings.slideUp('fast', function() {
> $nextUL.slideToggle('fast');
> });
> } else {
> $nextUL.slideToggle('fast');
> }
> });
>
> });
>
> Much Help Much Appreciated


[jQuery] Re: Tooltip

2008-05-30 Thread Emmanuel Briot
On Fri, May 30, 2008 at 5:17 PM, Karl Swedberg <[EMAIL PROTECTED]>
wrote:

> You might want to take a look at my clueTip plugin. It allows you to load
> the contents of the tooltip with the title attribute, the text contents of
> an element on the current page, or the result of an ajax request. Also, in
> the most recent version, if you can use a string as the first argument, it
> will use that for the contents. Use an anonymous function and it will use
> the return value of that function.
>

I like clueTip, but there are two things I wish it could do:
- display the tooltips only after a small delay (configurable, although
500ms seems reasonnable)
- automatically hide the tooltip whenever the mouse is pressed: if you
have set the tooltip on an input field, it really
  should disappear when you type to give the focus to the input. Perhaps
same on keypress events

I am not sure, also, whether it can take only part of the loaded ajax
document (similar to what load() allows). I use that
in my application where I have a single file containing all the tooltip
texts, and select the one I want. Since the file is
cached on the client, I don't have too many http requests, and I found it
more convenient for internationalization.

I might, of course, have misunderstood the documentation and code, sorry if
that's the case.

regards
Emmanuel


[jQuery] Video Tutorials - any down-loadable ??

2008-05-30 Thread GiJeet

Hello, I'm looking for JQuery tutorials on video that I can download
and watch offline.  I can't watch online.  If anyone knows where to
find down-loadable tutorials of any level - beginner, intermediate,
advanced, or on any specific topic,  please send link. I'm trying to
learn as much about JQuery as I can.

TIA
Gi


[jQuery] Re: Hover Effects

2008-05-30 Thread Mason

Thanks!


[jQuery] down-loadable tutorial videos ??

2008-05-30 Thread GiJeet

Hello, if anyone knows where to find jquery tutorial videos that you
can download to watch offline please send link.  I can't watch
online.  thanks!!

G


[jQuery] Re: checkbox manipulation and toggle()

2008-05-30 Thread benjam

Although you need to make sure that you set the for attribute o the
label tag to the id attribute of the input tag, NOT the name
attribute.
One way to get around this issue (and the recommended method) is to
set the name and id attribute of the input tag the same.
If you wrap the input tag with the label tag, there is no need to
include the for attribute, bu if the label is not wrapping the input
tag, it needs to be included.

e.g.-

Please check this box 

This is my checkbox 



On May 29, 12:16 pm, jquertil <[EMAIL PROTECTED]> wrote:
> Hello...
>
> short version: how do I exclude an element in my selector expression?
>
> long version:
>
> you know those checkboxes in windows where you can actuyally click the
> label to check the box?
>
> I'm recreating this with a toggle() like this:
>
>  Click
> here
>
> $("#CheckContainer").toggle(
> function(){ $('#Check')[0].checked=true;},
> function(){ $('#Check')[0].checked=false;}
> );
>
> All fine and dandy as you click the DIV to toggle the checkbox. But
> try to click the checkbox itself and the darn thing won't work.
>
> I think the solution is in using the right sleector, like some kind
> of :not or !:input or something ???
> Ii DON"T want to have to add a span element around the label to assign
> the click to, I'd like to just exclude the checkbox.


[jQuery] Re: $(document).ready Events not firing on elements of code injected via ajax call

2008-05-30 Thread truent

Thanks a ton guys.  I knew it was some lack of knowledge on my part.
I ended up just using another document.ready in the success callback
function.  I intend to look into live as well though.

Thanks again!

On May 30, 3:18 am, steve_f <[EMAIL PROTECTED]> wrote:
> you can use the live plugin. This basically keeps watch for dom
> elements that match the selector given. Thus when you inject new
> content into the div it will automatically hookup any matched new
> elements.
>
> se here for detailshttp://brandonaaron.net/docs/livequery/
>
> If you need more shout
>
> On May 30, 5:08 am, truent <[EMAIL PROTECTED]> wrote:
>
> > Im using $(document).ready to bind an onsubmit and onclick event to 2
> > elements of my form.  Either of these events fires separately with no
> > problem.  However, when the onsubmit injects html into a div on page,
> > and I then attempt to click on one of the newly injected elements
> > expecting the onclick to fire, it doesnt.  Is there something about
> > the dom not being refreshed or  $(document).ready not able to bind
> > elements after the page has been loaded and new html injected?  Can I
> > update the dom?  is there an even other than .ready to bind to?


[jQuery] Re: Stop $.ajax() from clearing the page

2008-05-30 Thread eid

B to the ump


[jQuery] OT: Bug in IE: Flash, iframes, and dynamic height of Flash movie

2008-05-30 Thread Andy Matthews
We have a Flash movie that resizes vertically based on it's content. When it
resizes itself, it also issues a command to the containing page to resize
the HTML container. This works great under regular use. But lately some of
our clients have been trying to frame in our content page using an iframe.
When this occurs the Flash movie doesn't resize. It's getting more and more
common that clients want to take this sort of action.
 
My manager seems to recall hearing about some sort of technote from
Microsoft listing this set of circumstances as a bug. Does anyone happen to
be familiar with this use case, and might know about the technote?
 
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  615.627.9747
Fax:  615.467.6249
www.dealerskins.com  
 
Total customer satisfaction is my number 1 priority! If you are not
completely satisfied with the service I have provided, please let me know
right away so I can correct the problem, or notify my manager Aaron West at
[EMAIL PROTECTED]
 
<<2008 Email NADA.jpg>>

[jQuery] Re: flashembed plugin

2008-05-30 Thread Sam Sherlock
not my plugin but Luke Lutman's

sounds like you need to add to your stylesheet
.flash-replaced .alt {
display:block;
height:0pt;
overflow:hidden;
position:absolute;
width:0pt;
}

for more info see this example
http://jquery.lukelutman.com/plugins/flash/example-text-replacement.html

all the info you require is on his site :)



2008/5/30 hcvitto <[EMAIL PROTECTED]>:

>
> hi sam
> thanks, i'm using your(?) plugin; looks good but  i already have a
> problem (my fault, for sure ):
> the text inside the flash div remains visible!
>
> Did i miss anything?
>
> Thanx vitto
>
>  -- this is the css
> div#header{width:740px;height:200px;}
>
>
>  -- this is the javascript
> $(document).ready(function(){
>$('#header').flash({
>  src: '../flash/header.swf',
>  width: 740,
>  height: 200,
>  flashvars: { menuAttivo: '@@(sezioneMenu)@@' }
>});
> });
>
>
>  -- this is the html
> 
>Text text text 
>
>  Artisti & eventi
>  Calendario
>  Biglietti
>  Community
>  Friends & parnters
>  Contatti
>
>  
>
>
> On May 29, 9:41 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > how abouthttp://jquery.lukelutman.com/plugins/flash/
> >
> > full examples provided
> >
> > 2008/5/29 hcvitto <[EMAIL PROTECTED]>:
> >
> >
> >
> > > Has anyone ever used this flash embed plugin?
> >
> > >http://plugins.jquery.com/project/flashembed
> >
> > > Do you know how to pass it some flashvars? I read the documentation
> > > but couldn't find anything clear..
> >
> > > Thanks vitto
>


[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-05-30 Thread Jean

Niiice!

On Fri, May 30, 2008 at 8:47 AM, Renato Formato
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I've just released the jFlip plugin,
> a plugin to make unobtrusive flipping page image galleries using canvas
> (warning: no Flash needed!).
>
> It works with all jquery compatible browsers, IE included, using an enhanced
> version of excanvas I wrote.
>
> Enjoy!
>
> http://www.jquery.info/The-jFlip-plugin
>
> Renato Formato
>
>



-- 

[]´s Jean
www.suissa.info

 Ethereal Agency
www.etherealagency.com


[jQuery] Re: removeAttr for rowspan

2008-05-30 Thread snobo

CORRECTION: no, "rowspan" doesn't work in IE, which ONLY understands
it with a capital S: rowSpan. So, now (since 1.2.5) the only way to
remove a rowspan in IE is to do

.attr('rowSpan',1)

and not removeAttr('rowspan') or removeAttr('rowSpan') or
attr('rowspan',1).

FF forgives and understands all of the above. Weird...

On May 29, 9:19 am, snobo <[EMAIL PROTECTED]> wrote:
> Huh, interesting! Indeed, specifying an attribute in lowercase makes
> it work.
>
> All in all, it seems like a inconsistency to me, that attr() method
> and FF don't care about the case, but removeAttr() and IE do.
>
> On May 29, 12:31 am, kape <[EMAIL PROTECTED]> wrote:
>
> > I encountered the same problem when I upgraded to 1.2.6 and using
> > "rowspan" instead of "rowSpan" fixed it.  I guess it was a bug fix.
>
> > On May 27, 1:27 pm,snobo<[EMAIL PROTECTED]> wrote:
>
> > > Since upgrading to 1.2.5 (the same applies to1.2.6), an attempt to $
> > > ('... td').removeAttr('rowSpan') triggers an error in IE6/7.
> > > Previously (up to 1.2.4b) it effectively setrowSpanto 1. It still
> > > works that way in FF.
>
> > > I'm not sure is it a bug or a feature, but of course it has broken my
> > > application, so... I guess it should be either fixed or explicitly
> > > noted in the docs. I wonder, will it cause the same problem for some
> > > other attributes?


[jQuery] Re: Tooltip

2008-05-30 Thread Karl Swedberg


You might want to take a look at my clueTip plugin. It allows you to  
load the contents of the tooltip with the title attribute, the text  
contents of an element on the current page, or the result of an ajax  
request. Also, in the most recent version, if you can use a string as  
the first argument, it will use that for the contents. Use an  
anonymous function and it will use the return value of that function.


http://plugins.learningjquery.com/cluetip/

--Karl

Karl Swedberg
www.englishrules.com
www.learningjquery.com




On May 30, 2008, at 4:22 PM, armyofda12monkeys wrote:



Hello all,

I was looking at tooltip examples in Tooltip plugin and just saw all
examples where it makes the tooltip based off the title attribute. I
was wondering if there were any other solutions? i was using a
prototype based solution seen here http://blog.innerewut.de/files/tooltip/demo.html 
,

where the tooltip is whatever you want it to be. So that div is hidden
until hover over something else, so you would provide the id of the
element to hover over, and the id of the tooltip that is shown after
hovered over. This is nice to tooltips which are more customized.
correct me if i'm wrong that you cant do that with
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/?

Thanks,
Ari




[jQuery] Re: Tooltip

2008-05-30 Thread Pyrolupus

Have you seen or tried clueTip?  http://plugins.learningjquery.com/cluetip/demo/

~Pyro

On May 30, 10:22 am, armyofda12monkeys <[EMAIL PROTECTED]>
wrote:
> Hello all,
>
> I was looking at tooltip examples in Tooltip plugin and just saw all
> examples where it makes the tooltip based off the title attribute. I
> was wondering if there were any other solutions? i was using a
> prototype based solution seen 
> herehttp://blog.innerewut.de/files/tooltip/demo.html,
> where the tooltip is whatever you want it to be. So that div is hidden
> until hover over something else, so you would provide the id of the
> element to hover over, and the id of the tooltip that is shown after
> hovered over. This is nice to tooltips which are more customized.
> correct me if i'm wrong that you cant do that 
> withhttp://bassistance.de/jquery-plugins/jquery-plugin-tooltip/?
>
> Thanks,
> Ari


[jQuery] Re: jQuery History Plugin

2008-05-30 Thread timothytoe

Great. I'll keep my eyes peeled.

On May 30, 7:55 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> On May 30, 1:35 am, timothytoe <[EMAIL PROTECTED]> wrote:
>
> > Yes. Oh well.
>
> > Where should I watch for updates? Will there be an update of history
> > to accommodate UI Tabs? Or is it more likely that UI Tabs will
> > incorporate a history feature?
>
> I have roughly rewritten the history plugin already so that it will be
> much more flexible... (and work in Safari 3 and 
> IE8):http://www.stilbuero.de/jquery/ui_history/
>
> I will then nicely integrate history into tabs so that a user wouldn't
> have to care too much except for including both plugins and enabling
> history via an option.
>
> Due to immense workload the last few month I got stuck though. The
> biggest thing missing is actually a strange bug in IE 6, that needs to
> be fixed before I would call it a beta version.
>
> History will be released as part of jQuery UI and I will surely
> anounce it on the list.
>
> --Klaus


[jQuery] Re: REMINDER: jQuery Site Detection Greasemonkey Script

2008-05-30 Thread Pyrolupus

Karl, that's fantastic!  I've copied Paul's script to my own site with
the title change you suggested.  I frequently wish to know what
version sites are running.

Sorry for the necropost; was searching to see if there was any talk
about updating the jQuery Detector plugin[1] to work with FF3 and
found this.

For Opera users, Paul's userscript works great in Opera (which has no
Greasemonkey--or need of it), too:

Adding user scripts to Opera:
http://www.opera.com/support/tutorials/userjs/using/#writingscripts

User scripts can be Greasemonkey (no plug-in necessary):
http://www.opera.com/support/tutorials/userjs/examples/#greasemonkey

~Pyro

[1] http://www.sunsean.com/jquerydetect/

On Apr 21, 10:30 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> hey Paul,
>
> I love that Greasemonkey user script! Use it all the time. Thanks  
> again for making it available.
>
> I modified your original just a bit for my personal use, adding a  
> title attribute to the jQuery icon that tells me which jQuery version  
> is running:
>
> ... title="' + jQuery.fn.jquery + '" ...
>
> This has been really helpful for me when checking on my sites to  
> quickly determine which ones to update. Perhaps you (or others) would  
> find it useful, too.
>
> Cheers,
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Apr 21, 2008, at 5:47 AM, Paul Bakaus wrote:
>
>
>
> > Thanks Rey :)
> > and the Firefox plugin here:http://www.sunsean.com/jquerydetect/
>
> > On Apr 20, 10:50 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> >> Hi everyone. The number of jQuery-powered sites being listed is
> >> incredible and the numbers just continue to grow.
>
> >> One of the methods that I use to find sites is via jQuery Team Member
> >> Paul Bakaus' awesome jQuery Site Detection Greasemonkey Script.  
> >> It's a
> >> small script that detects the jQuery object and displays a small  
> >> icon in
> >> the lower-right corner of the browser if it finds a jQuery-powered  
> >> site.
>
> >> To install it, just follow these simple instructions:
>
> >> This is a Greasemonkey user script.  To install it, you need
> >> Greasemonkey 0.3 or later:http://greasemonkey.mozdev.org/
>
> >> Restart Firefox and visit this 
> >> script:http://paul.jquery.com/jquerydetector.user.js
>
> >> Under Tools, there will be a new menu item to "Install User Script".
> >> Accept the default configuration and install.
>
> >> That's it!
>
> >> I want to thank Paul for this wonderful script.
>
> >> Rey...
> >> jQuery Project Team


[jQuery] Re: jQuery History Plugin

2008-05-30 Thread Klaus Hartl

On May 30, 1:35 am, timothytoe <[EMAIL PROTECTED]> wrote:
> Yes. Oh well.
>
> Where should I watch for updates? Will there be an update of history
> to accommodate UI Tabs? Or is it more likely that UI Tabs will
> incorporate a history feature?

I have roughly rewritten the history plugin already so that it will be
much more flexible... (and work in Safari 3 and IE8):
http://www.stilbuero.de/jquery/ui_history/

I will then nicely integrate history into tabs so that a user wouldn't
have to care too much except for including both plugins and enabling
history via an option.

Due to immense workload the last few month I got stuck though. The
biggest thing missing is actually a strange bug in IE 6, that needs to
be fixed before I would call it a beta version.

History will be released as part of jQuery UI and I will surely
anounce it on the list.


--Klaus


[jQuery] Re: Why report "handler.apply is not a function"

2008-05-30 Thread Scott Sauyet


James Hang wrote:

checkDeleteBrand = function(){
   window.confirm("Really want to check this brand?");
}

readyFunction = function(){

  $('a.Brand').mouseover("checkBrand");

$(document).ready(readyFunction);


Beyond the difference between "checkBrand" and "checkDeletedBrand", you 
have something more fundamental.  Luckily it's very simple.  mouseover() 
needs a function as a parameter, not a string.  Remove the quotes:


$('a.Brand').mouseover(checkBrand);

That should do it.

  -- Scott



[jQuery] Tooltip

2008-05-30 Thread armyofda12monkeys

Hello all,

I was looking at tooltip examples in Tooltip plugin and just saw all
examples where it makes the tooltip based off the title attribute. I
was wondering if there were any other solutions? i was using a
prototype based solution seen here 
http://blog.innerewut.de/files/tooltip/demo.html,
where the tooltip is whatever you want it to be. So that div is hidden
until hover over something else, so you would provide the id of the
element to hover over, and the id of the tooltip that is shown after
hovered over. This is nice to tooltips which are more customized.
correct me if i'm wrong that you cant do that with
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/?

Thanks,
Ari


[jQuery] tablesorter / tablesorterPager question

2008-05-30 Thread Jason Rice

I posted this in the plugins group, but just noticed it is dead there.

I have a tablesorter.tablesorterPager table in which I need to remove
rows and have the pager updated accordingly (trying to avoid an ajax
refresh on the table).

Right now I'm removing the target row through jquery remove()
function. After which I'm triggering 'update' and 'applyWidgets'
events (I have some custom widgets for other things). My issue is that
I cannot figure out how to update the pager. If I call a redraw on
tablesorter, it redraws the entire table from the cache, undoing the
remove essentially.

I've tried a couple other things, re-applying tablesorter, which
breaks things, and a few other event triggers.

Any help is appreciated.

--Jason


[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread steve_f

if you pass in the event to the function you can use e.pageX and
e.pageY to get the coordinates of the click event

So:


$("#map").click(function(ev) {
   mouseX = ev.pageX;
   mouseY = ev.pageY

}

On May 30, 12:02 pm, Michael Price <[EMAIL PROTECTED]> wrote:
> Hi all,
> Working on something for a client at the moment - they have a map and
> they want to pinpoint where on this map something is, and then store
> this in the database.
>
> I'm thinking we put an image of the map in the admin area for them and
> they can click on it to set the co-ords, but I'm not sure how we'd fetch
> the co-ords of where they clicked? Just as X,Y pixels from the top left
> of the image, nowt too clever.
>
> $("#map").click(function() {
>      // WHAT GOES IN HERE?
>
> }
>
> Does anyone have any thoughts? All help much appreciated :)
>
> Regards,
> Michael Price


[jQuery] Re: flashembed plugin

2008-05-30 Thread hcvitto

hi sam
thanks, i'm using your(?) plugin; looks good but  i already have a
problem (my fault, for sure ):
the text inside the flash div remains visible!

Did i miss anything?

Thanx vitto

 -- this is the css
div#header{width:740px;height:200px;}


 -- this is the javascript
$(document).ready(function(){
$('#header').flash({
  src: '../flash/header.swf',
  width: 740,
  height: 200,
  flashvars: { menuAttivo: '@@(sezioneMenu)@@' }
});
});


 -- this is the html

Text text text 

  Artisti & eventi
  Calendario
  Biglietti
  Community
  Friends & parnters
  Contatti

  


On May 29, 9:41 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> how abouthttp://jquery.lukelutman.com/plugins/flash/
>
> full examples provided
>
> 2008/5/29 hcvitto <[EMAIL PROTECTED]>:
>
>
>
> > Has anyone ever used this flash embed plugin?
>
> >http://plugins.jquery.com/project/flashembed
>
> > Do you know how to pass it some flashvars? I read the documentation
> > but couldn't find anything clear..
>
> > Thanks vitto


[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread hagalaz

You can find what you need and more info on events there.

http://docs.jquery.com/Events_(Guide)


[jQuery] Re: Making a hrefs and using click on them

2008-05-30 Thread Adam Housman

I didn't read through all of the code, but when I want to grab an href
I usually store it in the link's "rel" attribute. If you're not
concerned about maintaining valid HTML, you can make up any attribute
you want (so long as it doesn't already have a purpose in the XHTML
spec).

$(document).ready( function(){
$("#container a").each( function(){
$(this).attr({"rel":$(this).attr("href")});
$(this).attr({"href":"javascript:void(0)"});
$(this).click( function() {
// add click functionality here...
// prior href can still be accessed by $(this).attr("rel")
}
}
}

On May 29, 5:03 pm, Paul Peelen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am a newby to jquery, and am strugeling with an issue.
>
> In my code below, I get information from an php page which is
> returning xml. I am making links in a  of what the php page
> return. But I want to catch the call from the a href I make when the
> user clicks on the link.
>
> How can I do this?
>
> This is my code:
> $(document).ready(function() {
> var box1 = null;
> var box2 = null;
> var box3 = null;
>
> // add markup to container and apply click handlers to anchors
> $("#fabricatorSearchName a").click(function(e){
> // stop normal link click
> e.preventDefault();
>
> showLoaderBox();
>
> $('#searchDivSelector').slideDown('fast') ;
>
> $.ajax({
> type: "GET",
> url: "ajax/dropBox1.php",
> data: "box=1",
> dataType: "xml",
> success: function(xml) {
> $('#boxContent ol').html("");
> $(xml).find('name').each(function(){
> $('').html($(' id="boxLink" href="#" onClick="'+$
> (this).text()+'">').html($(this).text())).appendTo('#boxContent
> ol');
> });
> }
> });
> });
>
> // add markup to container and apply click handlers to anchors
> $("#modelSearchName a").click(function(e){
> // stop normal link click
> e.preventDefault();
>
> showLoaderBox();
> $('#searchDivSelector').slideDown('fast') ;
>
> $.ajax({
> type: "GET",
> url: "ajax/dropBox1.php",
> data: "box=2",
> dataType: "xml",
> success: function(xml) {
> $(xml).find('name').each(function(){
> $('').html($(' href="#">').html($
> (this).text())).appendTo('#boxContent ol');
> });
> }
> });
> });
>
> // add markup to container and apply click handlers to anchors
> $("#priceSearchName a").click(function(e){
> // stop normal link click
> e.preventDefault();
>
> showLoaderBox();
> $('#searchDivSelector').slideDown('fast') ;
>
> $.ajax({
> type: "GET",
> url: "ajax/dropBox1.php",
> data: "box=2",
> dataType: "xml",
> success: function(xml) {
> $(xml).find('name').each(function(){
> 
> $('').html($(this).text()).appendTo('#boxContent ol');
> });
> }
> });
> });
>
> $("#boxLink a").click(function(){
> alert("Hello world!" + this.href);
> });
>
> function showLoaderBox() {
> $('#boxContent ol').html(" src='v1/images/loader.gif'
> border='0' alt='Loading...'>");
> }
>
> function showLoaderMain() {
> $('#mainObjects').html(" src='v1/images/loader.gif'
> border='0' alt='Loading...'>");
> }
>
> function updateObjectList(div) {
> alert("Hello worlds!");
> }
>
> });
>
> Best regards,
> Paul Peelen


[jQuery] How to use jCarousel in Drupal 5.7

2008-05-30 Thread Jeet

Hi,
   I had downloaded the jquery_update and jcarousel module form
drupal.org and installed these.
Now the problem is how i can configure this in front end.i.e. how i
can show jCarousel in front end. What code snippete needs to write me?


[jQuery] Re: $(document).ready Events not firing on elements of code injected via ajax call

2008-05-30 Thread steve_f

you can use the live plugin. This basically keeps watch for dom
elements that match the selector given. Thus when you inject new
content into the div it will automatically hookup any matched new
elements.

se here for details http://brandonaaron.net/docs/livequery/

If you need more shout

On May 30, 5:08 am, truent <[EMAIL PROTECTED]> wrote:
> Im using $(document).ready to bind an onsubmit and onclick event to 2
> elements of my form.  Either of these events fires separately with no
> problem.  However, when the onsubmit injects html into a div on page,
> and I then attempt to click on one of the newly injected elements
> expecting the onclick to fire, it doesnt.  Is there something about
> the dom not being refreshed or  $(document).ready not able to bind
> elements after the page has been loaded and new html injected?  Can I
> update the dom?  is there an even other than .ready to bind to?


[jQuery] Handle sortable items without using the mouse.

2008-05-30 Thread casp


I would like to know if there is a way to move sortable items without
using the mouse. I have a few sortable items and the user have the
opportunity to "hide" a specific item (Change opacity to 0.3). At the
same time I want the item to be the last one in the dom-structure of
the sortable items.

What is the most simple way to move an item in the dom-structure. And
will my Update Function react on the action?

Feel free to write your suggestions and opinions.

Thanks in advance


[jQuery] Re: Livequery event firing multiple times

2008-05-30 Thread Brandon Aaron
After a quick glance at the code you pasted... it looks like you are using
the Live Query plugin within the click event. This somewhat negates the
purpose of Live Query. Try moving the Live Query block outside the 'click'
binding block ... within the document.ready block.

--
Brandon Aaron

On Fri, May 30, 2008 at 8:35 AM, Gordon <[EMAIL PROTECTED]> wrote:

>
> I'm working on a survey builder which will allow users to create
> online surveys and polls.  I decided to use livequery to build it as
> it involves lots of adding and deleting of DOM items that have
> associated events.
>
> I'm still at an early stage of development but I've run into a snag.
> The function I've attached with LiveQuery to the "Add new question"
> button seems to fire once for every question group that has been
> added, even though every time it fires the expected DOM element.  For
> example, if I add 3 groups, then click the "Add new question" button
> for the second group, I get 3 DIV objects getting logged to the
> console, although all 3 refer to the sane item, namely the second
> div.
>
> I'm obviously doing something wrong but the livequery documentation is
> rather sparse.  I'm wondering if anyone else has run into this, what
> do I need to be doing differently?
>
> http://www.w3.org/
> TR/xhtml11/DTD/xhtml11.dtd 
> ">
> http://www.w3.org/1999/xhtml";>
> 
> 
> Untitled Document
> 
> 
> 
>  type="text/css" media="screen" title="Flora (Default)">
> 
>  script>
>