[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-03 Thread kennydee

Big problems because at some times, this is js code we don't own that
triggers this error (Ad server etc ...) and jquery seems to be the
trigerrer of that !
Don't know how to bypass that.


When our code is guilty, add a $(document).ready over make it works,
but when this is not our code ... ?



[jQuery] ifModified

2007-10-03 Thread SventB


Hello,

I have a question for this attribute in an ajax request.
I'ld like to test this attribute, but all Ajax responses I get every 2
seconds contains the content from file test.js - but I haven't changed this
file, so the response should be empty, shouldn't it??

That's my code:

function getAll() {
$.ajax({
  type: "POST",
  url: "test.js",
  ifModified: true,
  success: function(msg){
setTimeout('getAll()', 2000);
  }
});
}

By the way: this code only works with jquery 1.1.3.1, but not with 1.1.4 or
1.2.1. That's strange, isn't it?

-- 
View this message in context: 
http://www.nabble.com/ifModified-tf4561224s27240.html#a13017030
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: the jquery logo

2007-10-03 Thread Tane Piper

Also, check through the blog on http://jquery.com/blog - there is an
old thread from last year where people submitted their own jQuery
logo's for use of websites.  Although there was a winner, you are free
to choose whichever one you want to use.


On 04/10/2007, Joel Birch <[EMAIL PROTECTED]> wrote:
>
> Whoops, bad link. Here it is:
> http://users.tpg.com.au/j_birch/plugins/superfish/img/jQuery-alpha-trans.png
>


-- 
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX Pastebin - http://pastemonkey.org

This email is: [ ] blogable [ x ] ask first [ ] private


[jQuery] Re: My Superfish disappears for no reason

2007-10-03 Thread Giuliano Marcangelo
Joel,

Have just checked the menu .but now this behaviour is not
occuring...menu works 100% correctly




On 03/10/2007, Joel Birch <[EMAIL PROTECTED]> wrote:
>
>
> Giuliano: That's an interesting point of data to have, so thanks for that.
>
> Olivier: although I couldn't replicate the problem you described, I
> did notice that the code to initialise Superfish is wrong. You have
> this:
>
> $(document).ready(function(){
> $(".nav").superfish({animation : {
> opacity:"show",height:"show",delay:100,speed:"fast"}
> });
> });
>
> Whereas it should be this, (assuming I have interpreted your intention
> correctly):
>
> $(document).ready(function(){
> $(".nav").superfish({
> animation : {opacity:"show",height:"show"},
> delay:100,
> speed:"fast"
> });
> });
>
> And commented:
>
> $(document).ready(function(){
> $(".nav").superfish({
> animation : {opacity:"show",height:"show"}, /* equivalent
> to first
> parameter of .animate() */
> delay:100, /* this is the mouseout delay before submenu
> closes */
> speed:"fast" /* this is the animation speed - equivalent
> to the
> second parameter of .animate() */
> });
> });
>
> Joel Birch.
>


[jQuery] jCarousel: Anyway to get round the need for unordered lists?

2007-10-03 Thread fambizzari

Hi all,

Is there anyway to get round the need to include the carousel content
in an unordered list.

We'd like to use the carousel to offer customer testimonials, but you
can't include a blockquote in a list item.

Thanks



[jQuery] Re: the jquery logo

2007-10-03 Thread Joel Birch

Whoops, bad link. Here it is:
http://users.tpg.com.au/j_birch/plugins/superfish/img/jQuery-alpha-trans.png


[jQuery] Re: the jquery logo

2007-10-03 Thread Duncan Heal


ahh, no there's not!

Duncan
On 4/10/2007, at 4:43 PM, Joel Birch wrote:



There's also an alpha transparent png if you need one, here:
http://users.tpg.com.au/plugins/superfish/img/jQuery-alpha-trans.png





[jQuery] Re: They dress as jQuery users for Halloween

2007-10-03 Thread Joel Birch

Haha, thanks for the chuckle Mike :)

This should be compulsory uniform for all jQuery meets. Or not.

Joel


[jQuery] Re: the jquery logo

2007-10-03 Thread Joel Birch

There's also an alpha transparent png if you need one, here:
http://users.tpg.com.au/plugins/superfish/img/jQuery-alpha-trans.png


[jQuery] Re: the jquery logo

2007-10-03 Thread Joel Birch

I'm not sure about the permission to use that logo, but my complete
guess would be that it's okay to use it. Otherwise, feel free to use
the one I created, or not as you so choose:
http://users.tpg.com.au/j_birch/plugins/superfish/img/jQuery-logo.gif

Joel Birch.


[jQuery] Re: Presidential Websites

2007-10-03 Thread Glen Lipka
It was all tongue-in-cheek.  Didn't mean it as bad news.
Just a bit of humor.

Glen

On 10/3/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
>
> Actually, Barack Obama is still using jQuery. Their "My Barack Obama"
> member portal makes extensive use of it.
>
> http://my.barackobama.com
>
> Rey...
>
> Glen Lipka wrote:
> > I just did a quick review of all the presidential candidate websites.
> > Apparently NO ONE is interested in the jQuery vote.
> > tsk tsk.  Everyone knows that the site with jQuery usually wins the
> > election.
> >
> > Check this review a while back:
> > http://www.nabble.com/jQuery-for-President-t3207252s15494.html
> >
> > Apparently Obama used jQuery and then switched away?
> >
> > Glen
>


[jQuery] Re: Problem with binding mouseout to only parent div

2007-10-03 Thread Joel Birch

Hi Brandon,

Sorry for repeating a solution you have already looked at, but I want
to make sure you have seen the relevant part of the Superfish docs.
The only example that demonstrates the functionality of the current
submenu path (breadcrumb path?) being restored when the menu has
finished being hovered over is hidden away here:
http://users.tpg.com.au/j_birch/plugins/superfish/all-horizontal-example/

Please note that Superfish takes care of this, and more, for you and
you can customise the CSS to make it look almost any way you want. The
menu does not even have to be of the "all horizontal" kind to make use
of the path restoring function. If you are adding a "current" class to
each li on the way to the current page's menu item, simply pass that
class in via the options object, like so:

$('ul.nav').superfish({
pathclass : 'current',
/* other optional parameters here, such as... */
delay : 1000,
animation : {opacity : 'show'}
});

If you do go this route I suggest you starting with one of the
existing Superfish demo CSS files and altering from there to achieve
the look you want, because the CSS is an important part of how the
menu works and allows for graceful degradation without JS available.

Later on today I will be adding a link on the main Superfish page to a
fully commented version of the CSS file for the main example which I
hope will provide a further aid to people wanting to dive in deeper
and fully understand how the menu works.

Again, sorry if you have already seen this solution and decided
against it, in which case this post was useless to you.

Joel Birch.


[jQuery] Re: superfish entire page 'fades' on mouseover (firefox mac os x)

2007-10-03 Thread Joel Birch

Hi Greg,

It is 99.9% certain that it is what Karl said. Here is what has become
my set spiel on the subject:

Mac Firefox has two text rendering anti-aliasing modes, one of which
makes the text look much lighter or less bold in weight. The usual
mode is used when everything on the page has an opacity of 1, or fully
opaque. The moment anything drops to 0. opacity, as it does on
fadeOut (although this is not a jQuery issue - it's any form of
opacity) all the text on the page shifts to the lighter text rendering
mode. The reverse also occurs on fadeIn and also between .0001 and 0,
that is, just as something becomes completely transparent. It's
annoying and the only two workarounds are (1) to set opacity: .999 on
the body element which forces all the text on the page to use the
light rendering mode 100% of the time and never switch to the bolder
mode. This sometimes looks quite good when the design has dark text on
a light background. It wouldn't do for light text on dark though, as
the text just becomes far too thin and begins to lose readability. The
other (2) workaround is to avoid using opacity in the animation
completely and using a simple slideDown instead.

Joel Birch.


[jQuery] Re: ANNOUCE: jQuery lightBox plugin

2007-10-03 Thread Bruce MacKay


Hello,

I'm having difficulty getting this plugin to work - a test page is here:
http://www.thomasbaine.com/gallery.asp

I'm sure I've followed the example, but obviously 
I'm missing something.  When I click on a 
thumbnail, the "lightbox" is appended to the end 
of my page, never on top of it.


Any illumination of my error would be appreciated.

Cheers,
Bruce




>
> > > On Sep 23, 10:46 pm, Leandro Vieira Pinho <[EMAIL PROTECTED]>
> > > wrote:
>
> > > >jQuerylightBoxpluginis a powerful and simple way to show images in
> > > > the same page. It´s inspired and based in thelightbox2 from Lokesh
> > > > Dhakar (http://www.huddletogether.com/projects/lightbox2/)
>
> > > > But, it use the simplicity and flexibility ofjQueryto select the
> > > > elements we are. You don´t need to alter your HTML code, select the
> > > > elements how you want.
>
> > > > Page:http://leandrovieira.com/projects/jquery/lightbox/(in
> > > > portuguese yet, I´ll translate into English asap).
>
> > > > Bye, and all comments and suggestions will be apreciated.




[jQuery] [Site Submission]: nbc.com

2007-10-03 Thread Karl Swedberg
Looks like nbc.com is heavily into the jQuery love now, using 1.1.4.1  
on their site. Looks like they're using Interface and Mike Alsup's  
Media plugin, and Klaus Hartl's cookie plugin. Also, pulling in some  
data with $.ajax, doing some accordion stuff, etc.. They could be  
using the


This line appears in http://www.nbc.com/assets/js/global/nbc.com.js  
right after all of the jQuery code:


// Legacy crap ->

Pretty funny.

Here's another file you might want to poke around in:

http://www.nbc.com/assets/js/video/fun.js



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





[jQuery] Re: RED: [jQuery] Re: Packed version of BlockUI?

2007-10-03 Thread Jeffrey Kretz


The main things are the missing semicolons at the end of each command.

var x = 0;
do_something();
container.fn = function() { do_something(); };

You don't need semicolons at the end of conditional blocks:

if (condition) { do_something(); }
while(condition) { do_something(); }

Or at the end of try/catch:

try { do_something(); }
catch(e) { do_somethingelse(); }

What I've done is, pack the files with Dean.Edwards packer, and then test 
the script on a page with Firebug.  The console is extremely helpful for 
identifying the offending code and it will say exacly what is wrong (e.g. 
"missing ;") and show you exactly where the problem is in the code, even if 
your code is only 1 line long (no linefeeds).


