[jQuery] BlockUI displayBox() thickbox alternative?

2008-04-30 Thread Nathaniel Whiteinge

I really dug the displayBox() thickbox from BlockUI v1.33, but it's
been removed in the latest version. Thickbox implementations that have
animation, and that require css and image files are much too heavy for
my taste.

Anyone know of an ultra-lightweight thickbox implementation to replace
displayBox?

I've gone through the plugin list on the jQuery site, and nothing fits
the bill. No images, no css files, no close button (just esc. and
clicking outside the box).

Thanks.
- whiteinge


.. [1] http://www.malsup.com/jquery/block/index-old.html#displaybox
.. [2] http://www.malsup.com/jquery/block/#faq


[jQuery] Re: jCarousel: HTML structure vs CSS vs documentation

2008-04-30 Thread Jan Sorgalla

Thanks, its fixed now.

Jan

On 28 Apr., 12:45, Glenn Nilsson [EMAIL PROTECTED] wrote:
 Sorry, wrong line number, 24, not 28.

  * div class=jcarousel-skin-namejcarousel-container

 On Mon, Apr 28, 2008 at 12:42 PM, Glenn Nilsson [EMAIL PROTECTED] wrote:
  Hi,

   just upgraded thejCarouselplugin to the newly released version
   0.2.3, and my styling broke. This due to the structural modification
   where a new div with only the skin-name as a class is inserted as a
   container. This was quite easy to fix, however the comment in the js-
   file is now incorrect. At least on line 28 is the non-packed/minified
   version.

   This was just a heads up =)

   /Glenn
   --
   http://wailqill.com/


[jQuery] Re: jCarousel circular bug in IE7, separate bug in Firefox (mac)?

2008-04-30 Thread Jan Sorgalla

Hi,

i've fixed this. Just download the package again.

Jan

On 28 Apr., 23:28, ericHurst [EMAIL PROTECTED] wrote:
 I am usingjCarouselv0.2.3 with jQ 1.2.3.

 I'm having a problem on IE7 where the item that should be displayed on
 the left side, next to the back arrow, is cut out. Not only does this
 happen with my own use of the code, but I get the same result on the
 circular example 
 athttp://sorgalla.com/projects/jcarousel/examples/special_circular.html.
 Has anyone found a way to remedy this?

 Also, in Firefox (2.0.0.14) on a Mac, again using circular, when the
 carousel refreshes the images (to create the circle) there is a jerk
 in the animation. Has anyone had any success fixing this problem? I
 know with certain slide and blind effects you can set a 'to' or 'from'
 to an integer other than default and remedy an animation hitch, but I
 haven't seen any such usage withjCarousel.

 FWIW, here is a pastie/link to my code (not very different from the
 example on sorgalla.com):http://pastie.caboo.se/private/xi7xuwuo958pt6jfhfsdxa

 Thanks in advance,

 Eric


[jQuery] Working with other library

2008-04-30 Thread div

Ok,
I know that there are some posts about this, and I've read them all,
however not being really bright at this particular thing, I'm in a
need of some assistance. I would like to understand how do you
actually use the no conflict jquery option to work with other library,
and if you have the patience please try to explain step by step.
I've read the article on the jquery site, but didn't quite get it.
(http://docs.jquery.com/Using_jQuery_with_Other_Libraries)
If there is someone who could clarify what does serves for what in
those 3 examples would be rally great!
Thank you


[jQuery] Cycle Plugin - additional manual link to a particular slide

2008-04-30 Thread emjem

Hi there

I've used the Cycle plugin to build a shuffling div with text content,
that uses the pagerAnchorBuilder to link the nav to each slide. That
all works fine.

  $('#shuffledeck').cycle({
fx:'shuffle',
cssAfter: {
top:  -20,
left: -20
},
delay: -4000,
timeout: 0 ,
pager:  '#nav',
pagerAnchorBuilder: function(idx, slide) {
// return selector string for existing anchor
return '#nav li:eq(' + idx + ') a';
}
});

However now I need to also trigger a transition to a particular slide
via an additional link in the body, eg be able to do a shuffle
transition to slide x when clicking on a link with id of y.

Is this possible? I've been experimenting a bit with the before:
property but can't work out how to a) specify the next slide and then
b) trigger a transition, without mucking up the main pager.

Thanks for any help!


[jQuery] Moving label text to input

2008-04-30 Thread Emil

Hi,

I have this small script that moves the text from a label and places
it in a input field next to the label, like such:

function moveLabelToInput(){
$(label.moveToInput).each(function(){
var lblText = $(this).text();
$(this).hide()
.next(# + $(this).attr(for))
.attr({title: lblText})
.focus(function(){
if ($(this).val() === lblText) {
$(this).val();
}
})
.blur(function(){
if($(this).val() === ) {
$(this).val(lblText);
}
})
.val(lblText);
});
}

However, I want to change this: .next(# + $(this).attr(for)) so it
can find a input field anywhere in the document and not just next to
the label.
How can I do that?

regards / Emil


[jQuery] Re: ui.datepicker causes IE operation aborted

2008-04-30 Thread jquiker


We're using the older jQuery 1.2.1, and I've tried several methods, including
your suggestions below. None work in that blasted browser. This is the
declaration code I'm trying to use in our portal:


lt;style type=text/cssgt;@import
url(/css/jquery/ui.datepicker.css);lt;/stylegt;

lt;script type=text/javascript
src=/js/jquery/ui.datepicker.jsgt;lt;/scriptgt;


This is the code that init's the date picker:

lt;input type=text id=dateTestgt;

lt;scriptgt;

nbsp;nbsp;nbsp;nbsp;nbsp;$.datepicker.setDefaults({showOn: 'both',
buttonImageOnly: true, buttonImage: '/images/icons/cal.png', buttonText:
'Calendar'});

nbsp;nbsp;nbsp;nbsp;nbsp;$('#dateTest').datepicker(); 

nbsp;nbsp;nbsp;nbsp;nbsp;$('#dateTest').datepicker({defaultDate: +7});

lt;/scriptgt;



Tried the following approaches:


wrap declaration block in document.ready, as 
http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml described
here . IE aborts even without init code
declaration block in HEAD. IE aborts
declaration right after lt;BODYgt; tag, not enclosed by DIV or table tags.
IE aborts
declaration right before lt;/BODYgt; tag. IE loads it fine


Okay, so we go with #4, and now we try adding the init code somewhere.
Unfortunately, our pages are user-customizable (think yahoo or google
portal), so we don't have 100% control over where the init code will
occur--only that with Approach #4, it will be written to the page before the
actual declaration.

So I tried wrapping the init code in a document.ready() call as well. Works
in Firefox, IE barfs (of course), saying the datepicker object doesn't
exist. I'm trying to force it to load after the declaration has in fact
occurred, but IE is executing the code as it appears on a page.

I could force all components using the date picker to use the same variable
name, but this is a kludge requiring a try/catch block, since there might be
no datepicker field. And fun ensues if a user puts two picker-equipped
portlets a page... This approach also prevents me from customizing the
datepicker on a case-by-case basis.

Any further suggestions? Has anyone gotten it to work in IE where the init
code is written to the browser before the declaration?

Thanks for any help.


KidsKilla .grin! wuz here wrote:
 
 This problem caused in IE not because of jQuery bug, but because of IE
 bug.
 IE doesn't allow to work with DOM untill it's fully downloaded and be
 ready.
 This is why everything works fine inside $(document).ready()
 there is 2 ways to fix it:
 1. initialize everything in $(document).ready()
 2. paste your script tags in head or directly in body tag. (i mean
 there have to be no parent tags)
 
 search for Operation aborted
 http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs
 
 

(having problems posting this, apologies if you're seeing this again)
-- 
View this message in context: 
http://www.nabble.com/ui.datepicker-causes-IE-%22operation-aborted%22-tp14234517s27240p16627827.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] size of an ul

2008-04-30 Thread Ray Mckoy

Hi all.
Can i know the number of li in a ul with jquery?.

Thank you all.


[jQuery] Re: Cycle Plugin - additional manual link to a particular slide

2008-04-30 Thread Mike Alsup

  Hi there

  I've used the Cycle plugin to build a shuffling div with text content,
  that uses the pagerAnchorBuilder to link the nav to each slide. That
  all works fine.

   $('#shuffledeck').cycle({
 fx:'shuffle',
 cssAfter: {
 top:  -20,
 left: -20
 },
 delay: -4000,
 timeout: 0 ,
 pager:  '#nav',
 pagerAnchorBuilder: function(idx, slide) {
 // return selector string for existing anchor
 return '#nav li:eq(' + idx + ') a';
 }
 });

  However now I need to also trigger a transition to a particular slide
  via an additional link in the body, eg be able to do a shuffle
  transition to slide x when clicking on a link with id of y.

  Is this possible? I've been experimenting a bit with the before:
  property but can't work out how to a) specify the next slide and then
  b) trigger a transition, without mucking up the main pager.

  Thanks for any help!


Here's a demo:

http://www.malsup.com/jquery/cycle/pager6.html


[jQuery] Re: BlockUI displayBox() thickbox alternative?

2008-04-30 Thread Mike Alsup

You can still use blockUI in that way even though the displayBox
function has been removed in the 2.x line.  See the image box demo on
the demo page:

http://www.malsup.com/jquery/block/#demos

Mike


On Wed, Apr 30, 2008 at 2:36 AM, Nathaniel Whiteinge
[EMAIL PROTECTED] wrote:

  I really dug the displayBox() thickbox from BlockUI v1.33, but it's
  been removed in the latest version. Thickbox implementations that have
  animation, and that require css and image files are much too heavy for
  my taste.

  Anyone know of an ultra-lightweight thickbox implementation to replace
  displayBox?

  I've gone through the plugin list on the jQuery site, and nothing fits
  the bill. No images, no css files, no close button (just esc. and
  clicking outside the box).

  Thanks.
  - whiteinge


  .. [1] http://www.malsup.com/jquery/block/index-old.html#displaybox
  .. [2] http://www.malsup.com/jquery/block/#faq



[jQuery] Re: size of an ul

2008-04-30 Thread Jason Huck

$('ul').children().size();

- jason


On Apr 30, 2:58 am, Ray Mckoy [EMAIL PROTECTED] wrote:
 Hi all.
 Can i know the number of li in a ul with jquery?.

 Thank you all.


[jQuery] jCarousel - Multiple rows in horizontal mode (or cols in vertical mode)

2008-04-30 Thread tekanet

Hello folks,
I need to put multiple items in a carousel, placed on rows and cols,
with horizontal scrolling.

Examples. Now my carousel looks like this:

-  [ITEM] [ITEM] [ITEM] -

I want it like this:

[ITEM] [ITEM] [ITEM]
- [ITEM] [ITEM] [ITEM] -
[ITEM] [ITEM] [ITEM]

Is this possibile? Is there any other carousel component that works
like this?

TIA,
tk


[jQuery] Jquery UI Doc?

2008-04-30 Thread Giovanni Battista Lenoci

Hi, till now for my draggable and droppable effects I used Interface
plugin. Now I want to take a look at jquery ui, but I'm wondering if
exists a documentation better than the one on docs.jquery.com. For
example:

draggable( options )Returns: jQuery
Creates new draggables on the nodeset supplied by the query.

Where I can find info about the options ?
If a doc doesn't exist, where I have to look inside the code?

Thank you.


[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Jason Huck

Twitter posts (or tweets) are limited to 140 characters, so they're
not going to replace full-fledged announcements. Rather, most of the
time, they'll just be headlines with a URL which points to...you
guessed it...the plugin repository, the main site, this list, various
blogs, etc.

So, I wouldn't worry about news being distributed exclusively via
Twitter. You just might find out about something a little bit sooner
if you use the service. In fact, even if you don't have a Twitter
account, you can still subscribe to an RSS or Atom feed of the updates
via your favorite feed reader.

I don't know how much automation is currently in place or planned, but
it might be nice to set it up to auto-announce new additions to the
plugin repository, new posts at planet.jquery.com, etc.

- jason





On Apr 30, 8:05 am, Rick Faircloth [EMAIL PROTECTED] wrote:
 Hi, Rey...

 First, a disclaimer... I'm not a Twitter user, so I don't get it, as I've
 heard Twitter users say of no-users.  :o)

 That being said, I wanted to ask why another source of info, beyond the
 jquery.com site, the ton of individual plug-in sites, doc sites, etc, is 
 needed.

 It seems that we're spreading the sources of info even thinner, rather than 
 deeper.

 I was surprised to see the Twitter accounts starting up.

 So, I'm hoping to understand the desired benefits of using Twitter.  I know 
 you stated
 below that you hope to maximize the reach of announcements about upcoming 
 jQuery 
 jQuery UI updates and releases.  How does Twitter do that better than the 
 mailing list?
 And will the mailing list continue to be adequate for this of us who don't 
 Twitter?

 Can you clue me in?

 Rick

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey 
  Bango
  Sent: Wednesday, April 30, 2008 12:02 AM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery UI 
  Projects

  Hi Lee,

  Yep. Some things will continue to be double posted but we'll eventually
  get to full separation. :)

  Rey

  Lee Hinde wrote:
   On Tue, Apr 29, 2008 at 8:10 PM, Rey Bango [EMAIL PROTECTED] wrote:
    Eventually, we'll be posting unique stuff to each account respectively 
   but
   initially, we'll be posting to both to ensure that everyone is aware of 
   the
   two accounts.

    You can expect to see a stop to the double postings in about a week. By
   then, we hope that everyone will know that about both Twitter accounts.

    Thanks for your patience.

    Rey...

    Lee Hinde wrote:

   On Sun, Apr 27, 2008 at 12:05 PM, Rey Bango [EMAIL PROTECTED] wrote:

    In an effort to maximize the reach of announcements about upcoming
   jQuery 
   jQuery UI updates and releases, the team has created a new Twitter
   account:
    http://twitter.com/jquery

    and

    http://twitter.com/jqueryui

    I urge you to follow the accounts, along with the mailing list, for
   updates
   and news.

   Please splain  the benefit of two accounts if you're posting the same
   info to both?

   Looks like it's already branched. Thanks for the service...


[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Rick Faircloth

Hi, Rey...

First, a disclaimer... I'm not a Twitter user, so I don't get it, as I've
heard Twitter users say of no-users.  :o)

That being said, I wanted to ask why another source of info, beyond the
jquery.com site, the ton of individual plug-in sites, doc sites, etc, is needed.

It seems that we're spreading the sources of info even thinner, rather than 
deeper.

I was surprised to see the Twitter accounts starting up.

So, I'm hoping to understand the desired benefits of using Twitter.  I know you 
stated
below that you hope to maximize the reach of announcements about upcoming 
jQuery 
jQuery UI updates and releases.  How does Twitter do that better than the 
mailing list?
And will the mailing list continue to be adequate for this of us who don't 
Twitter?

Can you clue me in?

Rick



 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey 
 Bango
 Sent: Wednesday, April 30, 2008 12:02 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery UI 
 Projects
 
 
 Hi Lee,
 
 Yep. Some things will continue to be double posted but we'll eventually
 get to full separation. :)
 
 Rey
 
 Lee Hinde wrote:
  On Tue, Apr 29, 2008 at 8:10 PM, Rey Bango [EMAIL PROTECTED] wrote:
   Eventually, we'll be posting unique stuff to each account respectively but
  initially, we'll be posting to both to ensure that everyone is aware of the
  two accounts.
 
   You can expect to see a stop to the double postings in about a week. By
  then, we hope that everyone will know that about both Twitter accounts.
 
   Thanks for your patience.
 
   Rey...
 
 
 
   Lee Hinde wrote:
 
  On Sun, Apr 27, 2008 at 12:05 PM, Rey Bango [EMAIL PROTECTED] wrote:
 
   In an effort to maximize the reach of announcements about upcoming
  jQuery 
  jQuery UI updates and releases, the team has created a new Twitter
  account:
   http://twitter.com/jquery
 
   and
 
   http://twitter.com/jqueryui
 
   I urge you to follow the accounts, along with the mailing list, for
  updates
  and news.
 
 
  Please splain  the benefit of two accounts if you're posting the same
  info to both?
 
 
 
  Looks like it's already branched. Thanks for the service...
 




