Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-29 Thread Klaus Hartl
Rey Bango schrieb:
> Dustin has strong ties to the YUI! camp being a former Yahooligan but I 
> think he realizes that YUI! can be daunting for the average developer. I 
> don't think its an ego thing per se as much as I think he's trying to 
> abstract it a bit to make YUI! more attractive. Also, he and John are 
> friends and I'm sure that that contributed to DED's attempts to be as 
> straightforward syntactically as jQuery.
> 
> Rey...


Again, nobody should take that as an unfriendly competition, no matter 
what library. And the fact that DEDChain looks similiar to jQuery just 
shows how well designed jQuery is.


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Interface Library - What order is it built in? / bug in IE7 Draggable revert

2007-03-29 Thread Dan G. Switzer, II
I found an issue in the idrag.js file on line 135 of idrag.js file. This
lines:

if (elm.dragCfg.oP != 'relative' && elm.dragCfg.oP !=
'absolute') {
dEs.position = 'relative';
}

The setting of the position of the element to "relative" seems to cause a
weird problem for me in IE7. If the element is in a scrollable  tag,
and you've got the revert set to "true" after the element has "reverted"
back to it's original state, the element will not scroll properly.

Commenting line 135 fixes this problem (and I haven't seen any other adverse
effects.)

Anyway, I was wondering what order the compressed interface.js is build in.
It should would be nice in the online library builder would allow you to
choice whether or not you want the code compressed--that way I could
download just the files I need, correct any bugs and then compress when I go
live.

Also, is there documentation anywhere that describes the dependencies used
in the Interface library?

Thanks,
Dan


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Mike Alsup
Hi Brandon,

Thanks for the feedback -  much appreciated.  I'm pretty sure the
Safari xml problem has to do with Safari not handling an xml response
to the iframe.  Roger has confirmed this as well, although he pointed
out that the latest builds seem to work.  To be honest, I'm running
out of ideas for this problem and so the file upload feature may have
the caveat of not supporting xml responses.

Mike


On 3/29/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> On 3/29/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > Beta 4 is available now at:  http://www.malsup.com/jquery/form/file/
> >
> > Things seem to work well on ie6, ei7, ff2, and op9.  I'm still trying
> > to sort out issues with op8 and Safari.
>
> Really cool stuff Mike!
>
> ff2 and op9 on mac worked perfectly for me. Safari worked great for
> everything but xml. When trying to submit with xml selected the
> overlay would just hang. It looked like it submitted but just didn't
> get the response ... but I'm unsure if it actually did submit.
>
> --
> Brandon Aaron
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Brandon Aaron
On 3/29/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> Beta 4 is available now at:  http://www.malsup.com/jquery/form/file/
>
> Things seem to work well on ie6, ei7, ff2, and op9.  I'm still trying
> to sort out issues with op8 and Safari.

Really cool stuff Mike!

ff2 and op9 on mac worked perfectly for me. Safari worked great for
everything but xml. When trying to submit with xml selected the
overlay would just hang. It looked like it submitted but just didn't
get the response ... but I'm unsure if it actually did submit.

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Serializing a form to JSON

2007-03-29 Thread ashutosh bijoor

Hi Patrick

You're right. I have (had) not found it either, and had written this utility
to convert the serialized data into JSON, which you may find useful - the
name is a bit weird, but does the job:

// @jsfn R121.SectionMgr.params2json(parray)
// Converts parameter array received from serializing the form into JSON
$.params2json = function(d) {
   if (d.constructor != Array) {
   return d;
   }
   var data={};
   for(var i=0;i wrote:


Hi Ashutosh,

I'm using your excellent deserialize function to set UI elements via an
asynch call to some JSON data via the Yahoo UI connection manager. I also
really need to serialize the form elements to JSON. I am very new to JQuery.
I looked everywhere for "Mark Constable's serialize function", which you
mention, but I cannot find it. The closest I could find was formSerialize()
at http://www.malsup.com/jquery/form/#api, but it only serializes to a
querystring, not JSON. Any ideas on how I might do this?

Thank you,

Patrick





--
Reach1to1 Technologies
http://www.reach1to1.com
http://on2.biz
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Odd IE7 Problem

2007-03-29 Thread Alex Ezell
This might not be a jQuery issue, but I think it is.

First, I need to confirm that executing a search on this page does
indeed end up in an error.

http://strtest.alexezell.com/search/

The error IE7 gives is:
Webpage has expired
Most likely cause:
The local copy of this webpage is out of date, and the website
requires that you download it again.

This is even with friendly errors turned off.

Sometimes, the correct content flashes, but then is replaced by the error page.

It works like a charm in FF2.

Any other testers (platforms) out there would be helpful...

/alex

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] More Filtering Results

2007-03-29 Thread Alex Ezell
Thanks to the list, I was introduced to filter() and the awesome combo
of CSS and XPath selectors.

Right now, this is the code I have for filtering. It is triggered by
an onChange event from Interface's slider(). I also have links that
can trigger it, so there's that.

Here's the script:
function filterResults(field,value) {
$('.resultPost:visible').filter(function(index) {
return ($(field, this).text() > value);
}).DropOutUp(500);
$('.resultPost:hidden').filter(function(index) {
return ($(field, this).text() < value);
}).DropInUp(500);
}

This is what I started with:
$(".searchResult").show().filter(function(index) {
return ($(".resultPrice", this).text() > filterPrice);
}).hide();

but the chaining caused some issues when I wanted to animate the
hiding and showing. It looked like my search results were dancing.

So, my question is. How can I clean up the top function I've ended up
with? It works, but I just know there might be a cleaner way.

/alex

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Mike Alsup
Beta 4 is available now at:  http://www.malsup.com/jquery/form/file/

Things seem to work well on ie6, ei7, ff2, and op9.  I'm still trying
to sort out issues with op8 and Safari.

Mike

On 3/29/07, Kush Murod <[EMAIL PROTECTED]> wrote:
> So when is it going alpha can't wait :)

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] nightly builds

2007-03-29 Thread Brian Miller
It hasn't worked since the one time that you forced it (around r1485 or so).

- Brian


> I think he means with the builds being generated. I think it's having
> problems building the right builds, again.
>
> --John
>
> On 3/29/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
>> What kind of problems are you having? I do know that there are some
>> issues with fx in the nightlies but I don't know of any other issues.
>>
>> --
>> Brandon Aaron
>>
>> On 3/29/07, mmjaeger <[EMAIL PROTECTED]> wrote:
>> >
>> > anybody else experiencing problems with the nightly build downloads?
>> > --
>> > View this message in context:
>> http://www.nabble.com/nightly-builds-tf3488239.html#a9740412
>> > Sent from the JQuery mailing list archive at Nabble.com.
>> >
>> >
>> > ___
>> > jQuery mailing list
>> > discuss@jquery.com
>> > http://jquery.com/discuss/
>> >
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Converting old solution to jQuery

2007-03-29 Thread Shelane Enos
I have a solution that was written with a minimalist, basic AJAX file.  I
would love to upgrade to jQuery, but I'm still such a newbie that my brain
isn't functioning.

I have a list of photos returned from my database with dynamic loop
counting.  Each row is currently this:





That onclick function is passing page that needs to do the processing, the
div ID (where it's going to display the response message), and the current
loop count - 1 to set the value of the hidden field.

It calls this function:

function rmPhoto(data, message, loop){
if (confirm("Are you sure you want to delete this photo?")){
if(!document.album.photo.length > 0)
document.album.photo[loop].value = 0;
else
document.album.photo.value = 0;
processData('/apps/photos/runtime.lasso', data, message);
}
return false;
}

processData is basic AJAX function to call the file, pass the data, and
return info to the div to display.

So, I'll need to find all divs with class "Text2"
find the a tag within that div
bind a click function to that a tag
which will:
 do a load to that div - this I believe will obliterate any all
items in the div, which is actually fine because when the main form is
processed, I would need information about a deleted photo anyway.

Any help in writing this in jQuery would be appreciated.

[Shelane]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] IF contain so click

2007-03-29 Thread Mario Moura

Hi I am trying simple things yet, so

So If a field have a value click in upload button, How can I do that?

I am trying something like that

if ($("#edit-field-image01-upload").val() > 0) $(edit-upload).submit();

macm
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] minor change to contextMenu plugin

2007-03-29 Thread Torbjorn Tornkvist
Hi,

I'm making good use of the excellent contextMenu plugin.
However, I have a little problem with the callback when
the menu has been triggered. I want to get hold of which
menu element that was choosen. Since I setup the menu
programmatically, I can't hardcode the value. Perhaps,
my poor Javscript knowledge is failing me...

I setup an object for the contextMenu binding option like this:

this.cm_owners = new Object();


for (var i=0; i < owners.length; i++) {


  this.cm_owners["#"+owners[i]] = function(t)
{this.saveOwner(owners[i],t.id);}.bind(this)

}

then, later on I setup the menu:

  $("td.owner").contextMenu("#ownerMenu", {


  bindings : this.cm_owners


  });

but this dosn't work, owners[i] is not bound in the closure...(why ?)

Well, I ended up modifying jquery.contextmenu.js so that it
also send in the menu Id, thus the above becomes:

this.cm_owners = new Object();


for (var i=0; i < owners.length; i++) {


  this.cm_owners["#"+owners[i]] = function(t,k)
{this.saveOwner(k,t.id);}.bind(this)

}

Below is the diff for the contextMenu plugin code.

Surely I'm doing something wrong so any hints...

Cheers, Tobbe


--- jquery.contextmenu.js   2007-03-30 00:18:00.0 +0200
+++ jquery.contextmenu.js~  2007-03-09 00:05:50.0 +0100
@@ -83,7 +83,7 @@
 $.each(cur.bindings, function(id, func) {
   $(id, menu).bind("click", function() {
 hide();
-func(trigger, id);
+func(trigger);
   });
 });
 menu.css({"left":e.pageX,"top":e.pageY}).show();


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-29 Thread Rey Bango
Dustin has strong ties to the YUI! camp being a former Yahooligan but I 
think he realizes that YUI! can be daunting for the average developer. I 
don't think its an ego thing per se as much as I think he's trying to 
abstract it a bit to make YUI! more attractive. Also, he and John are 
friends and I'm sure that that contributed to DED's attempts to be as 
straightforward syntactically as jQuery.

Rey...

Andy Matthews wrote:
> What's the point. Why not jump on board with jQuery too. Someone of his 
> caliber would have been a great addition to the jQuery team. I suppose 
> it's just an ego thing.
>  
>  
> andy
> 
> 
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Joao Pedrosa
> *Sent:* Thursday, March 29, 2007 4:49 PM
> *To:* discuss@jquery.com
> *Subject:* [jQuery] YUI Implementation Focus: Dustin Diaz’s DED|Chain. 
> Interview which presents an alternative to jQuery
> 
> Hey all, I thought it you would like to know that jQuery has a twin now:
> http://yuiblog.com/blog/2007/03/26/dedchain/
> 
> Cheers,
> Joao
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

-- 
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-29 Thread Yansky

>From what i understand, the point of DED|Chain is to make YUI a bit more
accessible to people.

Also, in regards to "just an ego thing"; I think it's a safe bet to say that
Dustin & John are friends, so I don't think it's an ego thing.


Andy Matthews-4 wrote:
> 
> What's the point. Why not jump on board with jQuery too. Someone of his
> caliber would have been a great addition to the jQuery team. I suppose
> it's
> just an ego thing.
>  
>  
> andy
> 
>   _  
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Joao Pedrosa
> Sent: Thursday, March 29, 2007 4:49 PM
> To: discuss@jquery.com
> Subject: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain.
> Interview which presents an alternative to jQuery
> 
> 
> Hey all, I thought it you would like to know that jQuery has a twin now:
> http://yuiblog.com/blog/2007/03/26/dedchain/
> 
> Cheers,
> Joao
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/YUI-Implementation-Focus%3A-Dustin-Diaz%E2%80%99s-DED%7CChain.-Interview-which-presents-an-alternative-to-jQuery-tf3489028.html#a9744038
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-29 Thread Joao Pedrosa

Hi,

2007/3/29, Andy Matthews <[EMAIL PROTECTED]>:


 What's the point. Why not jump on board with jQuery too. Someone of his