JK
- Original Message - 
From: "Brook Davies" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, October 03, 2007 10:06 AM
Subject: [jQuery] RED: [jQuery] Re: Packed version of BlockUI?





On this topic, what are the rules to write JS that will pack without 
error?

I know you need a ";" at the end of every line, but what else?

BrookD



-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: October 3, 2007 8:15 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Packed version of BlockUI?


Andy,

Just take the code and drop it into Dean Edward's Packer or YUI 
compressor.


Rey

Andy Matthews wrote:

I'm in need of a simple page overlay, which I'll be using to display
help messages. I found BlockUI, but it's 15k. Is there a packed version
of it, or a simpler version that just allows for a page overlay?

*


Andy Matthews
*Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com 









[jQuery] Re: Presidential Websites

2007-10-03 Thread Rey Bango


Actually, Barack Obama is still using jQuery. Their "My Barack Obama" 
member portal makes extensive use of it.


http://my.barackobama.com

Rey...

Glen Lipka wrote:

I just did a quick review of all the presidential candidate websites.
Apparently NO ONE is interested in the jQuery vote.
tsk tsk.  Everyone knows that the site with jQuery usually wins the 
election.


Check this review a while back:
http://www.nabble.com/jQuery-for-President-t3207252s15494.html

Apparently Obama used jQuery and then switched away?

Glen


[jQuery] Re: Setting a number of DIVs to the same height... I'm just not quite there...

2007-10-03 Thread Tobias Parent


Yep, that did it!

Thanks, Glen.

Glen Lipka wrote:

http://michael.futreal.com/jquery/vjustify
or http://spindrop.us/2007/05/22/equal-height-columns-with-jquery/

Glen


[jQuery] Re: AjaxCFC

2007-10-03 Thread Jack Killpatrick

Hmm, maybe create a global var to hold a ref to the scope?

var currentObj;

and in getData:

   currentObj = this;
   ajax call

and in dataResult:

   currentObj.someProperty = data.yadda;
   currentObj = null;

?

In case you don't know, the ajaxCFC also has a success callback:

$.AjaxCFC({
   url: some.cfc,
   method: 'doIt',
   data: { yadda:'ya' },
   success: function(data){
   do some stuff;
   }
});

I'm assuming you're calling the dataResult() function via the success 
attribute, but just in case, FYI. It doesn't really change the approach 
to knowing scope thing, though, AFAIK. If you try putting "this" inside 
the anonymous function, it still won't know the calling object.


- Jack

Brook Davies wrote:


Hello Jack,

 

Well  I want to get the scope of the calling object that the function 
resides in. I have multiple instances of this object:


 


someObj = {

 


getData: function(){

   


//cfAjax request starts here

   


}

,

 


dataResult: function(data){

// handle result from cfAjax here

}

 


}

 


a = new someObj()

b = new someObj()

 


// call getData on 'a' instance

a.getData();

 

This is where I want the cfAjax callback to be within the scope of the 
'a' object or at least somehow get a reference to 'a'. How do I do that?


 


BrookD

 

 





[jQuery] Presidential Websites

2007-10-03 Thread Glen Lipka
I just did a quick review of all the presidential candidate websites.
Apparently NO ONE is interested in the jQuery vote.
tsk tsk.  Everyone knows that the site with jQuery usually wins the
election.

Check this review a while back:
http://www.nabble.com/jQuery-for-President-t3207252s15494.html

Apparently Obama used jQuery and then switched away?

Glen


[jQuery] Re: superfish entire page 'fades' on mouseover (firefox mac os x)

2007-10-03 Thread Karl Swedberg

Hi Greg,

This may have to do with the well-known opacity problem in FF Mac  
when setting opacity to some element -- which is what I'm guessing  
Superfish does, maybe with a .fadeIn().. I believe it was Joel Birch  
who earlier suggested setting opacity on the body to something like . 
. Maybe in your stylesheet:

body { -moz-opacity: 0.; }

or in jQuery, in your $(document).ready() :
$('body').css({opacity: .});

That should keep the text looking pretty much the same regardless of  
whether something else is fading or not. Am I on the right track  
here? Does that help?



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



On Oct 3, 2007, at 6:07 PM, Greg Warner wrote:

When using firefox on mac os x, as I mouse over and superfish drops  
down a menu (either down or a side menu), all the text on the page  
appears to fade for a split second, and then is back to normal.   
I've even tested it with animations off, etc (completely bare-bones).


This doesn't happen in safari or opera, nor with ff for windows.   
Nor does it happen with suckerfish with ff for mac.


Any ideas?  Or is anybody experiencing the same effect?




[jQuery] Re: ajaxCFC and CF8

2007-10-03 Thread Rey Bango


Brook,

CF8 provides quite a number of options in terms of prebuilt Ajax 
controls but I tend to refer to them as "intro" widgets. They don't 
provide the level of functionality available in jQuery or many other 
libs and do not adhere to any form of progressive enhancement. Also, few 
users want to use Spry for their development and CF8, out of the box, 
already includes an outdated and non-upgradeable version of YUI.


AjaxCFC most certainly remains relevant as it provides a very easy 
interface for making Ajax calls to your CF templates and leveraging 
native CF data types. In addition, since jQuery is included in AjaxCFC, 
you now have the capability to leverage the wealth of jQuery plugins 
available. And since it's open source, you can upgrade things as needed 
instead of having to wait until Adobe patches the libs.


Rob and I will be working on updating AjaxCFC to jQuery v1.2.1 soon and 
possibly creating wrappers around jQuery UI components.


Rey...

Brook Davies wrote:
Can Rob or Rey shed some light on this? Is ajaxCFC still relevant with 
the  release of CF8?


 


BrookD

 



[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-03 Thread Glen Lipka
We tried that.  But that seemed to undefine the 1.1 jQuery too, which was on
the page.
So none of the existing page jQuery stuff using $ worked anymore.

We had the line at the top of our script page.  How does it know which
jQuery to blow away and which to leave alone?

Glen

On 10/3/07, John Resig <[EMAIL PROTECTED]> wrote:
>
>
> Yep, you can do .noConflict(true) which completely blows away both $ and
> jQuery.
>
> So, in your case, you would do:
>
> var veryjQuery = jQuery.noConflict(true);
>
> --John
>
> On 10/4/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> > We are making a jQuery+stuff script that will go on lots of random pages
> > with unknown libraries.
> >  Some of those pages will have jQuery. (Various versions)
> >
> > If I am including our script last; what is the best way to make sure our
> > script doesn't interfere with any of the existing page, including old
> > versions of jQuery.
> >
> > Solution #1: We renamed jQuery in our script everywhere to be
> veryjQuery.
> >  Solution #2: ???
> >
> > Note: Solution #1 solved the problem, but feels invasive.  Is there a
> > noconflict() way to do this?
> >
> > Glen
> >
>


[jQuery] Re: jQuery Datagrid Plugin v.7

2007-10-03 Thread Web Specialist
Matt,

congratulations!!!

Very very very nice grid plugin. Your ajax for server side content and
pagination is really awesome.

Cheers
Marco Antonio

2007/10/3, reconstrukt <[EMAIL PROTECTED]>:
>
>
> Hey all,
>
> I just released Just finished the initial release of my datagrid
> plugin.  I named her Ingrid. :)
>
> Features in this release:
>
> - resizable columns
> - paging toolbar
> - sorting (server-side)
> - row & column styling
>
> The goal here is to give jQuery a robust, native datagrid that's up to
> snuff with those found in the EXT or YUI libraries.
>
> Check it out here: http://www.reconstrukt.com/ingrid/
>
> Thanks much
> Matt
>
>


[jQuery] Re: Using multiple versions of jQuery on the same page

2007-10-03 Thread John Resig

Yep, you can do .noConflict(true) which completely blows away both $ and jQuery.

So, in your case, you would do:

var veryjQuery = jQuery.noConflict(true);

--John

On 10/4/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> We are making a jQuery+stuff script that will go on lots of random pages
> with unknown libraries.
>  Some of those pages will have jQuery. (Various versions)
>
> If I am including our script last; what is the best way to make sure our
> script doesn't interfere with any of the existing page, including old
> versions of jQuery.
>
> Solution #1: We renamed jQuery in our script everywhere to be veryjQuery.
>  Solution #2: ???
>
> Note: Solution #1 solved the problem, but feels invasive.  Is there a
> noconflict() way to do this?
>
> Glen
>


[jQuery] Using multiple versions of jQuery on the same page

2007-10-03 Thread Glen Lipka
We are making a jQuery+stuff script that will go on lots of random pages
with unknown libraries.
Some of those pages will have jQuery. (Various versions)

If I am including our script last; what is the best way to make sure our
script doesn't interfere with any of the existing page, including old
versions of jQuery.

Solution #1: We renamed jQuery in our script everywhere to be veryjQuery.
Solution #2: ???

Note: Solution #1 solved the problem, but feels invasive.  Is there a
noconflict() way to do this?

Glen


[jQuery] Re: How to hide a div without a click function

2007-10-03 Thread Glen Lipka
There is a pause plugin.  Does that do the trick?
http://blog.mythin.net/projects/jquery.php

Glen

On 10/3/07, somnamblst <[EMAIL PROTECTED]> wrote:
>
>
> I currently have this
>
> $(document).ready(function() {
> initSlideboxes();
> function initSlideboxes()
> {
> $('#slidebar').show();
> $('#slidebar').html($('#hidebar').html());
> $('#slidebartrigger').click(function(){$('#slidebar').toggle();
> });
>
> };
> });
>
> I would like after a certain duration of several seconds to have the
> slidebar div hide. I know how to do this in scriptaculous but I have
> abandoned my scriptaculous solution for jquery.
>
>


[jQuery] Re: Setting a number of DIVs to the same height... I'm just not quite there...

2007-10-03 Thread Glen Lipka
http://michael.futreal.com/jquery/vjustify
or http://spindrop.us/2007/05/22/equal-height-columns-with-jquery/

Glen

On 10/3/07, Tobias Parent <[EMAIL PROTECTED]> wrote:
>
>
> Hey, all!
>
> I've got a site in process, and I'm trying to figure something out. I'm
> using the Cycle plugin, and I'd like to try to set a number of DIVs to
> the height of the largest. To see what I've got, click
> http://www.questmin.org/pages/courses <-- that link, and watch the
> course descriptions on the right. The bottom of the longest divs are
> showing through.
>
> Thanks!
> -Toby
>


[jQuery] Re: live query