[jQuery] Re: Moving label text to input

2008-04-30 Thread Jason Huck

All you should need to do is break the chain, since 'this' will still
refer to the label until you're inside another function, making the
call to .next() superfluous anyway. However, stuffing the id of the
input you want to select into its own variable might be a tiny bit
easier to read.

Try this:

function moveLabelToInput(){
$('label.moveToInput').each(function(){
var lblText = $(this).text();
var lblInput = '#' + $(this).attr('for');
$(this).hide();

$(lblInput)
.attr({title: lblText})
.focus(function(){
if($(this).val() === lblText){
$(this).val('');
}
})
.blur(function(){
if($(this).val() === ''){
$(this).val(lblText);
}
})
.val(lblText);
});
}

- jason




On Apr 30, 2:54 am, Emil [EMAIL PROTECTED] wrote:
 Hi,

 I have this small script that moves the text from a label and places
 it in a input field next to the label, like such:

 function moveLabelToInput(){
                 $(label.moveToInput).each(function(){
                         var lblText = $(this).text();
                         $(this).hide()
                         .next(# + $(this).attr(for))
                         .attr({title: lblText})
                         .focus(function(){
                                         if ($(this).val() === lblText) {
                                                 $(this).val();
                                         }
                                 })
                                 .blur(function(){
                                         if($(this).val() === ) {
                                                 $(this).val(lblText);
                                         }
                                 })
                         .val(lblText);
                 });
         }

 However, I want to change this: .next(# + $(this).attr(for)) so it
 can find a input field anywhere in the document and not just next to
 the label.
 How can I do that?

 regards / Emil


[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Rick Faircloth

Thanks, Jason... just wanted to make sure I wasn't getting left out
of the loop or had to subscribe to yet *another* source of info...

Rick

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason 
 Huck
 Sent: Wednesday, April 30, 2008 8:31 AM
 To: jQuery (English)
 Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery UI 
 Projects
 
 
 Twitter posts (or tweets) are limited to 140 characters, so they're
 not going to replace full-fledged announcements. Rather, most of the
 time, they'll just be headlines with a URL which points to...you
 guessed it...the plugin repository, the main site, this list, various
 blogs, etc.
 
 So, I wouldn't worry about news being distributed exclusively via
 Twitter. You just might find out about something a little bit sooner
 if you use the service. In fact, even if you don't have a Twitter
 account, you can still subscribe to an RSS or Atom feed of the updates
 via your favorite feed reader.
 
 I don't know how much automation is currently in place or planned, but
 it might be nice to set it up to auto-announce new additions to the
 plugin repository, new posts at planet.jquery.com, etc.
 
 - jason
 
 
 
 
 
 On Apr 30, 8:05 am, Rick Faircloth [EMAIL PROTECTED] wrote:
  Hi, Rey...
 
  First, a disclaimer... I'm not a Twitter user, so I don't get it, as I've
  heard Twitter users say of no-users.  :o)
 
  That being said, I wanted to ask why another source of info, beyond the
  jquery.com site, the ton of individual plug-in sites, doc sites, etc, is 
  needed.
 
  It seems that we're spreading the sources of info even thinner, rather than 
  deeper.
 
  I was surprised to see the Twitter accounts starting up.
 
  So, I'm hoping to understand the desired benefits of using Twitter.  I know 
  you stated
  below that you hope to maximize the reach of announcements about upcoming 
  jQuery 
  jQuery UI updates and releases.  How does Twitter do that better than the 
  mailing list?
  And will the mailing list continue to be adequate for this of us who don't 
  Twitter?
 
  Can you clue me in?
 
  Rick
 




[jQuery] Re: size of an ul

2008-04-30 Thread Ray Mckoy
Jason Huck escribió:
 $('ul').children().size();

 - jason


 On Apr 30, 2:58 am, Ray Mckoy [EMAIL PROTECTED] wrote:
   
 Hi all.
 Can i know the number of li in a ul with jquery?.

 Thank you all.
 

   

Thank you very much. That's what i need.


[jQuery] Form Submit Function

2008-04-30 Thread dynamic web dev


Trying to run a function when a form in an iframe is submitted.  The form is
submitted from a parent frame.  When running the function from within the
iframe (button on the form), the submit function works as it should.  When
submitting the form from outside the form, the submit function does not
run.  

It seems as if the iframe is hindering the page from catching the function. 
When using keyup instead of submit on the same function, it works like a
charm!  

-- 
View this message in context: 
http://www.nabble.com/Form-Submit-Function-tp16982072s27240p16982072.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: help optimizing this code ?

2008-04-30 Thread bruno desthuilliers

On 29 avr, 14:55, Dave Methvin [EMAIL PROTECTED] wrote:
I have this piece of code that works fine, but is a bit slow (on a
page with =~ 25 container and =~ 70 buttons, it takes about 2 to 3
seconds to complete, even after I made my best to narrow down the $
(elt) set on which it is called). So I if anybody here has any idea to
improve it...

   Is it the setup,  or is the 2-3
   seconds when you click on something?

  Sorry, forgot to mention this. And yes, it's the setup that's taking
  too long.

  Now most of the time is spent into curCSS() and data()...

 What do your selectors look like that are used there? Here are the
 three I would like to know for sure:

 * number of elements OneOfTogglers() is applied to

If you mean the number of elements in the $(something) I call
OneOfTogglers on, it vary depending on the user (it's a igoogle-like
page), but is in the order of 10/20 elements. The page on which I made
these tests has 14 such elements.

 * containerSelector

ul.toglist - 24 such elements on the page (some blocks have up to 6
ul.toglist elements)

 * buttonSelector

a.togbutton - actually 71 of them on this page.

FWIW, the page is a bit heavy on markup
(document.getElementsByTagName('*') on my current test page yields
1295), but this is not something I can help.


[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Rey Bango


Jason described it perfectly and you won't be left out of the loop 
because you don't use Twitter. The mailing list is still the main point 
of communication for the jQuery project. You would be surprised, though, 
how many people do not subscribe to the mailing list but are on Twitter 
and other services. We need to reach those folks as well.


Going forward, we're going to use every means possible to get the word 
out about jQuery. Remember that part of the team is dedicated to 
evangelism efforts so we won't be thinning ourselves out.


Rey...

Rick Faircloth wrote:

Thanks, Jason... just wanted to make sure I wasn't getting left out
of the loop or had to subscribe to yet *another* source of info...

Rick


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason 
Huck
Sent: Wednesday, April 30, 2008 8:31 AM
To: jQuery (English)
Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery UI 
Projects


Twitter posts (or tweets) are limited to 140 characters, so they're
not going to replace full-fledged announcements. Rather, most of the
time, they'll just be headlines with a URL which points to...you
guessed it...the plugin repository, the main site, this list, various
blogs, etc.

So, I wouldn't worry about news being distributed exclusively via
Twitter. You just might find out about something a little bit sooner
if you use the service. In fact, even if you don't have a Twitter
account, you can still subscribe to an RSS or Atom feed of the updates
via your favorite feed reader.

I don't know how much automation is currently in place or planned, but
it might be nice to set it up to auto-announce new additions to the
plugin repository, new posts at planet.jquery.com, etc.

- jason





On Apr 30, 8:05 am, Rick Faircloth [EMAIL PROTECTED] wrote:

Hi, Rey...

First, a disclaimer... I'm not a Twitter user, so I don't get it, as I've
heard Twitter users say of no-users.  :o)

That being said, I wanted to ask why another source of info, beyond the
jquery.com site, the ton of individual plug-in sites, doc sites, etc, is needed.

It seems that we're spreading the sources of info even thinner, rather than 
deeper.

I was surprised to see the Twitter accounts starting up.

So, I'm hoping to understand the desired benefits of using Twitter.  I know you 
stated
below that you hope to maximize the reach of announcements about upcoming jQuery 

jQuery UI updates and releases.  How does Twitter do that better than the 
mailing list?
And will the mailing list continue to be adequate for this of us who don't 
Twitter?

Can you clue me in?

Rick







[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Jake McGraw

@jquery doc.jquery.com is down :-P

- jake

On Wed, Apr 30, 2008 at 9:27 AM, Rey Bango [EMAIL PROTECTED] wrote:

  Jason described it perfectly and you won't be left out of the loop because
 you don't use Twitter. The mailing list is still the main point of
 communication for the jQuery project. You would be surprised, though, how
 many people do not subscribe to the mailing list but are on Twitter and
 other services. We need to reach those folks as well.

  Going forward, we're going to use every means possible to get the word out
 about jQuery. Remember that part of the team is dedicated to evangelism
 efforts so we won't be thinning ourselves out.

  Rey...



  Rick Faircloth wrote:

  Thanks, Jason... just wanted to make sure I wasn't getting left out
  of the loop or had to subscribe to yet *another* source of info...
 
  Rick
 
 
   -Original Message-
   From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jason Huck
   Sent: Wednesday, April 30, 2008 8:31 AM
   To: jQuery (English)
   Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery
 UI Projects
  
  
   Twitter posts (or tweets) are limited to 140 characters, so they're
   not going to replace full-fledged announcements. Rather, most of the
   time, they'll just be headlines with a URL which points to...you
   guessed it...the plugin repository, the main site, this list, various
   blogs, etc.
  
   So, I wouldn't worry about news being distributed exclusively via
   Twitter. You just might find out about something a little bit sooner
   if you use the service. In fact, even if you don't have a Twitter
   account, you can still subscribe to an RSS or Atom feed of the updates
   via your favorite feed reader.
  
   I don't know how much automation is currently in place or planned, but
   it might be nice to set it up to auto-announce new additions to the
   plugin repository, new posts at planet.jquery.com, etc.
  
   - jason
  
  
  
  
  
   On Apr 30, 8:05 am, Rick Faircloth [EMAIL PROTECTED] wrote:
  
Hi, Rey...
   
First, a disclaimer... I'm not a Twitter user, so I don't get it, as
 I've
heard Twitter users say of no-users.  :o)
   
That being said, I wanted to ask why another source of info, beyond
 the
jquery.com site, the ton of individual plug-in sites, doc sites, etc,
 is needed.
   
It seems that we're spreading the sources of info even thinner, rather
 than deeper.
   
I was surprised to see the Twitter accounts starting up.
   
So, I'm hoping to understand the desired benefits of using Twitter.  I
 know you stated
below that you hope to maximize the reach of announcements about
 upcoming jQuery 
jQuery UI updates and releases.  How does Twitter do that better than
 the mailing list?
And will the mailing list continue to be adequate for this of us who
 don't Twitter?
   
Can you clue me in?
   
Rick
   
   
  
 
 
 
 



[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Jake McGraw

*http://docs.jquery.com/

On Wed, Apr 30, 2008 at 9:45 AM, Jake McGraw [EMAIL PROTECTED] wrote:
 @jquery doc.jquery.com is down :-P

  - jake



  On Wed, Apr 30, 2008 at 9:27 AM, Rey Bango [EMAIL PROTECTED] wrote:
  
Jason described it perfectly and you won't be left out of the loop because
   you don't use Twitter. The mailing list is still the main point of
   communication for the jQuery project. You would be surprised, though, how
   many people do not subscribe to the mailing list but are on Twitter and
   other services. We need to reach those folks as well.
  
Going forward, we're going to use every means possible to get the word out
   about jQuery. Remember that part of the team is dedicated to evangelism
   efforts so we won't be thinning ourselves out.
  
Rey...
  
  
  
Rick Faircloth wrote:
  
Thanks, Jason... just wanted to make sure I wasn't getting left out
of the loop or had to subscribe to yet *another* source of info...
   
Rick
   
   
 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
   Behalf Of Jason Huck
 Sent: Wednesday, April 30, 2008 8:31 AM
 To: jQuery (English)
 Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  
 jQuery
   UI Projects


 Twitter posts (or tweets) are limited to 140 characters, so they're
 not going to replace full-fledged announcements. Rather, most of the
 time, they'll just be headlines with a URL which points to...you
 guessed it...the plugin repository, the main site, this list, various
 blogs, etc.

 So, I wouldn't worry about news being distributed exclusively via
 Twitter. You just might find out about something a little bit sooner
 if you use the service. In fact, even if you don't have a Twitter
 account, you can still subscribe to an RSS or Atom feed of the updates
 via your favorite feed reader.

 I don't know how much automation is currently in place or planned, but
 it might be nice to set it up to auto-announce new additions to the
 plugin repository, new posts at planet.jquery.com, etc.

 - jason





 On Apr 30, 8:05 am, Rick Faircloth [EMAIL PROTECTED] wrote:

  Hi, Rey...
 
  First, a disclaimer... I'm not a Twitter user, so I don't get it, 
 as
   I've
  heard Twitter users say of no-users.  :o)
 
  That being said, I wanted to ask why another source of info, beyond
   the
  jquery.com site, the ton of individual plug-in sites, doc sites, etc,
   is needed.
 
  It seems that we're spreading the sources of info even thinner, 
 rather
   than deeper.
 
  I was surprised to see the Twitter accounts starting up.
 
  So, I'm hoping to understand the desired benefits of using Twitter.  
 I
   know you stated
  below that you hope to maximize the reach of announcements about
   upcoming jQuery 
  jQuery UI updates and releases.  How does Twitter do that better 
 than
   the mailing list?
  And will the mailing list continue to be adequate for this of us who
   don't Twitter?
 
  Can you clue me in?
 
  Rick
 
 

   
   
   
   
  



[jQuery] Re: Jquery UI Doc?

2008-04-30 Thread motob

Clicking on draggable( options ) will give you this page:
http://docs.jquery.com/UI/Draggables/draggable#options. From there,
click on the options tab. The same holds true to access the droppable
options.

On Apr 30, 8:06 am, Giovanni Battista Lenoci [EMAIL PROTECTED]
wrote:
 Hi, till now for my draggable and droppable effects I used Interface
 plugin. Now I want to take a look at jquery ui, but I'm wondering if
 exists a documentation better than the one on docs.jquery.com. For
 example:

 draggable( options )Returns: jQuery
 Creates new draggables on the nodeset supplied by the query.

 Where I can find info about the options ?
 If a doc doesn't exist, where I have to look inside the code?

 Thank you.


[jQuery] $(#divid).load(page.html) not loading in IE 6 or 7 works fine in FF

2008-04-30 Thread jquery_n00b



div id=”wtf”WTF???/div

script type=text/javascript language=javascript
$(document).ready(function(){
$(div#wtf).load(/home.html,function(responseText){
alert(responseText);});
});
/script

It works fine in FF but not in IE, the thing is in Fiddler, I see the get
happen and the text from the page is being returned, as well as the alert
shows the page contents, I am at a loss. On the page, this is set to run to
on page load or when document is ready / dom ready… The alert shows the
response as it should and the div text is replaced on load although its
blank.

Any ideas or ways for me to troubleshoot this further?

Thanks in advance! 
-- 
View this message in context: 
http://www.nabble.com/%24%28-divid%29.load%28%22page.html%22%29-not-loading-in-IE-6-or-7-works-fine-in-FF-tp16982930s27240p16982930.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery UI Doc?

2008-04-30 Thread Giovanni Battista Lenoci

On 30 Apr, 15:22, motob [EMAIL PROTECTED] wrote:
 Clicking on draggable( options ) will give you this 
 page:http://docs.jquery.com/UI/Draggables/draggable#options. From there,
 click on the options tab. The same holds true to access the droppable
 options.

Thank you, I didn't see it sorry... :)



[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Rick Faircloth

Good deal... thanks, Rey, for the info and for all you and the team
do to keep the jQuery wheels turnin'!

Rick

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey 
 Bango
 Sent: Wednesday, April 30, 2008 9:28 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery UI 
 Projects
 
 
 Jason described it perfectly and you won't be left out of the loop
 because you don't use Twitter. The mailing list is still the main point
 of communication for the jQuery project. You would be surprised, though,
 how many people do not subscribe to the mailing list but are on Twitter
 and other services. We need to reach those folks as well.
 
 Going forward, we're going to use every means possible to get the word
 out about jQuery. Remember that part of the team is dedicated to
 evangelism efforts so we won't be thinning ourselves out.
 
 Rey...
 
 Rick Faircloth wrote:
  Thanks, Jason... just wanted to make sure I wasn't getting left out
  of the loop or had to subscribe to yet *another* source of info...
 
  Rick
 




[jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Rey Bango


My pleasure Rick. We respect and value the jQuery community and want to 
ensure that jQuery developers get any info that can make their jobs easier.


Rey...

Rick Faircloth wrote:

Good deal... thanks, Rey, for the info and for all you and the team
do to keep the jQuery wheels turnin'!

Rick


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey 
Bango
Sent: Wednesday, April 30, 2008 9:28 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [ANNOUNCE] New Twitter Account for jQuery  jQuery UI 
Projects


Jason described it perfectly and you won't be left out of the loop
because you don't use Twitter. The mailing list is still the main point
of communication for the jQuery project. You would be surprised, though,
how many people do not subscribe to the mailing list but are on Twitter
and other services. We need to reach those folks as well.

Going forward, we're going to use every means possible to get the word
out about jQuery. Remember that part of the team is dedicated to
evangelism efforts so we won't be thinning ourselves out.

Rey...

Rick Faircloth wrote:

Thanks, Jason... just wanted to make sure I wasn't getting left out
of the loop or had to subscribe to yet *another* source of info...

Rick







[jQuery] Scroll, jump, goTo etc problem

2008-04-30 Thread theVibe

Hi,

This is what i want to use. onClick jump to 'imgIndex':

[...]

a class=head href=# onclick=jumpToImg(6); return false;Some
Info/a
a class=head href=# onclick=jumpToImg(9); return false;More
Info/a

[...]

ul id=carousel
li.../li
li.../li
li.../li
...
/ul

[...]

function jumpToImg(imgIndex){

jQuery(document).ready(function() {
jQuery('#carousel').jcarousel({
start: imgIndex
});
});

}

and of course is not working.

I need an ideea how can i solve this problem, this simple problem but
as far as i see complicated for me.

Thank you in advance.


[jQuery] Superfish image menu

2008-04-30 Thread redant34

This may have been asked before. I'm not a CSS expert. I wanted to
make a menu such as this:

http://www.wireless.att.com/cell-phone-service/welcome/index.jsp?WT.srch=1

I have it set up where each menu item image has both states in the
image and on rollover moves accordingly.

I added the superfish styling, it seems as if the top nav styling is
the same as the bottom nav ie. heightor background-image How do I
control the style for the top and bottom and the position of the
bottom also?

I guess I'm asking is it possible to create a menu such as the att
one with basic CSS. The att menu knows all states and on each page
shows where the user currently is. I'm working on this at home, but
here is where I want the menu:

http://new.pbxpad.net/pad/

I have gotten further, but that is what is posted for now.


Any help is appreciated. -J


[jQuery] Superfish image menu

2008-04-30 Thread redant34

This may have been asked before. I'm not a CSS expert. I wanted to
make a menu such as this:

http://www.wireless.att.com/cell-phone-service/welcome/index.jsp?WT.srch=1

I have it set up where each menu item image has both states in the
image and on rollover moves accordingly.

I added the superfish styling, it seems as if the top nav styling is
the same as the bottom nav ie. heightor background-image How do I
control the style for the top and bottom and the position of the
bottom also?

I guess I'm asking is it possible to create a menu such as the att
one with basic CSS. The att menu knows all states and on each page
shows where the user currently is. I'm working on this at home, but
here is where I want the menu:

http://new.pbxpad.net/pad/

I have gotten further, but that is what is posted for now.


Any help is appreciated. -J


[jQuery] Re: AutoComplete - how to update the local data array?

2008-04-30 Thread Adam

Awesome!  Thank you thank you thank you.


[jQuery] Re: Superfish image menu

2008-04-30 Thread redant34

I guess I don't need the superfish plugin really. I don't get where
you put this:



$(document).ready(function(){
$(ul.nav).superfish();
});

what is a plugin and where do you put it?


[jQuery] listen plugin along with cluetip plugin

2008-04-30 Thread Alexandre Plennevaux


hello!

i have a table displaying 3000 rows and would like to use the cluetip to 
display some info about each contact via ajax.
of course, 3000 mouseover event binding is  not reasonable so i think my 
problem qualifies for the use case addressed by the listen plugin.


but i don't know how to connect the two plugins, since cluetip hides the 
event handling behind its function.


here is the code  i thought would work:

$(document).ready(function(){
   $(table.sortable).tablesorter().listen('hover', 'a.clueTip', 
function(){

   $(this).cluetip({
   sticky: true,
   width: 800
   });
   });
});


any help would be much appreciated !


thanks,

Alexandre





[jQuery] Re: jCarousel circular bug in IE7, separate bug in Firefox (mac)?

2008-04-30 Thread ericHurst

Excellent. Thanks, Jan.

I found that Firefox (Mac) still had the hitch in the animation.
However, I was able to remedy this for my purposes by setting
'animation' to 300 miliseconds. Also, I redid the styles a bit for
this particular project. The combo of the two seemed to fix that
hitch.

Thanks again!

Eric

On Apr 30, 2:27 am, Jan Sorgalla [EMAIL PROTECTED] wrote:
 Hi,

 i've fixed this. Just download the package again.

 Jan

 On 28 Apr., 23:28, ericHurst [EMAIL PROTECTED] wrote:

  I am usingjCarouselv0.2.3 with jQ 1.2.3.

  I'm having a problem on IE7 where the item that should be displayed on
  the left side, next to the back arrow, is cut out. Not only does this
  happen with my own use of the code, but I get the same result on the
  circular example 
  athttp://sorgalla.com/projects/jcarousel/examples/special_circular.html.
  Has anyone found a way to remedy this?

  Also, in Firefox (2.0.0.14) on a Mac, again using circular, when the
  carousel refreshes the images (to create the circle) there is a jerk
  in the animation. Has anyone had any success fixing this problem? I
  know with certain slide and blind effects you can set a 'to' or 'from'
  to an integer other than default and remedy an animation hitch, but I
  haven't seen any such usage withjCarousel.

  FWIW, here is a pastie/link to my code (not very different from the
  example on 
  sorgalla.com):http://pastie.caboo.se/private/xi7xuwuo958pt6jfhfsdxa

  Thanks in advance,

  Eric


[jQuery] Re: Giving more parameters to the async load function ?

2008-04-30 Thread Jörn Zaefferer


jayg schrieb:

I need to set up dynamic urls with async trees as well, though I am
using rails, so I am looking for something more like 'foo/bar/1', but
same functionality.  The problem I have with the idea to use
source.php?id=firsttree or something similar is that I don't know
how many subtrees I may have - this needs to be built dynamically.  If
I misunderstood, and this is intended to be dynamic, a code snippet
would be greatly helpful.  If not, my thought was in the getJSON
function of the treeview.asynch to have _that_ create the url info for
the newly returned tree.  We already have this.id and could easily
return the name of the controller and method to call.  Then, at the
end when we call $(container).treeview({add:child}), we could insert
the url we created into ts setting.  I may hack on this until I hear
another idea, but let me know what you think of that approach.
  
Ideas, especially in the form of code, are very welcome. The basic 
problem, dynamic arguments and different URL formats, applies now to 
both treeview and autocomplete plugins, so solving it properly would 
help a lot.


Jörn


[jQuery] Re: Form Plugin

2008-04-30 Thread Mike Alsup

  Is there a way to make this dynamic?

  I have ~ 100 lines that need to be written into a table of data which
  a check box indicating status of a project (complete or not).
  Each checkbox has an id=check1 or check2 etc.
  What I'm looking to do is to trigger a function that submits
  ProcessThe Data.asp?ID=1 (which is done in the background without a
  page refresh.

  What you suggested works perfectly for submitting the entire form - I
  think I want to submit a simple URL and have it process in the
  background.

Something like this should work:

$(':checkbox[id^=check]').click(function() {
var num = this.id.match(/\d+$/)[0];
$.post('ProcessTheData.asp?ID=' + num);
});

Or if you don't want 100+ handlers bound you can use delegation and
bind a handler to your table:

$('#myBigTable').click(function(e) {
if (e.target.id) {
var num = e.target.id.match(/check(\d+)$/)[1];
if (num)
$.post('ProcessTheData.asp?ID=' + num);
}
});


[jQuery] Re: BlockUI displayBox() thickbox alternative?

2008-04-30 Thread Nathaniel Whiteinge

On Apr 30, 5:03 am, Mike Alsup [EMAIL PROTECTED] wrote:
 You can still use blockUI in that way even though the displayBox
 function has been removed in the 2.x line.  See the image box demo on
 the demo page:

Oh. So you can. Thanks, Mike. And thanks for BlockUI!  :-)

Hey FYI, I tried to email the address on your site a few days ago and
it bounced. If you're interested, all the people that said opacity
rendering on Linux is horrendously slow don't have hardware
acceleration enabled -- the difference is night and day. So if you're
taking votes I say screw 'em -- they're gonna have the same problem
with plenty of sites (Netflix esp.), and there's really no excuse for
not having hardware acceleration in 2008 -- the overlay should show by
default on Linux.

Thanks, again.
- whiteinge


[jQuery] Re: treeview - async - can we get a loading icon like this?

2008-04-30 Thread Jörn Zaefferer


rolf m schrieb:
I'm sorry - I didn't mean the graphic specifically, but an option to 
show a loading graphic while the selected tree branch is loading


and perhaps it's already there, but it's not obvious to me
I've added support for that, and modified the demo accordingly: 
http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html


Jörn


[jQuery] Re: BlockUI displayBox() thickbox alternative?

2008-04-30 Thread Nathaniel Whiteinge

On Apr 30, 10:14 am, Nathaniel Whiteinge [EMAIL PROTECTED] wrote:
 So if you're taking votes I say screw 'em, the overlay should show by
 default on Linux.

You've got a boolean setting for this in 2.0. I'm having a bad run of
running my mouth before reading, it seems.  :-P
Anyway, thanks again.


[jQuery] Need some advice on how to proceed...

2008-04-30 Thread Rick Faircloth

Hi, all...

I've got a Browse Properties page on a real estate website.

You can see the page in question here:
http://c21ar.wsm-dev.com/cfm/browse-properties.cfm

On the page at the top of the listings, I have checkboxes for
property type options for browsing.

I want the user to be able to check one or more of the boxes
and *upon clicking a link* in the Next / Previous links have
the page refresh with on the property types checked.

Those checkboxes are in a form with an id of property_types.

Is there some way to have jQuery gather the values of the checkboxes
so I can use them when the page refreshes to apply conditions to
my query for properties using ColdFusion?

I'd like to avoid having to make the user click a
Set Search Parameters button when changing the checked boxes.

Possible?

Thanks,

Rick



[jQuery] Hide/Close div when clicked outside of it.

2008-04-30 Thread Aleksandr

Hi All,

I am showing a div on click of a hyperlink. Now, when i click
elsewhere in
the document other than the div itself, then i want to hide the
showing
div... Is there any easy way to do this?

I've already try:

$('html').click(function() { $('#divLoginBox1').hide(); });

and

$('body').click(function() { $('#divLoginBox1').hide(); });

but this close div when clicked inside of it.

Thanks,
Alex


[jQuery] Cluetip showing content below fold

2008-04-30 Thread sprak

Greetings; I am using Cluetip to fetch content via AJAX.  I have tried
setting the position option to bottomTop, mouse, and auto.  The
content fetches fine, and the tooltip displays.  However, if the tip
opens close to the bottom of the browser window (FF2 and IE7), the tip
is not shifted up to the top of the element being tipped to allow the
full tip content to be visible.

Instead, the tip displays below the fold; some content is below the
visible portion of the browser window.  Due to our development
environment, I can't post a public accessible URL, but I can provide
whatever code samples might help.  Here is the basic skeleton of how
the page is setup:

html
head
script type=text/javascript src=jquery.js/script
script type=text/javascript src=jquery.dimensions.js/script
/head
body
table
trtd class=sricona href=img src= rel=http://ajaxurl/goes/
here //a/td/tr
/table
script type=text/javascript src=/js/jquery.cluetip.js/script
script$(document).ready(function() { $('td.sricon
img').cluetip({showTitle: false, positionBy: 'mouse'}); } );/script
/body
/html

Cheers.

- Luis


[jQuery] Re: Need some advice on how to proceed...

2008-04-30 Thread ripple
Why couldn't save the clicked values in a session cookie?
   
   
  

Rick Faircloth [EMAIL PROTECTED] wrote:
  
Hi, all...

I've got a Browse Properties page on a real estate website.

You can see the page in question here:
http://c21ar.wsm-dev.com/cfm/browse-properties.cfm

On the page at the top of the listings, I have checkboxes for
property type options for browsing.

I want the user to be able to check one or more of the boxes
and *upon clicking a link* in the Next / Previous links have
the page refresh with on the property types checked.

Those checkboxes are in a form with an id of property_types.

Is there some way to have jQuery gather the values of the checkboxes
so I can use them when the page refreshes to apply conditions to
my query for properties using ColdFusion?

I'd like to avoid having to make the user click a
Set Search Parameters button when changing the checked boxes.

Possible?

Thanks,

Rick



   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[jQuery] Re: $(#divid).load(page.html) not loading in IE 6 or 7 works fine in FF

2008-04-30 Thread Jack Killpatrick


try this:

script type=text/javascript language=javascript
$(document).ready(function(){
setTimeout(function(){
$(div#wtf).load(/home.html,function(responseText){
alert(responseText);
});
},100);
});
/script

If that doesn't work, increase the 100 to 500 and try that. I've often 
had cases where the DOM in IE (and sometimes Safari) does not seem to 
really be ready and have been able to work around it by adding  a 
setTimeout after the .ready call.


I've always been puzzled why this doesn't come up more often in 
discussions (or resolved via a new rev of jquery), but have not poked 
into it.


- Jack

jquery_n00b wrote:


div id=”wtf”WTF???/div

script type=text/javascript language=javascript
$(document).ready(function(){
$(div#wtf).load(/home.html,function(responseText){
alert(responseText);});
});
/script

It works fine in FF but not in IE, the thing is in Fiddler, I see the get
happen and the text from the page is being returned, as well as the alert
shows the page contents, I am at a loss. On the page, this is set to run to
on page load or when document is ready / dom ready… The alert shows the
response as it should and the div text is replaced on load although its
blank.

Any ideas or ways for me to troubleshoot this further?

Thanks in advance! 
  





[jQuery] Re: Need some advice on how to proceed...

2008-04-30 Thread Rick Faircloth
Saving them as a session variable is what I had in mind.

The problem is, I don't have a clue how to get the value

of the checked boxes with jQuery  as they are checked

and have CF turn those values into session variables.

 

Suggestions?  Hints?

 

Thanks for the reply.

 

Rick

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ripple
Sent: Wednesday, April 30, 2008 1:27 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Need some advice on how to proceed...

 

Why couldn't save the clicked values in a session cookie?

 

 



Rick Faircloth [EMAIL PROTECTED] wrote:


Hi, all...

I've got a Browse Properties page on a real estate website.

You can see the page in question here:
http://c21ar.wsm-dev.com/cfm/browse-properties.cfm

On the page at the top of the listings, I have checkboxes for
property type options for browsing.

I want the user to be able to check one or more of the boxes
and *upon clicking a link* in the Next / Previous links have
the page refresh with on the property types checked.

Those checkboxes are in a form with an id of property_types.

Is there some way to have jQuery gather the values of the checkboxes
so I can use them when the page refreshes to apply conditions to
my query for properties using ColdFusion?

I'd like to avoid having to make the user click a
Set Search Parameters button when changing the checked boxes.

Possible?

Thanks,

Rick

 

  

  _  

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20
  it
now.



[jQuery] Re: listen plugin along with cluetip plugin

2008-04-30 Thread Ariel Flesler

I don't know much about ClueTip, whether you can call it like that, or
it's meant to be called once at start.
What I can tell you is, instead of 'hover', use 'mouseenter'. This is
a fake event, so I don't know how well it will play with Listen,
you'll need to experiment.

Cheers

--
Ariel Flesler
http://flesler.blogspot.com

On 30 abr, 12:30, Alexandre Plennevaux [EMAIL PROTECTED] wrote:
 hello!

 i have a table displaying 3000 rows and would like to use the cluetip to
 display some info about each contact via ajax.
 of course, 3000 mouseover event binding is  not reasonable so i think my
 problem qualifies for the use case addressed by the listen plugin.

 but i don't know how to connect the two plugins, since cluetip hides the
 event handling behind its function.

 here is the code  i thought would work:

 $(document).ready(function(){
     $(table.sortable).tablesorter().listen('hover', 'a.clueTip',
 function(){
         $(this).cluetip({
             sticky: true,
             width: 800
         });
     });

 });

 any help would be much appreciated !

 thanks,

 Alexandre


[jQuery] Re: Need some advice on how to proceed...

2008-04-30 Thread Josh Nathanson
Hi Rick,

It looks like you would need to intercept the pagination link clicks;  use 
jQuery to get the checkbox values, and add them onto the end of the href as a 
query string; and then do a window.location.href with the new href you've made 
with the checkbox values.  

You can probably get away with not using session variables if you want, though 
it might be easier to do it using session variables.

-- Josh


  - Original Message - 
  From: Rick Faircloth 
  To: jquery-en@googlegroups.com 
  Sent: Wednesday, April 30, 2008 10:58 AM
  Subject: [jQuery] Re: Need some advice on how to proceed...


  Saving them as a session variable is what I had in mind.

  The problem is, I don't have a clue how to get the value

  of the checked boxes with jQuery  as they are checked

  and have CF turn those values into session variables.

   

  Suggestions?  Hints?

   

  Thanks for the reply.

   

  Rick

   

  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ripple
  Sent: Wednesday, April 30, 2008 1:27 PM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: Need some advice on how to proceed...

   

  Why couldn't save the clicked values in a session cookie?

   

   



  Rick Faircloth [EMAIL PROTECTED] wrote:


Hi, all...

I've got a Browse Properties page on a real estate website.

You can see the page in question here:
http://c21ar.wsm-dev.com/cfm/browse-properties.cfm

On the page at the top of the listings, I have checkboxes for
property type options for browsing.

I want the user to be able to check one or more of the boxes
and *upon clicking a link* in the Next / Previous links have
the page refresh with on the property types checked.

Those checkboxes are in a form with an id of property_types.

Is there some way to have jQuery gather the values of the checkboxes
so I can use them when the page refreshes to apply conditions to
my query for properties using ColdFusion?

I'd like to avoid having to make the user click a
Set Search Parameters button when changing the checked boxes.

Possible?

Thanks,

Rick

   




--

  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


[jQuery] :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Wes Duff

Does anyone know a work around or how to add a value to :contains.
Here is my code I am working with

$('.printer_element  h2').each(function (i) {
if($(this).nextAll().size()  0) {
//do nothing
} else {
//Here we hide the whole div from the browser. We use 
display none
so the divs below the hidden div can move up into the next higher
position
$(this).parent().css({ display:none});
//next we need to hid the checkbox and link in the page 
layout for
the hidden printer_element
//first we asign the name of the hidden printer_element 
to a
variable
var hidden_div = $(this).text();
//Now we select the link of the corresponding text and 
remove it
$('ul#list_container a:contains(hidden_div)').remove();
}
 });


I would like to use hidden_div variable inside of they :contains()
when searching through my links
I would like to do this dynamicaly but it looks like I might have to
write redundant code to check all of my links.

Thanks for the help.


[jQuery] Re: Hide/Close div when clicked outside of it.

2008-04-30 Thread Wes Duff

Off the top of my head --- Try something like this

$('div#mydiv').clcik(function(){$('div#mydiv').show();}); //click to
show div
$('div:not(#mydiv)').click(function(){$('div#mydiv').hide()}); click
anywhere else to hide div ## Problem just thought of If you are using
a wrapper div then you will have the same problem as before. Well you
get the idea.

This is just off the top of my head but if it donst work you get the
idea.


On Apr 30, 11:17 am, Aleksandr [EMAIL PROTECTED] wrote:
 Hi All,

 I am showing a div on click of a hyperlink. Now, when i click
 elsewhere in
 the document other than the div itself, then i want to hide the
 showing
 div... Is there any easy way to do this?

 I've already try:

 $('html').click(function() { $('#divLoginBox1').hide(); });

 and

 $('body').click(function() { $('#divLoginBox1').hide(); });

 but this close div when clicked inside of it.

 Thanks,
 Alex


[jQuery] Re: treeview - async - can we get a loading icon like this?

2008-04-30 Thread rolfsf

Sweet! thanks Jörn
Was there any change to the javascript? It appears that you're just
using a .placeholder class on a span, that gets replaced...?

rolf

On Apr 30, 9:17 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 rolf m schrieb: I'm sorry - I didn't mean the graphic specifically, but an 
 option to
  show a loading graphic while the selected tree branch is loading

  and perhaps it's already there, but it's not obvious to me

 I've added support for that, and modified the demo 
 accordingly:http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html

 Jörn


[jQuery] tablesorter bug?

2008-04-30 Thread A13thGuest

The tablesorter is acting goofy and I'm wondering if anyone has any
insight to the problem or a way to fix it.

I'm adding rows to a table then calling tablesorter:

$('#myTable').tablesorter();

Works fine.

If I clear rows from the table then add more rows, I call tablesorter
again:
$('#myTable').tablesorter();

When I try to sort, records that were previously removed pop into my
table again.

There doesn't seem to be a way to clear the tablesorter before
reloading it with the new table results. For example:
$('#myTable').tablesorter('destroy');
$('#myTable').tablesorter();

Any suggestions?
Thanks in advance.


[jQuery] Re: Scroll, jump, goTo etc problem

2008-04-30 Thread Jan Sorgalla

Hi,

check the external controls example:
http://sorgalla.com/projects/jcarousel/examples/static_controls.html

Jan

On 30 Apr., 16:03, theVibe [EMAIL PROTECTED] wrote:
 Hi,

 This is what i want to use. onClick jump to 'imgIndex':

 [...]

 a class=head href=# onclick=jumpToImg(6); return false;Some
 Info/a
 a class=head href=# onclick=jumpToImg(9); return false;More
 Info/a

 [...]

 ul id=carousel
 li.../li
 li.../li
 li.../li
 ...
 /ul

 [...]

 function jumpToImg(imgIndex){

 jQuery(document).ready(function() {
 jQuery('#carousel').jcarousel({
 start: imgIndex
 });
 });

 }

 and of course is not working.

 I need an ideea how can i solve this problem, this simple problem but
 as far as i see complicated for me.

 Thank you in advance.


[jQuery] Re: jCarousel - Multiple rows in horizontal mode (or cols in vertical mode)

2008-04-30 Thread Jan Sorgalla

Hi,

you can put whatever you want inside the li items. It can be a
single image or a table of 9 images.

Jan

On 30 Apr., 13:00, tekanet [EMAIL PROTECTED] wrote:
 Hello folks,
 I need to put multiple items in a carousel, placed on rows and cols,
 with horizontal scrolling.

 Examples. Now my carousel looks like this:

 -  [ITEM] [ITEM] [ITEM] -

 I want it like this:

 [ITEM] [ITEM] [ITEM]
 - [ITEM] [ITEM] [ITEM] -
 [ITEM] [ITEM] [ITEM]

 Is this possibile? Is there any other carousel component that works
 like this?

 TIA,
 tk


[jQuery] ui selectable

2008-04-30 Thread Sam Sherlock
Hi All,


I am making a AJax File Manager using jQuery and a bunch of plugins within
the interface

I am having some trouble with selectable

here is my code (from within a document ready block)

$(#iconScroller  div.folder, #iconScroller 
div.file).selectable();



here is my mark up



div id=iconScroller
div class=folder
ptest/p
/div
div class=folder
ptest2/p
/div
div class=folder
ptest3/p/div
div class=folder
ptest4/p/div
/div



can you make selectable divs?

2nd question is it possible to combine selectable  draggable?

thx - S


[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Hamish Campbell

First of all, in this:

$('ul#list_container a:contains(hidden_div)')

The word 'hidden_div' is just a string literal - ie it's just looking
for the word hidden_div. If you want to look for the text you've
assigned to the _variable_ hidden_div you just need to go:

$('ul#list_container a:contains(' + hidden_div' + )')

That may or may not be the best way of doing it, but I think it is
what you intended to write.


On May 1, 6:00 am, Wes Duff [EMAIL PROTECTED] wrote:
 Does anyone know a work around or how to add a value to :contains.
 Here is my code I am working with

 $('.printer_element  h2').each(function (i) {
                 if($(this).nextAll().size()  0) {
                         //do nothing
                 } else {
                         //Here we hide the whole div from the browser. We use 
 display none
 so the divs below the hidden div can move up into the next higher
 position
                         $(this).parent().css({ display:none});
                         //next we need to hid the checkbox and link in the 
 page layout for
 the hidden printer_element
                         //first we asign the name of the hidden 
 printer_element to a
 variable
                         var hidden_div = $(this).text();
                         //Now we select the link of the corresponding text 
 and remove it
                         $('ul#list_container 
 a:contains(hidden_div)').remove();
                 }
          });

 I would like to use hidden_div variable inside of they :contains()
 when searching through my links
 I would like to do this dynamicaly but it looks like I might have to
 write redundant code to check all of my links.

 Thanks for the help.


[jQuery] Re: ui selectable

2008-04-30 Thread Sam Sherlock
sorted the first issue (I need to change some css) and found the answer to
the second question to be yes

however I don't see multiple selectees being dragged

any how, I have enough to be making head way on - S

2008/4/30 Sam Sherlock [EMAIL PROTECTED]:

 Hi All,


 I am making a AJax File Manager using jQuery and a bunch of plugins within
 the interface

 I am having some trouble with selectable

 here is my code (from within a document ready block)

 $(#iconScroller  div.folder, #iconScroller 
 div.file).selectable();



 here is my mark up



 div id=iconScroller
 div class=folder
 ptest/p
 /div
 div class=folder
 ptest2/p
 /div
 div class=folder
 ptest3/p/div
 div class=folder
 ptest4/p/div
 /div



 can you make selectable divs?

 2nd question is it possible to combine selectable  draggable?

 thx - S



[jQuery] Re: tablesorter bug?

2008-04-30 Thread Carl Von Stetten

After making changes to the table, use this instead:

$('#myTable').trigger(update); // rebuilds the tablesorter data cache

If you have added rows and need to resort, try either this:

$(#myTable).trigger(sorton,[sorting]); // where [sorting] is the JS 
array of the sorting column info (see docs)

or:
var sorting = $(#myTable)[0].config.sortList;  // grabs the current 
tablesorter sorting configuration
$(#myTable).trigger(sorton,[sorting]);  // resorts using the current 
tablesorter configuration

HTH,
Carl

A13thGuest wrote:
 The tablesorter is acting goofy and I'm wondering if anyone has any
 insight to the problem or a way to fix it.

 I'm adding rows to a table then calling tablesorter:

 $('#myTable').tablesorter();

 Works fine.

 If I clear rows from the table then add more rows, I call tablesorter
 again:
 $('#myTable').tablesorter();

 When I try to sort, records that were previously removed pop into my
 table again.

 There doesn't seem to be a way to clear the tablesorter before
 reloading it with the new table results. For example:
 $('#myTable').tablesorter('destroy');
 $('#myTable').tablesorter();

 Any suggestions?
 Thanks in advance.


   


[jQuery] Re: treeview - async - can we get a loading icon like this?

2008-04-30 Thread Jörn Zaefferer

The script changed, yes. It adds the class. But nothing more.

Jörn

On Wed, Apr 30, 2008 at 8:34 PM, rolfsf [EMAIL PROTECTED] wrote:

  Sweet! thanks Jörn
  Was there any change to the javascript? It appears that you're just
  using a .placeholder class on a span, that gets replaced...?

  rolf



  On Apr 30, 9:17 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
   rolf m schrieb: I'm sorry - I didn't mean the graphic specifically, but 
 an option to
show a loading graphic while the selected tree branch is loading
  
and perhaps it's already there, but it's not obvious to me
  
   I've added support for that, and modified the demo 
 accordingly:http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html
  
   Jörn



[jQuery] slideUp slideDown and mouseover mouseout

2008-04-30 Thread Waters

Hi all - new to jQuery -  a case of trying to run before I walk for
sure...

But.. can anyone help with this?

I have a container div - and two nested divs: one for text, and
another with button (will become part of a resultset)

I'd like the button div to show with the slideUp and slideDown
functions when the mouse is over the containing div.

The trouble I'm having is handling the mousout events - and keeping
the button containing div visible if they move over into this div.

The source is short, and can be viewed at...

http://www.dotbits.com/reveal_buttons.html

Any suggestions greatly appreciated...


[jQuery] Re: Manipulating content generated after $(document).ready

2008-04-30 Thread Matt Henry

Morgan  Karl: Thanks very much for your help.

On Apr 29, 7:46 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 The .clone() method can take an argument -- true -- that will copy the
 events as well.

 So, you can do $(this).clone(true) instead of $(this).clone().

 There are other ways to achieve this as well, noted in the Frequently
 Asked Questions:

 http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st...

 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Apr 29, 2008, at 6:35 PM, Morgan Allen wrote:

  Just add the .click to the .clone() chain.

  On Tue, Apr 29, 2008 at 2:19 PM, Matt Henry [EMAIL PROTECTED]
  wrote:

  I'm wondering if it's possible to use jQuery to manipulate content
  that has been generated by jQuery after the page has loaded.

  Here's what I'm trying to accomplish: The user clicks a span in a long
  block of text, and that span is cloned, wrapped in list tags, and
  appended to a ul at the end of the document:

  //Add span to confirmation div at end of document
  $('span.data').click(function(){
   var confirmList = $('div#confirmSelections ul');
   $
  (this
  ).clone().appendTo(confirmList).removeClass(highlight).wrap(li/
  li);
  })

  So far, so good. However, I'd like the user to also be able to click
  one of the cloned spans at the end and have that remove it from the
  list, which I figured ought to look something like this:

  //Hide span when clicked
  $('div#confirmSelections ul li span.data').click(function(){
   $(this).hide();
  });
  //FAIL

  I've had no trouble manipulating the elements that are there at $
  (document).ready (e.g. the ul and the div containing it), but I can't
  do anything with the lis or spans that are generated by jQuery. What
  am I missing?

  Any help with this would be greatly appreciated. Thanks.

  --
 http://morglog.alleycatracing.com
  Lets make up more accronyms!

 http://www.alleycatracing.com
  LTABOTIIOFR! ROFL! ROFL! ROFL!
  Upcoming alley cats, reviews, touring logs, and a general
  congregation of bike nerdity.


[jQuery] slideUp slideDown and mouseover mouseout (solved)

2008-04-30 Thread Waters

Sorry about that ignore my previous post - - a quick search of the
archive revealed the answer..

.hover is the way to do this.

$(document).ready(function(){
$(#div1).hover(function () {
  $(#div3).slideDown(500);
 }, function() {
$(#div3).slideUp(300);
});
  });



[jQuery] Re: slideUp slideDown and mouseover mouseout (solved)

2008-04-30 Thread Theodore Ni
I would recommend changing the script type from text/jscript to
text/javascript, since the former does not, at the very least, work on
Firefox 3b5.

On Wed, Apr 30, 2008 at 3:59 PM, Waters [EMAIL PROTECTED] wrote:


 Sorry about that ignore my previous post - - a quick search of the
 archive revealed the answer..

 .hover is the way to do this.

 $(document).ready(function(){
$(#div1).hover(function () {
  $(#div3).slideDown(500);
 }, function() {
$(#div3).slideUp(300);
});
  });




-- 
Ted


[jQuery] Re: Cluetip showing content below fold

2008-04-30 Thread Karl Swedberg


it's possible that the problem has to do with the page being in quirks  
mode, though I can't tell for sure without more information.


Could you try using a doctype  system identifier to put the page into  
standards mode?


For example:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

or

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;

thanks.


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Apr 30, 2008, at 12:29 PM, sprak wrote:



Greetings; I am using Cluetip to fetch content via AJAX.  I have tried
setting the position option to bottomTop, mouse, and auto.  The
content fetches fine, and the tooltip displays.  However, if the tip
opens close to the bottom of the browser window (FF2 and IE7), the tip
is not shifted up to the top of the element being tipped to allow the
full tip content to be visible.

Instead, the tip displays below the fold; some content is below the
visible portion of the browser window.  Due to our development
environment, I can't post a public accessible URL, but I can provide
whatever code samples might help.  Here is the basic skeleton of how
the page is setup:

html
head
script type=text/javascript src=jquery.js/script
script type=text/javascript src=jquery.dimensions.js/script
/head
body
table
trtd class=sricona href=img src= rel=http://ajaxurl/ 
goes/

here //a/td/tr
/table
script type=text/javascript src=/js/jquery.cluetip.js/script
script$(document).ready(function() { $('td.sricon
img').cluetip({showTitle: false, positionBy: 'mouse'}); } );/script
/body
/html

Cheers.

- Luis




[jQuery] Re: listen plugin along with cluetip plugin

2008-04-30 Thread Karl Swedberg


Hi Alexandre,

I'm afraid that the cluetip plugin doesn't support event delegation. I  
just didn't have it in mind when I built it. Sorry. :(



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Apr 30, 2008, at 11:30 AM, Alexandre Plennevaux wrote:



hello!

i have a table displaying 3000 rows and would like to use the  
cluetip to display some info about each contact via ajax.
of course, 3000 mouseover event binding is  not reasonable so i  
think my problem qualifies for the use case addressed by the  
listen plugin.


but i don't know how to connect the two plugins, since cluetip hides  
the event handling behind its function.


here is the code  i thought would work:

$(document).ready(function(){
  $(table.sortable).tablesorter().listen('hover', 'a.clueTip',  
function(){

  $(this).cluetip({
  sticky: true,
  width: 800
  });
  });
});


any help would be much appreciated !


thanks,

Alexandre







[jQuery] Re: help optimizing this code ?

2008-04-30 Thread bruno desthuilliers



On 30 avr, 16:42, Dave Methvin [EMAIL PROTECTED] wrote:
  FWIW, the page is a bit heavy on markup
  (document.getElementsByTagName('*') on my current test page yields
  1295), but this is not something I can help.

 You're finding and attaching a lot of event handlers then.

That would certainly be the case if I was to attach 1295 event
handlers -  here I'm talking about =~ 70 handlers. But anyway:

  It might
 work better to use event delegation.

Yeps, that's what I was starting to consider. Unfortunately, I
probably won't have enough time to change this before the whole damn
thing goes into production.  Well, at least I will have learned
something - first experience with heavy javascripting, so...

 Let the event bubble up so that a
 single handler can process events for all buttons on the page. The
 jQuery Listen plugin may help:

 http://plugins.jquery.com/project/Listen

 I haven't used it myself but it looks like what you need.

I'll give it a look when I'll have a couple hours of spare time.
Thanks for your time and support anyway.


[jQuery] Ajax and events

2008-04-30 Thread Peps

Hi,

I have finished developping a website with jQuery. First of all,
thanks to everybody who worked on this great Javascript library. It's
truly an incredible timesaver.

My question concerns binding and unbinding events when there are Ajax
calls in which content is injected into the DOM. At first I noticed
that the newly injected elements where not affected by the original
event bindings. I realized I had to rebind everything on each Ajax
calls. However that was not the end of my problems. I noticed that
when you rebind everything, all the elements which were not injected
in the DOM through the Ajax calls were actually binded double!

My final strategy has been to unbind everything on each ajax calls and
THEN rebind every event (a 12kb JS file) within the file which was
called through the ajax request. This works on all browser and the
speed is good. I know however that this is probably not the best way
to go...

Does anyone have any advice which they could give me?

Thank you.


[jQuery] Re: tablesorter bug?

2008-04-30 Thread A13thGuest

This worked like a charm! Thank you!
$('#myTable').trigger(update); // rebuilds the tablesorter data
cache



Carl Von Stetten wrote:
 After making changes to the table, use this instead:

 $('#myTable').trigger(update); // rebuilds the tablesorter data cache

 If you have added rows and need to resort, try either this:

 $(#myTable).trigger(sorton,[sorting]); // where [sorting] is the JS
 array of the sorting column info (see docs)

 or:
 var sorting = $(#myTable)[0].config.sortList;  // grabs the current
 tablesorter sorting configuration
 $(#myTable).trigger(sorton,[sorting]);  // resorts using the current
 tablesorter configuration

 HTH,
 Carl

 A13thGuest wrote:
  The tablesorter is acting goofy and I'm wondering if anyone has any
  insight to the problem or a way to fix it.
 
  I'm adding rows to a table then calling tablesorter:
 
  $('#myTable').tablesorter();
 
  Works fine.
 
  If I clear rows from the table then add more rows, I call tablesorter
  again:
  $('#myTable').tablesorter();
 
  When I try to sort, records that were previously removed pop into my
  table again.
 
  There doesn't seem to be a way to clear the tablesorter before
  reloading it with the new table results. For example:
  $('#myTable').tablesorter('destroy');
  $('#myTable').tablesorter();
 
  Any suggestions?
  Thanks in advance.
 
 
 


[jQuery] Re: Ajax and events

2008-04-30 Thread Carl Von Stetten

Peps,

Look into the LiveQuery plugin.  It monitors the DOM, and automatically 
binds events to new elements created from ajax requests.  There are 
other methods to do this is well.  Check out this jQuery FAQ:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F

HTH,
Carl

Peps wrote:
 Hi,

 I have finished developping a website with jQuery. First of all,
 thanks to everybody who worked on this great Javascript library. It's
 truly an incredible timesaver.

 My question concerns binding and unbinding events when there are Ajax
 calls in which content is injected into the DOM. At first I noticed
 that the newly injected elements where not affected by the original
 event bindings. I realized I had to rebind everything on each Ajax
 calls. However that was not the end of my problems. I noticed that
 when you rebind everything, all the elements which were not injected
 in the DOM through the Ajax calls were actually binded double!

 My final strategy has been to unbind everything on each ajax calls and
 THEN rebind every event (a 12kb JS file) within the file which was
 called through the ajax request. This works on all browser and the
 speed is good. I know however that this is probably not the best way
 to go...

 Does anyone have any advice which they could give me?

 Thank you.


   


[jQuery] count lis within a ul.

2008-04-30 Thread nihilism machine
right now i am using this: it seems to return the total width of the  
li's or something.  why isnt there some kind of  
countFirstGenerationChldren prototype? :P

code:

var itemLength = $(div.belt  ul  li).length;




[jQuery] jQuery and JSON - newbie!

2008-04-30 Thread eid

Hi, I'll start off with throwing a warning out there: I'm a newbie :)

Okay, so my problem is this:
I have a div with id=”tooltip”, several divs with unique ids and
lastly a js file with JSON content.
(Part of) my JSON looks like this

({
class: Priest Of Mitra,
items: [
{
name: Lance Of Mitra,
tree: divinity,
tier: 0,
column: 3,
maxRank: 5,
description: {
base: New Spell: Sends out a lance that hits 
all targets in a
column.
},
id: lanceOfMitraDivinity,
}
  ]
})

and what I'm trying to achieve is that when you mouseover the div with
id=lanceOfMitraDivinity the tooltip changes like $
('#tooltip').text(”description” from JSON).
The thing is, first of all I have several spells like the one above in
my JSON, so what I need is for my script to compare the JSON ”id”
field with whatever is moused over, and when they match, change the
content of #tooltip.

The thing I need some help with is the comparison part. As I said I'm
a newbie and still learning to use this JSON thing.

If you need any more information please just tell me.

Thanks
eid


[jQuery] Re: Ext went GPL

2008-04-30 Thread christocracy

 Just a heads up to everyone who has done some work with Ext. Since Ext
 2.1 the new license is GPL3 (not LGPL). Since GPL is viral all  code
 that bundles Ext will become GPL3 too.  Something you might not want
 to happen.

Fear not:
http://extjs.com/products/ux-exception.php

Chris Scott
Ext on Rails:
www.extonrails.com


[jQuery] Re: Plugin Requests

2008-04-30 Thread sameerT


Hi everyone,

I'd like to request a plugin based on some very cool software found at 
http://brainmaps.org/index.php?p=brain-maps-api
http://brainmaps.org/index.php?p=brain-maps-api .

It's a high resolution image viewer with a UI like google maps. To prepare
the tiled images one must use   http://www.zoomify.com/express.htm Zoomify
EZ  (free for mac and win). Upload them to a server and specify the path to
ajax-slideviewer.js and it does the rest.

Unfortunately, I am bereft of talent, hence this request. The present code
doesn't seem to work with a doctype and could benefit from a jquery rewrite.
It would also open up this great software to a much wider audience as well
as making it more usable. It's free to use and modify for non-commercial
purposes.

I've been using the brainmaps api to view some of the incredible brain
imagery on the site as well as my own high res scans.

Any takers?

regards,

Sameer

-- 
View this message in context: 
http://www.nabble.com/Plugin-Requests-tp9612466s27240p16992751.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] brainmaps api jquery plugin

2008-04-30 Thread sameerT


Hi everyone, 

I'd like to request a plugin based on some very cool software found at 
http://brainmaps.org/index.php?p=brain-maps-api
http://brainmaps.org/index.php?p=brain-maps-api . 

It's a high resolution image viewer with a UI like google maps. To prepare
the tiled images one must use  http://www.zoomify.com/express.htm Zoomify EZ 
(free for mac and win). Upload them to a server and specify the path to
ajax-slideviewer.js and it does the rest. 

Unfortunately, I am bereft of talent, hence this request. The present code
doesn't seem to work with a doctype and could benefit from a jquery rewrite.
It would also open up this great software to a much wider audience as well
as making it more usable. It's free to use and modify for non-commercial
purposes. 

I've been using the brainmaps api to view some of the incredible brain
imagery on the site as well as my own high res scans. 

Any takers? 

regards, 

Sameer
-- 
View this message in context: 
http://www.nabble.com/brainmaps-api-jquery-plugin-tp16992750s27240p16992750.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Superfish problem question

2008-04-30 Thread Chris Griffin

I have a CSS menu I've been using that works fine on it's own. I added
duplicates of li:hover to li.sfHover. The menus show up fine when I
hover over them. However on mouseout them dropdown menu moves the the
left edge of the page and then disappears. Now for the question. Is it
possible to have the menu go away when the link is clicked?

Thanks!



[jQuery] Re: Ajax and events

2008-04-30 Thread Peps

Thank you for your answer. I have actually looked into the FAQ. The
Question i'm asking myself is: is it a valable option to proceed as I
am doing (unbind everything on click, once ajax file is loaded rebind
everything)? On all my test, I get no problem (only a slight lag in
IE6 or FF1.5) but that's it...

On Apr 30, 5:53 pm, Carl Von Stetten [EMAIL PROTECTED] wrote:
 Peps,

 Look into the LiveQuery plugin.  It monitors the DOM, and automatically
 binds events to new elements created from ajax requests.  There are
 other methods to do this is well.  Check out this jQuery FAQ:

 http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st...

 HTH,
 Carl

 Peps wrote:
  Hi,

  I have finished developping a website with jQuery. First of all,
  thanks to everybody who worked on this great Javascript library. It's
  truly an incredible timesaver.

  My question concerns binding and unbinding events when there are Ajax
  calls in which content is injected into the DOM. At first I noticed
  that the newly injected elements where not affected by the original
  event bindings. I realized I had to rebind everything on each Ajax
  calls. However that was not the end of my problems. I noticed that
  when you rebind everything, all the elements which were not injected
  in the DOM through the Ajax calls were actually binded double!

  My final strategy has been to unbind everything on each ajax calls and
  THEN rebind every event (a 12kb JS file) within the file which was
  called through the ajax request. This works on all browser and the
  speed is good. I know however that this is probably not the best way
  to go...

  Does anyone have any advice which they could give me?

  Thank you.


[jQuery] Re: Ajax and events

2008-04-30 Thread Josh Nathanson


You can do that if you like, but I would second using the LiveQuery plugin. 
This is exactly what it was designed for, and it will reduce the amount of 
coding you have to do.  Many people on this list including myself use it 
with excellent results.


-- Josh


- Original Message - 
From: Peps [EMAIL PROTECTED]

To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, April 30, 2008 4:31 PM
Subject: [jQuery] Re: Ajax and events




Thank you for your answer. I have actually looked into the FAQ. The
Question i'm asking myself is: is it a valable option to proceed as I
am doing (unbind everything on click, once ajax file is loaded rebind
everything)? On all my test, I get no problem (only a slight lag in
IE6 or FF1.5) but that's it...

On Apr 30, 5:53 pm, Carl Von Stetten [EMAIL PROTECTED] wrote:

Peps,

Look into the LiveQuery plugin.  It monitors the DOM, and automatically
binds events to new elements created from ajax requests.  There are
other methods to do this is well.  Check out this jQuery FAQ:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st...

HTH,
Carl

Peps wrote:
 Hi,

 I have finished developping a website with jQuery. First of all,
 thanks to everybody who worked on this great Javascript library. It's
 truly an incredible timesaver.

 My question concerns binding and unbinding events when there are Ajax
 calls in which content is injected into the DOM. At first I noticed
 that the newly injected elements where not affected by the original
 event bindings. I realized I had to rebind everything on each Ajax
 calls. However that was not the end of my problems. I noticed that
 when you rebind everything, all the elements which were not injected
 in the DOM through the Ajax calls were actually binded double!

 My final strategy has been to unbind everything on each ajax calls and
 THEN rebind every event (a 12kb JS file) within the file which was
 called through the ajax request. This works on all browser and the
 speed is good. I know however that this is probably not the best way
 to go...

 Does anyone have any advice which they could give me?

 Thank you. 




[jQuery] Re: count lis within a ul.

2008-04-30 Thread Dave Methvin

 right now i am using this: it seems to return the total width of the
 li's or something.  why isnt there some kind of
 countFirstGenerationChldren prototype? :P
 var itemLength = $(div.belt  ul  li).length;

Looks like it should work; can you show your markup?


[jQuery] Re: jQuery Templates

2008-04-30 Thread boermans

Thanks Stan! jQuery template is helping make my code much easier to
read.

I have a question regarding it’s use. Have a look at this somewhat
contrived code:

var master = 'div${include}/div';
var parts = {
says :  'Hello world!',
include : 'p${variable}/p'
}
$('#world').append($.template(master), parts);

As expected this does not work as the template parsing is not applied
to the 'parts'.

Is it possible to parse these variables without appending them to a
DOM element first?

Cheers
Ollie


[jQuery] JSON array size different in IE than in FF

2008-04-30 Thread jquertil

I'm at the end of my rope and REALLY hope someone knows how to address
this:

got some JSON like so:

var Data= {
   Music :
   [
  {Band:The Beatles,Title:Hey Jude},
  {Band:The Beatles,Title:Help!},
   ]
}

And I'm simply looping over it like so:

$(Data.Music).each(function(i){
   alert( Data.Music.length);
});


in FF all is well, but in IE I get 2 alerts and a fatal error (null
or not an object) because the length is 3, not 2!

I wish I had any clue what's going on. How can I fix this?

Thanks!!!



[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Karl Swedberg



$('ul#list_container a:contains(' + hidden_div' + )')


Hey Hamish,

Looks like you switched a quote and a plus around. Should be:

$('ul#list_container a:contains(' + hidden_div + ')')

Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Apr 30, 2008, at 3:38 PM, Hamish Campbell wrote:



First of all, in this:

$('ul#list_container a:contains(hidden_div)')

The word 'hidden_div' is just a string literal - ie it's just looking
for the word hidden_div. If you want to look for the text you've
assigned to the _variable_ hidden_div you just need to go:

$('ul#list_container a:contains(' + hidden_div' + )')

That may or may not be the best way of doing it, but I think it is
what you intended to write.


On May 1, 6:00 am, Wes Duff [EMAIL PROTECTED] wrote:

Does anyone know a work around or how to add a value to :contains.
Here is my code I am working with

$('.printer_element  h2').each(function (i) {
if($(this).nextAll().size()  0) {
//do nothing
} else {
//Here we hide the whole div from the  
browser. We use display none

so the divs below the hidden div can move up into the next higher
position
$(this).parent().css({ display:none});
//next we need to hid the checkbox and link  
in the page layout for

the hidden printer_element
//first we asign the name of the hidden  
printer_element to a

variable
var hidden_div = $(this).text();
//Now we select the link of the  
corresponding text and remove it
$('ul#list_container  
a:contains(hidden_div)').remove();

}
 });

I would like to use hidden_div variable inside of they :contains()
when searching through my links
I would like to do this dynamicaly but it looks like I might have to
write redundant code to check all of my links.

Thanks for the help.




[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread Karl Rudd

Probably should use $.each( object/array, function ) rather than $(
domObjects ).each( function ).

http://docs.jquery.com/Utilities/jQuery.each#objectcallback

So:

$.each( Data.Music, function(i) {
  // this == each object in the Data.Music array
});

Karl Rudd

On Thu, May 1, 2008 at 10:56 AM, jquertil [EMAIL PROTECTED] wrote:

  I'm at the end of my rope and REALLY hope someone knows how to address
  this:

  got some JSON like so:

  var Data= {
Music :
[
   {Band:The Beatles,Title:Hey Jude},
   {Band:The Beatles,Title:Help!},
]
  }

  And I'm simply looping over it like so:

  $(Data.Music).each(function(i){
alert( Data.Music.length);
  });


  in FF all is well, but in IE I get 2 alerts and a fatal error (null
  or not an object) because the length is 3, not 2!

  I wish I had any clue what's going on. How can I fix this?

  Thanks!!!




[jQuery] $.each() versus for() -- array size inconsistency between IE and FF

2008-04-30 Thread jquertil

I just posted something around problems with IE counting an object
variable size differently than FF does.

I dont know how to fix it without changing the $.each() statement with
a for() loop.

for(i=0; iJ.length-1; i++){
alert (J.length);
}

this works.

But this code below makes IE think J.length is larger by 1, compared
to FF. Because of that, IE throws a fatal error in its last loop,
since J is no longer defined.

$(J).each(function(i){
alert (J.length);
});

Am I wrong to assume that his each() function from jquery should
behave exactly the same way across browsers?

I'm sure there is something I'm missing, I just don't know what.


[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread jquertil

I just posted something around problems with IE counting an object
variable size differently than FF does.

I dont know how to fix it without changing the $.each() statement with
a for() loop.

for(i=0; iJ.length-1; i++){
alert (J.length);
}

this works.

But this code below makes IE think J.length is larger by 1, compared
to FF. Because of that, IE throws a fatal error in its last loop,
since J is no longer defined.

$(J).each(function(i){
alert (J.length);
});

Am I wrong to assume that his each() function from jquery should
behave exactly the same way across browsers?

I'm sure there is something I'm missing, I just don't know what.

PS: sorry for all the double-posting, but something weird happening on
googlegroups, telling me the posts are all empty.


[jQuery] Re: jQuery and JSON - newbie!

2008-04-30 Thread jquertil

assuming your hover links also have a class name like tip, and your
JSON is set like a proper variable named, say, allTolltips, it
probably will look something like this:

$('.tip').hover(
   function(){
  if( allTooltips.items.id) == $(this).attr('id') )
{showToolTip();}
   },
   function(){
  hideTooltip();
});


[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread jquertil

Karl, thanks -- that's nice but its got the same problem: the length
of the object is 1 item larger in IE than it is supposed to be.

I wonder why jquery adds an extra empty item into the object?!


[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread Karl Rudd

You've got a stray comma (,) at the end of the last object in the array:

{Band:The Beatles,Title:Help!}, --

Firefox ignores it, IE creates a blank object.

Karl Rudd

On Thu, May 1, 2008 at 11:35 AM, jquertil [EMAIL PROTECTED] wrote:

  Karl, thanks -- that's nice but its got the same problem: the length
  of the object is 1 item larger in IE than it is supposed to be.

  I wonder why jquery adds an extra empty item into the object?!



[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread jquertil

OMG !!


Karl, U R the Gr8est!


I should have gone home... but how can you leave work with a silly bug
in your script, right?

The stray comma was of course the culprit.

A, I can go home now..

Dude, if you are in S.F. Bay Area send me a message I will totally buy
you a beer!

Seriously!


[heaves big sigh of relief]

On Apr 30, 6:40 pm, Karl Rudd [EMAIL PROTECTED] wrote:
 You've got a stray comma (,) at the end of the last object in the array:

 {Band:The Beatles,Title:Help!}, --

 Firefox ignores it, IE creates a blank object.

 Karl Rudd

 On Thu, May 1, 2008 at 11:35 AM, jquertil [EMAIL PROTECTED] wrote:

   Karl, thanks -- that's nice but its got the same problem: the length
   of the object is 1 item larger in IE than it is supposed to be.

   I wonder why jquery adds an extra empty item into the object?!


[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Wes Duff

Yea saw that thanks guys. I found the answer right after I sent this
out. Should have looked first. Thanks for the response though.

On Apr 30, 8:21 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
  $('ul#list_container a:contains(' + hidden_div' + )')

 Hey Hamish,

 Looks like you switched a quote and a plus around. Should be:

 $('ul#list_container a:contains(' + hidden_div + ')')

 Cheers,
 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Apr 30, 2008, at 3:38 PM, Hamish Campbell wrote:



  First of all, in this:

  $('ul#list_container a:contains(hidden_div)')

  The word 'hidden_div' is just a string literal - ie it's just looking
  for the word hidden_div. If you want to look for the text you've
  assigned to the _variable_ hidden_div you just need to go:

  $('ul#list_container a:contains(' + hidden_div' + )')

  That may or may not be the best way of doing it, but I think it is
  what you intended to write.

  On May 1, 6:00 am, Wes Duff [EMAIL PROTECTED] wrote:
  Does anyone know a work around or how to add a value to :contains.
  Here is my code I am working with

  $('.printer_element  h2').each(function (i) {
  if($(this).nextAll().size()  0) {
  //do nothing
  } else {
  //Here we hide the whole div from the
  browser. We use display none
  so the divs below the hidden div can move up into the next higher
  position
  $(this).parent().css({ display:none});
  //next we need to hid the checkbox and link
  in the page layout for
  the hidden printer_element
  //first we asign the name of the hidden
  printer_element to a
  variable
  var hidden_div = $(this).text();
  //Now we select the link of the
  corresponding text and remove it
  $('ul#list_container
  a:contains(hidden_div)').remove();
  }
   });

  I would like to use hidden_div variable inside of they :contains()
  when searching through my links
  I would like to do this dynamicaly but it looks like I might have to
  write redundant code to check all of my links.

  Thanks for the help.


[jQuery] treeview - async - problems reinitializing tree

2008-04-30 Thread rolf m
Our developer ran into a problem when trying to set up a refresh button on
an async treeview implementation. Our tree contents will be changing all the
time. Basically, we need to know how to blow away the contents of the UL and
then re-insert them.
For the refresh button click, currently we're using $('#myTreeID').empty();
then to re-initialize:
$('#myTreeId').treeview({ url: CalcBldrOpenExisting.ashx }); --
after the initial load, the markup looks something like this: ul
class=treeList treeview id=openExistingTree li class=hasChildren
expandable id=3 div class=hitarea hasChildren-hitarea
expandable-hitarea/div span/span ul/ul /li li
class=hasChildren expandable id=4 div class=hitarea
hasChildren-hitarea expandable-hitarea/div span/span ul/ul /li
li class=hasChildren expandable lastExpandable id=5 div
class=hitarea hasChildren-hitarea expandable-hitarea
lastExpandable-hitarea/div span/span ul/ul /li /ul
but after clearing and re-intializing, we get extra divs in the markup, like
so:

ul class=treeList treeview id=openExistingTree li class=expandable
id=3 div class=hitarea hasChildren-hitarea expandable-hitarea/div
div class=hitarea hasChildren-hitarea expandable-hitarea/div
span/span ul/ul /li li class=expandable id=4 div
class=hitarea hasChildren-hitarea expandable-hitarea/div div
class=hitarea hasChildren-hitarea expandable-hitarea/div span/span
ul/ul /li li class=hasChildren expandable lastExpandable id=5
div class=hitarea hasChildren-hitarea expandable-hitarea
lastExpandable-hitarea/div div class=hitarea hasChildren-hitarea
expandable-hitarea/div span/span ul/ul /li /ul

Also, I notice that the LI's are not getting 'hasChildren' class
-
Notes from the developer:
The initial json returned is: [{'text': 'Private Drafts','id': 3,
'hasChildren': true},{'text': 'Shared Drafts','id': 4, 'hasChildren':
true},{'text': 'Published Calculations','id': 5, 'hasChildren': true}]
Then, when the user clicks on 'Private Drafts', I return the following: [{
'text': 'a class=\openExisting\ title=\Matthews test calc\
href=\javascript:void(0);\ elemName=\Matthews test calc\
onclick=\Apd.CalcBuilder.openCalc(this, 1);\Matthews test calc/a
br/span class=\resolution\Hour, Location, Participant/span'}] After
clearing the tree list, I reinitialize and the returned json is IDENTICAL to
that shown above, but the treeview jquery code does not interpret it the
same way.



Any clues as to what's happening?

Thanks!


[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread Karl Rudd

*chuckle* Quite alright. I think most programmers have suffered from
TCB (Temporary Comma Blindness), or TSB (Temporary Semi-colon
Blindness) at one time or another. The best cure is usually sleep or
another set of eyes. :)

Karl Rudd

On Thu, May 1, 2008 at 11:46 AM, jquertil [EMAIL PROTECTED] wrote:

  OMG !!


  Karl, U R the Gr8est!


  I should have gone home... but how can you leave work with a silly bug
  in your script, right?

  The stray comma was of course the culprit.

  A, I can go home now..

  Dude, if you are in S.F. Bay Area send me a message I will totally buy
  you a beer!

  Seriously!


  [heaves big sigh of relief]


  On Apr 30, 6:40 pm, Karl Rudd [EMAIL PROTECTED] wrote:
   You've got a stray comma (,) at the end of the last object in the array:
  
   {Band:The Beatles,Title:Help!}, --
  
   Firefox ignores it, IE creates a blank object.
  
   Karl Rudd
  


  On Thu, May 1, 2008 at 11:35 AM, jquertil [EMAIL PROTECTED] wrote:
  
 Karl, thanks -- that's nice but its got the same problem: the length
 of the object is 1 item larger in IE than it is supposed to be.
  
 I wonder why jquery adds an extra empty item into the object?!



[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Hamish Campbell

What? jQuery can't handle gross js syntax errors? Piffle  rot!

:-p

On May 1, 1:21 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
  $('ul#list_container a:contains(' + hidden_div' + )')

 Hey Hamish,

 Looks like you switched a quote and a plus around. Should be:

 $('ul#list_container a:contains(' + hidden_div + ')')

 Cheers,
 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Apr 30, 2008, at 3:38 PM, Hamish Campbell wrote:





  First of all, in this:

  $('ul#list_container a:contains(hidden_div)')

  The word 'hidden_div' is just a string literal - ie it's just looking
  for the word hidden_div. If you want to look for the text you've
  assigned to the _variable_ hidden_div you just need to go:

  $('ul#list_container a:contains(' + hidden_div' + )')

  That may or may not be the best way of doing it, but I think it is
  what you intended to write.

  On May 1, 6:00 am, Wes Duff [EMAIL PROTECTED] wrote:
  Does anyone know a work around or how to add a value to :contains.
  Here is my code I am working with

  $('.printer_element  h2').each(function (i) {
                  if($(this).nextAll().size()  0) {
                          //do nothing
                  } else {
                          //Here we hide the whole div from the  
  browser. We use display none
  so the divs below the hidden div can move up into the next higher
  position
                          $(this).parent().css({ display:none});
                          //next we need to hid the checkbox and link  
  in the page layout for
  the hidden printer_element
                          //first we asign the name of the hidden  
  printer_element to a
  variable
                          var hidden_div = $(this).text();
                          //Now we select the link of the  
  corresponding text and remove it
                          $('ul#list_container  
  a:contains(hidden_div)').remove();
                  }
           });

  I would like to use hidden_div variable inside of they :contains()
  when searching through my links
  I would like to do this dynamicaly but it looks like I might have to
  write redundant code to check all of my links.

  Thanks for the help.- Hide quoted text -

 - Show quoted text -


[jQuery] Re: JSON array size different in IE than in FF

2008-04-30 Thread jquertil

dont forget TBB, temporary bracket-blindness :)


[jQuery] [NEWS] jQuery ColdFusion preso at CFUnited

2008-04-30 Thread Rey Bango


John Farrar will do a jQuery  ColdFusion preso at CFUnited:

http://cfunited.com/blog/index.cfm/2008/4/30/CFUnited-Interview--jQueryCF-Integration--John-Farrar

Rey


[jQuery] Re: $.each() versus for() -- array size inconsistency between IE and FF

2008-04-30 Thread Dave Methvin

 But this code below makes IE think J.length is larger by 1, compared
 to FF. Because of that, IE throws a fatal error in its last loop,
 since J is no longer defined.

Most likely, there is a trailing comma in the array definition, like
this:

var x = [1,2,3,]

IE treats that as a 4-element array with an undefined element at the
end. Firefox takes the C route and ignores the trailing comma.



[jQuery] Re: $.each() versus for() -- array size inconsistency between IE and FF

2008-04-30 Thread Karl Rudd

That was the problem Dave. He asked it in another thread and it was sorted out.

Karl Rudd

On Thu, May 1, 2008 at 12:22 PM, Dave Methvin [EMAIL PROTECTED] wrote:

   But this code below makes IE think J.length is larger by 1, compared
   to FF. Because of that, IE throws a fatal error in its last loop,
   since J is no longer defined.

  Most likely, there is a trailing comma in the array definition, like
  this:

  var x = [1,2,3,]

  IE treats that as a 4-element array with an undefined element at the
  end. Firefox takes the C route and ignores the trailing comma.




[jQuery] Autocomplete: display errors

2008-04-30 Thread dineshv

My autocomplete is getting data from a server (using a localhost).
I've checked and the data is getting to the browser.  But, the items
do not display and I'm continually getting the following set of
errors:

localhost - - [30/Apr/2008 19:29:04] GET / HTTP/1.1 200 -
localhost - - [30/Apr/2008 19:29:04] GET /static/css/ac.css HTTP/1.1
200 -
localhost - - [30/Apr/2008 19:29:10] GET /ac?
q=chaselimit=25timestamp=1209608950312 HTTP/1.1 200 -
localhost - - [30/Apr/2008 19:29:15] GET /static/js/jquery-
autocomplete/lib/jquery.js?_=1209608955375 HTTP/1.1 200 -
localhost - - [30/Apr/2008 19:29:15] GET /static/js/jquery-
autocomplete/lib/jquery.dimensions.js?_=1209608955390 HTTP/1.1 200 -
localhost - - [30/Apr/2008 19:29:15] GET /static/js/jquery-
autocomplete/lib/jquery.bgiframe.min.js?_=1209608955390 HTTP/1.1 200
-
localhost - - [30/Apr/2008 19:29:17] GET /static/js/jquery-
autocomplete/lib/jquery.ajaxQueue.js?_=1209608955406 HTTP/1.1 200 -
localhost - - [30/Apr/2008 19:29:18] GET /static/js/jquery-
autocomplete/jquery.autocomplete.js?_=1209608955421 HTTP/1.1 200 -
localhost - - [30/Apr/2008 19:29:18] GET /static/js/movie.js?
_=1209608955437 HTTP/1.1 200 -

Any ideas?

Dinesh



[jQuery] Re: count lis within a ul.

2008-04-30 Thread Wes Duff

I dont know if this is right or not but every time you use a function
you should end it with () and (param1, param2, paremEnd) if you have
parameters. So shouldnt it be

$(div.belt  ul  li).length();



On Apr 30, 7:04 pm, Dave Methvin [EMAIL PROTECTED] wrote:
  right now i am using this: it seems to return the total width of the
  li's or something.  why isnt there some kind of
  countFirstGenerationChldren prototype? :P
  var itemLength = $(div.belt  ul  li).length;

 Looks like it should work; can you show your markup?


[jQuery] Re: slideUp slideDown and mouseover mouseout (solved)

2008-04-30 Thread Waters

Thanks Ted - done.

On May 1, 3:40 am, Theodore Ni [EMAIL PROTECTED] wrote:
 I would recommend changing the script type from text/jscript to
 text/javascript, since the former does not, at the very least, work on
 Firefox 3b5.





 On Wed, Apr 30, 2008 at 3:59 PM, Waters [EMAIL PROTECTED] wrote:

  Sorry about that ignore my previous post - - a quick search of the
  archive revealed the answer..

  .hover is the way to do this.

  $(document).ready(function(){
     $(#div1).hover(function () {
       $(#div3).slideDown(500);
      }, function() {
         $(#div3).slideUp(300);
     });
   });

 --
 Ted- Hide quoted text -

 - Show quoted text -


[jQuery] Re: New Twitter Account for jQuery jQuery UI Projects

2008-04-30 Thread Joseph

Rey,

Great news indeed!

Twitter has fully replaced 99% of my RSS feeds, so this is truly a
good idea ; )

I am following you guys!

Cheers,

Joseph Hurtado
Web Developer
Toronto, Canada


On Apr 27, 3:05 pm, Rey Bango [EMAIL PROTECTED] wrote:
 In an effort to maximize the reach of announcements about upcoming
 jQuery  jQuery UI updates and releases, the team has created a new
 Twitter account:

 http://twitter.com/jquery

 and

 http://twitter.com/jqueryui

 I urge you to follow the accounts, along with the mailing list, for
 updates and news.

 Please note that we may not follow all accounts and will be using this
 primarily as a notification tool.

 Rey
 jQuery Project Team


  1   2   >