caliber would have been a great addition to the jQuery team. I suppose it's
just an ego thing.



On their website, there are the goals:

http://dedchain.dustindiaz.com/
Credits

Obviously much credit goes to Yahoo!'s most excellent Yahoo! User Interface
library  which is the backbone of DED|Chain
as well as Jack Slocum  for putting together a
lean, lightning speed DOM CSS
Queryingutility
which is the base of all chains for DED|Chain. Lastly, much
appreciation  goes to John
Resig's jQuery  for the inspiration of DED|Chain's
design.

The goals for DED|Chain in all honesty comes down to these three things.
They may or may not change, but these were most definitely the original
ideas.

  - Get jQuery users to explore the depth of Y!UI. Perhaps DED|Chain
  will serve as a good bridge that will bring familiarity to the seasoned
  jQuery developer.
  - Get Y!UI Developers to try something new; like jQuery. It is a
  different (and fun) style of JavaScript development. Hopefully DED|Chain can
  bridge that same gap and shed new light to the seasoned Y!UI developer.
  - Targeted at Web Developers. If you build websites on a daily basis,
  I want this to be the JavaScript library of choice. New and upcoming
  additions to the library should keep that very thing in mind.



Sounds cool.

Cheers,
Joao
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-29 Thread Andy Matthews
What's the point. Why not jump on board with jQuery too. Someone of his
caliber would have been a great addition to the jQuery team. I suppose it's
just an ego thing.
 
 
andy

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Joao Pedrosa
Sent: Thursday, March 29, 2007 4:49 PM
To: discuss@jquery.com
Subject: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain.
Interview which presents an alternative to jQuery


Hey all, I thought it you would like to know that jQuery has a twin now:
http://yuiblog.com/blog/2007/03/26/dedchain/

Cheers,
Joao

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] YUI Implementation Focus: Dustin Diaz ’s DED|Chain. Interview which presents an a lternative to jQuery

2007-03-29 Thread Joao Pedrosa

Hey all, I thought it you would like to know that jQuery has a twin now:
http://yuiblog.com/blog/2007/03/26/dedchain/

Cheers,
Joao
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading gif not animating until fadeIn completes in IE

2007-03-29 Thread Jake McGraw
Do you have a sample page?

- jake

On 3/29/07, Yansky <[EMAIL PROTECTED]> wrote:
>
> I would've thought having the gif as the div's background would be the way to
> go.
>
> Perhaps instead of appending the image onclick, you could have it there
> already with a z-index that hides it, then changed the z-index onclick.
>
>
> Robert O wrote:
> >
> > Hello everyone,
> >
> > Just enjoying reading this list, there's a lot to learn about jQuery
> > =]
> > I've managed to create a background image blend effect thats
> > triggered from a thumbnail gallery but I'm struggling with a problem on
> > one of my loading gifs in IE, it appears as expected over the thumbnail
> > but doesn't animate until the fadeOut starts. Are there some tricks to
> > using animated gifs in IE? I already changed it to an image tag rather a
> > div with the gif as a background but it still didn't really help.
> > I snipped the code that it's a part of, you can see what (i think)
> > is the relevant code:
> >
> >   // a part of the click event on the form
> >   $(currentForm).append(' loader.gif ');
> >
> >   // swapped bg images on #img and faded it in then in the fadeIn 
> > callback
> > function:
> >   $("#img").fadeOut( 0, function(){
> >   $("#bg-loader").fadeOut(400, function(){ $(this).remove(); });
> >   });
> >
> >   the css for bg-loader is:
> >   #bg-loader {
> >   display: block;
> >   background: #fff;
> >   padding: 29px; /* creates 74x74pixel square centred image */
> >   opacity: 0.8;
> >   position: absolute;
> >   top: 0;
> >   left: 0;
> >   }
> >
> >
> > If you know something that might help I'd love to hear from you,
> > it's a small niggle but it's a niggle none the less =]
> >
> > Cheers,
> > Rob
> >
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/loading-gif-not-animating-until-fadeIn-completes-in-IE-tf3488506.html#a9742172
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] addons.mozilla.org uses jQuery!

2007-03-29 Thread Matt Stith

Its used in those 4 functions too, even though thats about it.

On 3/29/07, Andy Matthews <[EMAIL PROTECTED]> wrote:


 Cool...

Too bad it looks like they're only using it to determine if the document
is ready. From addons.js:
https://addons.mozilla.org/js/addons.js

$(document).ready(ExpandListItem_init);
$(document).ready(CollapseListItem_init);
$(document).ready(ExpandAll_init);
$(document).ready(CollapseAll_init);

And also to run thickbox.

 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Matt Stith
*Sent:* Thursday, March 29, 2007 3:55 PM
*To:* jQuery Discussion
*Subject:* Re: [jQuery] addons.mozilla.org uses jQuery!

Dunno if its old news, but i certainly didnt know that, thats pretty cool!

On 3/23/07, Sebastian Busch <[EMAIL PROTECTED] > wrote:
>
> Hi there,
>
> I hope this is not old news:
>
> http://addons.mozilla.org uses jQuery!
>
> --
> cu
> Sebastian
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] addons.mozilla.org uses jQuery!

2007-03-29 Thread Andy Matthews
Cool...
 
Too bad it looks like they're only using it to determine if the document is
ready. From addons.js:
https://addons.mozilla.org/js/addons.js
 
$(document).ready(ExpandListItem_init);
$(document).ready(CollapseListItem_init);
$(document).ready(ExpandAll_init);
$(document).ready(CollapseAll_init);
 
And also to run thickbox.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Stith
Sent: Thursday, March 29, 2007 3:55 PM
To: jQuery Discussion
Subject: Re: [jQuery] addons.mozilla.org uses jQuery!


Dunno if its old news, but i certainly didnt know that, thats pretty cool!


On 3/23/07, Sebastian Busch <[EMAIL PROTECTED]
 > wrote: 

Hi there,

I hope this is not old news:

http://addons.mozilla.org uses jQuery!

--
cu
Sebastian

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] FW: addons.mozilla.org uses jQuery!

2007-03-29 Thread Andy Matthews
And it's not as surprising as you might think, especially when you remember
that John Resig works for Mozilla (I believe).

  _  

From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 29, 2007 4:06 PM
To: 'jQuery Discussion'
Subject: RE: [jQuery] addons.mozilla.org uses jQuery!


Cool...
 
Too bad it looks like they're only using it to determine if the document is
ready. From addons.js:
https://addons.mozilla.org/js/addons.js
 
$(document).ready(ExpandListItem_init);
$(document).ready(CollapseListItem_init);
$(document).ready(ExpandAll_init);
$(document).ready(CollapseAll_init);
 
And also to run thickbox.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Stith
Sent: Thursday, March 29, 2007 3:55 PM
To: jQuery Discussion
Subject: Re: [jQuery] addons.mozilla.org uses jQuery!


Dunno if its old news, but i certainly didnt know that, thats pretty cool!


On 3/23/07, Sebastian Busch <[EMAIL PROTECTED]
 > wrote: 

Hi there,

I hope this is not old news:

http://addons.mozilla.org uses jQuery!

--
cu
Sebastian

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] addons.mozilla.org uses jQuery!

2007-03-29 Thread Matt Stith

Dunno if its old news, but i certainly didnt know that, thats pretty cool!

On 3/23/07, Sebastian Busch <[EMAIL PROTECTED]> wrote:


Hi there,

I hope this is not old news:

http://addons.mozilla.org uses jQuery!

--
cu
Sebastian

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading gif not animating until fadeIn completes in IE

2007-03-29 Thread Yansky

I would've thought having the gif as the div's background would be the way to
go. 

Perhaps instead of appending the image onclick, you could have it there
already with a z-index that hides it, then changed the z-index onclick.


Robert O wrote:
> 
> Hello everyone,
> 
> Just enjoying reading this list, there's a lot to learn about jQuery
> =]
> I've managed to create a background image blend effect thats 
> triggered from a thumbnail gallery but I'm struggling with a problem on 
> one of my loading gifs in IE, it appears as expected over the thumbnail 
> but doesn't animate until the fadeOut starts. Are there some tricks to 
> using animated gifs in IE? I already changed it to an image tag rather a 
> div with the gif as a background but it still didn't really help.
> I snipped the code that it's a part of, you can see what (i think) 
> is the relevant code:
> 
>   // a part of the click event on the form
>   $(currentForm).append(' loader.gif ');
>   
>   // swapped bg images on #img and faded it in then in the fadeIn callback
> function:
>   $("#img").fadeOut( 0, function(){
>   $("#bg-loader").fadeOut(400, function(){ $(this).remove(); });
>   });
> 
>   the css for bg-loader is:
>   #bg-loader { 
>   display: block; 
>   background: #fff; 
>   padding: 29px; /* creates 74x74pixel square centred image */
>   opacity: 0.8; 
>   position: absolute; 
>   top: 0; 
>   left: 0; 
>   }
> 
> 
> If you know something that might help I'd love to hear from you, 
> it's a small niggle but it's a niggle none the less =]
> 
> Cheers,
> Rob
> 
>   
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/loading-gif-not-animating-until-fadeIn-completes-in-IE-tf3488506.html#a9742172
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg

Hey, no problem, Richard. I hope I didn't seem too abrupt with my reply.

By the way, :nth-child() is actually a CSS3 (pseudo-class) selector:

http://www.w3.org/TR/css3-selectors/#nth-child-pseudo

it'll be really cool when browsers start supporting these. In the  
meantime, we have jQuery. :)

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



On Mar 29, 2007, at 2:52 PM, Richard Thomas wrote:


Sorry I don't know the xpath/selectors that well yet.

I "had" problems with just the show and hide in the past, so I had to
use custom code like the following

toggleClasstr = 'block'
// Supports DOM2 requires specific style
if ( window.addEventListener != undefined ) {
   toggleClasstr = 'table-row';
}

Looks like this was fixed in jquery which is nice I can get rid of my
extra code.

On 3/29/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:

On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote:
You would need to hide every cell in the row

 I don't know what you're getting at here. If you mean every cell  
in the
*column*, then that is exactly what 'td:nth-child(n)' would get.  
But maybe

I'm misunderstanding you.


also I don't know if its
fixed in jQuery but IE and Firefox differ in how to unhide the cell,
one requires being set to block mode the other to table-cell or
something, don't remember off the top of my head.

This is only an issue with the animated show and hide methods.  
Just using

.show() and .hide() isn't a problem.

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





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] comet

2007-03-29 Thread Glen Hinkle
Ok, I believe I've fixed it.  It turns out I didn't need to print a  
null character; I replaced it with an empty string ($r->print("")), &  
the demo worked as expected in Firefox & Opera.


I assume IE still works as well, but I don't have a Windows box, so I  
can't say for sure.


Again, this is mostly a server-side issue, but the example now works  
again.


-g


On Mar 29, 2007, at 3:42 AM, Glen Hinkle wrote:


It seems that Opera can't handle a null character.

In order to detect if the client has gone away, the server prints a  
null character to determine whether the connection is aborted:


$r->print("\0");
last if $r->connection->aborted;

This isn't really a jquery problem, just an incompatibility between  
Opera & my method of client detection.  If you come up with another  
way to detect client abandonment, the jquery plugin should work  
fine.  You could also just rely on a timeout if you don't think  
that many Opera users will be hitting your site/application.


-g


On Mar 26, 2007, at 1:04 AM, John Beppu wrote:


Glen,

Does this still work for Opera.  It seems to work OK w/ Firefox,  
but I'm having a hard time getting it to work on Opera 9.10 for  
OSX.  Even http://empireenterprises.com/_comet.html is not working  
as expected for me in Opera.


It never seems to get into xmlhttp.readyState == 3 for some reason.


On 1/29/07, Glen < [EMAIL PROTECTED]> wrote:
There is still the issue of using the IE hack that gmail uses, &
covering the inconsistencies between the browsers, which I consider
the hardest part.
The server-side component is necessary, yes, but @ the most basic
level, all that is needed is a scripted while loop with a sleep(1) in
it.

As it stands, I've just about got it covered.  Still working with
Opera & IE to make sure I have all the angles covered.

-g