2007-10-03 Thread Brandon Aaron
Try creating a small, trimmed down test case ... removing other elements
from the page. You should be able to find what is causing the problem then.
The only reason live query would be attaching the event to all a tags is if
your selector a[rel=sec] matches all your a tags. You might want to try
running some code in firebug to see what results you are actually getting
from that selector.

--
Brandon Aaron

On 10/3/07, bluejam <[EMAIL PROTECTED]> wrote:
>
>
> Hi
> im using the very latest version of jQuery
>
> I can't post example online as its on my dev server and the project is
> too hush hush to show just yet
>
> the code that adds the element works fine, its Live Query that is not
> working as it adds the event to all 'a' elements
> and I tried your code it made no difference.
>
> thank you anyway, might just have to go back to the old reliable page
> refreshing method
>
> On Oct 3, 2:05 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> > Which version of jQuery are you using? Could you post the code that adds
> the
> > element? Better yet could you post an example online?
> >
> > Also if you are just binding an event, you shouldn't use the function
> > syntax. Do it like this:
> >
> > $('a[rel=sec]').livequery('click', function() {
> > doSomething();
> >
> > });
> >
> > --
> > Brandon Aaron
> >
> > On 10/3/07, bluejam <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi
> >
> > > Im adding an element to Dom on fly, I then want to add an action to
> > > that element, i've tried live query but it is adding the action to ALL
> > > elements not just the one i referenced.:
> >
> > > This is being added to:
> >
> > > Clothing / Accessories » > > href="javascript:;">Tailoring
> >
> > > which works fine, now im referencing the rel="sec" and adding an
> > > action the the click event:
> >
> > > $(function() {
> > > $("[EMAIL PROTECTED]'sec']").livequery(function(){
> > > $(this).bind('click',function(){
> > > $("#top").ScrollTo(800);
> > > //showSector($('[EMAIL PROTECTED]',
> > > this).attr("id"));
> > > });
> > > });
> > > });
> >
> > > the commented out part is the function i eventually want to call, im
> > > just using the ScrollTo action for testing purposes
> >
> > > The problem i have is the live query is adding the click action to ALL
> > > a elements, anyone come across this before ? or know how to add a
> > > click action to an element that is created on the fly?
>
>


[jQuery] Re: IE6 - "Operation Aborted" - Any Ideas?

2007-10-03 Thread Guy Fraser

G[N]Urpreet Singh wrote:
> Once every few times the page is loaded in IE6, it just fails. It says 
> "Operation Aborted" and fails. Could anyone point me to why this is 
> happening. And this did not happen at all while the site was on my 
> local machine, it started when I put it up on a test server for client 
> review.

I've had that sometimes when I incorrectly tried modifying the DOM 
before it was ready...


[jQuery] events for when getJSON fails?

2007-10-03 Thread mastorna

I've got a  getJSON request from a different domain which will be
going down for a few hours while that domain upgrades its servers.
What happens to a getJSON request when the url you request will not
return any HTTP traffic?  Does it just hang?  Does it fail gracefully
or return a boolean value that I can capture?  Also, is it possible to
get HTTP headers off this method?



[jQuery] Strange unload behavior

2007-10-03 Thread Vaughn Pipes

Hello all, I've got a strange issue I've been fighting with ever since
we updated to 1.2.1 and was hoping someone might have run across it as
well.  When refreshing our page I sometimes get a js error from inside
mouse event functions, like they are being triggered during the
unload.  The errors change each time as they are from different
functions but always relate to the function trying to access some
object that no longer exists, in one case the $ object itself.  They
are all from mouseover and mouseout events, and I have commented out
any bindings to the unload event itself so I don't know how they're
getting fired.  I looked through the jQuery source and found only one
reference to jQuery registering to the unload event and that is for IE
cleanup while I'm using Firefox.  I've not been able to determine any
pattern other than it always happens when leaving the page prior to it
being reloaded and while the object the events are bound to change
from error to error it's always in a function bound to mouseover/out.

I realize this is pretty vague but like I said, I can;t find a
pattern.  Anybody have any ideas?  Or am I just missing something
happening under the hood, some cleanup that I'm inadvertently pissing
off.

VP



[jQuery] jQuery Datagrid Plugin v.7

2007-10-03 Thread reconstrukt

Hey all,

I just released Just finished the initial release of my datagrid
plugin.  I named her Ingrid. :)

Features in this release:

- resizable columns
- paging toolbar
- sorting (server-side)
- row & column styling

The goal here is to give jQuery a robust, native datagrid that's up to
snuff with those found in the EXT or YUI libraries.

Check it out here: http://www.reconstrukt.com/ingrid/

Thanks much
Matt



[jQuery] Re: Getting the text value of the selected item in select box

2007-10-03 Thread Dave

Thank you Karl.   This one had me perplexed also.

On Aug 29, 10:00 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> Try using .text() on the selected option. e.g.:
>
>   $('select option:selected').text()
>
> Karl Rudd
>
> On 8/30/07, Duncan <[EMAIL PROTECTED]> wrote:
>
> > I am struggling with getting the text label of the selected item in a
> > select box.
>
> > $('##Suburb').attr("value") will give me the id (e.g. 4) of the suburb
> > drop down, but how do I get the label which would be "London" for
> > example.
>
> > Thanks!
>
> > --
> > Duncan I Loxton
> > [EMAIL PROTECTED]



[jQuery] Re: Counting the number of child elements that a div has

2007-10-03 Thread Brandon

http://docs.jquery.com/Core/length

$("#divid > #childrenids").length

or maybe $("#divid").children().length to get all of them no matter
what type of children elements they are


On Oct 3, 4:57 pm, wattaka <[EMAIL PROTECTED]> wrote:
> How can I count the number of child elements that a div container has?
> Thanks



[jQuery] ajaxCFC and CF8

2007-10-03 Thread Brook Davies
Can Rob or Rey shed some light on this? Is ajaxCFC still relevant with the
release of CF8?

 

BrookD

 



[jQuery] Question about jScrollPane - full body scroll

2007-10-03 Thread simplybrianp

In looking at the code for the full body scroll. I can not seem to
understand one part of it. I am actually doing a couple of scroll
panes in a page, that resize based on the window size, and am using
the full body scroll as an example. I can not figure out what is going
on in the line with the *** in front of it. Does anyone know what this
is doing? Or how I would us it on a named div?

$(function()
{
// this initialises the demo scollpanes on the 
page.
$('#pane3').jScrollPane();
$('#pane1, #pane2').jScrollPane();

var isResizing;

// and the body scrollpane
var setContainerHeight = function()
{
// IE triggers the onResize event 
internally when you do the
stuff in this function
// so make sure we don't enter an 
infinite loop and crash the
browser
if (!isResizing) {
isResizing = true;
$w = $(window);
$c = $('#container');
var p = 
(parseInt($c.css('paddingLeft')) || 0) +
(parseInt($c.css('paddingRight')) || 0);

***$('body>.jScrollPaneContainer').css({'height': $w.height() +
'px', 'width': $w.width() + 'px'});
$c.css({'height': 
($w.height()-p) + 'px', 'width': ($w.width() -
p) + 'px', 'overflow':'auto'});
$c.jScrollPane();
isResizing = false;
}
}
$(window).bind('resize', setContainerHeight);
setContainerHeight();

// it seems like you need to call this twice to 
get consistantly
correct results cross browser...
setContainerHeight();

});



[jQuery] Re: AjaxCFC

2007-10-03 Thread Brook Davies
Hello Jack,

 

Well  I want to get the scope of the calling object that the function
resides in. I have multiple instances of this object:

 

someObj = {

 

getData: function(){



//cfAjax request starts here



}

,

 

dataResult: function(data){

// handle result from cfAjax here

}

 

}

 

a = new someObj()

b = new someObj()

 

// call getData on 'a' instance

a.getData();

 

This is where I want the cfAjax callback to be within the scope of the 'a'
object or at least somehow get a reference to 'a'. How do I do that?

 

BrookD

 

 



[jQuery] Re: Problem with binding mouseout to only parent div

2007-10-03 Thread Brandon

I tried replying to this earlier but it didn't post...

I've looked at the suckerfish menu, and I'm using something similar.
My problem isn't the drop down menu. I have 2 menus, the top tabs that
are a links, which dynamically open a submenu with text and drop down
menu children, etc etc. My theory was to bind a mouseout even to the
parent div that wraps around all of the menu stuff so that when you
exit the menu area, the top tab goes back to displaying the default
selection, as determined by what page you are on.

I've tried binding the mouseout evens to the top tabs, the sub menus,
and every parent div every which way imaginable. As of now I've given
up and the menu just stays on the last tab that was moused over.

If anyone has any other suggestions on how to get the parent div only
to respond to a mouseout event, please do tell. It's much appreciated!