On Jan 29, 2007, at 3:22 AM, zaadjis wrote:

>
> http://chabotc.nl:2001/chat.html (IRC backend)
> http://lingr.com
> http://ajaxian.com/index.php?s=comet
>
> since comet involves server-side stuff, this really wouldn't be a
> jQuery
> plugin, more like "a chat app using jetty, php, jQuery, etc." (for
> example)
>
>
> Glen-13 wrote:
>>
>> I would definitely be willing to provide a plugin, if someone out
>> there has any experience with getting streaming data with IE.
>> According to Alex Russel, IE requires usage of the ActiveXObject
>> ("htmlfile") call, which apparently is the IHTMLDocument2 object.
>>
>> With Firefox, streaming data is easy as pie.  With IE, however, I
>> can't seem to make it work; if anyone has a working example,  
please

>> let me know.
>>
>> -g
>>
>> ~
>> [EMAIL PROTECTED] ie.
>>
>>
>> On Jan 27, 2007, at 10:24 AM, Matt Stith wrote:
>>
>>> not as far as I have heard, but i would be interested in anything
>>> that
>>> has, or maybe a Comet plugin? anyone willing?
>>>
>>> On 1/27/07, Glen <[EMAIL PROTECTED]> wrote:
 all,

 Are there any projects out there with the intent of providing  
comet

 functionality within jquery?

 -g

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

>>>
>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/comet-
> tf3126886.html#a8685650
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] loading gif not animating until fadeIn completes in IE

2007-03-29 Thread Robert O'Rourke
Hello everyone,

Just enjoying reading this list, there's a lot to learn about jQuery =]
I've managed to create a background image blend effect thats 
triggered from a thumbnail gallery but I'm struggling with a problem on 
one of my loading gifs in IE, it appears as expected over the thumbnail 
but doesn't animate until the fadeOut starts. Are there some tricks to 
using animated gifs in IE? I already changed it to an image tag rather a 
div with the gif as a background but it still didn't really help.
I snipped the code that it's a part of, you can see what (i think) 
is the relevant code:

// a part of the click event on the form
$(currentForm).append('');

// swapped bg images on #img and faded it in then in the fadeIn 
callback function:
$("#img").fadeOut( 0, function(){
$("#bg-loader").fadeOut(400, function(){ $(this).remove(); });
});

the css for bg-loader is:
#bg-loader { 
display: block; 
background: #fff; 
padding: 29px; /* creates 74x74pixel square centred image */
opacity: 0.8; 
position: absolute; 
top: 0; 
left: 0; 
}


If you know something that might help I'd love to hear from you, 
it's a small niggle but it's a niggle none the less =]

Cheers,
Rob




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] nightly builds

2007-03-29 Thread mmjaeger

I'm just unable to download them using IE7 - the links don't work for me.

John Resig wrote:
> 
> I think he means with the builds being generated. I think it's having
> problems building the right builds, again.
> 
> --John
> 
> On 3/29/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
>> What kind of problems are you having? I do know that there are some
>> issues with fx in the nightlies but I don't know of any other issues.
>>
>> --
>> Brandon Aaron
>>
>> On 3/29/07, mmjaeger <[EMAIL PROTECTED]> wrote:
>> >
>> > anybody else experiencing problems with the nightly build downloads?
>> > --
>> > View this message in context:
>> http://www.nabble.com/nightly-builds-tf3488239.html#a9740412
>> > Sent from the JQuery mailing list archive at Nabble.com.
>> >
>> >
>> > ___
>> > jQuery mailing list
>> > discuss@jquery.com
>> > http://jquery.com/discuss/
>> >
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/nightly-builds-tf3488239.html#a9740944
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Known memory leaks?

2007-03-29 Thread Choan Gálvez

On 29/03/2007, at 19:02, Brandon Aaron wrote:

> The ready hack for IE shouldn't be leaking but there is a patch to
> change it up a little to avoid a weird issue with iframes and
> refreshing the page.
>
> http://dev.jquery.com/ticket/1061

It shouldn't leak, but it does. And, although the leak is minimal, it  
should be avoided.

Currently I'm working on an app which is going to be used 8 hours a  
day by office employees. That means there wil be a lot of page  
navigations, so, just 10 KB leaked in every page will lead to disaster.

I'll submit a new patch if the version I'm working on gives better  
results.

Bye.

>
> On 3/29/07, Choan Gálvez <[EMAIL PROTECTED]> wrote:
>>
>> On 28/03/2007, at 17:09, Markus Peter wrote:
>>
>>> [...]
>>>
>>> We are currently trying to eliminate the memory leaks but are now
>>> running into a dead end.
>>
>> Same here. I'm currently investigating the "ready" hack for IE.
>>
>> As the `onreadystatechange` handler for the deferred script is
>> defined as a closure, it seems as a candidate for leaking.
>>
>> Anyone?
>> --
>> Choan Gálvez
>> <[EMAIL PROTECTED]>
>> 
>>
>>
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

-- 
Choan Gálvez
<[EMAIL PROTECTED]>





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Abel Tamayo

@Mika: I just tried your solution and it works like a charm. Keep up with
the good work because your plugin is excellent; this is my first time using
Ajax at all and it's been pretty straightforward even using a your plugin
because it's easily customizable and solid.

On 3/29/07, Mika Tuupola <[EMAIL PROTECTED]> wrote:



On Mar 29, 2007, at 7:47 PM, Abel Tamayo wrote:

> Thanks very much, Mikka, will be trying it this evening.

Youre welcome :) Also make sure that you are running latest version
of plugin. Support for callbacks was added in previous version.

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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] nightly builds

2007-03-29 Thread John Resig
I think he means with the builds being generated. I think it's having
problems building the right builds, again.

--John

On 3/29/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> What kind of problems are you having? I do know that there are some
> issues with fx in the nightlies but I don't know of any other issues.
>
> --
> Brandon Aaron
>
> On 3/29/07, mmjaeger <[EMAIL PROTECTED]> wrote:
> >
> > anybody else experiencing problems with the nightly build downloads?
> > --
> > View this message in context: 
> > http://www.nabble.com/nightly-builds-tf3488239.html#a9740412
> > Sent from the JQuery mailing list archive at Nabble.com.
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] nightly builds

2007-03-29 Thread Brandon Aaron
What kind of problems are you having? I do know that there are some
issues with fx in the nightlies but I don't know of any other issues.

--
Brandon Aaron

On 3/29/07, mmjaeger <[EMAIL PROTECTED]> wrote:
>
> anybody else experiencing problems with the nightly build downloads?
> --
> View this message in context: 
> http://www.nabble.com/nightly-builds-tf3488239.html#a9740412
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Brandon Aaron
The only time this still acts up is if you have the element
display:none; in a style sheet. However there is a ticket to fix this
issue with a patch that works 99% of the time.

--
Brandon Aaron

On 3/29/07, Richard Thomas <[EMAIL PROTECTED]> wrote:
> Sorry I don't know the xpath/selectors that well yet.
>
> I "had" problems with just the show and hide in the past, so I had to
> use custom code like the following
>
> toggleClasstr = 'block'
> // Supports DOM2 requires specific style
> if ( window.addEventListener != undefined ) {
>toggleClasstr = 'table-row';
> }
>
> Looks like this was fixed in jquery which is nice I can get rid of my
> extra code.
>
> On 3/29/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> > On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote:
> > You would need to hide every cell in the row
> >
> >  I don't know what you're getting at here. If you mean every cell in the
> > *column*, then that is exactly what 'td:nth-child(n)' would get. But maybe
> > I'm misunderstanding you.
> >
> >
> > also I don't know if its
> > fixed in jQuery but IE and Firefox differ in how to unhide the cell,
> > one requires being set to block mode the other to table-cell or
> > something, don't remember off the top of my head.
> >
> > This is only an issue with the animated show and hide methods. Just using
> > .show() and .hide() isn't a problem.
> >
> > --Karl
> > _
> > Karl Swedberg
> > www.englishrules.com
> > www.learningjquery.com
> >
> >
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] nightly builds

2007-03-29 Thread mmjaeger

anybody else experiencing problems with the nightly build downloads?
-- 
View this message in context: 
http://www.nabble.com/nightly-builds-tf3488239.html#a9740412
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Richard Thomas
Sorry I don't know the xpath/selectors that well yet.

I "had" problems with just the show and hide in the past, so I had to
use custom code like the following

toggleClasstr = 'block'
// Supports DOM2 requires specific style
if ( window.addEventListener != undefined ) {
   toggleClasstr = 'table-row';
}

Looks like this was fixed in jquery which is nice I can get rid of my
extra code.

On 3/29/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote:
> You would need to hide every cell in the row
>
>  I don't know what you're getting at here. If you mean every cell in the
> *column*, then that is exactly what 'td:nth-child(n)' would get. But maybe
> I'm misunderstanding you.
>
>
> also I don't know if its
> fixed in jQuery but IE and Firefox differ in how to unhide the cell,
> one requires being set to block mode the other to table-cell or
> something, don't remember off the top of my head.
>
> This is only an issue with the animated show and hide methods. Just using
> .show() and .hide() isn't a problem.
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Can it be done using JQuery

2007-03-29 Thread Kenneth

It's sort of a novel concept, but I agree that it looks like it was
implemented only to add some sort of 'wow' effect. It's not needed at all.
IMO, the problem with it is, is that it doesn't give you any frame of
reference for the movement. For example, if you were looking at a large map,
and clicking would center you on the map (as in Google maps), then that
would be cohesive and not as confusing; however, just blindly shuttling the
user to some seemingly-arbitrary location on your page seems a bit haphazard
to say the least.

Also, it completely breaks navigation.. Did I go up? Down? Left? Right?
Where is the previous content I was looking at, and how can I return there?
If this *was* ported to jQuery, hopefully the history/remote plugin would be
utilized so that navigation would remain.


On 3/29/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:


 I agree, I found myself scrolling around looking for other content.  I've
seen flash implementations that were similar but you could see all the pages
by scrolling horizontally.  This one, I don't see the point...just confuses
people.

-- Josh



- Original Message -
*From:* Andy Matthews <[EMAIL PROTECTED]>
*To:* 'jQuery Discussion' 
*Sent:* Thursday, March 29, 2007 6:06 AM
*Subject:* Re: [jQuery] Can it be done using JQuery

This site looks pretty cool, but that scrolling functionality TOTALLY
causes both vert and hor scrollbars in IE7. Don't see a point to it...

 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Kush Murod
*Sent:* Thursday, March 29, 2007 1:05 AM
*To:* jQuery Discussion
*Subject:* Re: [jQuery] Can it be done using JQuery

Smooth slide affect actually

I know that interface offers scrollto which scrolls you smoothly to
specified target - vertically

Question is is it possible to scrollto target diagonally, has anyone
already something similar in JQuery?

--kush


Erik Beeson wrote:

What effect are you referring to?

--Erik


On 3/28/07, Kush Murod <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:

Hi guys,

Saw this awesome site, great concept, written in prototype
http://www.invisiblechildren.com/displaceMe/

Was just wondering if same idea can be accomplished using JQuery.

--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/

___
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/


--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011

 --

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Sortable list example has gone

2007-03-29 Thread Yoyo
> Is this what you are looking for?
> 
> http://interface.eyecon.ro/demos/sort_lists.html

Not exacly. It was multilevel list (a tree) and you can reorder and sort its 
items at the same time. It was test example for new sorting algorigthm.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg

On Mar 29, 2007, at 1:40 PM, Richard Thomas wrote:

You would need to hide every cell in the row


I don't know what you're getting at here. If you mean every cell in  
the *column*, then that is exactly what 'td:nth-child(n)' would get.  
But maybe I'm misunderstanding you.



also I don't know if its
fixed in jQuery but IE and Firefox differ in how to unhide the cell,
one requires being set to block mode the other to table-cell or
something, don't remember off the top of my head.


This is only an issue with the animated show and hide methods. Just  
using .show() and .hide() isn't a problem.


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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Sortable list example has gone

2007-03-29 Thread David Dexter
Is this what you are looking for?

http://interface.eyecon.ro/demos/sort_lists.html

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Yoyo
Sent: Thursday, March 29, 2007 11:16 AM
To: discuss@jquery.com
Subject: [jQuery] Sortable list example has gone

Hi,

There was one day on this list some nice example of reordering list (tree)
using 
some new sorting algorithm in interface. Working example was at 
http://interface.eyecon.ro/demos/test_sort.html but now it's gone.

I'm working now on a project where it will be very usefull to have such a 
functionality, is it stable or just test example. Anyone have a copy of it 
somewhere?

Thanks in advance,
Yoyo

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Sortable list example has gone

2007-03-29 Thread Yoyo
Hi,

There was one day on this list some nice example of reordering list (tree) 
using 
some new sorting algorithm in interface. Working example was at 
http://interface.eyecon.ro/demos/test_sort.html but now it's gone.

I'm working now on a project where it will be very usefull to have such a 
functionality, is it stable or just test example. Anyone have a copy of it 
somewhere?

Thanks in advance,
Yoyo

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Roman Weich
Baxter schrieb:
> Any ideas how one could hide/show table columns, rather than rows?
> 
I've made something like this some days ago.
Maybe you want to take a look: 
http://p.sohei.org/jquery-plugins/columnmanager

It's just a demo page right now, as I haven't found the time to document 
it yet.

Cheers,
/rw

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Mika Tuupola

On Mar 29, 2007, at 7:47 PM, Abel Tamayo wrote:

> Thanks very much, Mikka, will be trying it this evening.

Youre welcome :) Also make sure that you are running latest version  
of plugin. Support for callbacks was added in previous version.

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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Binding to multiple items with one call

2007-03-29 Thread Shelane Enos
Thanks, perfect.  I didn¹t see any examples of entering multiple items and
trying to do a search through the list wasn¹t coming up with what I needed.


On 3/29/07 9:49 AM, "Karl Swedberg" <[EMAIL PROTECTED]> wrote:

> I think you just have a couple extra single-quotes in there:
> 
>>  $j('#person', '#assigned').blur(function() { sendok=true;
>> alert(sendok);} );
> 
> the selector here is trying to get the #person element within the context of
> the #assigned  element. if you want to get both, you need to enclose them in
> the same set of quotation marks like this:
> 
>    $j('#person, #assigned').blur(function() { sendok=true;
>       alert(sendok);} );
> 
> 
> 
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
> 
> 
>  
> 
> On Mar 29, 2007, at 12:22 PM, Shelane Enos wrote:
> 
>> This doesn't seem to be working:
>> bindBlur = function(){
>>         $j('#person', '#assigned').blur(function() { sendok=true;
>> alert(sendok);} );
>>     }
>> 
>> But this does:
>> 
>> bindBlur = function(){
>>         $j('#person').blur(function() { sendok=true; alert(sendok);} );
>>     }
>> 
>> 
>> Do I have to do them all individually or am I just putting those IDs in
>> incorrectly?
>> 
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>  
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Richard Thomas
You would need to hide every cell in the row, also I don't know if its
fixed in jQuery but IE and Firefox differ in how to unhide the cell,
one requires being set to block mode the other to table-cell or
something, don't remember off the top of my head.

On 3/29/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> If it's the third column, you could also try this:
>
> $('td:nth-child(3)').hide()
>
> If you have s in your table and need to hide them, too, you can do this:
> $('td:nth-child(3), th:nth-child(3)').hide()
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
> On Mar 29, 2007, at 12:36 PM, Alexandre Plennevaux wrote:
>
> Using the  element maybe?
>
> Otherwise, if it is the 3rd column you could do this:
>
> $("td+td+td").hide();
>
> I dunno if that works, but it's the css way to address the 3rd column.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Baxter
> Sent: jeudi 29 mars 2007 16:28
> To: discuss@jquery.com
> Subject: [jQuery] Collapsing table Columns?
>
> Any ideas how one could hide/show table columns, rather than rows?
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> --
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007
> 16:23
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] hoverIntent r5 = plug-in ready to be plugged-in

2007-03-29 Thread Brian Cherne

Thank you. That really means a lot! :)

I had a similar need about 6 months ago. A client wanted a lot of
information displayed in a tooltip, and there was the possibility of ~30
tooltips per page. We couldn't load all of that data at one time, so I wrote
the beginnings of this script in pure, custom JavaScript. Since then I've
found a few other instances where I've wanted something similar, but didn't
want to rewrite my custom code for another custom use.

Then, in January, I met jQuery... I found the hover function... and at some
point I realized my "determine user intent" script was really a modified
version of hover, and I challenged myself to hack it and make my first
plug-in.

jQuery not only provided that crucial second-stage of inspiration, but it
enabled me to write this plug-in in the most abstract/re-usable way... and
then provide me with a mechanism for packaging it up and distributing it to
the community. ...so empowering!

I guess this is my long-winded way of saying I agree with you. jQuery has
made coding JavaScript and building interactive sites/applications
pleasurable. :)

...and I'm glad someone else is finding a use for my plug-in. Thanks again.

Brian.



On 3/28/07, Theo Welch <[EMAIL PROTECTED]> wrote:


Great work, Brian! Thanks for sharing this really helpful plug-in!

On a site I am building (NDA'd) I am currently using setTimeout() to delay
drop-down menu appearance (and disappearance) to avoid that "flicker"
problem so common with drop-downs. It actually works quite well. But
hoverIntent creates an even more intuitive and slick UI. I find that
"insignificant" interface details like this can really make a website a
pleasurable (or awful) to use. And it is jQuery with flexible plugins like
yours that make websites a pleasure to build.

Cheers,
-THEO-



On Mar 28, 2007, at 2:25 AM, Brian Cherne wrote:

I'm happy to announce that my first plug-in, hoverIntent, is ready for
general use.

< http://cherne.net/brian/resources/jquery.hoverIntent.html >

hoverIntent is a function that attempts to determine the user's intent
onMouseOver. It works like, was derived from and is interchangeable with
jQuery's built-in hover. However, instead of immediately calling the
onMouseOver function, hoverIntent tracks the user's mouse and waits until it
slows down enough before making the call.

hoverIntent r5
... is $-friendly
... has configurable options
... has onMouseOut timeout option

Thanks for all the feedback from before. I hope this is the first of many
plug-ins. :)

Brian.

P.S. How does one get their plug-in linked to from the jQuery plug-ins
page?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Quickly find the width of the window

2007-03-29 Thread Brandon Aaron
You could use the dimensions plugin which extends the $().width()
method to work on window and document.

$(window).width();

http://brandon.jquery.com/plugins/dimensions/

--
Brandon Aaron

On 3/29/07, Kenneth Love <[EMAIL PROTECTED]> wrote:
> Hey all, I'm needing to find the width of the window so I can find the
> relative position of an element. Any help?
>
> Kenneth
>
>
> --
> => the blog from beyond <=
> => www.eyeheartzombies.com <=
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Any regular expression gurus here?

2007-03-29 Thread Blair Mitchelmore
Also, when perl 6 is released it will have support for a much more 
powerful system called rules which can handle nested parentheses quite 
handily.

-blair

Jake McGraw wrote:
> Christof:
>
> This may be true of traditional regular expressions, which is
> something you'll encounter in a college level automata class but very
> rarely in the real world. The fact is that most modern, since the 80s
> at least, regex implementations (JavaScript, Java, PHP,...) can handle
> many "nonregular" grammars, by making use of features such as
> look-ahead, atomic grouping, backreferences, etc.  For specifics on
> this, see:
>
> http://en.wikipedia.org/wiki/Regular_expression#Patterns_for_irregular_languages
>
> - jake
>
> On 3/29/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>>
>> On Mar 29, 2007, at 4:55 AM, Christof Donat wrote:
>>
>>
>> Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy)
>>
>> grammars. You can not express nested parentheses in regular grammar, you
>> need
>>
>> a context free (Type 2) but not regular grammar.
>> Christof, that is fascinating! Thanks for that information!
>>
>>
>> This is something I'll have to remember for the next dinner conversation
>> with friends. You never know where Noam Chomsky[1] might pop up in a
>> conversation. :)
>>
>>
>> --Karl
>>
>> [1] http://en.wikipedia.org/wiki/Chomsky
>> _
>> Karl Swedberg
>> www.englishrules.com
>> www.learningjquery.com
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Quickly find the width of the window

2007-03-29 Thread Kenneth Love

Hey all, I'm needing to find the width of the window so I can find the
relative position of an element. Any help?

Kenneth


--
=> the blog from beyond <=
=> www.eyeheartzombies.com <=
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Aaron Heimlich

Your welcome. HTH.

On 3/29/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:


 Also… thanks for actually answering the question I asked

along with your other help.



Rick





*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Aaron Heimlich
*Sent:* Thursday, March 29, 2007 10:33 AM
*To:* jQuery Discussion
*Subject:* Re: [jQuery] Correct way to setup a callback function



On 3/29/07, *Rick Faircloth* <[EMAIL PROTECTED]> wrote:

$.post("Calc_Test_Process_Field_chris.cfm", Params, toggleButton);


That's definitely the correct syntax 
(http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29).
Try adding something like

alert("Toggling submit button");

to the beginning of toggleButton to see whether it's being called or not.

Another thing I just realized is that toggleButton only gets called if the
request was successful. Try this:

var settings = {
type: "POST",
url: "Calc_Test_Process_Field_chris.cfm",
data: Params,
success: toggleButton,
error: requestError
};
jQuery.ajax(settings);