On Oct 3, 7:27 am, motob <[EMAIL PROTECTED]> wrote:
> I would suggest using one of jQuery's menu plugins. There is a
> standard practice for marking up menus and sub menus using lists
> (). Look at this tutorial for suckerfish drop down menu 
> (http://www.alistapart.com/articles/dropdowns/). Once you have your menu
> properly marked up take a look at the superfish plugin (http://
> jquery.com/plugins/project/Superfish).
>
> On Oct 3, 2:08 am, Brandon <[EMAIL PROTECTED]> wrote:
>
> > I've got a menu that does the basic  links and shows a sub menu of
> > divs with nested 's and other text dynamically with css and
> > javascript. I'm migrating it over to jquery, and have it all working
> > perfectly except for one thing. I am trying to get the menu to jump
> > back to the tab that corresponds to the current page upon mouseout of
> > the menu's parent div.
>
> > My code is basically this:
>
> > 
> > 
> > 
> >  >  >  > 
> > 
> >  >  > corresponding menu div. All that works fine.
>
> > What I'm not getting though, and am completely stumped about, is
> > stopping the mouseout event from triggering on the child div's and a's
> > underneath the menu div. I've got it kind of working to stop all
> > children and self, and just do mouseout on the parent div, which would
> > be the menuholder div, but it doesn't fire all of the time, if at
> > all... it sometimes works if i mouse over the edge very slowly.
>
> > Here's my code... maybe someone can shed some light on either stopping
> > the child mouseover binding or triggering the mouseout on the parent
> > smoother.
>
> > (var currenttab is defined in the head by php)
> > var currenttab = '$tabtitle';
>
> > $(document).ready(function(){
> > expandmenu(currenttab);
>
> > $("#menu")
> > .parent().mouseout(function(e){expandmenu(currenttab);})
> > .children().andSelf().mouseout(function(e){return false;});
>
> > $("#toptabs > a").each(function() {
> > var rel = $(this).attr("rel");
> > $(this).mouseover(function(){ expandmenu(rel); });
> > });
>
> > });
>
> > function expandmenu(tabid){
> > $("#toptabs:visible",function(){
> > $("#toptabs > [EMAIL PROTECTED]'"+tabid
> > +"']").addClass("current").siblings("a.current").removeClass();
> > $("#"+tabid).show().siblings("div:visible").hide();
> > });
>
> > }



[jQuery] How to hide a div without a click function

2007-10-03 Thread somnamblst

I currently have this

$(document).ready(function() {
initSlideboxes();
function initSlideboxes()
{
$('#slidebar').show();
$('#slidebar').html($('#hidebar').html());
$('#slidebartrigger').click(function(){$('#slidebar').toggle(); });

};
});

I would like after a certain duration of several seconds to have the
slidebar div hide. I know how to do this in scriptaculous but I have
abandoned my scriptaculous solution for jquery.



[jQuery] Setting a number of DIVs to the same height... I'm just not quite there...

2007-10-03 Thread Tobias Parent

Hey, all!

 I've got a site in process, and I'm trying to figure something out. I'm 
using the Cycle plugin, and I'd like to try to set a number of DIVs to 
the height of the largest. To see what I've got, click 
http://www.questmin.org/pages/courses <-- that link, and watch the 
course descriptions on the right. The bottom of the longest divs are 
showing through.

 Thanks!
 -Toby


[jQuery] Re: uhhh.......WAT?

2007-10-03 Thread cmbtrx

Sorry for the delay in getting back to this (I love my work, it just
doesn't love me back).

...oh bo. I knew it would be a stupid typo. I was referencing
src="jquery.js" when, in fact, I should have been referencing
src="jquery-1.2.1.js". (I swear I looked at the error console a dozen
times!!)

http://www.ixwa.com/jquery_test.html

How's THAT for the Darwin award of the year? I've been doing this a
long time, but dumb mistakes seem to know no limits.

(sheepishly) Hehe, sorry all. jQuery is lovely.


Now I think I'll just go and play with my Legos.


On Oct 1, 5:23 am, Wizzud <[EMAIL PROTECTED]> wrote:
> Ummm... I don't want to sound pedantic but all I've done is confirm that the
> code you posted works fine when I modify the source of the jquery script
> file to suit my environment. I can't say whether or not something is
> interfering with it on your system because I don't know what else you have
> on your page.
>
> As Michael has already said, if you give us an example we can get at then it
> could be resolved immediately. If your client does not want 'his' page made
> (temporarily) public, then either chop out any sensitive stuff (and
> re-test!), make up a new one (and re-test!), or simply don't tell him (we
> won't snitch). Probably the first thing to do is take 30 seconds to do
> exactly what I did - lift the exact code you posted and paste it into a new
> page, close it off properly, and confirm that it works.
>
> Regarding jQuery playing nicely with others, every effort has been made to
> ensure that it will do just that. So if you have one of those 'others' on
> your page, and it turns out that that is what's causing the problem, then it
> would assist everybody greatly to know about the conflict and provide a
> means for avoiding/circumventing it. If it happens to be proprietary script
> that is causing interference then we may be able to help there too.
>
>
>
> cmbtrx wrote:
>
> > See previous reply; I am not Spock (and yes, I should have included
> > sample code--doh. sorry)
>
> > Thanks for testing this out...seems then that something is interfering
> > with jQuery functionality. So, um, that does not bode well for my
> > using jQuery...is it prone to not playing nice with others? Just
> > wondering out loud...
>
> > On Sep 28, 2:40 pm, Wizzud <[EMAIL PROTECTED]> wrote:
> >> @cmbtrx
> >> I have just lifted the code directly from your second post, tagged
> >>  after the anchor, and it worked first time (Firefox and
> >> IE7).
> >> I can only suggest that you check that the path to the jquery.js source
> >> file
> >> is correct for wherever you are running it, as that is the *only* thing
> >> that
> >> would prevent the alert from showing.
>
> >> (Actually, thinking about it, it's not the only thing that could prevent
> >> the
> >> link activating, because you state that there is more html below the
> >> link,
> >> and it is possible - though unlikely - for that to prevent the link
> >> activation, so I would suggest that for testing you remove any extraneous
> >> code from your page.)
>
> >> Bratty missives beget bratty missives. Frustration can be understood,
> >> accepted, and usually resolved - but responses are far more likely when
> >> the
> >> request is couched in polite terms, and with as much relevant information
> >> as
> >> possible.
>
> >> cmbtrx wrote:
>
> >> > Shucks, I knew it was too good to be true.
>
> >> > This ass/troll/clueless individual thanks you for making this group
> >> > forum now begin to sound like every other developer's resource on the
> >> > web: well-intentioned but ultimately crippled by the bratty missives
> >> > of a few self-important detractors.
>
> >> > Feel free to share your own insights next time--it might in fact be an
> >> > opportunity for you to learn something that perhaps you never knew you
> >> > needed to know.
>
> >> > On Sep 27, 8:28 pm, Robert Koberg <[EMAIL PROTECTED]> wrote:
> >> >> Hi,
>
> >> >> I am new to jquery. Haven't had any problems that couldn't be solved
> >> by
> >> >> the docs or a search. I am amazed that an ass/troll/clueless
> >> individual
> >> >> gets so much play.
>
> >> >> whatev,
> >> >> -Rob
>
> >> >> On Thu, 2007-09-27 at 21:54 +, cmbtrx wrote:
> >> >> > lol looks just like mine.
>
> >> >> > I sense that a stupid typo is fast approaching the direction of this
> >> >> > conversation...
>
> >> >> > Nice little site that--pastie.
>
> >> >> > On Sep 27, 5:45 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> >> >> > > On 9/27/07, cmbtrx <[EMAIL PROTECTED]> wrote:
>
> >> >> > > > OK, forgive my tone here...I'm actually quite flabbergasted.
>
> >> >> > > > I ***FINALLY*** get around to trying out jquery.
>
> >> >> > > > Oh, I'm sure that quite obviously I'm doing something wrong,
> >> >> because
> >> >> > > > after following the first few paragraphs of the "How JQuery
> >> Works"
> >> >> > > > section (clicking a link launches an alert box...uh ok, no fine)
> >> it
> >> >> > > > does absolutely nothing.
>
> >> >

[jQuery] superfish entire page 'fades' on mouseover (firefox mac os x)

2007-10-03 Thread Greg Warner
When using firefox on mac os x, as I mouse over and superfish drops down a
menu (either down or a side menu), all the text on the page appears to fade
for a split second, and then is back to normal.  I've even tested it with
animations off, etc (completely bare-bones).

This doesn't happen in safari or opera, nor with ff for windows.  Nor does
it happen with suckerfish with ff for mac.

Any ideas?  Or is anybody experiencing the same effect?

Greg


PS> Test here: http://users.tpg.com.au/j_birch/plugins/superfish/


[jQuery] the jquery logo

2007-10-03 Thread digitalus media

i have developed a cms that relies heavily on jquery.  i am putting a
page on my site to give the appropriate credit, and want to add the
logo to the page which i will link to the jquery site.  you can see
this on my testing server at :http://dev.digitalusmedia.net/technology/
jquery-ajax

I did not see anything about this on the site and want to make sure
its ok to use this graphic.



[jQuery] General Question about Flash and jQuery

2007-10-03 Thread njsuperfreak

Can jQuery talk to flash 9 and vice versa? And is there any examples
of this?



[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-03 Thread Matt

Thanks Jorn, already updated a few pages I'm using this on. Great
plugin, thank you for all the hard work!

On Oct 2, 3:29 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Good news everyone! The treeview plugin version 1.3 is out, giving you
> an even better tool at hand to display and navigate your trees.
>
> Plugin 
> page(s):http://jquery.com/plugins/project/treeview&http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
> Demos:http://jquery.bassistance.de/treeview/
>
> - Fixes for all outstanding bugs
> - Added persistence features
> - location based: click on a link in the treeview and reopen that link
> after the page loaded
> - cookie based: save the state of the tree in a cookie on each click and
> load that on reload
> - smoothed animations, fixing flickering in both IE and Opera
> - Tested in Firefox 2, IE 6 & 7, Opera 9, Safari 3
> - Requires jQuery 1.2+
>
> In addition, the documentation has been rewritten and is now hosted on
> the jQuery documentation wiki:http://docs.jquery.com/Plugins/Treeview/treeview
>
> Have fun
> Jörn



[jQuery] Re: Problem with binding mouseout to only parent div

2007-10-03 Thread Brandon

Thanks, but the drop down menu isn't the problem... I'm already using
a type of drop down menu similar to suckerfish. The problem is I have
two menus, a top tab menu calling a bottom menu that does the drop
downs... when the page is loaded it highlights the proper top tab for
the page you're on (and displays the proper drop down menus below),
but when you mouseover the top tabs I want it to go back to
highlighting the original tab when you're no longer mousing through
the menus.

My theory was that I could bind a mouseout event to the div that wraps
around the whole menu system, and once that mouseout is triggered it
will tell the menu to jump back to the original tab, like it did on
loading the page. But what is happening is that the mouseout even is
fired upon ALL mouseouts within any child divs underneath it, which is
why i tried to do a return false for the children of the wrapping
parent div.

Any other suggestions?

Thank you!





On Oct 3, 7:27 am, motob <[EMAIL PROTECTED]> wrote:
> I would suggest using one of jQuery's menu plugins. There is a
> standard practice for marking up menus and sub menus using lists
> (). Look at this tutorial for suckerfish drop down menu 
> (http://www.alistapart.com/articles/dropdowns/). Once you have your menu
> properly marked up take a look at the superfish plugin (http://
> jquery.com/plugins/project/Superfish).
>
> On Oct 3, 2:08 am, Brandon <[EMAIL PROTECTED]> wrote:
>
> > I've got a menu that does the basic  links and shows a sub menu of
> > divs with nested 's and other text dynamically with css and
> > javascript. I'm migrating it over to jquery, and have it all working
> > perfectly except for one thing. I am trying to get the menu to jump
> > back to the tab that corresponds to the current page upon mouseout of
> > the menu's parent div.
>
> > My code is basically this:
>
> > 
> > 
> > 
> >  >  >  > 
> > 
> >  >  > corresponding menu div. All that works fine.
>
> > What I'm not getting though, and am completely stumped about, is
> > stopping the mouseout event from triggering on the child div's and a's
> > underneath the menu div. I've got it kind of working to stop all
> > children and self, and just do mouseout on the parent div, which would
> > be the menuholder div, but it doesn't fire all of the time, if at
> > all... it sometimes works if i mouse over the edge very slowly.
>
> > Here's my code... maybe someone can shed some light on either stopping
> > the child mouseover binding or triggering the mouseout on the parent
> > smoother.
>
> > (var currenttab is defined in the head by php)
> > var currenttab = '$tabtitle';
>
> > $(document).ready(function(){
> > expandmenu(currenttab);
>
> > $("#menu")
> > .parent().mouseout(function(e){expandmenu(currenttab);})
> > .children().andSelf().mouseout(function(e){return false;});
>
> > $("#toptabs > a").each(function() {
> > var rel = $(this).attr("rel");
> > $(this).mouseover(function(){ expandmenu(rel); });
> > });
>
> > });
>
> > function expandmenu(tabid){
> > $("#toptabs:visible",function(){
> > $("#toptabs > [EMAIL PROTECTED]'"+tabid
> > +"']").addClass("current").siblings("a.current").removeClass();
> > $("#"+tabid).show().siblings("div:visible").hide();
> > });
>
> > }



[jQuery] Problem refreshing page.

2007-10-03 Thread Vaughn Pipes

Hello all, I've got a issue I've been trying to sort out since I
upgraded our site to 1.2.1 and was wondering if anybody has had
something similar happen to them.  Every once in a while when
refreshing our page one of my mouseover events gets triggered
instantly causing an error as any variable it might reference no
longer exists.  Unfortunately I can't reproduce this with any
consistency and even the mouse event itself changes.  Sometimes only
one fires, sometimes it's two or three different ones.  Sometimes it
happens twice in a row, sometimes I'll go for hours without seeing it
happen again.  I've been trying to narrow it down a bit and was
wondering if anyone has had anything similar happen to them?

VP



[jQuery] problems with passing a value via ajax

2007-10-03 Thread webgodjj

Hi,

  I'm pretty new to this ajax, but have been trying to get it to work
with ajax.  What I'm trying to do is pass a value to a php script from
a link and return it.

  So far, I can do that with the text of the link, but I can't seem to
get how to pass either the string, or the id value



$(document).ready(function() {
$('#action_link a').click(function() {

$('#action_link').ajaxStart(function() {
$(this).html("loading").hide();
$(this).html("loading").fadeIn('slow');
});

$.ajax({
type: "GET",
url: "e.php",
data: "test=" + $(this).text(),
success: function(data){
$('#action_link').html(data +" Bar Added To
Favorites").show('slow');
}
});
return false;
});
});





Add Bar




[jQuery] Re: AjaxCFC

2007-10-03 Thread Steve Brownlee

Brook:

Your post is just vague enough to not be answerable.  What exactly do
you mean by calling object?  Do you mean the function inside which you
make the $.AjaxCFC() call?  Do you mean the the arguments - and their
values - passed via the data property of AjaxCFC?

A code snippet would really help.

On Oct 2, 3:39 pm, "Brook Davies" <[EMAIL PROTECTED]> wrote:
> Can anyone who uses ajaxCFC tell me how to get a reference to the calling
> objects scope  in the success handler? I can't figure out how to pass
> arguments through to the callback / success handler. Anyone?
>
> FYI, I am using the jQuery version of ajaxCFC. Works awesome BTW.
>
> BrookD.



[jQuery] Re: jQuery newsgroups? (nntp)

2007-10-03 Thread RealET

* MichaelEvangelista tapuscrivait, le 03/10/2007 17:44:
> Is there an NNTP jQuery group out there somewhere?
> Are there any other forums or discussion groups other than this one,
> with equal or higher traffic?
> 
> I find rapid-fire user groups to be the best possible asset for my way
> of deciphering new stuff... and I'm soaking up jQuery as fast as time
> will allow!
news.gmane.org: gmane.comp.lang.javascript.jquery

-- 
RealET



[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-03 Thread Guy Fraser

Jörn Zaefferer wrote:
> Okay, I've removed my stupid last minute optimization. Please give it 
> another try.

Yes, the +/- now work great :)

If you could match the feature set of the nlstree [1] it would be really 
awesome:

[1] http://www.addobject.com/products/javascript/tree/nlstree.php

Guy


[jQuery] Selector with Pipe (|) character not working

2007-10-03 Thread ab

I am trying to select an element with with ID  which have pipe
character (|)
i  found that its not working


CODE--HTML


CODE-SCRIPT
   alert($("#firstname|1").val() );

and output is "undefined"..

Works well if i remove pipe

Please help me..is it a bug or "feature"



[jQuery] RED: [jQuery] Re: Packed version of BlockUI?

2007-10-03 Thread Brook Davies


On this topic, what are the rules to write JS that will pack without error?
I know you need a ";" at the end of every line, but what else?

BrookD



-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: October 3, 2007 8:15 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Packed version of BlockUI?


Andy,

Just take the code and drop it into Dean Edward's Packer or YUI compressor.

Rey

Andy Matthews wrote:
> I'm in need of a simple page overlay, which I'll be using to display 
> help messages. I found BlockUI, but it's 15k. Is there a packed version 
> of it, or a simpler version that just allows for a page overlay?
>  
> *
> 
>  
> Andy Matthews
> *Senior ColdFusion Developer
> 
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]
> www.dealerskins.com 
>  




[jQuery] Re: Packed version of BlockUI?

2007-10-03 Thread Steve Brownlee

Andy, check out jqModal

http://dev.iceburg.net/jquery/jqModal/

On Oct 3, 10:01 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> I'm in need of a simple page overlay, which I'll be using to display help
> messages. I found BlockUI, but it's 15k. Is there a packed version of it, or
> a simpler version that just allows for a page overlay?
>
> 
>
> Andy Matthews
> Senior ColdFusion Developer
>
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]
>
>  dealerskinslogo.bmp
> 6KDownload



[jQuery] $.ajax({datatype:"html"... does not seem to evaluate scripts?

2007-10-03 Thread joelarson

The documentation notes that when using the $.ajax() functions option
datatype="html":

"html": Returns HTML as plain text; included script tags are
evaluated

however, it does not appear to me that this is happening.  What am I
missing?

My very simple code is here:

-
...
 
$.ajax({type:"GET",dataType:"html",url:"test.htm",success:function(dta)
{
alert(dta);
}});
...


test.htm--
hello

alert("hello?");

--

I do get my alert with the content from alert(dta), but I never get an
alert with "hello?".  What am I missing?



[jQuery] Re: live query

2007-10-03 Thread bluejam

Hi
im using the very latest version of jQuery

I can't post example online as its on my dev server and the project is
too hush hush to show just yet

the code that adds the element works fine, its Live Query that is not
working as it adds the event to all 'a' elements
and I tried your code it made no difference.

thank you anyway, might just have to go back to the old reliable page
refreshing method

On Oct 3, 2:05 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> Which version of jQuery are you using? Could you post the code that adds the
> element? Better yet could you post an example online?
>
> Also if you are just binding an event, you shouldn't use the function
> syntax. Do it like this:
>
> $('a[rel=sec]').livequery('click', function() {
> doSomething();
>
> });
>
> --
> Brandon Aaron
>
> On 10/3/07, bluejam <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi
>
> > Im adding an element to Dom on fly, I then want to add an action to
> > that element, i've tried live query but it is adding the action to ALL
> > elements not just the one i referenced.:
>
> > This is being added to:
>
> > Clothing / Accessories » > href="javascript:;">Tailoring
>
> > which works fine, now im referencing the rel="sec" and adding an
> > action the the click event:
>
> > $(function() {
> > $("[EMAIL PROTECTED]'sec']").livequery(function(){
> > $(this).bind('click',function(){
> > $("#top").ScrollTo(800);
> > //showSector($('[EMAIL PROTECTED]',
> > this).attr("id"));
> > });
> > });
> > });
>
> > the commented out part is the function i eventually want to call, im
> > just using the ScrollTo action for testing purposes
>
> > The problem i have is the live query is adding the click action to ALL
> > a elements, anyone come across this before ? or know how to add a
> > click action to an element that is created on the fly?



[jQuery] Re: live query

2007-10-03 Thread bytte

Why don't you use the ID of the a tag? The ID is a unique reference,
so then you're sure you're targeting the correct a tag and none of the
others.

On 3 okt, 13:53, bluejam <[EMAIL PROTECTED]> wrote:
> Hi
>
> Im adding an element to Dom on fly, I then want to add an action to
> that element, i've tried live query but it is adding the action to ALL
> elements not just the one i referenced.:
>
> This is being added to:
>
> Clothing / Accessories » href="javascript:;">Tailoring
>
> which works fine, now im referencing the rel="sec" and adding an
> action the the click event:
>
> $(function() {
> $("[EMAIL PROTECTED]'sec']").livequery(function(){
> $(this).bind('click',function(){
> $("#top").ScrollTo(800);
> //showSector($('[EMAIL PROTECTED]', this).attr("id"));
> });
> });
>
> });
>
> the commented out part is the function i eventually want to call, im
> just using the ScrollTo action for testing purposes
>
> The problem i have is the live query is adding the click action to ALL
> a elements, anyone come across this before ? or know how to add a
> click action to an element that is created on the fly?



[jQuery] Re: Child elements

2007-10-03 Thread Steve Brownlee

Karl:

Thanks for pointing out something that should have been blatantly
obvious to me.  It was a looong day yesterday.  I'm good to go.
Gracias.

On Oct 2, 10:02 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Steve,
>
> The first one worked for me when I pasted your HTML into a local
> document.
>
> The second and third don't work because they're referring to classes
> as IDs. Note that you have #x-dlg-bd to select 
> and #x-dlg-tab to select  when they should
> be .x-dlg-bd and .x-dlg-tab, respectively.
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Oct 2, 2007, at 4:58 PM, Steve Brownlee wrote:
>
>
>
> > jQuery has finally managed to make me feel stupid.  I've been using it
> > a while and never had any problems, until today.
>
> > What's the proper way to specify the 'acc-ct' div inside
> > NoteModalDialog?  So far I've tried...
> > $("#NoteModalDialog").find("#acc-ct")
> > $("#NoteModalDialog #x-dlg-bd #x-dlg-tab #acc-ct")
> > $("#NoteModalDialog > #x-dlg-bd > #x-dlg-tab > #acc-ct")
>
> > None worked.  I feel stupid.
>
> > 
> >Request Notes
> >
> >
> >
> >Previous 
> > Notes
> >
>
> >
> >
> >
> > 



[jQuery] Re: $(document).scroll() not functioning in IE?

2007-10-03 Thread Paul Irish

(scroll to the bottom to test)
also safari seems to get halfway in.. so that's an improvement.

On Oct 2, 12:52 pm, Paul Irish <[EMAIL PROTECTED]> wrote:
> I added some fun infinite scroll functionality to my employer's 
> blog.http://molecularvoices.molecular.com/
> All of it is based on a $(document).scroll() event that doesn't seem
> to fire in IE6 or 7.  My alert() debugging shows that IE won't enter
> into the function attached to the scroll event..
> You can test on the above link.
> Any ideas?



[jQuery] view all event listeners?

2007-10-03 Thread kevin

Anyone know of a way to view all event listeners on a page at a
specific moment for debugging?



[jQuery] Slide DIV along horizontal line?

2007-10-03 Thread fiasst

Hi,

I really need some help with jQuery. I have something that, In theory
seems so simple but is beyond.

I need a DIV to slide horizontally across my page to a position
defined in a onMouseover event.

The full effect I'm trying to achieve is a menu which, when you mouse-
over a link, a div will slide horizontally and stop above the hovered
link.

I've tried all sorts of functions but can't get the desired result.

Can I get some help?

Thanks,
Marc



[jQuery] Re: Counting the number of child elements that a div has

2007-10-03 Thread Scott Trudeau
It should. I just typed this into my Firebug console on a page including
jQuery:

$('body').append('');

$('#test').append(''+ $('#test').children().size()  +'');

$('#test').append(''+ $('#test').children().size()  +'');

$('#test').append(''+ $('#test').children().size()  +'');

Seemed to work as expected

Scott

On 10/3/07, wattaka <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Wizzud, but this does not work with elements that are
> dynamically added to the DOM, is there another way? Thanks
>
> On Oct 3, 11:26 pm, Wizzud <[EMAIL PROTECTED]> wrote:
> > var ct = $('div').children().size();
> >
> > wattaka wrote:
> >
> > > How can I count the number of child elements that a div container has?
> > > Thanks
> >
> > --
> > View this message in context:
> http://www.nabble.com/Counting-the-number-of-child-elements-that-a-di...
> > Sent from the jQuery General Discussion mailing list archive at
> Nabble.com.
>
>


-- 
--
Scott Trudeau
scott.trudeau AT gmail DOT com
http://sstrudeau.com/
AIM: sodthestreets


[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Josh Nathanson


Do you know where javascript events are stored ? In elements dom or 
somewhere ?

If yes I would be able to keep them apart, unbind and rebind with my
stuff then the old bindings I kept apart ?

Maybe what I say is silly, I don't know


After much googling, I found this, which states that the firing order of 
multiple event handlers bound to the same event is arbitrary:


http://tinyurl.com/3c7nso

-- Josh




- Original Message - 
From: "Fabien Meghazi" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, October 03, 2007 2:47 PM
Subject: [jQuery] Re: Bind event that should be executed first





$("#myform").submit(function() {
// do your textarea thing here
var v = $(this).validate(validateoptionshere);


Do you know where javascript events are stored ? In elements dom or 
somewhere ?

If yes I would be able to keep them apart, unbind and rebind with my
stuff then the old bindings I kept apart ?

Maybe what I say is silly, I don't know

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED] 




[jQuery] Re: Counting the number of child elements that a div has

2007-10-03 Thread wattaka

Thanks Wizzud, but this does not work with elements that are
dynamically added to the DOM, is there another way? Thanks

On Oct 3, 11:26 pm, Wizzud <[EMAIL PROTECTED]> wrote:
> var ct = $('div').children().size();
>
> wattaka wrote:
>
> > How can I count the number of child elements that a div container has?
> > Thanks
>
> --
> View this message in 
> context:http://www.nabble.com/Counting-the-number-of-child-elements-that-a-di...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Josh Nathanson


Ah...thanks Jörn, I didn't know about the API browser.  By the way, I am 
kicking myself for not using the Validation plugin sooner.  It is saving me 
so much work.


-- Josh

- Original Message - 
From: "Jörn Zaefferer" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, October 03, 2007 2:43 PM
Subject: [jQuery] Re: Bind event that should be executed first




Josh Nathanson schrieb:

[...]
   if (v.form()) // runs form validation and returns true if successful
   // you have to dig into the validation source to 
figure this out

[...]
Granted, documentation still needs a lot of work, but the method is 
documented here: 
http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatorprotoypeform


-- Jörn 




[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Fabien Meghazi

> $("#myform").submit(function() {
> // do your textarea thing here
> var v = $(this).validate(validateoptionshere);

Do you know where javascript events are stored ? In elements dom or somewhere ?
If yes I would be able to keep them apart, unbind and rebind with my
stuff then the old bindings I kept apart ?

Maybe what I say is silly, I don't know

-- 
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]


[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Fabien Meghazi

> $("#myform").submit(function() {
> // do your textarea thing here
> var v = $(this).validate(validateoptionshere);

In fact my stuff is a plugin for fck editor so I want it to to be unobstrusive.

-- 
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]


[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Jörn Zaefferer


Josh Nathanson schrieb:

[...]
   if (v.form()) // runs form validation and returns true if successful
   // you have to dig into the validation source 
to figure this out

[...]
Granted, documentation still needs a lot of work, but the method is 
documented here: 
http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatorprotoypeform


-- Jörn


[jQuery] Re: Question to experts on jQuery.

2007-10-03 Thread Wizzud


Just do it the old-fashioned way...

var objImage = new Image();
objImage.onload = function(){
var imgDim = { width : objImage.width, height : objImage.height };
// .. carry on processing...
  };
objImage.src = 'myPicture.jpg';



BAlex wrote:
> 
> 
> Is JavaScript:
> 
> var img = new Image();
> img.src = "1.jpg";
> var width = img.width;
> var height = img.height;
> 
> It is necessary for preliminary loading image and, the main thing, for
> preliminary definition width and height.
> 
> How same to represent on jQuery?
> 
> In advance thanks,
> Alexander
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-to-experts-on-jQuery.-tf4554472s27240.html#a13028446
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Josh Nathanson


Ah, I see.  You will probably have to trigger the validation and form 
plugins in a different way.  You can do something like this.


Rather than bind the validation plugin in the standard way, you can do this:

$("#myform").submit(function() {
   // do your textarea thing here
   var v = $(this).validate(validateoptionshere);
   if (v.form()) // runs form validation and returns true if successful
   // you have to dig into the validation source to 
figure this out

   $.ajaxSubmit();
   else
   alert('Error on form validation!')
});

-- Josh



- Original Message - 
From: "Fabien Meghazi" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, October 03, 2007 2:22 PM
Subject: [jQuery] Re: Bind event that should be executed first



One way to go about it is to put all your submit functions within a sort 
of
"master function," that will be the only function bound to the submit 
event.

Then you can guarantee the order of execution.  Like so:


In fact I don't have the hand of the possible previous bindings so I
can't bundle them into a master function.

My case is that I use Mike's form plugin with Jörn's validation plugin.
The thing is that when user's click on a button (after initialization
of both others plugin), a dhtml editor is replacing a textarea and I
have to bind the form submit in order to restore the correct value of
the textarea before other plugin's submit bindings are triggered.

Is there a solution for that ? Even if it's pure javascript outside
jQuery's api.

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED] 



[jQuery] Re: Counting the number of child elements that a div has

2007-10-03 Thread Wizzud


var ct = $('div').children().size();


wattaka wrote:
> 
> 
> How can I count the number of child elements that a div container has?
> Thanks
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Counting-the-number-of-child-elements-that-a-div-has-tf4564339s27240.html#a13028239
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Fabien Meghazi

> One way to go about it is to put all your submit functions within a sort of
> "master function," that will be the only function bound to the submit event.
> Then you can guarantee the order of execution.  Like so:

In fact I don't have the hand of the possible previous bindings so I
can't bundle them into a master function.

My case is that I use Mike's form plugin with Jörn's validation plugin.
The thing is that when user's click on a button (after initialization
of both others plugin), a dhtml editor is replacing a textarea and I
have to bind the form submit in order to restore the correct value of
the textarea before other plugin's submit bindings are triggered.

Is there a solution for that ? Even if it's pure javascript outside
jQuery's api.

-- 
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]


[jQuery] Re: Easing Plugin brakes on all methods based on Math.exp with jQuery 1.2.X

2007-10-03 Thread george.gsgd

Hmmm, missed this one, I'm now looking into it, it's possible this has
been broken for a while.

Thanks for noticing :)

George.

On Sep 27, 12:09 pm, ravenel <[EMAIL PROTECTED]> wrote:
> Hello I just tested the The Excellent Easing Plugin 
> fromhttp://gsgd.co.uk/sandbox/jquery.easing.phpwith jQuery 1.2.1. and
> all methods work fine except:
>
> expoin, expoinout, expoout
>
> These methods use Math.exp:
>
> expoout: function(x, t, b, c, d) {
> var flip = 1;
> if (c < 0) {
> flip *= -1;
> c *= -1;
> }
> return flip * (-Math.exp(-Math.log(c)/d * (t-d)) + c 
> + 1) + b;
> }
>
> I cannot figure out the problem, does anybody has an idea?



[jQuery] Re: Bind event that should be executed first

2007-10-03 Thread Josh Nathanson


One way to go about it is to put all your submit functions within a sort of 
"master function," that will be the only function bound to the submit event. 
Then you can guarantee the order of execution.  Like so:


$("#myform").bind("submit", masterfunction);

masterfunction = function() {
   dofunction1();
   dofunction2();
}

-- Josh


- Original Message - 
From: "Fabien Meghazi" <[EMAIL PROTECTED]>

To: "ML:jQuery" 
Sent: Wednesday, October 03, 2007 1:56 PM
Subject: [jQuery] Bind event that should be executed first




Hi all,

I have to bind an event of type "submit" to a form but I have to make
sure that the function binded will be executed before other submit
bindings.

Is it possible with jQuery ?

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED] 




[jQuery] Counting the number of child elements that a div has

2007-10-03 Thread wattaka

How can I count the number of child elements that a div container has?
Thanks



[jQuery] Bind event that should be executed first

2007-10-03 Thread Fabien Meghazi

Hi all,

I have to bind an event of type "submit" to a form but I have to make
sure that the function binded will be executed before other submit
bindings.

Is it possible with jQuery ?

-- 
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]


[jQuery] They dress as jQuery users for Halloween

2007-10-03 Thread Michael Geary

http://www.mentalfloss.com/blogs/archives/8397

-Mike 



[jQuery] Re: jscrollpane plugin problem

2007-10-03 Thread Alexandre Plennevaux

AFAIK you have to recall the function, or you can use the jquery live plugin


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guillermo Movia
Sent: mercredi 3 octobre 2007 19:46
To: jquery-en@googlegroups.com
Subject: [jQuery] jscrollpane plugin problem


Hi, Kevin. We are using your plugin for a ul with news. Each new show by
default the title and an abstract with a button to display the invisible
part. This ul has a scroll pane. But, when the invisible part of one new is
show and then the ul increase it height, the scroll pane doesn't change it
height, and the new text overflow the ul, but below it.

Is there a simple way to inform the scrollpane to refresh the height of the
content inside it? or we have to recreate it?

Thanks in advance
Guillermo

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.488 / Base de données virus: 269.13.39/1045 - Date: 2/10/2007
18:43
 



[jQuery] Re: My Superfish disappears for no reason

2007-10-03 Thread Joel Birch

Giuliano: That's an interesting point of data to have, so thanks for that.

Olivier: although I couldn't replicate the problem you described, I
did notice that the code to initialise Superfish is wrong. You have
this:

$(document).ready(function(){
$(".nav").superfish({animation : {
opacity:"show",height:"show",delay:100,speed:"fast"}
});
});

Whereas it should be this, (assuming I have interpreted your intention
correctly):

$(document).ready(function(){
$(".nav").superfish({
animation : {opacity:"show",height:"show"},
delay:100,
speed:"fast"
});
});

And commented:

$(document).ready(function(){
$(".nav").superfish({
animation : {opacity:"show",height:"show"}, /* equivalent to 
first
parameter of .animate() */
delay:100, /* this is the mouseout delay before submenu closes 
*/
speed:"fast" /* this is the animation speed - equivalent to the
second parameter of .animate() */
});
});

Joel Birch.


[jQuery] Re: Question to experts on jQuery.

2007-10-03 Thread polyrhythmic

When you .hide() the element it brings its height and weight to 0 and
then sets 'display' to 'none'.  You will get unreliable results trying
to read the .height() and .width() after that.

Try this:
var img0 = $("").css({ visibility:
'hidden' }).appendTo(document.body);


Charles
doublerebel.com

On Oct 3, 3:21 am, BAlex <[EMAIL PROTECTED]> wrote:
> 552464979
> Has made so:
>
> $(function() {
>   var url0 = "1.jpg";
>   var img0 = $("").appendTo(document.body).hide();
>   var w = img0.width();
>   var h = img0.height();
>   alert("//--> h=" + h + ", w=" + w);
>
> });
>
> It works, here results in different browsers:
> IE:  //--> h=700, w=581 - It is correct
> Opera:   //--> h=700, w=581 - It is correct
> Firefox: //--> h=1002, w=1002 - It is wrong :-((
> Safari:  //--> h=0, w=0 - It is wrong :-((
>
> Whether it is possible to make so that in Firefox and Safari results
> were correct.



[jQuery] Re: My Superfish disappears for no reason

2007-10-03 Thread Giuliano Marcangelo
Joel,

had a look at this issue this afternoon on an "old" work machine (W2000)
with a very low spec, and this behaviour that Olivier mentioned occured
mainly when hovering on the "Nos Magasins" tab..

will check fully tomorrow (working on GMT) so about 12 hours or so from now

:-)

On 03/10/2007, Joel Birch <[EMAIL PROTECTED]> wrote:
>
>
> Hi Olivier,
>
> I checked your menu in IE6, IE7, Mac FF 2.0.0.7, and Safari 2.0.4 and
> I could not replicate your issue. It all just works fine on my end.
> Tasty looking site too.
>
> Can anyone else here replicate the problem?
>
> Joel Birch.
>


[jQuery] jscrollpane plugin problem

2007-10-03 Thread Guillermo Movia

Hi, Kevin. We are using your plugin for a ul with news. Each new show
by default the title and an abstract with a button to display the
invisible part. This ul has a scroll pane. But, when the invisible
part of one new is show and then the ul increase it height, the scroll
pane doesn't change it height, and the new text overflow the ul, but
below it.

Is there a simple way to inform the scrollpane to refresh the height
of the content inside it? or we have to recreate it?

Thanks in advance
Guillermo


[jQuery] Re: My Superfish disappears for no reason

2007-10-03 Thread Joel Birch

Hi Olivier,

I checked your menu in IE6, IE7, Mac FF 2.0.0.7, and Safari 2.0.4 and
I could not replicate your issue. It all just works fine on my end.
Tasty looking site too.

Can anyone else here replicate the problem?

Joel Birch.


[jQuery] Re: Masked Input Plugin 1.1

2007-10-03 Thread Josh Bush

I managed to get this fixed last night and put a new version up.  I'll
be updating the jquery plugins page tonight.

Josh

On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote:
> It appears something I've done had totally borked this plugin for IE.
> I'll figure it out real quick and get a new version out.
>
> On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote:
>
> > Your plugin is great, I checked it out some time ago... you know, the
> > example fails in IE (6, windows). When I focus an input or type in it,
> > an error pops saying "'res' is not defined".
>
> > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote:
>
> > > I just released version 1.1 of my Masked Input Plugin for jQuery. I
> > > have more features in the pipeline to add to 1.2, but I wanted to get
> > > a few fixes out the door before doing so. The only thing new this time
> > > is an unmask method.
>
> > > In addition to code changes, I've made a few more enhancements. I've
> > > added a packed version for those who want the smallest possible
> > > footprint. I've also given the project page a face lift to make things
> > > easier to find.
>
> > > Below is a list of changes this time:
>
> > > * NEW FEATURE: unmask() method to remove masking for a previously
> > > masked input.
> > > * Safari cursor position fix.
> > > * Cursor position behavior change: Cursor goes to the end of the
> > > input on a completed input. Cursor goes to the first placeholder
> > > position on a blank input.
> > > * Fixed improper escaping of certain mask characters.
> > > * Code refactoring to reduce size and complexity.
>
> > > Please check it out at:http://digitalbush.com/projects/masked-input-plugin
>
> > > Thank You
> > > Josh
> > > digitalbush.com



[jQuery] Re: jQuery newsgroups? (nntp)

2007-10-03 Thread Richard D. Worth
This group can be accessed via nntp through gmane:
  nntp://news.gmane.org/gmane.comp.lang.javascript.jquery

It's also web-browsable at (each has rss and/or atom feeds):
  http://groups.google.com/group/jquery-en
  http://www.mail-archive.com/jquery-en@googlegroups.com/
  http://dir.gmane.org/gmane.comp.lang.javascript.jquery
  http://www.nabble.com/jQuery-General-Discussion-f15494.html

Also, there is a fairly new support forum/discussion board:
  http://jqueryhelp.com/
  annc thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/3aef57ee4d9eb962

- Richard

On 10/3/07, MichaelEvangelista <[EMAIL PROTECTED]> wrote:
>
>
> Is there an NNTP jQuery group out there somewhere?
> Are there any other forums or discussion groups other than this one,
> with equal or higher traffic?
>
> I find rapid-fire user groups to be the best possible asset for my way
> of deciphering new stuff... and I'm soaking up jQuery as fast as time
> will allow!
>
>


[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-03 Thread Jörn Zaefferer


Matt schrieb:

Very nice plugin.

Do you plan to add some "callbacks" options (for example, open, close, 
toggle, remove),

and/or possibility to add/remove branches/items from an ajax request ?
I'm thinking of using it as a directory browser as you can guess :-)
The options toggle and add should be what you are  looking for. Toggle 
gets called for each toggled node (after it got toggled). Elements 
passed to the add option get classes and events applied. See the 
examples in the API documentation: 
http://docs.jquery.com/Plugins/Treeview/treeview


-- Jörn


[jQuery] Re: jqGalViewII plugin beta release

2007-10-03 Thread Benjamin Sterling
>
> Will the final version support captions and/or gallery titles?


That is on the list, just trying to figure where would be better, a toolTip
or a caption box when the large image is loaded or both.  Not sure what
would be better.

As for a gallery title, not really sure about that one, not sure where it
would go if I had it.


Also, how does it handle vertical vs. horizontal images, or varying size
> images?


It handles them pretty well, it will resize the image, vertically or
horizontally or both, to make it fit within the css styled box.

Thanks for the kind words, I feel the same way.  Trying  to make these
galleries in a way that if javascript is turned off it will still work (when
I say work, I mean the image will still show they way the were coded into
the site) and allow the developer to style them and have as much or as
little control as possible, with out making ti bloated.


On 10/3/07, MichaelEvangelista <[EMAIL PROTECTED]> wrote:
>
>
> Very nice indeed!
> Will the final version support captions and/or gallery titles?
> Was picturing a tooltip on hover ala flickr and others.
>
> Also, how does it handle vertical vs. horizontal images, or varying
> size images?
>
> I love any type of gallery that is easy to make dynamic and takes up
> minimal space on the page with no scrolling.
> This looks like a winner in both departments.. thanks for sharing!
>
>
>
> On Oct 2, 9:48 pm, "Benjamin Sterling"
> <[EMAIL PROTECTED]> wrote:
> > Hey guys and gals,
> > With the response that I got with the jqGalView plugin, I figured that I
> > would start releasing the other photogallery plugins I been
> experimenting
> > with.  This is only a beta release, so there may be some
> inconsistencies,
> > but it has been tested on the major ones on PC and would love to get
> > feedback from the Mac and Linux people other there.  I am also looking
> for
> > request, I have a list of improvement, but I am learning that what I
> think
> > is usable and awesome is not the same as the rest of the community, so I
> am
> > looking for requests and suggestions to improve the overall experience
> of
> > the jqGalViewII plugin.
> >
> > Here is the url, any and all feedback is welcomed:
> >
> > http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/
> >
> > --
> > Benjamin
> Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjaminsterling.com
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com


[jQuery] Re: Noob click-change-click question re. parent class rules

2007-10-03 Thread Glen Lipka
You probably should explore using the toggle() function.

$("p").toggle(function(){
  $(this).addClass("selected");
},function(){
  $(this).removeClass("selected");
});

This allows you to easily distinguish the odd and even actions.

Glen

On 10/3/07, MichaelEvangelista <[EMAIL PROTECTED]> wrote:
>
>
> I've been going through various tutorials and demos of jQuery, and
> finding my way fairly well, at least with the basics.
>
> To work my way through a few concepts , I put up a quick demo of a
> show/hide Faq-type system
> http://www.mredesign.com/demos/jquery-show-hide/
> but as I did so, I had a question about changing classes that I'm
> hoping someone here can explain
>
> In this demo, I initially had any sibling element as clickable - so
> that any other element inside the 'offDiv' or 'onDiv' container would
> work to show or hide the 'show-hide' div, not just the little link
> button - and the heading div worked great.. but only for one click. I
> wanted to click the header (this worked), which would change the class
> of the container (this als worked), and then click again to close the
> box under rule for new parent class (this did not work).
>
> I was referencing the element by the parent container '.offDiv
> > .faqTitle'  to open and change parent to 'offDiv', or '.onDiv
> > .faqTitle' to close and change parent to 'onDiv'.
>
> Both worked, but even though the parent class was changed, I could not
> click again for the opposite option. I understand I can use 'toggle',
> but was trying to get at it another way, using a method I've needed
> other places as well.
> I was under the impression I could change the class of the parent with
> a click, and then access the rule for a child of the new parent
> class.. but this does not seem to work as expected, almost like the
> browser needs a kick to refresh the DOM.
>
> I also had a 'show all' link which worked great - changing the class
> of all the current 'offDiv' containers to 'onDiv' which allowed them
> to be shown. But, like the above, even though the parent class was
> changed, I had to click twice on the button of a previously closed div
> to get it to close again.. somewhere, obviously, I am missing how this
> is supposed to work.
>
> The button links in my example seem fine, since they are actually two
> separate elements being shown/hidden depending on parent class. But..
> what would be the correct way to let an element
> "click - change parent class - be affected by new rule under new
> parent - click again" ?
>
> Does it have to do with the order in which I call these functions?
> Is there some way to say 'hey! get the new DOM!' after something is
> clicked or changed?
>
> I hope this makes some kinda sense.
>
>


[jQuery] Re: jqGalViewII plugin beta release

2007-10-03 Thread MichaelEvangelista

Very nice indeed!
Will the final version support captions and/or gallery titles?
Was picturing a tooltip on hover ala flickr and others.

Also, how does it handle vertical vs. horizontal images, or varying
size images?

I love any type of gallery that is easy to make dynamic and takes up
minimal space on the page with no scrolling.
This looks like a winner in both departments.. thanks for sharing!



On Oct 2, 9:48 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Hey guys and gals,
> With the response that I got with the jqGalView plugin, I figured that I
> would start releasing the other photogallery plugins I been experimenting
> with.  This is only a beta release, so there may be some inconsistencies,
> but it has been tested on the major ones on PC and would love to get
> feedback from the Mac and Linux people other there.  I am also looking for
> request, I have a list of improvement, but I am learning that what I think
> is usable and awesome is not the same as the rest of the community, so I am
> looking for requests and suggestions to improve the overall experience of
> the jqGalViewII plugin.
>
> Here is the url, any and all feedback is welcomed:
>
> http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/
>
> --
> Benjamin 
> Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjaminsterling.com



[jQuery] jQuery newsgroups? (nntp)

2007-10-03 Thread MichaelEvangelista

Is there an NNTP jQuery group out there somewhere?
Are there any other forums or discussion groups other than this one,
with equal or higher traffic?

I find rapid-fire user groups to be the best possible asset for my way
of deciphering new stuff... and I'm soaking up jQuery as fast as time
will allow!



[jQuery] Noob click-change-click question re. parent class rules

2007-10-03 Thread MichaelEvangelista

I've been going through various tutorials and demos of jQuery, and
finding my way fairly well, at least with the basics.

To work my way through a few concepts , I put up a quick demo of a
show/hide Faq-type system
http://www.mredesign.com/demos/jquery-show-hide/
but as I did so, I had a question about changing classes that I'm
hoping someone here can explain

In this demo, I initially had any sibling element as clickable - so
that any other element inside the 'offDiv' or 'onDiv' container would
work to show or hide the 'show-hide' div, not just the little link
button - and the heading div worked great.. but only for one click. I
wanted to click the header (this worked), which would change the class
of the container (this als worked), and then click again to close the
box under rule for new parent class (this did not work).

I was referencing the element by the parent container '.offDiv
> .faqTitle'  to open and change parent to 'offDiv', or '.onDiv
> .faqTitle' to close and change parent to 'onDiv'.

Both worked, but even though the parent class was changed, I could not
click again for the opposite option. I understand I can use 'toggle',
but was trying to get at it another way, using a method I've needed
other places as well.
I was under the impression I could change the class of the parent with
a click, and then access the rule for a child of the new parent
class.. but this does not seem to work as expected, almost like the
browser needs a kick to refresh the DOM.

I also had a 'show all' link which worked great - changing the class
of all the current 'offDiv' containers to 'onDiv' which allowed them
to be shown. But, like the above, even though the parent class was
changed, I had to click twice on the button of a previously closed div
to get it to close again.. somewhere, obviously, I am missing how this
is supposed to work.

The button links in my example seem fine, since they are actually two
separate elements being shown/hidden depending on parent class. But..
what would be the correct way to let an element
"click - change parent class - be affected by new rule under new
parent - click again" ?

Does it have to do with the order in which I call these functions?
Is there some way to say 'hey! get the new DOM!' after something is
clicked or changed?

I hope this makes some kinda sense.



[jQuery] Re: Packed version of BlockUI?

2007-10-03 Thread Rey Bango


Andy,

Just take the code and drop it into Dean Edward's Packer or YUI compressor.

Rey

Andy Matthews wrote:
I'm in need of a simple page overlay, which I'll be using to display 
help messages. I found BlockUI, but it's 15k. Is there a packed version 
of it, or a simpler version that just allows for a page overlay?
 
*


 
Andy Matthews

*Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com 
 


[jQuery] Packed version of BlockUI?

2007-10-03 Thread Andy Matthews
I'm in need of a simple page overlay, which I'll be using to display help
messages. I found BlockUI, but it's 15k. Is there a packed version of it, or
a simpler version that just allows for a page overlay?
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com  
 
<>

[jQuery] Re: Slide up/down bug with table data in IE7

2007-10-03 Thread Andy Matthews

That's actually what I'm doing. I'm not sliding the table, I'm sliding the
DIV which is it's parent. The weird thing is that when I fade the module in,
THEN slide it up/down, it works perfectly. I'll just do that for now.


andy
 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of motob
Sent: Tuesday, October 02, 2007 5:29 PM
To: jQuery (English)
Subject: [jQuery] Re: Slide up/down bug with table data in IE7


I think its more of an issue of IE not handling table tags properly.
I've had some unexpected results when trying to slide table rows in my app.
If you're wanting to slide up and down the entire table, try wrapping a
 around it and slide the . This worked for me when I needed to
show and hide entire tables.

On Oct 2, 4:51 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> I have a module which contains a table of information. When I slide 
> the module (to hide the info) it works just fine. When I slide it back 
> down (to display the data) the table disappears.
>
> Is this a bug or a "feature"? Whatever it is, I need a fix for it. 
> Anyone have any ideas?
>
> 
>
> Andy Matthews
> Senior ColdFusion Developer
>
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED] m/>
>
>  dealerskinslogo.bmp
> 6KDownload




[jQuery] Re: .is() cannot check against the parent chain?

2007-10-03 Thread Karl Swedberg


On Oct 3, 2007, at 3:40 AM, Wizzud wrote:



No problem, Matt.

BTW I'm sure you're aware that you can shorten...

if (o.parents().filter('div.unwantedclass').size()==0) { ... }

...to just

if (o.parents('div.unwantedclass').size()==0) { ... }


You can shorten it a bit further still, to just ...

if (!o.parents('div.unwantedclass').length) { ... }

:-)


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





[jQuery] Re: jqGalViewII plugin beta release

2007-10-03 Thread Benjamin Sterling
Thanks Rey, much appreciated.

On 10/3/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
>
> Great job Ben!!
>
> Rey
>
> Benjamin Sterling wrote:
> > Hey guys and gals,
> > With the response that I got with the jqGalView plugin, I figured that I
> > would start releasing the other photogallery plugins I been
> experimenting
> > with.  This is only a beta release, so there may be some
> inconsistencies,
> > but it has been tested on the major ones on PC and would love to get
> > feedback from the Mac and Linux people other there.  I am also looking
> for
> > request, I have a list of improvement, but I am learning that what I
> think
> > is usable and awesome is not the same as the rest of the community, so I
> am
> > looking for requests and suggestions to improve the overall experience
> of
> > the jqGalViewII plugin.
> >
> > Here is the url, any and all feedback is welcomed:
> >
> > http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/
> >
>



-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com


[jQuery] My Superfish disappears for no reason

2007-10-03 Thread Olivier Percebois-Garve
Hi all, hi joel,

My Superfish submenu are disappearing for no reason. The submenu comes out,
but it often disappers even if the user is still hovering
the buttons. I can't find out why.
here is the url : http://prod.oberweis.interact.lu/fr/

anybody has an idea about the reason of this ?

thanks

-Olivier


[jQuery] Re: jqGalViewII plugin beta release

2007-10-03 Thread Rey Bango


Great job Ben!!

Rey

Benjamin Sterling wrote:

Hey guys and gals,
With the response that I got with the jqGalView plugin, I figured that I
would start releasing the other photogallery plugins I been experimenting
with.  This is only a beta release, so there may be some inconsistencies,
but it has been tested on the major ones on PC and would love to get
feedback from the Mac and Linux people other there.  I am also looking for
request, I have a list of improvement, but I am learning that what I think
is usable and awesome is not the same as the rest of the community, so I am
looking for requests and suggestions to improve the overall experience of
the jqGalViewII plugin.

Here is the url, any and all feedback is welcomed:

http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/



[jQuery] copy paste and string validation

2007-10-03 Thread Robert O'Rourke


Hi everyone,

   I'm putting together a few bioinformatics tools for some friends who 
are still in the biosciences field and I need some advice about how to 
validate a string eg. DNA can only be letters A,C,T or G. I need to 
validate on keypress and paste (is there a paste event?) and then again 
on submit to the conversion script.

   The page I have so far is at http://biotools.sanchothefat.com

   I'm also struggling to find info or a plugin for cross-browser 
copy/paste functionality, anyone know of one? I found this 
http://yangshuai.googlepages.com/jquerycopyplugin but it doens't seem to 
work with v1.2.


   Any other comments on improving the code would be appreciated too.

   Thanks,
   Rob


  1   2   >