// note, this assumes you are using Firefox with Firebug 1.0 installed
function requestError(request, message, exception) {
console.log("Danger Will Robinson! Danger!");
console.log("An error occurred when requesting %s", settings.url);
console.log("Settings: %o", settings);
console.log("HTTP Status Code: %d", request.status");
console.log("HTTP Status Message: %s", request.statusMessage);
console.log("jQuery Status Message: %s", message);
console.log("Response Body: %s", request.responseText);
console.log("Exception %o", exception);
}

and see if requestError gets called.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Known memory leaks?

2007-03-29 Thread Brandon Aaron
The ready hack for IE shouldn't be leaking but there is a patch to
change it up a little to avoid a weird issue with iframes and
refreshing the page.

http://dev.jquery.com/ticket/1061

--
Brandon Aaron

On 3/29/07, Choan Gálvez <[EMAIL PROTECTED]> wrote:
>
> On 28/03/2007, at 17:09, Markus Peter wrote:
>
> > [...]
> >
> > We are currently trying to eliminate the memory leaks but are now
> > running into a dead end.
>
> Same here. I'm currently investigating the "ready" hack for IE.
>
> As the `onreadystatechange` handler for the deferred script is
> defined as a closure, it seems as a candidate for leaking.
>
> Anyone?
> --
> Choan Gálvez
> <[EMAIL PROTECTED]>
> 
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Binding to multiple items with one call

2007-03-29 Thread Karl Swedberg

I think you just have a couple extra single-quotes in there:


$j('#person', '#assigned').blur(function() { sendok=true;
alert(sendok);} );


the selector here is trying to get the #person element within the  
context of the #assigned  element. if you want to get both, you need  
to enclose them in the same set of quotation marks like this:


   $j('#person, #assigned').blur(function() { sendok=true;
  alert(sendok);} );



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



On Mar 29, 2007, at 12:22 PM, Shelane Enos wrote:


This doesn't seem to be working:
bindBlur = function(){
$j('#person', '#assigned').blur(function() { sendok=true;
alert(sendok);} );
}

But this does:

bindBlur = function(){
$j('#person').blur(function() { sendok=true; alert 
(sendok);} );

}


Do I have to do them all individually or am I just putting those  
IDs in

incorrectly?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Abel Tamayo

Wow, an answer from the very author of the plugin!
Thanks very much, Mikka, will be trying it this evening.

Abel.

On 3/29/07, Mika Tuupola <[EMAIL PROTECTED]> wrote:



On Mar 29, 2007, at 4:08 PM, Mika Tuupola wrote:

>
> On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote:
>
>> Update: I've found that, when you apply $().editable on an object,
>> it gets a new property-function called editable (that points at
>> reset() in the plugin, but that doesn't matter now). I've tried
>> removing this attribute like this $(myEditable).editable = null,
>> and although I don't get any error, it doesn't work either and the
>> property stays just there (silently laughing at me). Any ideas how
>> to remove this property? I don't see what I might be doing wrong.
>
> Sorry for late answer. Use callback function to unbind the event
> form element. For example:
>
> -cut-
> $(document).ready(function() {
> $(".editable").editable("http://www.example.com/save.php";, {
> indicator : '',
> type : "textarea",
> submit : "OK",
> }, function(value, settings) {
> $(this).unbind(settings.event);
> });
> });
> -cut-

Ooops. One extra comma causes Safari to bail. This should have been:

$(document).ready(function() {
 $(".editable").editable("http://www.example.com/save.php";, {
 indicator : '',
 type : "textarea",
 submit : "OK"
 }, function(value, settings) {
 $(this).unbind(settings.event);
 });
});


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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor-nowwithREALCODE!

2007-03-29 Thread Andy Matthews
That's SLICK! Thanks for the update David. Appreciated.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 11:11 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's
labor-nowwithREALCODE!



Never satisfied until I test something I set up your code here with my
modifications.  

 

http://brilliantlemming.com/test/andy.html

 

Have a look at the source.  

 

There was one error in my if statement.. It should have read:

 

if(curImg.attr("src").indexOf('tri_open') == -1){ 

 

Cheers,   

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 8:58 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor
-nowwithREALCODE!

 

Andy,

 

I'd do something like this...

 

$(document).ready( function(){

  $('.row td img.open').bind("click", function() {

   var curImg = $(this);

   var id = curImg.parent().parent().attr("id");

   var idArr = id.split("-");

   var child = $('#' + id + '-details');

  // I'd do a simple check to see if the image you just clicked has
a src that includes "tri_open"

  // If it doesn't run your open stuff 

   if(curImg.attr("src").indexOf('tri_open' == -1){ 

 curImg.attr("src","images/loader.gif");

 $('.hidden:visible').slideUp("fast");

 
$('[EMAIL PROTECTED]/tri_open.gif]').attr("src","images/tri_closed.gif");

 $.get("ajax3.cfm",
{method:idArr[0],key:idArr[1]}, function(data){

 
curImg.attr("src","images/tri_open.gif");

  child.html(data).slideToggle("fast");

 });

   }else{

  // If it does close it up.

 curImg.attr("src","images/loader.gif");

 child.slideUp('fast',function(){

 
curImg.attr("src","images/tri_closed.gif");

 
});

   }

  });

});

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 8:32 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -
nowwithREALCODE!

 

Well, technically that's already there, but because of the way that I'm
detecting "open" rows, if you click on a row that's already open, it has
some weirdness to it. I'm going to change some of that out today.

 

 

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 9:26 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!

I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 6:12 AM
To: 'jQuery Discussion'
Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!

 

Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

 

Here you go:

http://www.commadelimited.com/uploads/psychic

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor

Okay...

 

I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

 

Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".

 

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 



image001.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Can it be done using JQuery

2007-03-29 Thread Josh Nathanson
I agree, I found myself scrolling around looking for other content.  I've seen 
flash implementations that were similar but you could see all the pages by 
scrolling horizontally.  This one, I don't see the point...just confuses people.

-- Josh


  - Original Message - 
  From: Andy Matthews 
  To: 'jQuery Discussion' 
  Sent: Thursday, March 29, 2007 6:06 AM
  Subject: Re: [jQuery] Can it be done using JQuery


  This site looks pretty cool, but that scrolling functionality TOTALLY causes 
both vert and hor scrollbars in IE7. Don't see a point to it...



--
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kush Murod
  Sent: Thursday, March 29, 2007 1:05 AM
  To: jQuery Discussion
  Subject: Re: [jQuery] Can it be done using JQuery


  Smooth slide affect actually

  I know that interface offers scrollto which scrolls you smoothly to specified 
target - vertically

  Question is is it possible to scrollto target diagonally, has anyone already 
something similar in JQuery?

  --kush


  Erik Beeson wrote: 
What effect are you referring to?

--Erik


On 3/28/07, Kush Murod <[EMAIL PROTECTED]> wrote:
  Hi guys,

Saw this awesome site, great concept, written in prototype
http://www.invisiblechildren.com/displaceMe/

Was just wondering if same idea can be accomplished using JQuery.

--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
  

-- 
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011

--


  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Known memory leaks?

2007-03-29 Thread Choan Gálvez

On 28/03/2007, at 17:09, Markus Peter wrote:

> [...]
>
> We are currently trying to eliminate the memory leaks but are now
> running into a dead end.

Same here. I'm currently investigating the "ready" hack for IE.

As the `onreadystatechange` handler for the deferred script is  
defined as a closure, it seems as a candidate for leaking.

Anyone?
-- 
Choan Gálvez
<[EMAIL PROTECTED]>





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg

If it's the third column, you could also try this:

$('td:nth-child(3)').hide()

If you have s in your table and need to hide them, too, you can  
do this:

$('td:nth-child(3), th:nth-child(3)').hide()

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



On Mar 29, 2007, at 12:36 PM, Alexandre Plennevaux wrote:


Using the  element maybe?

Otherwise, if it is the 3rd column you could do this:

$("td+td+td").hide();

I dunno if that works, but it's the css way to address the 3rd column.

-Original Message-
From: [EMAIL PROTECTED] [mailto:discuss- 
[EMAIL PROTECTED] On

Behalf Of Baxter
Sent: jeudi 29 mars 2007 16:28
To: discuss@jquery.com
Subject: [jQuery] Collapsing table Columns?

Any ideas how one could hide/show table columns, rather than rows?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date:  
28/03/2007

16:23



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Binding to multiple items with one call

2007-03-29 Thread Shelane Enos
This doesn't seem to be working:
bindBlur = function(){
$j('#person', '#assigned').blur(function() { sendok=true;
alert(sendok);} );
}

But this does:

bindBlur = function(){
$j('#person').blur(function() { sendok=true; alert(sendok);} );
}


Do I have to do them all individually or am I just putting those IDs in
incorrectly?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Klaus Hartl
Mike Alsup schrieb:
> I've added file upload support to the form plugin and I could use some
> help testing it out.  If this feature interests you then go ahead and
> grab the beta plugin at:
> 
> http://malsup.com/jquery/form/file/jquery.form.js


Mike, GREAT stuff!!! I always hoped you would bake that into the plugin 
someday.

I'm pretty sure I'm going to test/use that with the new plazes.


:-)


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE!

2007-03-29 Thread Andy Matthews
Excellent. I was going to be doing something along those lines anyway David,
but MANY thanks. You're a gentleman and a scholar.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 10:58 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor
-nowwithREALCODE!



Andy,

 

I'd do something like this...

 

$(document).ready( function(){

  $('.row td img.open').bind("click", function() {

   var curImg = $(this);

   var id = curImg.parent().parent().attr("id");

   var idArr = id.split("-");

   var child = $('#' + id + '-details');

  // I'd do a simple check to see if the image you just clicked has
a src that includes "tri_open"

  // If it doesn't run your open stuff 

   if(curImg.attr("src").indexOf('tri_open' == -1){ 

 curImg.attr("src","images/loader.gif");

 $('.hidden:visible').slideUp("fast");

 
$('[EMAIL PROTECTED]/tri_open.gif]').attr("src","images/tri_closed.gif");

 $.get("ajax3.cfm",
{method:idArr[0],key:idArr[1]}, function(data){

 
curImg.attr("src","images/tri_open.gif");

  child.html(data).slideToggle("fast");

 });

   }else{

  // If it does close it up.

 curImg.attr("src","images/loader.gif");

 child.slideUp('fast',function(){

 
curImg.attr("src","images/tri_closed.gif");

 
});

   }

  });

});

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 8:32 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -
nowwithREALCODE!

 

Well, technically that's already there, but because of the way that I'm
detecting "open" rows, if you click on a row that's already open, it has
some weirdness to it. I'm going to change some of that out today.

 

 

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 9:26 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!

I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 6:12 AM
To: 'jQuery Discussion'
Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!

 

Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

 

Here you go:

http://www.commadelimited.com/uploads/psychic

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor

Okay...

 

I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

 

Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".

 

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 



image001.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] find dd's dt

2007-03-29 Thread Jonathan Sharp

Or possibly something along the lines of

$('a.selected').parents('dd').prev()

-js



On 3/29/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:


 hello!

i guess i'm not too good in finding my way upwards in the DOM tree.

I have a structure like this:

dl#navigation
dl#navigation > dt
dl#navigation > dd > ul > li > a.selected

dl#navigation > dt
dl#navigation > dd > ul > li > a
dl#navigation > dt
dl#navigation > dd > ul > li > a

/dl

all  ul are hidden but the one containing the selected a. I need to access
that specific *dt* element.

i tried this, but it does not work:

$this = $("//dd[ul/li/a.selected]");
$this.show();
$this = $(this).parent();
$("dt",$this).css({border: "1px solid #FF"});


sorry, i think i  'm in need of a good tutorial on selectors.

thank you for your help,

Alexandre





--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007
16:23

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor -nowwithREALCODE!

2007-03-29 Thread David Dexter
Never satisfied until I test something I set up your code here with my
modifications.  

 

http://brilliantlemming.com/test/andy.html

 

Have a look at the source.  

 

There was one error in my if statement.. It should have read:

 

if(curImg.attr("src").indexOf('tri_open') == -1){ 

 

Cheers,   

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 8:58 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor
-nowwithREALCODE!

 

Andy,

 

I'd do something like this...

 

$(document).ready( function(){

  $('.row td img.open').bind("click", function() {

   var curImg = $(this);

   var id = curImg.parent().parent().attr("id");

   var idArr = id.split("-");

   var child = $('#' + id + '-details');

  // I'd do a simple check to see if the image you just clicked has
a src that includes "tri_open"

  // If it doesn't run your open stuff 

   if(curImg.attr("src").indexOf('tri_open' == -1){ 

 curImg.attr("src","images/loader.gif");

 $('.hidden:visible').slideUp("fast");

 
$('[EMAIL PROTECTED]/tri_open.gif]').attr("src","images/tri_closed.gif");

 $.get("ajax3.cfm",
{method:idArr[0],key:idArr[1]}, function(data){

 
curImg.attr("src","images/tri_open.gif");

  child.html(data).slideToggle("fast");

 });

   }else{

  // If it does close it up.

 curImg.attr("src","images/loader.gif");

 child.slideUp('fast',function(){

 
curImg.attr("src","images/tri_closed.gif");

 
});

   }

  });

});

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 8:32 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -
nowwithREALCODE!

 

Well, technically that's already there, but because of the way that I'm
detecting "open" rows, if you click on a row that's already open, it has
some weirdness to it. I'm going to change some of that out today.

 

 

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 9:26 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!

I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 6:12 AM
To: 'jQuery Discussion'
Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!

 

Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

 

Here you go:

http://www.commadelimited.com/uploads/psychic

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor

Okay...

 

I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

 

Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".

 

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 



image001.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] bug found

2007-03-29 Thread Klaus Hartl
Michel Brouckaert schrieb:
> ok, that is actually an very true thought but still it's an quiet
> strict and weird interpretation of the words insertAfter..
> This actualy means at the end that it is rather impossible to add an
> item after an root element without appending it..

There shouldn't be an element after the root element anyway. In XML that 
wouldn't be well-formed and in HTML the  element has no sibling 
either.



-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor - nowwithREALCODE!

2007-03-29 Thread David Dexter
Andy,

 

I'd do something like this...

 

$(document).ready( function(){

  $('.row td img.open').bind("click", function() {

   var curImg = $(this);

   var id = curImg.parent().parent().attr("id");

   var idArr = id.split("-");

   var child = $('#' + id + '-details');

  // I'd do a simple check to see if the image you just clicked has
a src that includes "tri_open"

  // If it doesn't run your open stuff 

   if(curImg.attr("src").indexOf('tri_open' == -1){ 

 curImg.attr("src","images/loader.gif");

 $('.hidden:visible').slideUp("fast");

 
$('[EMAIL PROTECTED]/tri_open.gif]').attr("src","images/tri_closed.gif");

 $.get("ajax3.cfm",
{method:idArr[0],key:idArr[1]}, function(data){

 
curImg.attr("src","images/tri_open.gif");

  child.html(data).slideToggle("fast");

 });

   }else{

  // If it does close it up.

 curImg.attr("src","images/loader.gif");

 child.slideUp('fast',function(){

 
curImg.attr("src","images/tri_closed.gif");

 
});

   }

  });

});

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 8:32 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor -
nowwithREALCODE!

 

Well, technically that's already there, but because of the way that I'm
detecting "open" rows, if you click on a row that's already open, it has
some weirdness to it. I'm going to change some of that out today.

 

 

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 9:26 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!

I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 6:12 AM
To: 'jQuery Discussion'
Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!

 

Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

 

Here you go:

http://www.commadelimited.com/uploads/psychic

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor

Okay...

 

I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

 

Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".

 

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 



image001.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE!

2007-03-29 Thread Brad Perkins

Andy,

I tried it in Opera 9 and it appears to be fine. I second the other posters
comments about being able to collapse an expanded row. I was expecting that
behavior and a little confused about the reload.

best,

Brad

On 3/29/07, Andy Matthews <[EMAIL PROTECTED]> wrote:


 Well, technically that's already there, but because of the way that I'm
detecting "open" rows, if you click on a row that's already open, it has
some weirdness to it. I'm going to change some of that out today.




 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *David Dexter
*Sent:* Thursday, March 29, 2007 9:26 AM
*To:* 'jQuery Discussion'
*Subject:* Re: [jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!

 I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

*David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949
***
 --

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Andy Matthews
*Sent:* Thursday, March 29, 2007 6:12 AM
*To:* 'jQuery Discussion'
*Subject:* [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!



Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.



Here you go:

http://www.commadelimited.com/uploads/psychic


 --

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Andy Matthews
*Sent:* Wednesday, March 28, 2007 4:59 PM
*To:* [jQuery]
*Subject:* [jQuery] CODE REVIEW: the fruits of today's labor

Okay...



I finished my proof of concept for the project I've got. It works just as
I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing
it in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.



Please don't hesitate to offer any criticism, critiques or suggestions.
I'd love to know where I could improve this code, or if I'm doing anything
"wrong".



Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.

****

* *

*Andy Matthews
*Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Alexandre Plennevaux
Using the  element maybe?

Otherwise, if it is the 3rd column you could do this: 

$("td+td+td").hide();

I dunno if that works, but it's the css way to address the 3rd column.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Baxter
Sent: jeudi 29 mars 2007 16:28
To: discuss@jquery.com
Subject: [jQuery] Collapsing table Columns?

Any ideas how one could hide/show table columns, rather than rows?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007
16:23
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor - now withREALCODE!

2007-03-29 Thread Andy Matthews
Well, technically that's already there, but because of the way that I'm
detecting "open" rows, if you click on a row that's already open, it has
some weirdness to it. I'm going to change some of that out today.
 
 
 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Thursday, March 29, 2007 9:26 AM
To: 'jQuery Discussion'
Subject: Re: [jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!



I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 6:12 AM
To: 'jQuery Discussion'
Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!

 

Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

 

Here you go:

http://www.commadelimited.com/uploads/psychic

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor

Okay...

 

I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

 

Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".

 

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 



image001.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Collapsing table Columns?

2007-03-29 Thread Baxter
Any ideas how one could hide/show table columns, rather than rows?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Can't post to jQuery list from the Google interface?

2007-03-29 Thread Andy Matthews
Ah...I see...
 
Thanks for clarifying John.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Resig
Sent: Thursday, March 29, 2007 9:40 AM
To: jQuery Discussion
Subject: Re: [jQuery] Can't post to jQuery list from the Google interface?


I don't think it's possible to post through the Google Groups interface yet.
For whatever reason, they're taking like 4 days to move all the users over.
I think I'm just going to move everything over tonight, anyway - forcing
everyone to sign-up on the new list. It's going to suck, but I'm not sure if
we have a choice. 

--John


On 3/29/07, Andy Matthews <[EMAIL PROTECTED]> wrote: 

Anyone know why I can't post to the list from within the Google Groups
interface? I tried responding to several posts last night as well as posting
a new message yesterday afternoon and none of them have come through, even
though the interface told me that my post was successful.
 
Ideas?
 


 
Andy Matthews
Senior Coldfusion Developer

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

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] find dd's dt

2007-03-29 Thread Klaus Hartl
Alexandre Plennevaux schrieb:
> hello!
>  
> i guess i'm not too good in finding my way upwards in the DOM tree.
>  
> I have a structure like this:
>  
> dl#navigation
> dl#navigation > dt
> dl#navigation > dd > ul > li > a.selected
>  
> dl#navigation > dt
> dl#navigation > dd > ul > li > a
>  
> dl#navigation > dt
> dl#navigation > dd > ul > li > a
>  
> /dl
>  
> all  ul are hidden but the one containing the selected a. I need to 
> access that specific *dt* element.
>  
> i tried this, but it does not work:
>  
> $this = $("//dd[ul/li/a.selected]");
> $this.show();
> $this = $(this).parent();
> $("dt",$this).css({border: "1px solid #FF"});
>  
>  
> sorry, i think i  'm in need of a good tutorial on selectors.
>  
> thank you for your help,
>  
> Alexandre

Alexandre, try this:

$("//dd[ul/li/a.selected]").prev();


I'm not sure if I understood that XPath selector correctly, but you 
could try:

$("//dd[ul/li/a.selected] ~ dt")

But I think that this one simply selects the dd element that is preceded 
by a dt which is the case anyway.


-- Klaus





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] bug found

2007-03-29 Thread Michel Brouckaert
ok, that is actually an very true thought but still it's an quiet
strict and weird interpretation of the words insertAfter..
This actualy means at the end that it is rather impossible to add an
item after an root element without appending it..

2007/3/29, Karl Swedberg <[EMAIL PROTECTED]>:
> this might not actually be a bug. I have a hunch that it has to do with your
> use of .insertAfter()
>
> .insertAfter() will insert the elements one at a time in the correct order,
> but since each one is being inserted immediately after the h2, each is
> appearing before the previous one.
>
> I'm probably not explaining this well, so I'll just say that you will have
> more success using .appendTo(). Depending on how your DOM is structured, you
> might want to first create a container div after the h2 and then append your
> $(html) to that.
>
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
> On Mar 29, 2007, at 9:17 AM, Michel Brouckaert wrote:
>
> this is a bug I found when using firebug to refresh some data in an menu..
> code:
> $.post(rAction,{action:"login",ddd:$("#ccc").val(),ddd:$("#ddd").val()},function(html){
>  $(html).insertAfter($("div#compte .padder fieldset
> h2")).load(errorVerif2());
>  activeMenu();
>  $.load(errorVerif2());
>  });
> instead of returning
> 1
> 2
> 3
> 
>  1
>  2
>  3
> 
>
> it returned the following
>
>
> 
>  1
>  2
>  3
> 
> 3
> 2
> 1
>
> the reversion of the elements only seems to happen on the top level
> elements of the html answer.
> But it seems rather disturbing.
>
> thx for reading this.
> Michel Brouckaert
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] find dd's dt

2007-03-29 Thread Alexandre Plennevaux
hello!
 
i guess i'm not too good in finding my way upwards in the DOM tree.
 
I have a structure like this:
 
dl#navigation 
dl#navigation > dt 
dl#navigation > dd > ul > li > a.selected
 
dl#navigation > dt 
dl#navigation > dd > ul > li > a 
 
dl#navigation > dt 
dl#navigation > dd > ul > li > a
 
/dl
 
all  ul are hidden but the one containing the selected a. I need to access that 
specific dt element.
 
i tried this, but it does not work:
 
$this = $("//dd[ul/li/a.selected]");
$this.show();
$this = $(this).parent();
$("dt",$this).css({border: "1px solid #FF"});
 
 
sorry, i think i  'm in need of a good tutorial on selectors.
 
thank you for your help,
 
Alexandre
 
 
 


-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Kush Murod
So when is it going alpha can't wait :)

Harald Dietrich wrote:
> Sorry for the delay, but my feedback for IE was missing. I did not have any 
> problems until now. So I think for FF and IE everything seems to be fine.
>
> Harald
>
>   
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Behalf Of Harald Dietrich
>> Sent: Freitag, 23. März 2007 18:08
>> To: jQuery Discussion
>> Subject: Re: [jQuery] Beta Testers needed for Form Plugin file upload
>> support
>>
>>
>> Great! I used ajaxupload.js before and made the decision 
>> which plugin to use on my own, which forced me to use two 
>> plugins for forms.
>>
>> Tested with Firefox 2.0.0.2 (Windows 2000).
>> Tonight I will do additional tests with IE7 (Windows XP).
>>
>> Harald
>>
>> 
>>> -Original Message-
>>> From: [EMAIL PROTECTED] 
>>>   
>> [mailto:[EMAIL PROTECTED]
>> 
>>> Behalf Of Mike Alsup
>>> Sent: Donnerstag, 22. März 2007 22:06
>>> To: jQuery Discussion.
>>> Subject: [jQuery] Beta Testers needed for Form Plugin file upload
>>> support
>>>
>>>
>>> I've added file upload support to the form plugin and I 
>>>   
>> could use some
>> 
>>> help testing it out.  If this feature interests you then go 
>>>   
>> ahead and
>> 
>>> grab the beta plugin at:
>>>
>>> http://malsup.com/jquery/form/file/jquery.form.js
>>>
>>> File upload support is baked right into the plugin and there are no
>>> external dependencies.  The plugin will automatically detect file
>>> input elements and use an iframe to submit the form if 
>>>   
>> there are files
>> 
>>> to be uploaded.  No extra coding or metadata is needed to take
>>> advantage of this new feature.  In addition, even though an 
>>>   
>> iframe is
>> 
>>> used instead of the XHR object, callbacks and global triggers still
>>> work as expected (so any code that you have in place to display
>>> activity indicators or blocking elements will still work).
>>>
>>> However, there are some challenges when using iframes in 
>>>   
>> this manner.
>> 
>>> For one, it is quite difficult to determine if the submit operation
>>> succeeded or failed.  The iframe becomes the target of the submit
>>> operation and so that is where the server response is written.  The
>>> form plugin does its best to determine the data type (html, 
>>>   
>> xml, etc),
>> 
>>> but the status is always 'success' unless an exception is caught
>>> during the type determination.  (Note that dojo and YUI haven't
>>> figured out how to solve the status problem either.)
>>>
>>> I've prepared a sample page with several forms here:
>>>
>>> http://malsup.com/jquery/form/file/
>>>
>>> If you use this page for testing *please* be kind to my server and
>>> only upload small files! I'd really prefer that you download the
>>> plugin and integrate it into your own test environment if possible.
>>>
>>> I've done some testing on FF, IE and Opera and the results are
>>> encouraging.  I don't have access to Safari so I'm sure there are
>>> issues lurking for that platform.
>>>
>>> If you're interested in the code you can find it all tucked into the
>>> end of the ajaxSubmit method in a function called "fileUpload".
>>>
>>> Mike
>>>
>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>
>>>   
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Rick Faircloth
Also. thanks for actually answering the question I asked
along with your other help.
 
Rick
 
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Heimlich
Sent: Thursday, March 29, 2007 10:33 AM
To: jQuery Discussion
Subject: Re: [jQuery] Correct way to setup a callback function
 
On 3/29/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
$.post("Calc_Test_Process_Field_chris.cfm", Params, toggleButton);

That's definitely the correct syntax (

http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try
adding something like

alert("Toggling submit button"); 

to the beginning of toggleButton to see whether it's being called or not. 

Another thing I just realized is that toggleButton only gets called if the
request was successful. Try this:

var settings = {
type: "POST",
url: "Calc_Test_Process_Field_chris.cfm",
data: Params,
success: toggleButton,
error: requestError
};
jQuery.ajax(settings);

// note, this assumes you are using Firefox with Firebug 1.0 installed
function requestError(request, message, exception) {
console.log("Danger Will Robinson! Danger!"); 
console.log("An error occurred when requesting %s", settings.url);
console.log("Settings: %o", settings);
console.log("HTTP Status Code: %d", request.status");
console.log("HTTP Status Message: %s", request.statusMessage);
console.log("jQuery Status Message: %s", message); 
console.log("Response Body: %s", request.responseText);
console.log("Exception %o", exception);
}

and see if requestError gets called.

-- 
Aaron Heimlich
Web Developer 
[EMAIL PROTECTED]
http://aheimlich.freepgs.com 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Rick Faircloth
Don't worry about insulting me... :o)  I'm very new to all this and
very well aware of my ignorance about the "little things" those of you
who are experienced take for granted.

I have been using the breakpoints and alerts and every other little
trick I could think of to check things, but I thought it wouldn't hurt
to have a few look at some of the code directly...

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Thursday, March 29, 2007 10:18 AM
To: jQuery Discussion
Subject: Re: [jQuery] Correct way to setup a callback function

> I'm just wondering if we're getting into the "toggleButton" function,
> which should fire after all the params pass validation and are posted.
>
> Trying to make sure the syntax for the statement below looks correct,


Rick,

Please don't take this the wrong way, but why are you "wondering"?
Put a breakpoint on that function and see if it gets called.  From all
the questions you've posted it sounds like you're really struggling
with this form, but there are tools available to help you quickly
answer questions like this.  You should never be in a position of
"wondering" if some code is getting executed.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Rick Faircloth
Thanks for the tip, Aaron.
 
I've been using the alert for some feedback, as well as Firebug.
As someone fairly new to JS, it all takes some getting used to.
 
Thanks, too, for the other approach to the code and to the console
code.
 
Much appreciated!
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Heimlich
Sent: Thursday, March 29, 2007 10:33 AM
To: jQuery Discussion
Subject: Re: [jQuery] Correct way to setup a callback function
 
On 3/29/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
$.post("Calc_Test_Process_Field_chris.cfm", Params, toggleButton);

That's definitely the correct syntax (

http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try
adding something like

alert("Toggling submit button"); 

to the beginning of toggleButton to see whether it's being called or not. 

Another thing I just realized is that toggleButton only gets called if the
request was successful. Try this:

var settings = {
type: "POST",
url: "Calc_Test_Process_Field_chris.cfm",
data: Params,
success: toggleButton,
error: requestError
};
jQuery.ajax(settings);

// note, this assumes you are using Firefox with Firebug 1.0 installed
function requestError(request, message, exception) {
console.log("Danger Will Robinson! Danger!"); 
console.log("An error occurred when requesting %s", settings.url);
console.log("Settings: %o", settings);
console.log("HTTP Status Code: %d", request.status");
console.log("HTTP Status Message: %s", request.statusMessage);
console.log("jQuery Status Message: %s", message); 
console.log("Response Body: %s", request.responseText);
console.log("Exception %o", exception);
}

and see if requestError gets called.

-- 
Aaron Heimlich
Web Developer 
[EMAIL PROTECTED]
http://aheimlich.freepgs.com 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Can't post to jQuery list from the Google interface?

2007-03-29 Thread John Resig

I don't think it's possible to post through the Google Groups interface yet.
For whatever reason, they're taking like 4 days to move all the users over.
I think I'm just going to move everything over tonight, anyway - forcing
everyone to sign-up on the new list. It's going to suck, but I'm not sure if
we have a choice.

--John

On 3/29/07, Andy Matthews <[EMAIL PROTECTED]> wrote:


 Anyone know why I can't post to the list from within the Google Groups
interface? I tried responding to several posts last night as well as posting
a new message yesterday afternoon and none of them have come through, even
though the interface told me that my post was successful.

Ideas?

* 

Andy Matthews
*Senior Coldfusion Developer

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


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Aaron Heimlich

On 3/29/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:


$.post("Calc_Test_Process_Field_chris.cfm", Params, toggleButton);



That's definitely the correct syntax (
http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29). Try
adding something like

alert("Toggling submit button");

to the beginning of toggleButton to see whether it's being called or not.

Another thing I just realized is that toggleButton only gets called if the
request was successful. Try this:

var settings = {
   type: "POST",
   url: "Calc_Test_Process_Field_chris.cfm",
   data: Params,
   success: toggleButton,
   error: requestError
};
jQuery.ajax(settings);

// note, this assumes you are using Firefox with Firebug 1.0 installed
function requestError(request, message, exception) {
   console.log("Danger Will Robinson! Danger!");
   console.log("An error occurred when requesting %s", settings.url);
   console.log("Settings: %o", settings);
   console.log("HTTP Status Code: %d", request.status");
   console.log("HTTP Status Message: %s", request.statusMessage);
   console.log("jQuery Status Message: %s", message);
   console.log("Response Body: %s", request.responseText);
   console.log("Exception %o", exception);
}

and see if requestError gets called.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor - now with REALCODE!

2007-03-29 Thread David Dexter
I would definitely consider adding close functionality to a menu that is
already expanded. That way if a user clicks an arrow in the down state the
row would collapse and the arrow would then point back to the right.

David Dexter   |  brilliantlemming.com  |  Brentwood, CA  |  310.414.0949

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, March 29, 2007 6:12 AM
To: 'jQuery Discussion'
Subject: [jQuery] CODE REVIEW: the fruits of today's labor - now with
REALCODE!

 

Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

 

Here you go:

http://www.commadelimited.com/uploads/psychic

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor

Okay...

 

I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

 

Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".

 

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.



 

Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 



image001.gif
Description: GIF image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] bug found

2007-03-29 Thread Karl Swedberg
this might not actually be a bug. I have a hunch that it has to do  
with your use of .insertAfter()


.insertAfter() will insert the elements one at a time in the correct  
order, but since each one is being inserted immediately after the h2,  
each is appearing before the previous one.


I'm probably not explaining this well, so I'll just say that you will  
have more success using .appendTo(). Depending on how your DOM is  
structured, you might want to first create a container div after the  
h2 and then append your $(html) to that.



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



On Mar 29, 2007, at 9:17 AM, Michel Brouckaert wrote:

this is a bug I found when using firebug to refresh some data in an  
menu..

code:
			$.post(rAction,{action:"login",ddd:$("#ccc").val(),ddd:$ 
("#ddd").val()},function(html){

$(html).insertAfter($("div#compte .padder 
fieldset
h2")).load(errorVerif2());
activeMenu();
$.load(errorVerif2());
});
instead of returning
1
2
3

 1
 2
 3


it returned the following



 1
 2
 3

3
2
1

the reversion of the elements only seems to happen on the top level
elements of the html answer.
But it seems rather disturbing.

thx for reading this.
Michel Brouckaert

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor - now with REAL CODE!

2007-03-29 Thread Alex Ezell

I really like the idea. Thanks for sharing.

I noticed one behavior that was troubling, though perhaps intentional. After
I click an arrow to view more, I tried clicking it again to close the row,
but it seemed to just reload the data and flash back open the row. The only
way to close a row seems to open another one. Like I say, not what I would
expect, but perhaps what you intended.

This is in FF2 on WinXP. There were no errors reported in Firebug.

/alex

On 3/29/07, Erik Beeson <[EMAIL PROTECTED]> wrote:


Seems to work fine in FF2 and Safari on OS X.

--Erik

On 3/29/07, Andy Matthews <[EMAIL PROTECTED] > wrote:

>  Sorry guys...I tried posting the code last night using the Google
> Groups interface, but it didn't come through.
>
> Here you go:
> http://www.commadelimited.com/uploads/psychic
>
>  --
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Andy Matthews
> *Sent:* Wednesday, March 28, 2007 4:59 PM
> *To:* [jQuery]
> *Subject:* [jQuery] CODE REVIEW: the fruits of today's labor
>
>  Okay...
>
> I finished my proof of concept for the project I've got. It works just
> as I want it to in IE6, IE7 and FF2. I wondered if you guys would mind
> testing it in whatever browsers you have as well as taking a look at the jQ
> code and telling me where I might be able to thin things out a bit.
>
> Please don't hesitate to offer any criticism, critiques or suggestions.
> I'd love to know where I could improve this code, or if I'm doing anything
> "wrong".
>
> Anyone out there that's wanting to do the same thing, feel free to snake
> this code. It's all yours.
> * 
>
> Andy Matthews
> *Senior Coldfusion Developer
>
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]
> www.dealerskins.com
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Mike Alsup
> I'm just wondering if we're getting into the "toggleButton" function,
> which should fire after all the params pass validation and are posted.
>
> Trying to make sure the syntax for the statement below looks correct,


Rick,

Please don't take this the wrong way, but why are you "wondering"?
Put a breakpoint on that function and see if it gets called.  From all
the questions you've posted it sounds like you're really struggling
with this form, but there are tools available to help you quickly
answer questions like this.  You should never be in a position of
"wondering" if some code is getting executed.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Any regular expression gurus here?

2007-03-29 Thread Jake McGraw
Christof:

This may be true of traditional regular expressions, which is
something you'll encounter in a college level automata class but very
rarely in the real world. The fact is that most modern, since the 80s
at least, regex implementations (JavaScript, Java, PHP,...) can handle
many "nonregular" grammars, by making use of features such as
look-ahead, atomic grouping, backreferences, etc.  For specifics on
this, see:

http://en.wikipedia.org/wiki/Regular_expression#Patterns_for_irregular_languages

- jake

On 3/29/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
>
> On Mar 29, 2007, at 4:55 AM, Christof Donat wrote:
>
>
> Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy)
>
> grammars. You can not express nested parentheses in regular grammar, you
> need
>
> a context free (Type 2) but not regular grammar.
> Christof, that is fascinating! Thanks for that information!
>
>
> This is something I'll have to remember for the next dinner conversation
> with friends. You never know where Noam Chomsky[1] might pop up in a
> conversation. :)
>
>
> --Karl
>
> [1] http://en.wikipedia.org/wiki/Chomsky
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Rick Faircloth
Chris and I have been working on "per field" validation
and we're trying to disable the Calculate button for the form
until all fields pass validation.

I'm just wondering if we're getting into the "toggleButton" function,
which should fire after all the params pass validation and are posted.

Trying to make sure the syntax for the statement below looks correct,
just to eliminate one possible error:

$.post("Calc_Test_Process_Field_chris.cfm", Params, toggleButton);

Rick




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Erik Beeson
Sent: Thursday, March 29, 2007 8:34 AM
To: jQuery Discussion
Subject: Re: [jQuery] Correct way to setup a callback function

Is something about it not working for you?

--Erik





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] CODE REVIEW: the fruits of today's labor - now with REAL CODE!

2007-03-29 Thread Erik Beeson

Seems to work fine in FF2 and Safari on OS X.

--Erik

On 3/29/07, Andy Matthews <[EMAIL PROTECTED]> wrote:


 Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.

Here you go:
http://www.commadelimited.com/uploads/psychic

 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Andy Matthews
*Sent:* Wednesday, March 28, 2007 4:59 PM
*To:* [jQuery]
*Subject:* [jQuery] CODE REVIEW: the fruits of today's labor

 Okay...

I finished my proof of concept for the project I've got. It works just as
I want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing
it in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.

Please don't hesitate to offer any criticism, critiques or suggestions.
I'd love to know where I could improve this code, or if I'm doing anything
"wrong".

Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.
* 

Andy Matthews
*Senior Coldfusion Developer

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


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Mika Tuupola

On Mar 29, 2007, at 4:08 PM, Mika Tuupola wrote:

>
> On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote:
>
>> Update: I've found that, when you apply $().editable on an object,  
>> it gets a new property-function called editable (that points at  
>> reset() in the plugin, but that doesn't matter now). I've tried  
>> removing this attribute like this $(myEditable).editable = null,  
>> and although I don't get any error, it doesn't work either and the  
>> property stays just there (silently laughing at me). Any ideas how  
>> to remove this property? I don't see what I might be doing wrong.
>
> Sorry for late answer. Use callback function to unbind the event  
> form element. For example:
>
> -cut-
> $(document).ready(function() {
> $(".editable").editable("http://www.example.com/save.php";, {
> indicator : '',
> type : "textarea",
> submit : "OK",
> }, function(value, settings) {
> $(this).unbind(settings.event);
> });
> });
> -cut-

Ooops. One extra comma causes Safari to bail. This should have been:

$(document).ready(function() {
 $(".editable").editable("http://www.example.com/save.php";, {
 indicator : '',
 type : "textarea",
 submit : "OK"
 }, function(value, settings) {
 $(this).unbind(settings.event);
 });
});


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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] bug found

2007-03-29 Thread Michel Brouckaert
this is a bug I found when using firebug to refresh some data in an menu..
code:

$.post(rAction,{action:"login",ddd:$("#ccc").val(),ddd:$("#ddd").val()},function(html){
$(html).insertAfter($("div#compte .padder 
fieldset
h2")).load(errorVerif2());
activeMenu();
$.load(errorVerif2());
});
instead of returning
1
2
3

 1
 2
 3


it returned the following



 1
 2
 3

3
2
1

the reversion of the elements only seems to happen on the top level
elements of the html answer.
But it seems rather disturbing.

thx for reading this.
Michel Brouckaert

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] CODE REVIEW: the fruits of today's labor - now with REAL CODE!

2007-03-29 Thread Andy Matthews
Sorry guys...I tried posting the code last night using the Google Groups
interface, but it didn't come through.
 
Here you go:
http://www.commadelimited.com/uploads/psychic

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, March 28, 2007 4:59 PM
To: [jQuery]
Subject: [jQuery] CODE REVIEW: the fruits of today's labor


Okay...
 
I finished my proof of concept for the project I've got. It works just as I
want it to in IE6, IE7 and FF2. I wondered if you guys would mind testing it
in whatever browsers you have as well as taking a look at the jQ code and
telling me where I might be able to thin things out a bit.
 
Please don't hesitate to offer any criticism, critiques or suggestions. I'd
love to know where I could improve this code, or if I'm doing anything
"wrong".
 
Anyone out there that's wanting to do the same thing, feel free to snake
this code. It's all yours.

 
Andy Matthews
Senior Coldfusion Developer

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


dealerskinslogo.bmp
Description: Windows bitmap
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Can't post to jQuery list from the Google interface?

2007-03-29 Thread Andy Matthews
Anyone know why I can't post to the list from within the Google Groups
interface? I tried responding to several posts last night as well as posting
a new message yesterday afternoon and none of them have come through, even
though the interface told me that my post was successful.
 
Ideas?
 

 
Andy Matthews
Senior Coldfusion Developer

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


dealerskinslogo.bmp
Description: Windows bitmap
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Mika Tuupola

On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote:

> Update: I've found that, when you apply $().editable on an object,  
> it gets a new property-function called editable (that points at  
> reset() in the plugin, but that doesn't matter now). I've tried  
> removing this attribute like this $(myEditable).editable = null,  
> and although I don't get any error, it doesn't work either and the  
> property stays just there (silently laughing at me). Any ideas how  
> to remove this property? I don't see what I might be doing wrong.

Sorry for late answer. Use callback function to unbind the event form  
element. For example:

-cut-
$(document).ready(function() {
 $(".editable").editable("http://www.example.com/save.php";, {
 indicator : '',
 type : "textarea",
 submit : "OK",
 }, function(value, settings) {
 $(this).unbind(settings.event);
 });
});
-cut-

Working example in url below:

http://www.appelsiini.net/~tuupola/jquery/jeditable/tamayo.php


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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Close any other row before showing a new one

2007-03-29 Thread Andy Matthews
Thanks Klaus...good point. I'll change that to something a little more
meaningful.


andy 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: Wednesday, March 28, 2007 6:19 PM
To: jQuery Discussion
Subject: Re: [jQuery] Close any other row before showing a new one

Jake McGraw schrieb:
> Have to tried ':visible' selector?
> 
> $('.hidden:visible').slideUp("fast");

By the way, reading ".hidden:visible" shows to me that the class name
"hidden" is purely presentational and not very well chosen. How can a hidden
thing be visible?

Would be less confusing to call it "additional" for example.


-- Klaus




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Can it be done using JQuery

2007-03-29 Thread Andy Matthews
This site looks pretty cool, but that scrolling functionality TOTALLY causes
both vert and hor scrollbars in IE7. Don't see a point to it...

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Kush Murod
Sent: Thursday, March 29, 2007 1:05 AM
To: jQuery Discussion
Subject: Re: [jQuery] Can it be done using JQuery


Smooth slide affect actually

I know that interface offers scrollto which scrolls you smoothly to
specified target - vertically

Question is is it possible to scrollto target diagonally, has anyone already
something similar in JQuery?

--kush


Erik Beeson wrote: 

What effect are you referring to?



--Erik





On 3/28/07, Kush Murod  
<[EMAIL PROTECTED]> wrote:

  

Hi guys,



Saw this awesome site, great concept, written in prototype

http://www.invisiblechildren.com/displaceMe/



Was just wondering if same idea can be accomplished using JQuery.



--

Kush Murod, Web applications developer

Sensory Networks

[E] [EMAIL PROTECTED]

[W] www.sensorynetworks.com

[T] +61 2 8302 2745

[F] +61 2 9475 0316

[A] Level 6, 140 William Street East Sydney 2011





___

jQuery mailing list

discuss@jquery.com

http://jquery.com/discuss/







___

jQuery mailing list

discuss@jquery.com

http://jquery.com/discuss/

  


-- 

Kush Murod, Web applications developer

Sensory Networks

[E] [EMAIL PROTECTED]

[W] www.sensorynetworks.com

[T] +61 2 8302 2745

[F] +61 2 9475 0316

[A] Level 6, 140 William Street East Sydney 2011
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Found a bug?

2007-03-29 Thread Марат

Try  this

   $('.anyclass').css({ text-decoration: "underline", cursor: "pointer",
cursor: "hand" });


--


B.r. Marat
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Found a bug?

2007-03-29 Thread Erik Beeson
That has to do with the - not being a valid character for a property
name in javascript. Try either "text-decoration" or textDecoration.
The same is true for any css attribute with a - in the name
(background-image, font-size, margin-top, etc).

--Erik


On 3/29/07, Марат <[EMAIL PROTECTED]> wrote:
> Try  this
>
> $('.anyclass').css({ text-decoration: "underline", cursor: "pointer",
> cursor: "hand" });
>
>
> --
> 
>
> B.r. Marat
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Imagebox with Dynamic image lists problem

2007-03-29 Thread Dave Probert

Forgot to mention that my testing is mainly with Firefox 2 on Windows XP
(with Apache 2).  Got other problems to solve for IE (so what's new there
then!!! :) )
-- 
View this message in context: 
http://www.nabble.com/Interface-Imagebox-with-Dynamic-image-lists-problem-tf3222831.html#a8959238
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Interface Imagebox with Dynamic image lists problem

2007-03-29 Thread Dave Probert

Hi All,

I'm using Interface (1.2) with jQuery (1.1.1) in a little gallery
application (localhost based at the moment!).  My problem seems to be that
as I load a new gallery (Ajax) of images (with all the required 'rel'
attributes etc) the Imagebox works perfectly for two or three galleries then
starts showing (and animating) just a white box and the Imagebox 'add-on'
section (with the close icon, etc).

After it does this all imagebox bits are the same - no ability to go forward
or back through images or display images any more, even after loading
another gallery or a previous one that worked.

It does not seem to be related to the speed of clicking for the next image
or the image type (all jpegs),  as all the images in my test gallery will
show correctly within the Imagebox for a while before it stops working
correctly.

I have a feeling that the problem may lay in the way I call the Imagebox to
Init itself just after loading each gallery of thumbnails.  The
documentation (which really, really needs tidying up and enhancing, btw!) is
not clear at all on whether or not the call to init() can or should be
called more than once, but if I don't re-init after each gallery load it
will not work at all - I just get standard links to pictures :(

Could Stefan or Paul clarify or point out where I might be going wrong?

Sorry if this is a bit long-winded, but I can't easily put the code online
at the moment.

Thanks,

Dave

PS.  Both jQuery and Interface are wonderful libraries (and so are many of
the other plugins) - I don't really want to use another imagebox system if I
can help it ;)
-- 
View this message in context: 
http://www.nabble.com/Interface-Imagebox-with-Dynamic-image-lists-problem-tf3222831.html#a8951493
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Abel Tamayo

@Sam Collett: No, $("#myjeditable").unbind("click") doesn't work, but thanks
for the idea.

@Mark: Probably you are right, but I don't like messing with other's code,
plus that would only slow me down and I promissed to have this project ready
for this week (although it's just a pet project).

Update: I've found that, when you apply $().editable on an object, it gets a
new property-function called editable (that points at reset() in the plugin,
but that doesn't matter now). I've tried removing this attribute like
this $(myEditable).editable
= null, and although I don't get any error, it doesn't work either and the
property stays just there (silently laughing at me). Any ideas how to remove
this property? I don't see what I might be doing wrong.

Thanks.

Abel.

On 3/29/07, Sam Collett <[EMAIL PROTECTED]> wrote:


On 28/03/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using jEditable for a webpage, but I would like to make it so that,
once
> you've edited the text, the behaviour is removed and you can edit it no
> longer. Does anyone know how to do that?
>
> Thanks.

You could try $("#myjeditable").unbind("click")

Although perhaps it would be better if the plugin could do that (I
don't know if there are any memory leaks that may be caused by doing
it this way).

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Erik Beeson
Is something about it not working for you?

--Erik

On 3/29/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
>
> D'oh!  No actually it was a mind-reading test… :oP
>
>
>
> Here's what I'm running:
>
>
>
> $.post("Calc_Test_Process_Field_chris.cfm", Params,
> toggleButton);
>
>
>
> Rick
>
>
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Aaron Heimlich
>  Sent: Wednesday, March 28, 2007 11:36 PM
>  To: jQuery Discussion
>  Subject: Re: [jQuery] Correct way to setup a callback function
>
>
>
>
> u, you forgot the code.
>
>
> On 3/28/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
> Hi, all...
>
>  Is this the correct way to setup a callback function?
>
>  i.e... after posting  Params to
> Calc_Test_Process_Field_chris.cfm,
>  I would like for the function toggleButton to run...
>
>  Is this the correct syntax?
>
>  Thanks,
>
>  Rick
>
>
>
>  ___
>  jQuery mailing list
>  discuss@jquery.com
>  http://jquery.com/discuss/
>
>
>
>
>  --
>  Aaron Heimlich
>  Web Developer
>  [EMAIL PROTECTED]
>  http://aheimlich.freepgs.com
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ANNOUNCE: Tabs 2.7

2007-03-29 Thread Kevin Fricovsky
 

+1 ... this is slick. Thx!

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Widi Harsojo
Sent: Friday, March 23, 2007 6:14 AM
To: jQuery Discussion
Subject: Re: [jQuery] ANNOUNCE: Tabs 2.7

 

Wow!. awesome...
Thanks, Klaus.

Widi

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] addons.mozilla.org uses jQuery!

2007-03-29 Thread Sebastian Busch
Hi there,

I hope this is not old news:

http://addons.mozilla.org uses jQuery!

-- 
cu
Sebastian

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] comet

2007-03-29 Thread Erik Beeson
No, server push style AJAX. See here:
http://en.wikipedia.org/wiki/Comet_%28programming%29

--Erik

On 3/29/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
> I've always wondered: what is comet, a code editor?
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Edwin Martin
> Sent: jeudi 29 mars 2007 12:21
> To: jQuery Discussion.
> Subject: Re: [jQuery] comet
>
> Matt Stith schreef:
> > not as far as I have heard, but i would be interested in anything that
> > has, or maybe a Comet plugin? anyone willing?
> >
>
> There is.
>
> Comet Client for jQuery:
>
> http://empireenterprises.com/_comet.html
>
> Simply found in the jQuery plugin repository.
>
> Edwin Martin
> --
> http://www.bitstorm.org/edwin/en/
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> --
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007
> 16:23
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Rick Faircloth
D'oh!  No actually it was a mind-reading test. :oP
 
Here's what I'm running:
 
$.post("Calc_Test_Process_Field_chris.cfm", Params, toggleButton);
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Heimlich
Sent: Wednesday, March 28, 2007 11:36 PM
To: jQuery Discussion
Subject: Re: [jQuery] Correct way to setup a callback function
 
u, you forgot the code.
On 3/28/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
Hi, all...

Is this the correct way to setup a callback function?

i.e... after posting  Params to Calc_Test_Process_Field_chris.cfm,
I would like for the function toggleButton to run...

Is this the correct syntax? 

Thanks,

Rick



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/   



-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com   
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


  1   2   >