[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Dragan Krstic
First to thanks all on replays. I knew that my solution is not perfect, and
I hoped that someone will find better solution (secretly John).

@Justin

We all fill the pain. My knowledge of jQuery still have boundaries, trick is
to find way how to jump over it.

@John, Mitch
This looks and feels better than my solution. I knew that Apple use same
heights, but that was too easy ;). Now I'll try to your accordion
transform to inverted one.

John, you prove me that jQuery have some secret possibilities that aren't
documented (otherwise, they will not be secret :) ).

One more thing: In hours of desperation, I tried to make it by mootools. I
found mootools is much harder to learn. Last year I spent 3 hours from first
opening of jQuery.com until I made tabbed navigation with content loaded via
ajax.


[jQuery] Re: Two words for Jquery

2007-08-02 Thread David Duymelinck


js ez

-- David

Geoffrey Knutzen schreef:

Remember, the two words must be less than a total of 20 characters
(compressed)
:)


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Duymelinck
Sent: Wednesday, August 01, 2007 6:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Two words for Jquery


Javascript Effordless (in most cases)

-- David

Tane Piper schreef:
  

Bloody Brilliant!

(I wonder how many other 2 word ways there are to describe jQuery)

On 8/1/07, Richard D. Worth [EMAIL PROTECTED] wrote:
  


Here here.

- Richard


On 8/1/07, kiwwwi [EMAIL PROTECTED] wrote:

  

jQuery Rocks!!

oh... possibly will add two more words;

Thank you :)

I'm not the best scripter and jquery has simply allowed me to
accomplish with my own personal site so much more than I would
have otherwise attempted.  You people behind jquery are genious and
your work is great, thanks.

Kiwwwi.


  


  
  




  



--
David Duymelinck

[EMAIL PROTECTED]



[jQuery] Re: Good Javascript editor or IDE?

2007-08-02 Thread Christof Donat

Hi,

 What recommendations on JavaScript editors or IDEs does anyone have?

gvim, or emacs whichever fits your needs more ;-) Just to have brought up two 
alternatives to those IDEs packed with special features for everything and 
everyone but don't adapt to your speciffic needs.

 Is there something sophisticated enough that can have intellisense
 with jQuery or my own objects in external js files?

I the ability to extend your editor yourself with touring-complete languages 
is sophisticated enough for you, the two above are for you.

Christof


[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Klaus Hartl


Wizzud wrote:


$('table') ... gets all tables
$('table').eq(1) ... gets the second table
$('#formelement').parent().parent().parent() ... gets the 'great-grandad' of
#formelement

or, to look back up the DOM for a table ...
var _find = $('#formelement');
while(!_find.is('table')){ _find = _find.parent(); }
...but I would recommend putting another test in this loop, just in case
#formelement doesn't have a table above it!


$('#formelement').parents('table:eq(0)');



--Klaus


[jQuery] jquery.flickr + reflection

2007-08-02 Thread b0bd0gz


Hi,
Im trying to use the  http://cow.neondragon.net/stuff/reflection/ reflection
plugin  with the  http://www.projectatomic.com/flickr/#a_code flickr plugin 
but  no reflection is added.

How I have it setup at the moment is once the html is loaded, load a set of
flickr images then add a class called reflect to all img tags on the
document like so.

$(document).ready(function()
{
$('#gallery').flickr({
api_key: 'api key',
type: 'search',
user_id: 'users id',
tags: 'siskin',
thumb_size: 's',
litebox: true
});

$('img').addClass('reflect');
});

The problem is it only adds a reflection to images that are not loaded using
the flickr plugin.  You can see this in  http://b0bd0gz.adsl24.co.uk/jQuery/
action here  where the flickr images don't have a reflection and the other
image underneath does have a reflection.

I hope that explains my problem, if not let me know and I'll try again. 
Thanks in advance for any help:-D

b0bd0gz
-- 
View this message in context: 
http://www.nabble.com/jquery.flickr-%2B-reflection-tf4204797s15494.html#a11960453
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Wizzud


$('table') ... gets all tables
$('table').eq(1) ... gets the second table
$('#formelement').parent().parent().parent() ... gets the 'great-grandad' of
#formelement

or, to look back up the DOM for a table ...
var _find = $('#formelement');
while(!_find.is('table')){ _find = _find.parent(); }
...but I would recommend putting another test in this loop, just in case
#formelement doesn't have a table above it!



Mike Miller-13 wrote:
 
 
 Hi,
 
 Thanks for the tip...the one other question I have related to this
 that I need to move these rows in a table that has no id.  The table
 does have form elements that have id's and I could do something like
 this in JS
 
 document.getElementById(formelement).parentNode.parentNode.parentNode
 - this gets a ref to the table
 
 Likewise
 
 document.getElementsByTagName(table) and then navigate to the
 particular table element I am interested in.
 
 Question now becomes...how do I do either one of those javascript
 functions I am familiar with...with jquery/
 
 M
 
 On Jul 31, 2:57 am, Dave Probert [EMAIL PROTECTED] wrote:
 Or for more detailed movement:
   $('tr:eq(3)').insertBefore('tr:eq(1)');
 or
   $('tr:eq(2)').insertAfter('tr:eq(5)');
 Note: the numbers are the row count - beginning at 0 (zero) for the
 first row.

 Lookup the jquery :xxx qualifiers for more options.

 On Jul 31, 4:16 am, Mike Miller [EMAIL PROTECTED] wrote:



  Haven't been able to find any documentation so far that talks about
  how to move rows around with jquery.  Don't really need to sort the
  whole table...rather I want to move one row to another position.  Can
  this be done?- Hide quoted text -

 - Show quoted text -
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Anything-similar-to-IE%27s-table.moveRow-in-jquery--tf4179383s15494.html#a11960409
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: What does === equate to?

2007-08-02 Thread Sam Collett

I don't think many actually use !== (and when you would want to use
it) and many sites that show usage of operators don't cover !== (but
do have ===).

3 != '3' false
3 !== '3'true
3 == '3' true
3 === '3'false


On Aug 1, 9:33 pm, Michael Geary [EMAIL PROTECTED] wrote:
  I...cannot figure how what the heck === is.

 I see that Jake answered your question, but just for next time...

 You may have tried a Google search for javascript === and been
 disappointed to find it returned no useful results (because Google seems to
 ignore the === in the search).

 The key thing to know is that ===, like most special symbols in JavaScript
 such as + and -, is an operator. Now you can do a more productive Google
 search:

 http://www.google.com/search?q=javascript+operators

 This will help when you run into !== and wonder what the heck *that* one is.
 :-)

 -Mike



[jQuery] Re: where is thickbox reloaded ?

2007-08-02 Thread Alexandre Plennevaux

Hello Klaus,

Maybe some of those geniuses in this list can wrap up a Massage plugin ?

°-¨ 

Good recovery, take it easy!
Alexandre


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Klaus 
Hartl
Sent: mercredi 1 août 2007 16:26
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: where is thickbox reloaded ?


Alexandre Plennevaux wrote:
 is it me or has this promising plugin completely disappeared from this 
 side of the jQniverse?

No, it isn't you. It's me stopping to make any promises :-(

The JavaScript code in SVN is ready for a first beta release, but I still 
didn't manage to clean up the CSS. As I have to stay on my couch the next days 
because I injured my back, maybe I can get that done. Hm, didn't I just say not 
to make any promises any longer?

I should do it soon, I know!


--Klaus

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007 17:26
 



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Alexandre Plennevaux

Beautiful! Must be showcased! That easing effect give it a nice slick
finishing touch ! 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Resig
Sent: jeudi 2 août 2007 0:36
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Hover accordion (as on apple.com)


I still see a little bit of flicker in that new code that you posted - but I
was just able to pull together a demo that works quite nicely.

So here's a new, working, accordion (albeit, a very simple one):
http://dev.jquery.com/~john/plugins/accord/

compare with the old code:
http://dev.jquery.com/~john/plugins/accord/old.html

Just a couple extra lines. There's three problems that had to be solved, two
were CSS, one was jQuery.
1) The headers had to have no margins. (When two margins are next to each
other, the margins collapse.
2) The bodies had to have no padding. (Unless, of course, you wanted to
animate the padding of the elements as well - but I find it easier to just
make the content inside the bodies have margins/padding).
3) When animating two properties, the numbers weren't being rounded properly
(e.g. body A would be 40.5px (rounded to 40px) and body B would be 20.5px
(rounded to 20px) - causing lots of weird jittering to occur.

There's a hidden 'step' function in the jQuery animate function (which, up
until this point, I had little use for, and was considering
removing) that you can use to get the current number of pixels processed for
an animation. So you just compute the remainder, and you get a smooth
result.

This technique *requires* that the bodies all have equal heights (and if
you'll notice, in both Rico and Apple.com, they require that as
well) so that it looks smooth.

Additionally, I threw in a fun easing effect to make things nice and
awesome. Let me know what you guys think!

--John

On 8/1/07, Justin Sepulveda [EMAIL PROTECTED] wrote:

 Finally.  Someone else feels my pain.  I had just posted a message to 
 this group today about this as well.  I just wish there was an easier 
 way to remove that flicker/bounce that happens with the jQuery 
 standard slideUp/slideDown.  Having to call in that many scripts to 
 get this effect seems pretty un-jQuery.  But nice work!

 On Aug 1, 11:18 am, [EMAIL PROTECTED] wrote:
  My company redesigns a web site. Our head designer (as apple fan) 
  decided to put nasty inverted hover accordion on new site. So, 
  yesterday I started to develop a 
  prototype:http://www.bydot.net/hoveracc/hoveracc_1.htm
 
  Structure is:
  ul
li
  div class=omot
  a class=naslov_stavkeNaslov stavke 1/a
div class=sadrzaj_stavkeSadrzaj stavke 1/div
  /div
/li
li
  div class=omot
  a class=naslov_stavkeNaslov stavke 2/a
div class=sadrzaj_stavkeSadrzaj stavke 2/div
  /div
/li
li
  div class=omot a class=naslov_stavkeNaslov stavke 3/a
div class=sadrzaj_stavkeSadrzaj stavke 3/div
  /div
/li
li
  div class=omot a class=naslov_stavkeNaslov stavke 4/a
div class=sadrzaj_stavkeSadrzaj stavke 4/div
  /div
/li
  /ul
  where naslov_stavke is part that should be hidden or shown, and 
  sadrzaj_stavke is always visible. Omot means wrap.
  It took me about half an hour to make this piece, but, there's a 
  flicker that our designer didn't like.
  Never mind if you can do it by jQuery. We will copy from apple.com.
 
  Yeah, sure...
 
  So, I spent next 6 hours yesterday and 4 today to find solution.
  Actually, my idea was same all the time: to fixate elements by
  position: absolute and top property. Here he the list of problems I 
  had to solve:
  1) How to obtain consistency of li elements and children's. I did it 
  with div class=omot. In some time of development it was crucial 
  to have this div. Now, it isn't important, but it can help with styling.
  2) On which container element to position:relative. The best 
  solution is to put on ul element that contains inverted accordion
  3) How to remove position and top properties. There's no mention 
  about that in documentation
  4) How to obtain proper top values for elements that should not move.
  First, I wanted to do it just for elements that must remain static.
  This will be done after each hover. Then, I decided to recalculate 
  top's for each div class=sadrzaj_stavke:
 
  i = 0;
  visine = new Array();
  $(.sadrzaj_stavke).each(function(){visine[i]=$(this).position().to
  p;i
  ++;});
 
  which gives me wrong results all the time.
 
  In one moment I have two perfectly working scripts, but one worked 
  in up direction, second one in down direction :) Finally, I decide 
  to put in work original idea to calculate top's, and that's working 
  perfectly (I abandoned this idea because I wanted to make more 
  flexible script)
 
  Minor problems will be masked with images and css.
 
  This solution can be generally used to solve jQuery animation quirks.
  It can be found 

[jQuery] Re: Collapsible Menu radio buttons problems in IE7

2007-08-02 Thread Wizzud


For some reason (and don't ask me why) IE does not like the checked attribute
being set in the html.

Add

$('#Menu input:radio').get(0).checked = true;

to your ready function, and set your radios to

input type=radio name=selection value=on /
input type=radio name=selection value=off /

(oh, and you should have li tags round the table!)


bucky483 wrote:
 
 
 Hello all,
 
 I just want to first say I'm pretty new to jQuery and so far love it.
 Now with that said I have a problem when using Radio Buttons in a
 Collapsible Menu.  When you collapse the menu and re-open the section,
 the Radio Button(s) that were selected disappear, that is in IE7.
 Mozilla seems to work just fine, but I need this to work in IE7 as
 well.  Below is a very simple example that you can copy and paste to
 see exactly what I'm trying to explain.
 
 Thanks for the help,
 
 Matt
 
 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 script type=text/javascript src=JQuery.js/script
 script type=text/javascript
 $(document).ready(function() {
 $(#Menu  li  a).not(:first).find(+ ul).slideUp(1);
 $(#Menu  li  a).click(function() {
 $(this).find(+ ul).slideToggle(fast);});});
   /script
 style type=text/css
 * {
 margin : 0;
 padding : 0;
 }
 
 body {
 font : 80% verdana, sans-serif;
 padding : 2em;
 }
 
 #Menu,
 #Menu ul {
 list-style : none;
 width : 15em;
 }
 #Menu a {
 background : #444c69  repeat-x center left;
 border-top : 1px solid #5a648b;
 color : #ff;
 display : block;
 padding : 0.7em 1em;
 }
 #Menu ul {
 border-bottom : 1px solid #ddead2;
 }
 #Menu ul a {
 
 border-color : #ddead2;
 color : #55614c;
 }
 #Menu ul a:hover {
 background : #bfddb3  repeat-x center left;
 }
 /style
 /head
 
 body
 ul id=Menu
 li # Section A 
 ul
 table
 tr
 td
 input type=radio name=selection value=on CHECKED
 input type=radio  name=selection value=off
 /td
 /tr
 tr
 td
 input type=checkbox name=test value=1 CHECKED
 input type=checkbox name=test1 value=0
 td
 /tr
 /table
 /ul
 /li
 /ul
 /body
 /html
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Collapsible-Menu-radio-buttons-problems-in-IE7-tf4203311s15494.html#a11960908
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Wizzud



Klaus Hartl wrote:
 
 $('#formelement').parents('table:eq(0)');
 

Even simpler.

NOTE: In documentation of parents(), first example is misleading/incorrect
in that shows the returned items in reverse order.


-- 
View this message in context: 
http://www.nabble.com/Anything-similar-to-IE%27s-table.moveRow-in-jquery--tf4179383s15494.html#a11961595
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Dragan Krstic
@All:

Ok. Here's a final solution for inverted hover accordion. hoverIntent plug
in is must. Structure is same as I posted earlier. Later during I will
upload it on web.
script
var radi1 = true;
var kd_opened;
var to_hide;
var height_op;

jQuery.easing.easeout = function(p, n, firstNum, delta, duration)
{
return -delta * ((n=n/duration-1)*n*n*n - 1) +
firstNum;
}

function otvoriSliku()
{

if(!$(this).siblings(.naslov_stavke).is(:visible)  radi1 )
{

radi1 = false;
to_hide = $(this).siblings(.naslov_stavke);
to_hide.show().height(0);

kd_opened.animate({height:hide},
{step: function(n){
to_hide.height(Math.ceil(height_op-n));
if(n == 0){kd_opened = to_hide;radi1 =
true;}
},
duration: 500,
easing: easeout
});
}
}
$(document).ready(function()
{
kd_opened = $(.naslov_stavke:first);
height_op = kd_opened.height();

$(.naslov_stavke:not(:first)).hide();

$(.sadrzaj_stavke).hoverIntent({
sensitivity: 1,
interval: 50,
over: otvoriSliku,
out: function(){}
 });

});
/script

Easing function is taken from Interface. Differences from  John's script
are:
1) John calculate height of opened headers before each animation. This
script calculates only once, on the beginning, to save some CPU cycles
2) Before animation, height of hidden header must be set to 0. This is
because of differences in behavior of inverted and real accordion.
3) In John script, if you try to click on header during animation, script
becomes nasty. Putting whole animation script in If(radi1) and checking with
if(n == 0){kd_opened = to_hide;radi1 = true;} I prevented run of new
animation before old one is finished.

@John:
You are such inspiration! Thanks man! Or: Hvala ti puno za sve , on my
native (Serbian)


[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Sam Collett

Some simple plugins that may help.

(function($) {
$.fn.moveRowAfter = function(index, afterIndex)
{
 
this.find(tr).eq(index).insertAfter(this.find(tr).eq(afterIndex));
return this;
};
$.fn.moveRowBefore = function(index, beforeIndex)
{
 
this.find(tr).eq(index).insertBefore(this.find(tr).eq(beforeIndex));
return this;
};
})(jQuery);

Usage:

// move first row after fourth row (won't do anything if there are
less than 4 rows in the table)
$(table tbody).moveRowAfter(0, 3);

On Jul 30, 10:16 pm, Mike Miller [EMAIL PROTECTED] wrote:
 Haven't been able to find any documentation so far that talks about
 how to move rows around with jquery.  Don't really need to sort the
 whole table...rather I want to move one row to another position.  Can
 this be done?



[jQuery] Re: What does === equate to?

2007-08-02 Thread Rob Desbois
I had a discussion on the use of the === and !== operators recently on this
list, my opinion was, and still is, that unless you explicitly WANT to allow
type conversion, you should be using these. Only use == and != if you really
want type conversion.

It's bitten me once, although I can't for the life of me remember how, but
it involved lots of in-depth debugging and head-scratching to find the
problem. I'm more wary now and think that these operators are the way to go.

--rob

On 8/2/07, Sam Collett [EMAIL PROTECTED] wrote:


 I don't think many actually use !== (and when you would want to use
 it) and many sites that show usage of operators don't cover !== (but
 do have ===).

 3 != '3' false
 3 !== '3'true
 3 == '3' true
 3 === '3'false


 On Aug 1, 9:33 pm, Michael Geary [EMAIL PROTECTED] wrote:
   I...cannot figure how what the heck === is.
 
  I see that Jake answered your question, but just for next time...
 
  You may have tried a Google search for javascript === and been
  disappointed to find it returned no useful results (because Google seems
 to
  ignore the === in the search).
 
  The key thing to know is that ===, like most special symbols in
 JavaScript
  such as + and -, is an operator. Now you can do a more productive Google
  search:
 
  http://www.google.com/search?q=javascript+operators
 
  This will help when you run into !== and wonder what the heck *that* one
 is.
  :-)
 
  -Mike




-- 
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: What does === equate to?

2007-08-02 Thread Ian Struble

!== and === are identity operators.  It is a good idea to use them
instead of the equality operators (!= and ==) unless you know why you
would want to use equality (and the possible type coercion) over
identity.  Probably the biggest gotcha with equality is with falsy
values (false, 0, undefined, /empty string, null and NaN).   The
truthy / falsy issue is probably what bit you Rob.

It may be worth reading a bit of Douglas Crockford's ideas about
javascript if you are trying to figure out identity and equality
operators:

   http://javascript.crockford.com/code.html

And here is something about truthy and falsy:

  
http://developer.mozilla.org/en/docs/A_re-introduction_to_JavaScript#Other_types

Ian


On 8/2/07, Rob Desbois [EMAIL PROTECTED] wrote:
 I had a discussion on the use of the === and !== operators recently on this
 list, my opinion was, and still is, that unless you explicitly WANT to allow
 type conversion, you should be using these. Only use == and != if you really
 want type conversion.

 It's bitten me once, although I can't for the life of me remember how, but
 it involved lots of in-depth debugging and head-scratching to find the
 problem. I'm more wary now and think that these operators are the way to go.

 --rob


 On 8/2/07, Sam Collett [EMAIL PROTECTED] wrote:
 
  I don't think many actually use !== (and when you would want to use
  it) and many sites that show usage of operators don't cover !== (but
  do have ===).
 
  3 != '3' false
  3 !== '3'true
  3 == '3' true
  3 === '3'false
 
 
  On Aug 1, 9:33 pm, Michael Geary [EMAIL PROTECTED] wrote:
I...cannot figure how what the heck === is.
  
   I see that Jake answered your question, but just for next time...
  
   You may have tried a Google search for javascript === and been
   disappointed to find it returned no useful results (because Google seems
 to
   ignore the === in the search).
  
   The key thing to know is that ===, like most special symbols in
 JavaScript
   such as + and -, is an operator. Now you can do a more productive Google
   search:
  
   http://www.google.com/search?q=javascript+operators
  
   This will help when you run into !== and wonder what the heck *that* one
 is.
   :-)
  
   -Mike
 
 



 --
 Rob Desbois
 Eml: [EMAIL PROTECTED]
 Tel: 01452 760631
 Mob: 07946 705987
  There's a whale there's a whale there's a whale fish he cried, and the
 whale was in full view.
 ...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: Dynamic Load Ajax of 2 jcarousel same page

2007-08-02 Thread Jan Sorgalla


Hi,


Joshp wrote:
 
 I have searched and haven't quite come up with an answer.  I'm trying to
 load 2 separate carousels on the same page from different .txt file
 sources.  I'm not sure what I need to change.  I tried putting two
 separate Javascript jcarousel code on the same page and just changed the
 jQuery.get(../slideshow.txt, function(data) and additionally changed the
 jQuery(#mycarousel2).jcarousel.  However only one source shows up in
 both carousels.
 
 Any help would be greatly appreciated.
 

you need a callback function for each carousel since they load different
files. You can try that (untested):

function mycarousel_itemLoadCallback(url, carousel, state)
{
// Since we get all URLs in one file, we simply add all items
// at once and set the size accordingly.
if (state != 'init')
return;

jQuery.get(url, function(data) {
mycarousel_itemAddCallback(carousel, carousel.first, carousel.last,
data);
});
};

And then pass the following anonymous function as parameter:

jQuery('#mycarousel').jcarousel({
itemLoadCallback: function (carousel, state) {
mycarousel_itemLoadCallback('../slideshow1.txt', carousel, state); }
});

and for the second carousel:

jQuery('#mycarousel').jcarousel({
itemLoadCallback: function (carousel, state) {
mycarousel_itemLoadCallback('../slideshow2.txt', carousel, state); }
});

Jan

-- 
View this message in context: 
http://www.nabble.com/Dynamic-Load-Ajax-of-2-jcarousel-same-page-tf4202780.html#a11961838
Sent from the jCarousel mailing list archive at Nabble.com.



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Dragan Krstic
@John
Why callback doesn't work with step function?

Anyway, step function opens whole new field of synchronized animations.


-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: Ajax Setup Questions

2007-08-02 Thread oscar esp

I test this code:

jQuery.ajaxSetup(
error: function(request, settings,ob){ alert( error:  );}
}) ;

Then error message appear always that I do ajax athought ajax call is
success.

Am I doing something wrong or is a bug?



On 2 ago, 03:13, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 the function is ajaxError() and not error()

 -GTG

 On 8/1/07, oscar esp [EMAIL PROTECTED] wrote:





  I need to have a global behaviour for ajax call. I have next code:

  jQuery().ajaxSuccess(function(request, settings){updateCounter ();});

  jQuery().error(function(request, settings){alert('APLICATION ERROR\n
  '+settings.url);});

  jQuery.ajaxTimeout(12);

  - Ajax Success works fine.

  - I don't know how provoke and error to execute error function Any
  suggestion?

  - TimeOut: When time out event is fired, error function should be
  executed or there is any way to specify which function should be
  fired?

  Thanks.- Ocultar texto de la cita -

 - Mostrar texto de la cita -



[jQuery] Re: How to get font size in pixels?

2007-08-02 Thread Sam Collett

On Aug 1, 11:13 pm, Luke Lutman [EMAIL PROTECTED] wrote:
 I've run into this before, and came up with pretty much the same
 solution as Klaus:

 http://jquery.lukelutman.com/plugins/px/jquery.px.js

 which you can call like so:

 $('#example').px('font-size');

 One known bug is that it won't work for elements that don't accept
 content, like img / or input /.

 Cheers,
 Luke

Another problem is that it wouldn't work if you use % for font size
(which is true in my case).
Getting the height may be a good option (although that also includes
padding).



[jQuery] Re: How to get font size in pixels?

2007-08-02 Thread Klaus Hartl


Sam Collett wrote:

Another problem is that it wouldn't work if you use % for font size
(which is true in my case).
Getting the height may be a good option (although that also includes
padding).


You simply need to use a reference element that doesn't have padding and 
borders.



--Klaus


[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Brandon Aaron
There is always room for improvement! Creating a nice set of demos has been
discussed a few times but no one has actually stepped up to the plate to
make it happen. Would you be willing to write a few demos? Would anyone else
be willing to pitch in and help create a nice set of demos? We will also
need a nice UI (*cough* Glen) to show off the demos.

--
Brandon Aaron

On 8/2/07, fatihturan [EMAIL PROTECTED] wrote:


 What do you think about this question? Do you think jQuery's
 documentation is enought? Personally i think jQuery's documentation
 isn't enought.

 So i'm looking to a href=http://docs.mootools.net/;MooTools
 documentation/a and a href=http://demos.mootools.net/;demos/a
 then i'm looking to a href=http://docs.jquery.com/;jQuery's
 documentation/a  (dude where is demos? xD)  comparing both
 documentations and thinking jQuery's documentation isn't enought.

 However, i want to know what do you think about this situation...




[jQuery] Do you think jQuery's documentation is enought?

2007-08-02 Thread fatihturan

What do you think about this question? Do you think jQuery's
documentation is enought? Personally i think jQuery's documentation
isn't enought.

So i'm looking to a href=http://docs.mootools.net/;MooTools
documentation/a and a href=http://demos.mootools.net/;demos/a
then i'm looking to a href=http://docs.jquery.com/;jQuery's
documentation/a  (dude where is demos? xD)  comparing both
documentations and thinking jQuery's documentation isn't enought.

However, i want to know what do you think about this situation...



[jQuery] Re: 3D carousel?

2007-08-02 Thread Fred Janon
Great work Franck!

I see it with IE6 but it doesn't sho up on the page with FF1.5?

Are you going to make it a plugin available on the jQuery site?

Thanks

Fred

On 8/2/07, Franck Marcia [EMAIL PROTECTED] wrote:


 I up this thread just to announce the brand new carousel of
 www.alapage.com,
 based on the work of Stefan Petre (http://interface.eyecon.ro).

 Many thanks to Stefan, many thanks to John.

 Franck.

 On 9 juil, 14:49, Michael Price [EMAIL PROTECTED] wrote:
  Fred Janon wrote:
   Has anyone done or know how to do a carousel like the 3D circular
   carousel in Flash inAmazon? It looks pretty cool. Forgive me if the
   link doesn't work for you but the carousel shows the best-seller books
   in a 3D circular carousel.
 
  http://www.amazon.com/ref=topnav_gw_/105-7722567-3277224
   http://amazon.com/ref=topnav_gw_/105-7722567-3277224
 
  Hi Fred,
  There's one in the Interface effects library as well:
 http://interface.eyecon.ro/demos
 
  You can see it demonstrated from the above link, near the bottom of the
  Technical Demos list.
 
  Regards,
  Michael Price




[jQuery] Problem with Interface droppable onhover

2007-08-02 Thread NccWarp9

I have a problem with whis:
$('#drag').Draggable();
$('#holder .dropzone').Droppable({
accept :'dropaccept',
activeclass:'dropactive',
hoverclass: 'dropzonehover',
tolerance:  'pointer',
ondrop: function (drag) {
  alert(this); //the
droppable
  alert(drag); //the
draggable
},
onHover: function(drag) { alert(this); 
//the droppable }
});

when I remove onhover line it works but if I add it it sops working,
and ideas?
it is driving me nuts...



[jQuery] Re: jquery.flickr + reflection

2007-08-02 Thread b0bd0gz


Thanks, you were right about the flickr images not being loaded yet.  I added
a setTimeout to delay when the addClass would be executed and it works, but
only some of the time.  Is there a way I can get it to execute only when the
flickr images are loaded? 

Also theres another problem :( when the reflection is added to the flickr
images they won't display inline, instead they display one on top of
another.  I've tried changing the CSS but whenever I get them displaying
inline again the reflection disappears.  Any ideas why it's doing this?
http://b0bd0gz.adsl24.co.uk/jQuery/ 
heres the problem in action  (you'll probably need to refresh it a few times
to see the reflection)

Thanks again for the help.

b0bd0gz
-- 
View this message in context: 
http://www.nabble.com/jquery.flickr-%2B-reflection-tf4204797s15494.html#a11963734
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Dragan Krstic
I think it is enough for start. jQuery is much easier to learn and examples
on jQuery much more understandable and useful than mootools,dojo or
prototype.

But, jQuery have some undocumented features.

For any advanced use, documentation is never enough, but jQuery api stands
out.


-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: Ajax Setup Questions

2007-08-02 Thread Mike Alsup

Oscar,

That should not be the case.  Your error fn should only be invoked
when there is an error.  Do you have a sample page we could look at?
In your code it looks like you have an extra curly brace and also the
arguments passed to the error fn should look like this:

jQuery.ajaxSetup(
error: function(xhr, status, err){ alert(error: +err);}
);

Mike

On 8/2/07, oscar esp [EMAIL PROTECTED] wrote:

 I test this code:

 jQuery.ajaxSetup(
 error: function(request, settings,ob){ alert( error:  );}
 }) ;

 Then error message appear always that I do ajax athought ajax call is
 success.

 Am I doing something wrong or is a bug?


[jQuery] Re: Good Javascript editor or IDE?

2007-08-02 Thread Sam Collett

I use Programmer's Notepad 2 (http://www.pnotepad.org/) and have even
created some jQuery text clips (amongst others - 
http://www.texotela.co.uk/pn2/textclips/)
for it. Although, as I am familiar with the jQuery API and have Visual
Studio I don't use the clips much.

It's not a full-blown IDE like Aptana or Visual Studio, but still a
decent editor (as it does have a lot of features and loads quickly).

On Aug 1, 7:00 pm, Matt Penner [EMAIL PROTECTED] wrote:
 I've just started developing with jQuery in the last month.  I usually
 use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
 much nil as far as intellisense goes.  Mainly all they do is syntax
 highlighting and formatting.

 What recommendations on JavaScript editors or IDEs does anyone have?
 Is there something sophisticated enough that can have intellisense
 with jQuery or my own objects in external js files?

 Thanks,
 Matt



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Tane Piper

maybe you missed this:

http://jquery.bassistance.de/api-browser/

Needs to be updated to 1.1.3 (might be worth holding on to the
soon-to-be-released 1.1.4)

On 8/2/07, fatihturan [EMAIL PROTECTED] wrote:

 What do you think about this question? Do you think jQuery's
 documentation is enought? Personally i think jQuery's documentation
 isn't enought.

 So i'm looking to a href=http://docs.mootools.net/;MooTools
 documentation/a and a href=http://demos.mootools.net/;demos/a
 then i'm looking to a href=http://docs.jquery.com/;jQuery's
 documentation/a  (dude where is demos? xD)  comparing both
 documentations and thinking jQuery's documentation isn't enought.

 However, i want to know what do you think about this situation...




-- 
Tane Piper
http://digitalspaghetti.tooum.net

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


[jQuery] Re: How to get font size in pixels?

2007-08-02 Thread Sam Collett

On Aug 1, 3:42 pm, george.gsgd [EMAIL PROTECTED] wrote:
 Perhaps think around the problem. Can you get the height of the
 element? That'd be in pixels regardless.

 Or maybe use sIFR instead?


sIFR was used, but now a server-side method generates the image (i.e.
so Flash isn't required and the amount the user has to download is
less, plus the page is faster).



[jQuery] Re: Form Plugin and IE 7

2007-08-02 Thread danilow

I can't post a demo page, but using the firebug, he sad that I have an
error in this line of my formplugin.js:

var a = this.formToArray(options.semantic);


The value of each element of this line is this:

this = [ form#insereExame_salvarExame.php ]
formToArray = function()
options = Object url=corpo/exames/_salvarExame.php type=post
semantic = undefined


Can someone help-me?

On 31 jul, 15:20, Mike Alsup [EMAIL PROTECTED] wrote:
 Most likely there is a script error occurring inIE.  Can you post a demo page?

 Mike

  Hi,
  I have some problems withformplugin in theIE7.
  Theform, doesn't submit with ajax submit, theformsubmit like a normal
 form.

  In Firefox is all Ok.



[jQuery] Re: Form Plugin and IE 7

2007-08-02 Thread Mike Alsup

Danilow,

This really isn't much to go on.  Can you post more of your code?  Or
create a small page that demonstrates the problem?

Mike

On 8/2/07, danilow [EMAIL PROTECTED] wrote:

 I can't post a demo page, but using the firebug, he sad that I have an
 error in this line of my formplugin.js:

 var a = this.formToArray(options.semantic);


 The value of each element of this line is this:

 this = [ form#insereExame_salvarExame.php ]
 formToArray = function()
 options = Object url=corpo/exames/_salvarExame.php type=post
 semantic = undefined


 Can someone help-me?

 On 31 jul, 15:20, Mike Alsup [EMAIL PROTECTED] wrote:
  Most likely there is a script error occurring inIE.  Can you post a demo 
  page?
 
  Mike
 
   Hi,
   I have some problems withformplugin in theIE7.
   Theform, doesn't submit with ajax submit, theformsubmit like a normal
  form.
 
   In Firefox is all Ok.




[jQuery] Draw line or polygon like Google Map?

2007-08-02 Thread howa

Hello,

Did you played with Google Map?

Google Map allow you to draw lines or polygon by providing points
array.

So wouldn't it be great if we have plugin using jQuery to do the same
thing, but no need to related to map, just a general drawing library?

howa



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Alexandre Plennevaux

Have you actually tried to read mootools documentation? It's very technical
IMHO.

Jquery documentation 's layout may not be the sexiest, but it performs quite
well in terms on how it is structured, written and how helpful and concise.
Yes, in terms of docs too, less is sometimes more.

I do wish it was more like php 's online docs, with (moderated) users
feedback, tip and tricks for each function. 

Cheers,

alex


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fatihturan
Sent: jeudi 2 août 2007 10:18
To: jQuery (English)
Subject: [jQuery] Do you think jQuery's documentation is enought?


What do you think about this question? Do you think jQuery's documentation
is enought? Personally i think jQuery's documentation isn't enought.

So i'm looking to a href=http://docs.mootools.net/;MooTools
documentation/a and a href=http://demos.mootools.net/;demos/a
then i'm looking to a href=http://docs.jquery.com/;jQuery's
documentation/a  (dude where is demos? xD)  comparing both documentations
and thinking jQuery's documentation isn't enought.

However, i want to know what do you think about this situation...

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007
17:26
 



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Terry B

I like http://www.visualjquery.com  for my jquery documentation...

yes there is lots of room for improvements but it's a working and
living project which is constantly changing and I think the project
managers are doing a great job to date...  and demos?  look at the
plugin pages for demos...  imho the core documentation should only be
techinical with little to no examples...  like the link above, they
give a two liner example with before and after expectations  that
is more then a programmer deserves and is just icing on the cake...

asking for demos of the core is like asking the creators for included
libraries in any language (like c, c++, etc) to provide demos of the
library functions when the coder only needs to know the name, input
parameters and the expected output...

~Terry



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Dragan Krstic
2007/8/2, Alexandre Plennevaux [EMAIL PROTECTED]:


 Have you actually tried to read mootools documentation? It's very
 technical
 IMHO.


Yes, I did, but it cannot provide kick start as jQuery documentation. I have
feeling mootool docs is oriented only to experienced users.

Jquery documentation 's layout may not be the sexiest, but it performs quite
 well in terms on how it is structured, written and how helpful and
 concise.
 Yes, in terms of docs too, less is sometimes more.

 I do wish it was more like php 's online docs, with (moderated) users
 feedback, tip and tricks for each function.


Me too. Even offline version is sufficient for great range of tasks.

Cheers,

 alex


 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of fatihturan
 Sent: jeudi 2 août 2007 10:18
 To: jQuery (English)
 Subject: [jQuery] Do you think jQuery's documentation is enought?


 What do you think about this question? Do you think jQuery's documentation
 is enought? Personally i think jQuery's documentation isn't enought.

 So i'm looking to a href=http://docs.mootools.net/;MooTools
 documentation/a and a href=http://demos.mootools.net/;demos/a
 then i'm looking to a href=http://docs.jquery.com/;jQuery's
 documentation/a  (dude where is demos? xD)  comparing both
 documentations
 and thinking jQuery's documentation isn't enought.

 However, i want to know what do you think about this situation...

 Ce message Envoi est certifié sans virus connu.
 Analyse effectuée par AVG.
 Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007
 17:26





-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: What does === equate to?

2007-08-02 Thread Terry B

known about this for awhile but since we are on the topic...  there
has to be some over head of using == and !=  does anyone know for
sure the impact of the overhead...  and does it matter of the type


On Aug 2, 6:21 am, Ian Struble [EMAIL PROTECTED] wrote:
 !== and === are identity operators.  It is a good idea to use them
 instead of the equality operators (!= and ==) unless you know why you
 would want to use equality (and the possible type coercion) over
 identity.  Probably the biggest gotcha with equality is with falsy
 values (false, 0, undefined, /empty string, null and NaN).   The
 truthy / falsy issue is probably what bit you Rob.

 It may be worth reading a bit of Douglas Crockford's ideas about
 javascript if you are trying to figure out identity and equality
 operators:

http://javascript.crockford.com/code.html

 And here is something about truthy and falsy:

  http://developer.mozilla.org/en/docs/A_re-introduction_to_JavaScript#...

 Ian

 On 8/2/07, Rob Desbois [EMAIL PROTECTED] wrote:

  I had a discussion on the use of the === and !== operators recently on this
  list, my opinion was, and still is, that unless you explicitly WANT to allow
  type conversion, you should be using these. Only use == and != if you really
  want type conversion.

  It's bitten me once, although I can't for the life of me remember how, but
  it involved lots of in-depth debugging and head-scratching to find the
  problem. I'm more wary now and think that these operators are the way to go.

  --rob

  On 8/2/07, Sam Collett [EMAIL PROTECTED] wrote:

   I don't think many actually use !== (and when you would want to use
   it) and many sites that show usage of operators don't cover !== (but
   do have ===).

   3 != '3' false
   3 !== '3'true
   3 == '3' true
   3 === '3'false

   On Aug 1, 9:33 pm, Michael Geary [EMAIL PROTECTED] wrote:
 I...cannot figure how what the heck === is.

I see that Jake answered your question, but just for next time...

You may have tried a Google search for javascript === and been
disappointed to find it returned no useful results (because Google seems
  to
ignore the === in the search).

The key thing to know is that ===, like most special symbols in
  JavaScript
such as + and -, is an operator. Now you can do a more productive Google
search:

   http://www.google.com/search?q=javascript+operators

This will help when you run into !== and wonder what the heck *that* one
  is.
:-)

-Mike

  --
  Rob Desbois
  Eml: [EMAIL PROTECTED]
  Tel: 01452 760631
  Mob: 07946 705987
   There's a whale there's a whale there's a whale fish he cried, and the
  whale was in full view.
  ...Then ooh welcome. Ahhh. Ooh mug welcome.



[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Jonathan Sharp
I'd recommend booglyboogly since that's what happens when you click on the
X

-js


On 8/2/07, Paul Caton [EMAIL PROTECTED] wrote:


 That's neat!

 Now you need a good name for it. Come to think of it, it looks a bit
 like table tennis - maybe you could call it Ping-Pong, something like
 that.  ;-)



[jQuery] Before automatically closes tags...?

2007-08-02 Thread DaveG


I'm trying to enclose sections of the dom with a DIV tag. Basically I want all 
elements between headings (and including the top-most heading) enclosed in a 
DIV.

My approach is to scan through the DOM, find a header tag, insert an opening 
DIV tag, continue scanning until I hit the next header, close the prior div, 
and open a new div tag. Thus:
h2heading 2a\h2
...html tags...
h3heading 3a\h3
...html tags...
h2heading 2b\h2
...html tags...

Becomes (indent added for clarity only):
div
   h2heading 2a\h2
   ...html tags...
\div
div
   h3heading 3a\h3
   ...html tags...
/div
div
   h2heading 2b\h2
   ...html tags...
/div

I'm using .before to add the starting div tag, but it looks like .before 
automatically closes open tags. I don't see any mention of this in the docs. 
How would I go about adding an open ended tag to the DOM?

Alternately, is there a way of identifying each section between headers so I 
can .wrap with a div?

Here's the code snippet:
   var open = false;
   $('#text').children().each(function(i) {
  if( this.nodeName.match(/^H\d+$/) ) {
 if (open) {
$(this).before('/div');
 }
 $(this).before('div class=xxx');
 open = true;
  }
   });




[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Andy Matthews
The thing I don't like about jQuery's docs are that there are lots of things 
left out. I suppose it's assumptions made, but common, important things aren't 
mentioned.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dragan 
Krstic
Sent: Thursday, August 02, 2007 9:18 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Do you think jQuery's documentation is enought?



2007/8/2, Alexandre Plennevaux [EMAIL PROTECTED]: 


Have you actually tried to read mootools documentation? It's very technical
IMHO.


Yes, I did, but it cannot provide kick start as jQuery documentation. I have 
feeling mootool docs is oriented only to experienced users. 



Jquery documentation 's layout may not be the sexiest, but it performs quite 
well in terms on how it is structured, written and how helpful and concise.
Yes, in terms of docs too, less is sometimes more.

I do wish it was more like php 's online docs, with (moderated) users
feedback, tip and tricks for each function. 


Me too. Even offline version is sufficient for great range of tasks.



Cheers,

alex


-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com ] On
Behalf Of fatihturan
Sent: jeudi 2 août 2007 10:18
To: jQuery (English)
Subject: [jQuery] Do you think jQuery's documentation is enought?


What do you think about this question? Do you think jQuery's documentation 
is enought? Personally i think jQuery's documentation isn't enought.

So i'm looking to a href=http://docs.mootools.net/;MooTools
documentation/a and a href= http://demos.mootools.net/;demos/a
then i'm looking to a href=http://docs.jquery.com/;jQuery's
documentation/a  (dude where is demos? xD)  comparing both documentations
and thinking jQuery's documentation isn't enought.

However, i want to know what do you think about this situation...

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007
17:26







-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/ 


[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Paul Caton


That's neat!

Now you need a good name for it. Come to think of it, it looks a bit 
like table tennis - maybe you could call it Ping-Pong, something like 
that.  ;-)


[jQuery] Check this, if you've got the time

2007-08-02 Thread Tobias Parent


Hey, all -

Just finished my first jQuery/AIR app, and it works... mostly. I 
haven't figured how to make my title draggable yet, and it's not the 
most impressive game, but it's working. If you'd like to offer feedback, 
it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html 
or as an AIR file (unverified) at 
http://tobias.parentleafarm.com/rebound.air


Todo on it: make the window draggable by the title bar, make a more 
playable (game-worthy) interface, and start building a jQuery-based game 
engine!!


Thanks!
-Toby


[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Andy Matthews

Doesn't work at all in IE7 (probably 6 either).

In FF2, there's a slight, but annoying, pause when you try to move the
paddle.

Other than those things, it's a cool proof of concept. Good to see some
people jumping into using jQuery with AIR apps.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tobias Parent
Sent: Thursday, August 02, 2007 9:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Check this, if you've got the time


Hey, all -

 Just finished my first jQuery/AIR app, and it works... mostly. I haven't
figured how to make my title draggable yet, and it's not the most impressive
game, but it's working. If you'd like to offer feedback, it's up as an HTML
file at: http://tobias.parentleafarm.com/rebound.html
or as an AIR file (unverified) at
http://tobias.parentleafarm.com/rebound.air

 Todo on it: make the window draggable by the title bar, make a more
playable (game-worthy) interface, and start building a jQuery-based game
engine!!

 Thanks!
 -Toby




[jQuery] Adding 1px border to a TD

2007-08-02 Thread Giovanni Battista Lenoci

Hi, don't know if is a jquery related problem, but can you help me?

I've a table, like this:

table
   
  tbody
  tr class=record
  td class=new
  Test
  /td
  td class=old
  Test 
  /td  
  /tr
  /tbody
/table

Then in my js:

$(.new).hover( function() { $(this).addClass(hover) }, function() { 
$(this).removeClass(hover) } );

my hover class is 


.hover {
  border-bottom:1px solid red;
}

I can see in firebug the class in the markup, but the border doesn't appear.

If I add in the markup the class hover I can see appear and disappear the 
border. 

I noticed the problem if my table as the css property border-collapse:collapse.

Thank you.

P.S.

Please can anyone answer to me, I have a big doubt: Can you read me?

Thank you




[jQuery] Re: Adding 1px border to a TD

2007-08-02 Thread Klaus Hartl


Giovanni Battista Lenoci wrote:

Hi, don't know if is a jquery related problem, but can you help me?

I've a table, like this:

table
   
  tbody

  tr class=record
  td class=new
  Test
  /td
  td class=old
  Test 
  /td  
  /tr

  /tbody
/table

Then in my js:

$(.new).hover( function() { $(this).addClass(hover) }, function() { 
$(this).removeClass(hover) } );

my hover class is 



.hover {
  border-bottom:1px solid red;
}

I can see in firebug the class in the markup, but the border doesn't appear.

If I add in the markup the class hover I can see appear and disappear the border. 


I noticed the problem if my table as the css property border-collapse:collapse.



You already answered your question. The reason ist most probably the 
border-collapse property.


A value of collapse for that property means that a border of two 
adjacent cells collapses into one border, following certain rules 
defined in the CSS spec, see border conflict resolution:

http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution

Say you have a white background. One cell has a white border, the other 
cell a black one. If the borders are to collapse it might happen that 
the white one gets shown, so that it seems there is no border. But not 
only colors affect that, if you declare hidden as border style for one 
cell it may make collapsing borders disappear.


General information:
http://www.w3.org/TR/CSS21/tables.html#collapsing-borders

Last not least, the whole issue isn't implemented consistently cross 
browser of course.



HTH, Klaus





[jQuery] Drag and Drop links

2007-08-02 Thread Mario Moura
Hi Folks

I am trying drag and drop links from treeview plugin to a input box.

or any link (no matter)

When I try do this the input box receive the href. and title

Ex:

a title=Natural Gas Distribution href=/final/24360Natural Gas
Distribution/a

So in this case my input box will receive

http://localhost/final/24360
Natural Gas Distribution

Even if I change my link and remove href or just insert my text.

a href=Natural Gas Distribution title=Natural Gas DistributionNatural
Gas Distribution/a

always will receive my base_path + href  in the last case will receive
something like

http://localhost/final/Natural+Gas+Distribution
Natural Gas Distribution

Probably is a browser feature. I am not sure. Always two rows first href and
second is title

Is it possible or JQuery on the fly drag and Drop just the title? or the
second line to input value box?

Can I remove the first line while I am draging the element before drop?

I tried Interface and easydrag and ui.js and ui.drag.js but didnt work.
Ideas?

My input is a simple text field (one line) so just paste the first line
(Href)

input type=text class=form-text value= id=item-text name=new_item
/

This feature is very simple but very useful for many web app.


Regards

Mario Moura


[jQuery] Re: What does === equate to?

2007-08-02 Thread Rob Desbois
There's no overhead unless the types are different. From the ECMAScript
specification:

For the 'abstract equality comparison algorithm' (==) [11.9.3]
1. if Type(x) is different from Type(y), go to step 14.

For the 'strict equality comparison algorithm' (===) [11.9.3]
1. if Type(x) is different from Type(y), return false.

Steps 2-13 of both algorithms are exactly the same, so if the types match
then there's no difference in the execution of each algorithm, and no
overhead for the abstract algorithm.

--rob

On 8/2/07, Terry B [EMAIL PROTECTED] wrote:


 known about this for awhile but since we are on the topic...  there
 has to be some over head of using == and !=  does anyone know for
 sure the impact of the overhead...  and does it matter of the type


 On Aug 2, 6:21 am, Ian Struble [EMAIL PROTECTED] wrote:
  !== and === are identity operators.  It is a good idea to use them
  instead of the equality operators (!= and ==) unless you know why you
  would want to use equality (and the possible type coercion) over
  identity.  Probably the biggest gotcha with equality is with falsy
  values (false, 0, undefined, /empty string, null and NaN).   The
  truthy / falsy issue is probably what bit you Rob.
 
  It may be worth reading a bit of Douglas Crockford's ideas about
  javascript if you are trying to figure out identity and equality
  operators:
 
 http://javascript.crockford.com/code.html
 
  And here is something about truthy and falsy:
 
   http://developer.mozilla.org/en/docs/A_re-introduction_to_JavaScript#.
 ..
 
  Ian
 
  On 8/2/07, Rob Desbois [EMAIL PROTECTED] wrote:
 
   I had a discussion on the use of the === and !== operators recently on
 this
   list, my opinion was, and still is, that unless you explicitly WANT to
 allow
   type conversion, you should be using these. Only use == and != if you
 really
   want type conversion.
 
   It's bitten me once, although I can't for the life of me remember how,
 but
   it involved lots of in-depth debugging and head-scratching to find the
   problem. I'm more wary now and think that these operators are the way
 to go.
 
   --rob
 
   On 8/2/07, Sam Collett [EMAIL PROTECTED] wrote:
 
I don't think many actually use !== (and when you would want to use
it) and many sites that show usage of operators don't cover !== (but
do have ===).
 
3 != '3' false
3 !== '3'true
3 == '3' true
3 === '3'false
 
On Aug 1, 9:33 pm, Michael Geary [EMAIL PROTECTED] wrote:
  I...cannot figure how what the heck === is.
 
 I see that Jake answered your question, but just for next time...
 
 You may have tried a Google search for javascript === and been
 disappointed to find it returned no useful results (because Google
 seems
   to
 ignore the === in the search).
 
 The key thing to know is that ===, like most special symbols in
   JavaScript
 such as + and -, is an operator. Now you can do a more productive
 Google
 search:
 
http://www.google.com/search?q=javascript+operators
 
 This will help when you run into !== and wonder what the heck
 *that* one
   is.
 :-)
 
 -Mike
 
   --
   Rob Desbois
   Eml: [EMAIL PROTECTED]
   Tel: 01452 760631
   Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and
 the
   whale was in full view.
   ...Then ooh welcome. Ahhh. Ooh mug welcome.




-- 
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
There's a whale there's a whale there's a whale fish he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread Sam Collett

There is a plugin called nextUntil that you may be able to use. An
example is available at http://dev.jquery.com/~john/jquery/test/nextuntil.html

Although I'm surprised it isn't in SVN or on the plugins page (perhaps
there are bugs?).

On Aug 2, 3:48 pm, DaveG [EMAIL PROTECTED] wrote:
 I'm trying to enclose sections of the dom with a DIV tag. Basically I want 
 all elements between headings (and including the top-most heading) enclosed 
 in a DIV.

 My approach is to scan through the DOM, find a header tag, insert an opening 
 DIV tag, continue scanning until I hit the next header, close the prior div, 
 and open a new div tag. Thus:
 h2heading 2a\h2
 ...html tags...
 h3heading 3a\h3
 ...html tags...
 h2heading 2b\h2
 ...html tags...

 Becomes (indent added for clarity only):
 div
h2heading 2a\h2
...html tags...
 \div
 div
h3heading 3a\h3
...html tags...
 /div
 div
h2heading 2b\h2
...html tags...
 /div

 I'm using .before to add the starting div tag, but it looks like .before 
 automatically closes open tags. I don't see any mention of this in the docs. 
 How would I go about adding an open ended tag to the DOM?

 Alternately, is there a way of identifying each section between headers so I 
 can .wrap with a div?

 Here's the code snippet:
var open = false;
$('#text').children().each(function(i) {
   if( this.nodeName.match(/^H\d+$/) ) {
  if (open) {
 $(this).before('/div');
  }
  $(this).before('div class=xxx');
  open = true;
   }
});



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Scott Sauyet


Brandon Aaron wrote:
 On 8/2/07, *fatihturan* [EMAIL PROTECTED] wrote:

 What do you think about this question? Do you think jQuery's
 documentation is enought? Personally i think jQuery's documentation
 isn't enought.

There is always room for improvement! Creating a nice set of demos has 
been discussed a few times but no one has actually stepped up to the 
plate to make it happen. Would you be willing to write a few demos? 
Would anyone else be willing to pitch in and help create a nice set of 
demos? We will also need a nice UI (*cough* Glen) to show off the demos.


Ever since a thread [1] several months ago discussing the Mootools demos 
[2] I've been thinking on and off about how JQuery could demo what it's 
all about.  In the past two weeks, I've been thinking about it more 
seriously and have some real ideas I'd like to test out.  But Sunday I 
leave for a two-week vacation and I will have no time before then to try 
any of this.  If there has been no progress on this before I return, I 
will  try to start implementing these ideas.  If I get anywhere, I will 
share it early with the group.  And I will absolutely need some design 
help.  (Did someone mention Glen? : )


  -- Scott

[1] http://tinyurl.com/2lamfw
[2] http://demos.mootools.net/



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Alexandre Plennevaux
don't forget it's a wiki, so we can actually update it ourselves. What is it 
that you found not well documented ?

   _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy 
Matthews
Sent: jeudi 2 août 2007 15:50
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Do you think jQuery's documentation is enought?


The thing I don't like about jQuery's docs are that there are lots of things 
left out. I suppose it's assumptions made, but common, important things aren't 
mentioned.

   _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dragan 
Krstic
Sent: Thursday, August 02, 2007 9:18 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Do you think jQuery's documentation is enought?



2007/8/2, Alexandre Plennevaux HYPERLINK mailto:[EMAIL PROTECTED][EMAIL 
PROTECTED]: 


Have you actually tried to read mootools documentation? It's very technical
IMHO.


Yes, I did, but it cannot provide kick start as jQuery documentation. I have 
feeling mootool docs is oriented only to experienced users. 



Jquery documentation 's layout may not be the sexiest, but it performs quite 
well in terms on how it is structured, written and how helpful and concise.
Yes, in terms of docs too, less is sometimes more.

I do wish it was more like php 's online docs, with (moderated) users
feedback, tip and tricks for each function. 


Me too. Even offline version is sufficient for great range of tasks.



Cheers,

alex


-Original Message-
From: HYPERLINK mailto:jquery-en@googlegroups.comjquery-en@googlegroups.com 
[mailto:HYPERLINK mailto:jquery-en@googlegroups.comjquery-en@googlegroups.com 
] On
Behalf Of fatihturan
Sent: jeudi 2 août 2007 10:18
To: jQuery (English)
Subject: [jQuery] Do you think jQuery's documentation is enought?


What do you think about this question? Do you think jQuery's documentation 
is enought? Personally i think jQuery's documentation isn't enought.

So i'm looking to a href=HYPERLINK 
http://docs.mootools.net/http://docs.mootools.net/;MooTools
documentation/a and a href= HYPERLINK 
http://demos.mootools.net/http://demos.mootools.net/;demos/a
then i'm looking to a href=HYPERLINK 
http://docs.jquery.com/http://docs.jquery.com/;jQuery's
documentation/a  (dude where is demos? xD)  comparing both documentations
and thinking jQuery's documentation isn't enought.

However, i want to know what do you think about this situation...

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007
17:26







-- 
Dragan Krstić krdr
HYPERLINK http://krdr.ebloggy.com/http://krdr.ebloggy.com/ 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007 17:26
 


[jQuery] Safari: Elements within overlaying Div not recognised

2007-08-02 Thread [EMAIL PROTECTED]

Hi,

Im currently working on a web app which has a feature where a user can
click a button which brings up an image gallery in the form of a div
which overlays the page until the user selects an image, at which
point the gallery is hidden again. This has so far worked perfectly in
Firefox and IE but today I began testing with safari and I'm running
into the following issue.

The Div is displayed as normal when the gallery button is selected but
once the div is visible, none of the images within the div are
clickable as normal and even the close button isnt enabled. its as if
the normal click events which are attached on IE and Ff just dont kick
in and makes this part of the site useless.

This issue only seems to occur on the safari browser, running on Max
OS X.

Any ideas on this one?

Cheers,

Chris



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Mitchell Waite

The documentation is excellent and one major reason I am here. 

As a publisher and writer of computer books, I think I know exactly what the
best next step would be for improving the docs.

Before I sold Waite Group Press to Simon and Schuster we had two very
successful lines of language books

Bibles (ergo reference guides)
How To's (e.g. How Do I..Call a Javascript Function from jQuery)

We let IDG (now Wiley) and others do the dummies books because that area of
the market was a gold mine if you hit it first. I am hoping we will see a
Head First jQuery from O'Rielly and a jQuery Visual QuickStart from
Peachpit.

We know Karl has a reference book coming out from Packit (you should all
preorder it to support our local authors)

WHAT IS NEEDED FOR A JQUERY LEARNING RESOURCE

I think jQuery could benefit greatly from a simple How To
document/book/website addition/etc. If we followed my model the pages would
be a collection of How Do I...(do something in jQ) in a standard format. It
would need a super table of contents and be set up for searching concepts. 

The key is picking a range of really really good How To's. If any of you
have our old Visual Basic How To that sucker really sold well because we
worked very hard picking good examples.

I've been thinking about what these might be and have a lot of other ideas.
In our books we would start with the most basic uses of jQuery and move up
in difficulty and level towards later chapters.  We would aim to have How
Tos that actually did things that are useful but we would try and keep them
short as possible.

I have started a How To list because as a novice I am very aware of the
simple assumptions the docs make and the very important things you need to
know early about syntax and basic concepts.

If anyone is interested in working with me on such a project, let me know
offline and I will report back here if I spark any interest.

Mitch

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Terry B
Sent: Thursday, August 02, 2007 7:18 AM
To: jQuery (English)
Subject: [jQuery] Re: Do you think jQuery's documentation is enought?


I like http://www.visualjquery.com  for my jquery documentation...

yes there is lots of room for improvements but it's a working and
living project which is constantly changing and I think the project
managers are doing a great job to date...  and demos?  look at the
plugin pages for demos...  imho the core documentation should only be
techinical with little to no examples...  like the link above, they
give a two liner example with before and after expectations  that
is more then a programmer deserves and is just icing on the cake...

asking for demos of the core is like asking the creators for included
libraries in any language (like c, c++, etc) to provide demos of the
library functions when the coder only needs to know the name, input
parameters and the expected output...

~Terry



[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Mitchell Waite

Whats the big deal about AIR? I went to the labs to study it and its so
overwhelming (does anything) that I kind of missed the whole point. From
what I gathered its like an entire operating system.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tobias Parent
Sent: Thursday, August 02, 2007 7:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Check this, if you've got the time


Hey, all -

 Just finished my first jQuery/AIR app, and it works... mostly. I 
haven't figured how to make my title draggable yet, and it's not the 
most impressive game, but it's working. If you'd like to offer feedback, 
it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html 
or as an AIR file (unverified) at 
http://tobias.parentleafarm.com/rebound.air

 Todo on it: make the window draggable by the title bar, make a more 
playable (game-worthy) interface, and start building a jQuery-based game 
engine!!

 Thanks!
 -Toby



[jQuery] Re: jquery.flickr + reflection

2007-08-02 Thread Mitchell Waite

Other than this issue with Flickr how do you like the Reflection plug in? it
looks neat to me.
I don't like that the reflection moves everything below it down.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of b0bd0gz
Sent: Thursday, August 02, 2007 5:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jquery.flickr + reflection



Thanks, you were right about the flickr images not being loaded yet.  I
added
a setTimeout to delay when the addClass would be executed and it works, but
only some of the time.  Is there a way I can get it to execute only when the
flickr images are loaded? 

Also theres another problem :( when the reflection is added to the flickr
images they won't display inline, instead they display one on top of
another.  I've tried changing the CSS but whenever I get them displaying
inline again the reflection disappears.  Any ideas why it's doing this?
http://b0bd0gz.adsl24.co.uk/jQuery/ 
heres the problem in action  (you'll probably need to refresh it a few times
to see the reflection)

Thanks again for the help.

b0bd0gz
-- 
View this message in context:
http://www.nabble.com/jquery.flickr-%2B-reflection-tf4204797s15494.html#a119
63734
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jquery.flickr + reflection

2007-08-02 Thread b0bd0gz


I think its great, really easy to use even for a beginner like me :-D and
looks brilliant.  Just need to find out how to stop it moving everything
below it and it'll be perfect=)
-- 
View this message in context: 
http://www.nabble.com/jquery.flickr-%2B-reflection-tf4204797s15494.html#a11967446
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Justin Sepulveda

@John
Thanks for jumping on this as I'm sure you have many more things to
worry about in the jQuery world.  It's very much appreciated.

@Karl
Kick-assity.  I just had to note how awesome this word is.  Nice
work :-)

On Aug 2, 4:01 am, Dragan Krstic [EMAIL PROTECTED] wrote:
 @John
 Why callback doesn't work with step function?

 Anyway, step function opens whole new field of synchronized animations.

 --
 Dragan Krstić krdrhttp://krdr.ebloggy.com/



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Justin Sepulveda

@John
One more thing.  I'm getting a serious amount of JavaScript errors,
the same error repeated over and over.  It seems to happen when i
click on a tab while another tab is open.

jquery.js (line 321)
too much recursion
[Break on this error] fn.constructor != Array  /function/i.test( fn
+  );

On Aug 2, 4:01 am, Dragan Krstic [EMAIL PROTECTED] wrote:
 @John
 Why callback doesn't work with step function?

 Anyway, step function opens whole new field of synchronized animations.

 --
 Dragan Krstić krdrhttp://krdr.ebloggy.com/



[jQuery] Re: What does === equate to?

2007-08-02 Thread Michael Geary
That's an interesting find, Rob, thanks. But watch out. We're looking at the
ECMAScript standard, not running code. An actual implementation could have
different performance for the two operators and still conform to the spec.
 
It does seem unlikely that anyone would code == to be slower than === , but
as Knuth said, I have only proven it correct, not tested it. :-)
 
-Mike



  _  

From: Rob Desbois

There's no overhead unless the types are different. From the ECMAScript
specification:

For the 'abstract equality comparison algorithm' (==) [11.9.3]
1. if Type(x) is different from Type(y), go to step 14. 

For the 'strict equality comparison algorithm' (===) [11.9.3]
1. if Type(x) is different from Type(y), return false.

Steps 2-13 of both algorithms are exactly the same, so if the types match
then there's no difference in the execution of each algorithm, and no
overhead for the abstract algorithm. 

--rob


On 8/2/07, Terry B [EMAIL PROTECTED] wrote: 


known about this for awhile but since we are on the topic...  there
has to be some over head of using == and !=  does anyone know for
sure the impact of the overhead...  and does it matter of the type



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread krdr . mft


 @John
 One more thing.  I'm getting a serious amount of JavaScript errors,
 the same error repeated over and over.  It seems to happen when i
 click on a tab while another tab is open.

 jquery.js (line 321)
 too much recursion
 [Break on this error] fn.constructor != Array  /function/i.test( fn
 +  );

It happens when you click on header during animations. Take a look on
3) in my previous post. Browser cannot handle so many recursions




[jQuery] Re: jquery.flickr + reflection

2007-08-02 Thread Mitchell Waite

You have to leave room for the reflection image, but I wonder if there is a
way to put that image in the background of a DIV so you could write over it
with HTML. My guess now is that it's using display: none instead of hide and
show.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of b0bd0gz
Sent: Thursday, August 02, 2007 9:06 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jquery.flickr + reflection



I think its great, really easy to use even for a beginner like me :-D and
looks brilliant.  Just need to find out how to stop it moving everything
below it and it'll be perfect=)
-- 
View this message in context:
http://www.nabble.com/jquery.flickr-%2B-reflection-tf4204797s15494.html#a119
67446
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: disable Effect queue

2007-08-02 Thread seedy


I think the .animate() function will help you to combine effects
ie.
$(element).animate({height:'toggle',opacity:'toggle'})

This should slide and fade an element at the same time.



ravenel wrote:
 
 
 Hello,
 I am using effects (e.g. fadeIn  Out, slideUp  Down etc.) on a div
 triggered with a mouseover and mouseout event on a trigger-div.
 
 When the user starts entering and leaving the trigger-div with the
 mouse, jquery queues all effects and displays them one after another.
 
 I don't want jQuery to queue the effects.  When the user leaves the
 toggle-div before the onmousover-effect has finished it just should
 override it an start with the onmouseout effect.
 
 How can I achive this?
 
 Thank you in advance
 
 
 

-- 
View this message in context: 
http://www.nabble.com/disable-Effect-queue-tf4169331s15494.html#a11967644
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: slideUp/Down flicker with 1.0.4

2007-08-02 Thread nazeem


Anyone ?

naz..


nazeem wrote:
 
 Can someone help me solve this flicker issue when navigating this
 menu...on LHS
 I am using simple slideup and slidedown..
 
 attached the zip file...
  http://www.nabble.com/file/p11938864/jquery-seap.zip jquery-seap.zip 
 - nazeem
 
 
 Brian Litzinger wrote:
 
 I noticed it Firefox, but surprisingly it doesn't happen for me in
 Safari. I'm injecting html into a div then sliding it down, and I assumed
 I might not have written the code correctly, but I also noticed it on
 normal elements as well. 
 
 Brian
 
 
 
 
 Mika Tuupola wrote:
 
 
 Upon upgrading to jQuery 1.0.4 some of my slideUp/Down elements  
 started to flicker. With 1.0.3 this problem did not exist.
 
 http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown5.html
 http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown6.html
 
 (Click the blue box in the corner).
 
 Am I missing something obvious or is this just css problem?
 
 -- 
 Mika Tuupola
 http://www.appelsiini.net/~tuupola/
 
 
 
 ___
 jQuery mailing list
 [EMAIL PROTECTED]
 http://jquery.com/discuss/
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/slideUp-Down-flicker-with-1.0.4-tf2919581s15494.html#a11968093
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Safari: Elements within overlaying Div not recognised

2007-08-02 Thread Weaver, Scott

Hmmm, sounds like a z-index issue.  Try setting z-index value of the div
that contains the images and close button to a fairly highly value and
see if that enables you to interact with them images.

Hth,
-scott

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, August 02, 2007 11:33 AM
 To: jQuery (English)
 Subject: [jQuery] Safari: Elements within overlaying Div not
recognised
 
 
 Hi,
 
 Im currently working on a web app which has a feature where a user can
 click a button which brings up an image gallery in the form of a div
 which overlays the page until the user selects an image, at which
 point the gallery is hidden again. This has so far worked perfectly in
 Firefox and IE but today I began testing with safari and I'm running
 into the following issue.
 
 The Div is displayed as normal when the gallery button is selected but
 once the div is visible, none of the images within the div are
 clickable as normal and even the close button isnt enabled. its as if
 the normal click events which are attached on IE and Ff just dont kick
 in and makes this part of the site useless.
 
 This issue only seems to occur on the safari browser, running on Max
 OS X.
 
 Any ideas on this one?
 
 Cheers,
 
 Chris



[jQuery] How to add or delete branches in Treeview ?

2007-08-02 Thread Amir

Dear

Please guide me how to add or delete branches/folders/childs in
treeview during run time ?

I shall be very much obliged for this guideline.

Thanks.



[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Mike Miller

Sam...what plugins are you refering to with the moveRowAfter?

M

On Aug 2, 2:24 am, Wizzud [EMAIL PROTECTED] wrote:
 $('table') ... gets all tables
 $('table').eq(1) ... gets the second table
 $('#formelement').parent().parent().parent() ... gets the 'great-grandad' of
 #formelement

 or, to look back up the DOM for a table ...
 var _find = $('#formelement');
 while(!_find.is('table')){ _find = _find.parent(); }
 ...but I would recommend putting another test in this loop, just in case
 #formelement doesn't have a table above it!





 Mike Miller-13 wrote:

  Hi,

  Thanks for the tip...the one other question I have related to this
  that I need to move these rows in a table that has no id.  The table
  does have form elements that have id's and I could do something like
  this in JS

  document.getElementById(formelement).parentNode.parentNode.parentNode
  - this gets a ref to the table

  Likewise

  document.getElementsByTagName(table) and then navigate to the
  particular table element I am interested in.

  Question now becomes...how do I do either one of those javascript
  functions I am familiar with...with jquery/

  M

  On Jul 31, 2:57 am, Dave Probert [EMAIL PROTECTED] wrote:
  Or for more detailed movement:
$('tr:eq(3)').insertBefore('tr:eq(1)');
  or
$('tr:eq(2)').insertAfter('tr:eq(5)');
  Note: the numbers are the row count - beginning at 0 (zero) for the
  first row.

  Lookup the jquery :xxx qualifiers for more options.

  On Jul 31, 4:16 am, Mike Miller [EMAIL PROTECTED] wrote:

   Haven't been able to find any documentation so far that talks about
   how to move rows around with jquery.  Don't really need to sort the
   whole table...rather I want to move one row to another position.  Can
   this be done?- Hide quoted text -

  - Show quoted text -

 --
 View this message in 
 context:http://www.nabble.com/Anything-similar-to-IE%27s-table.moveRow-in-jqu...
 Sent from the JQuery mailing list archive at Nabble.com.- Hide quoted text -

 - Show quoted text -



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Dragan Krstic
Last version of inverted accordion on:
http://www.bydot.net/hoveracc/hoveracc_3.htm
Enjoy...

2007/8/2, [EMAIL PROTECTED] [EMAIL PROTECTED]:



  @John
  One more thing.  I'm getting a serious amount of JavaScript errors,
  the same error repeated over and over.  It seems to happen when i
  click on a tab while another tab is open.
 
  jquery.js (line 321)
  too much recursion
  [Break on this error] fn.constructor != Array  /function/i.test( fn
  +  );

 It happens when you click on header during animations. Take a look on
 3) in my previous post. Browser cannot handle so many recursions





-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] blockUI question

2007-08-02 Thread oscar esp

I am using blockUI like modal window, it means that I load html page
in the blockUI message. That works fine, however I have a problem now,
because I need to block (when I am in the modal) to show confirm
message...

Are there any way to block twice?



[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Tobias Parent


AIR is basically WebKit (the engine behind Safari), more tightly 
integrated into the system. Basically, an easier-to-code version of 
Konfabulator. It allows developers to develop web applications that run 
on the desktop, have behaviors that operate a certain way when you're 
offline, and have a set course of action when your status returns to online.


I do use some AIR gadgets now, and I'm writing a few more, just for fun 
and practice (to say I'm an AIR developer, basically) - I'm a fan of the 
Adobe Kuler (http://kuler.adobe.com) application, which returns a set of 
palettes that users have created.


Mitchell Waite wrote:

Whats the big deal about AIR? I went to the labs to study it and its so
overwhelming (does anything) that I kind of missed the whole point. From
what I gathered its like an entire operating system.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tobias Parent
Sent: Thursday, August 02, 2007 7:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Check this, if you've got the time


Hey, all -

 Just finished my first jQuery/AIR app, and it works... mostly. I 
haven't figured how to make my title draggable yet, and it's not the 
most impressive game, but it's working. If you'd like to offer feedback, 
it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html 
or as an AIR file (unverified) at 
http://tobias.parentleafarm.com/rebound.air


 Todo on it: make the window draggable by the title bar, make a more 
playable (game-worthy) interface, and start building a jQuery-based game 
engine!!


 Thanks!
 -Toby


  




[jQuery] Re: disable Effect queue

2007-08-02 Thread Mitchell Waite

Use 'hover()'.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of seedy
Sent: Thursday, August 02, 2007 9:17 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: disable Effect queue



I think the .animate() function will help you to combine effects
ie.
$(element).animate({height:'toggle',opacity:'toggle'})

This should slide and fade an element at the same time.



ravenel wrote:
 
 
 Hello,
 I am using effects (e.g. fadeIn  Out, slideUp  Down etc.) on a div
 triggered with a mouseover and mouseout event on a trigger-div.
 
 When the user starts entering and leaving the trigger-div with the
 mouse, jquery queues all effects and displays them one after another.
 
 I don't want jQuery to queue the effects.  When the user leaves the
 toggle-div before the onmousover-effect has finished it just should
 override it an start with the onmouseout effect.
 
 How can I achive this?
 
 Thank you in advance
 
 
 

-- 
View this message in context:
http://www.nabble.com/disable-Effect-queue-tf4169331s15494.html#a11967644
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread cfdvlpr

Another question I have is how would you combine a keyup event like
this:

$( [EMAIL PROTECTED]'history'].click ||  [EMAIL PROTECTED] .keyup )
(function()   {

});



[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Christopher Jordan
Mitchell,

Check out my blog post about AIR. It's **WAY** more than just WebKit (though
it does indeed incorproate the WebKit HTML engine).

http://cjordan.us/index.cfm/2007/7/19/Adobe-on-AIR-Bus-Tour-Summer-2007

In short, AIR is the Adobe Integrated Runtime. It allows you to use HTML,
JavaScript, ActionScript3, Flex, FlexBuilder3, Flash or any combination of
the above to create connected desktop applications (sorta like the JVM gives
Java developers the ability to write programs for the desktop). See my blog
post for more detail.

Cheers,
Chris


On 8/2/07, Mitchell Waite [EMAIL PROTECTED] wrote:


 Whats the big deal about AIR? I went to the labs to study it and its so
 overwhelming (does anything) that I kind of missed the whole point. From
 what I gathered its like an entire operating system.

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tobias Parent
 Sent: Thursday, August 02, 2007 7:41 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Check this, if you've got the time


 Hey, all -

 Just finished my first jQuery/AIR app, and it works... mostly. I
 haven't figured how to make my title draggable yet, and it's not the
 most impressive game, but it's working. If you'd like to offer feedback,
 it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html
 or as an AIR file (unverified) at
 http://tobias.parentleafarm.com/rebound.air

 Todo on it: make the window draggable by the title bar, make a more
 playable (game-worthy) interface, and start building a jQuery-based game
 engine!!

 Thanks!
 -Toby




-- 
http://cjordan.us


[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread John Resig

 $([EMAIL PROTECTED]'history'] OR '[EMAIL PROTECTED]').click(function()

Like so:

$([EMAIL PROTECTED]'history'], [EMAIL PROTECTED]').click(function() ...)

--John


[jQuery] Re: Ken Burns effects using jQuery?

2007-08-02 Thread Ganeshji Marwaha
it looks great nicolas. but i would sincerely recommend
one demo per page. It is too straining on the eyes, but i see ur point.

There goes the power of jquery... it is just 1.7 K packed. Good work...

-GTG

On 8/2/07, Nicolas Hoizey [EMAIL PROTECTED] wrote:


  That's a great-looking demo--thanks for the link!  Hopefully a
  jQuery addin will be developed for that.

 I tried, and got something quite nice using only jQuery's animate():
 http://www.gasteroprod.com/data/jquery/jKenBurnsEffect/

 There are 4 running demos on the same page, but it seems to run
 smooth enough on my Mac + Firefox.

 Please tel me if it is interesting, or should be done another way.


 -Nicolas

  On Jul 26, 2007, at 5:12 PM, Nicolas Hoizey wrote:
 
 
  Hello,
 
  Has anyone already made a Ken Burns effects slideshow powered by
  jQuery?
 
  I've found this one very nice, but made with Mootools, and I would
  not like having all JS libraries on my website... ;-)
  http://www.electricprism.com/aeron/slideshow/
 
  I don't need much, only a slideshow of photos moving and zooming in/
  out randomly inside a div.
 
  Thanks!
 
 
  -Nicolas
 
  --
  Nicolas Brush HOIZEY
  Clever Age   : http://www.clever-age.com/
  Gastero Prod : http://www.gasteroprod.com/
  Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
 
 
 



 -Nicolas

 --
 Nicolas Brush HOIZEY
 Clever Age   : http://www.clever-age.com/
 Gastero Prod : http://www.gasteroprod.com/
 Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002





[jQuery] Re: Draw line or polygon like Google Map?

2007-08-02 Thread Ganeshji Marwaha
good idea? I am trying to think of use-cases for it... do u have any real
world use case for it off-hand other than maps.

-GTG

On 8/2/07, howa [EMAIL PROTECTED] wrote:


 Hello,

 Did you played with Google Map?

 Google Map allow you to draw lines or polygon by providing points
 array.

 So wouldn't it be great if we have plugin using jQuery to do the same
 thing, but no need to related to map, just a general drawing library?

 howa




[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Tane Piper

My question is, when are they doing to release a linux version of the
dev kit and runtime?  Its looks very interesting but I have yet been
able to try it out :(


On 02/08/07, Christopher Jordan [EMAIL PROTECTED] wrote:
 Mitchell,

 Check out my blog post about AIR. It's **WAY** more than just WebKit (though
 it does indeed incorproate the WebKit HTML engine).

 http://cjordan.us/index.cfm/2007/7/19/Adobe-on-AIR-Bus-Tour-Summer-2007

 In short, AIR is the Adobe Integrated Runtime. It allows you to use HTML,
 JavaScript, ActionScript3, Flex, FlexBuilder3, Flash or any combination of
 the above to create connected desktop applications (sorta like the JVM gives
 Java developers the ability to write programs for the desktop). See my blog
 post for more detail.

 Cheers,
 Chris


 On 8/2/07, Mitchell Waite [EMAIL PROTECTED] wrote:
 
 
  Whats the big deal about AIR? I went to the labs to study it and its so
  overwhelming (does anything) that I kind of missed the whole point. From
  what I gathered its like an entire operating system.
 
  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of Tobias Parent
  Sent: Thursday, August 02, 2007 7:41 AM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Check this, if you've got the time
 
 
  Hey, all -
 
  Just finished my first jQuery/AIR app, and it works... mostly. I
  haven't figured how to make my title draggable yet, and it's not the
  most impressive game, but it's working. If you'd like to offer feedback,
  it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html
  or as an AIR file (unverified) at
  http://tobias.parentleafarm.com/rebound.air
 
  Todo on it: make the window draggable by the title bar, make a more
  playable (game-worthy) interface, and start building a jQuery-based game
  engine!!
 
  Thanks!
  -Toby
 
 


 --
 http://cjordan.us



-- 
Tane Piper
http://digitalspaghetti.tooum.net

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


[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread DaveG




On Thu, 02 Aug 2007 15:55:20 -, Sam Collett [EMAIL PROTECTED] wrote:
 
 There is a plugin called nextUntil that you may be able to use. An
 example is available at
 http://dev.jquery.com/~john/jquery/test/nextuntil.html

I hadn't seen that before. It's close, but not quite what I'm looking for, as I 
need to be able to specify a list of next elements: nextUnitl (h1,h2,h3...). I 
think amending the function to do that would be considerable work.

What I'd really like is a way to insert dom elements without automatic closure 
taking place. I checked out jQ and didn't see a flag in the code; although to 
be honest I'm not sure I fully understood what's going on in there ;)


 ~ ~ Dave



[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Mike Miller

Ok...so this is working somewhat...the issue I see now is that the
find() in the plugins are finding the wrong row.

My table structure looks like this:

table
 - row1
 - cell 1
  -table
row 2
 -cell 1
   -table
row3
 -cell 1
 -table

When we use the parents(table eq:(0)) I get a reference to the main
table containing all of the nested tables...however when using the
find...it is finding rows within the nested table.

Is there a way to make the find pertain only to the parent?

Mike


On Aug 2, 10:44 am, Mike Miller [EMAIL PROTECTED] wrote:
 Sam...what plugins are you refering to with the moveRowAfter?

 M

 On Aug 2, 2:24 am, Wizzud [EMAIL PROTECTED] wrote:



  $('table') ... gets all tables
  $('table').eq(1) ... gets the second table
  $('#formelement').parent().parent().parent() ... gets the 'great-grandad' of
  #formelement

  or, to look back up the DOM for a table ...
  var _find = $('#formelement');
  while(!_find.is('table')){ _find = _find.parent(); }
  ...but I would recommend putting another test in this loop, just in case
  #formelement doesn't have a table above it!

  Mike Miller-13 wrote:

   Hi,

   Thanks for the tip...the one other question I have related to this
   that I need to move these rows in a table that has no id.  The table
   does have form elements that have id's and I could do something like
   this in JS

   document.getElementById(formelement).parentNode.parentNode.parentNode
   - this gets a ref to the table

   Likewise

   document.getElementsByTagName(table) and then navigate to the
   particular table element I am interested in.

   Question now becomes...how do I do either one of those javascript
   functions I am familiar with...with jquery/

   M

   On Jul 31, 2:57 am, Dave Probert [EMAIL PROTECTED] wrote:
   Or for more detailed movement:
 $('tr:eq(3)').insertBefore('tr:eq(1)');
   or
 $('tr:eq(2)').insertAfter('tr:eq(5)');
   Note: the numbers are the row count - beginning at 0 (zero) for the
   first row.

   Lookup the jquery :xxx qualifiers for more options.

   On Jul 31, 4:16 am, Mike Miller [EMAIL PROTECTED] wrote:

Haven't been able to find any documentation so far that talks about
how to move rows around with jquery.  Don't really need to sort the
whole table...rather I want to move one row to another position.  Can
this be done?- Hide quoted text -

   - Show quoted text -

  --
  View this message in 
  context:http://www.nabble.com/Anything-similar-to-IE%27s-table.moveRow-in-jqu...
  Sent from the JQuery mailing list archive at Nabble.com.- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -



[jQuery] Re: 3D carousel?

2007-08-02 Thread Ganeshji Marwaha
 Are you going to make it a plugin available on the jQuery site?

I thought it was an implementation of the interface 3d carousel on his site.
correct me if i am wrong?

-GTG

On 8/1/07, Fred Janon [EMAIL PROTECTED] wrote:

 Great work Franck!

 I see it with IE6 but it doesn't sho up on the page with FF1.5?

 Are you going to make it a plugin available on the jQuery site?

 Thanks

 Fred

 On 8/2/07, Franck Marcia [EMAIL PROTECTED] wrote:
 
 
  I up this thread just to announce the brand new carousel of
  www.alapage.com,
  based on the work of Stefan Petre (http://interface.eyecon.ro).
 
  Many thanks to Stefan, many thanks to John.
 
  Franck.
 
  On 9 juil, 14:49, Michael Price  [EMAIL PROTECTED] wrote:
   Fred Janon wrote:
Has anyone done or know how to do a carousel like the 3D circular
carousel in Flash inAmazon? It looks pretty cool. Forgive me if the
link doesn't work for you but the carousel shows the best-seller
  books
in a 3D circular carousel.
  
   http://www.amazon.com/ref=topnav_gw_/105-7722567-3277224
http://amazon.com/ref=topnav_gw_/105-7722567-3277224
  
   Hi Fred,
   There's one in the Interface effects library as well:
  http://interface.eyecon.ro/demos
  
   You can see it demonstrated from the above link, near the bottom of
  the
   Technical Demos list.
  
   Regards,
   Michael Price
 
 



[jQuery] Re: Ken Burns effects using jQuery?

2007-08-02 Thread Mitchell Waite

Very nice in FF but no go in IE7.
Too fast - slow down the effects speed so we can really see them.
Is this plug in ready for prime time?

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nicolas Hoizey
Sent: Thursday, August 02, 2007 10:40 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Ken Burns effects using jQuery?


 That's a great-looking demo--thanks for the link!  Hopefully a  
 jQuery addin will be developed for that.

I tried, and got something quite nice using only jQuery's animate():
http://www.gasteroprod.com/data/jquery/jKenBurnsEffect/

There are 4 running demos on the same page, but it seems to run  
smooth enough on my Mac + Firefox.

Please tel me if it is interesting, or should be done another way.


-Nicolas

 On Jul 26, 2007, at 5:12 PM, Nicolas Hoizey wrote:


 Hello,

 Has anyone already made a Ken Burns effects slideshow powered by  
 jQuery?

 I've found this one very nice, but made with Mootools, and I would
 not like having all JS libraries on my website... ;-)
 http://www.electricprism.com/aeron/slideshow/

 I don't need much, only a slideshow of photos moving and zooming in/
 out randomly inside a div.

 Thanks!


 -Nicolas

 -- 
 Nicolas Brush HOIZEY
 Clever Age   : http://www.clever-age.com/
 Gastero Prod : http://www.gasteroprod.com/
 Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002






-Nicolas

-- 
Nicolas Brush HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002




[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread Stephan Beal

On Aug 2, 7:46 pm, DaveG [EMAIL PROTECTED] wrote:
 What I'd really like is a way to insert dom elements without automatic 
 closure taking place. I checked out jQ and didn't see a flag in the code; 
 although to be honest I'm not sure I fully understood what's going on in 
 there ;)

The automatic closure is happening due to HOW the functions like
after() and before() are implemented. When you pass HTML to them, they
use the browser-supplied DOM functions to create a miniature DOM tree.
Your BROWSER is what creates the tree and gives jQuery back a well-
formed DOM tree, which jQuery can than append/prepend/whatever to your
existing DOM tree. This is, in fact, the only sane way to implement
the behaviour, as implementing a full-fledged HTML parser into jQ
would increase its size by several times.



[jQuery] Re: Ken Burns effects using jQuery?

2007-08-02 Thread Andy Matthews

Doesn't work at all on IE. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mitchell Waite
Sent: Thursday, August 02, 2007 1:05 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Ken Burns effects using jQuery?


Very nice in FF but no go in IE7.
Too fast - slow down the effects speed so we can really see them.
Is this plug in ready for prime time?

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nicolas Hoizey
Sent: Thursday, August 02, 2007 10:40 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Ken Burns effects using jQuery?


 That's a great-looking demo--thanks for the link!  Hopefully a jQuery 
 addin will be developed for that.

I tried, and got something quite nice using only jQuery's animate():
http://www.gasteroprod.com/data/jquery/jKenBurnsEffect/

There are 4 running demos on the same page, but it seems to run smooth
enough on my Mac + Firefox.

Please tel me if it is interesting, or should be done another way.


-Nicolas

 On Jul 26, 2007, at 5:12 PM, Nicolas Hoizey wrote:


 Hello,

 Has anyone already made a Ken Burns effects slideshow powered by 
 jQuery?

 I've found this one very nice, but made with Mootools, and I would 
 not like having all JS libraries on my website... ;-) 
 http://www.electricprism.com/aeron/slideshow/

 I don't need much, only a slideshow of photos moving and zooming in/ 
 out randomly inside a div.

 Thanks!


 -Nicolas

 --
 Nicolas Brush HOIZEY
 Clever Age   : http://www.clever-age.com/
 Gastero Prod : http://www.gasteroprod.com/ Photos : 
 http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002






-Nicolas

--
Nicolas Brush HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/ Photos :
http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002





[jQuery] Re: blockUI question

2007-08-02 Thread Mike Alsup

How about using a window.confirm dialog?  :-)

I put together an example of how this can be done with blockUI:

http://malsup.com/jquery/block/nest.html

Mike


On 8/2/07, oscar esp [EMAIL PROTECTED] wrote:

 I am using blockUI like modal window, it means that I load html page
 in the blockUI message. That works fine, however I have a problem now,
 because I need to block (when I am in the modal) to show confirm
 message...

 Are there any way to block twice?




[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread John Resig

I just made a quick tweak to .nextUntil() so that it can take a
comma-separated list of items. I updated the demo to reflect this as
well, for example:

$(h2).each(function(){
$(this).nextUntil(h1, h2).wrapAll(div class='note'/div);
});

--John

On 8/2/07, DaveG [EMAIL PROTECTED] wrote:




 On Thu, 02 Aug 2007 15:55:20 -, Sam Collett [EMAIL PROTECTED] wrote:
 
  There is a plugin called nextUntil that you may be able to use. An
  example is available at
  http://dev.jquery.com/~john/jquery/test/nextuntil.html

 I hadn't seen that before. It's close, but not quite what I'm looking for, as 
 I need to be able to specify a list of next elements: nextUnitl 
 (h1,h2,h3...). I think amending the function to do that would be considerable 
 work.

 What I'd really like is a way to insert dom elements without automatic 
 closure taking place. I checked out jQ and didn't see a flag in the code; 
 although to be honest I'm not sure I fully understood what's going on in 
 there ;)


  ~ ~ Dave




[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread DaveG




On Thu, 2 Aug 2007 13:56:25 -0400, John Resig [EMAIL PROTECTED] wrote:
 
 I just made a quick tweak to .nextUntil() so that it can take a
 comma-separated list of items. I updated the demo to reflect this as
 well, for example:
 
 $(h2).each(function(){
 $(this).nextUntil(h1, h2).wrapAll(div class='note'/div);
 });
 
 --John
 
 On 8/2/07, DaveG [EMAIL PROTECTED] wrote:




 On Thu, 02 Aug 2007 15:55:20 -, Sam Collett [EMAIL PROTECTED]
 wrote:
 
  There is a plugin called nextUntil that you may be able to use. An
  example is available at
  http://dev.jquery.com/~john/jquery/test/nextuntil.html

 I hadn't seen that before. It's close, but not quite what I'm looking
 for, as I need to be able to specify a list of next elements: nextUnitl
 (h1,h2,h3...). I think amending the function to do that would be
 considerable work.

 What I'd really like is a way to insert dom elements without automatic
 closure taking place. I checked out jQ and didn't see a flag in the code;
 although to be honest I'm not sure I fully understood what's going on in
 there ;)


  ~ ~ Dave





[jQuery] Re: where is thickbox reloaded ?

2007-08-02 Thread Ganeshji Marwaha
 (http://www.huddletogether.com/projects/lightbox2/)

is that a popular library. doesnt seem to work on IE 7 though

-GTG

On 8/1/07, Rey Bango [EMAIL PROTECTED] wrote:


 Sorry about your back Klaus! :(

 If you need help in testing please let me know. Since you may be in the
 code, any chance I can convince you to add some of the animation
 features found in Lightbox 2
 (http://www.huddletogether.com/projects/lightbox2/)? :D

 Rey

 Klaus Hartl wrote:
 
  Alexandre Plennevaux wrote:
  is it me or has this promising plugin completely disappeared from this
  side of the jQniverse?
 
  No, it isn't you. It's me stopping to make any promises :-(
 
  The JavaScript code in SVN is ready for a first beta release, but I
  still didn't manage to clean up the CSS. As I have to stay on my couch
  the next days because I injured my back, maybe I can get that done. Hm,
  didn't I just say not to make any promises any longer?
 
  I should do it soon, I know!
 
 
  --Klaus
 



[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread DaveG




On Thu, 2 Aug 2007 13:56:25 -0400, John Resig [EMAIL PROTECTED] wrote:
 
 I just made a quick tweak to .nextUntil() so that it can take a
 comma-separated list of items. I updated the demo to reflect this as
 well, for example:
 
 $(h2).each(function(){
 $(this).nextUntil(h1, h2).wrapAll(div class='note'/div);
 });
 
 --John

Not sure your patch works. Using:
$(h2,h3,h4,h5).each(function(){
$(this).nextUntil(h1,h2,h3,h4,h5).wrapAll(div class='xxx'/div);
});

I'd interpret this as saying wrap DOM elements between each header element. 
That's not what appears to happen. It looks like it wraps from each header 
element to the end of the dom. I think this line:
 expr = expr[0];

 may be the culprit...?



[jQuery] Re: Ken Burns effects using jQuery?

2007-08-02 Thread Stephan Beal

On Aug 2, 7:54 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 it looks great nicolas. but i would sincerely recommend
 one demo per page.

i second Ganeshji's opinion: too many demos on one page. It brings my
browser to a near standstill.



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-02 Thread Justin Sepulveda

I'm silly.  Ignore my post.  Just needed to put in an if statement
that checked if there was more than 1 panel visible.  If so, don't do
anything on click.

On Aug 2, 9:54 am, Dragan Krstic [EMAIL PROTECTED] wrote:
 Last version of inverted accordion 
 on:http://www.bydot.net/hoveracc/hoveracc_3.htm
 Enjoy...

 2007/8/2, [EMAIL PROTECTED] [EMAIL PROTECTED]:





   @John
   One more thing.  I'm getting a serious amount of JavaScript errors,
   the same error repeated over and over.  It seems to happen when i
   click on a tab while another tab is open.

   jquery.js (line 321)
   too much recursion
   [Break on this error] fn.constructor != Array  /function/i.test( fn
   +  );

  It happens when you click on header during animations. Take a look on
  3) in my previous post. Browser cannot handle so many recursions

 --
 Dragan Krstić krdrhttp://krdr.ebloggy.com/



[jQuery] rowIndex property

2007-08-02 Thread Mike Miller

I need to know how to access the rowIndex property of a row in a table
and I want to assign that to a javascript variable:

Something like:

var a = $(#tableRow).



[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Ganeshji Marwaha
Hi list,

I have been thinking about a how-to/demo/interesting-use-cases kinda site
for jquery lately.

But, it is not a trivial effort if we want to get it to a state where it
will be something jquery community can be proud of. So, i guess it should be
more of a community effort with a group of people leading the pack.

So, if someone, like one of the leading plugin authors start such an effort
i will be more than willing to spend my nights and weekends on such an
effort.

-GTG

On 8/2/07, Mitchell Waite [EMAIL PROTECTED] wrote:


 The documentation is excellent and one major reason I am here.

 As a publisher and writer of computer books, I think I know exactly what
 the
 best next step would be for improving the docs.

 Before I sold Waite Group Press to Simon and Schuster we had two very
 successful lines of language books

 Bibles (ergo reference guides)
 How To's (e.g. How Do I..Call a Javascript Function from jQuery)

 We let IDG (now Wiley) and others do the dummies books because that area
 of
 the market was a gold mine if you hit it first. I am hoping we will see a
 Head First jQuery from O'Rielly and a jQuery Visual QuickStart from
 Peachpit.

 We know Karl has a reference book coming out from Packit (you should all
 preorder it to support our local authors)

 WHAT IS NEEDED FOR A JQUERY LEARNING RESOURCE

 I think jQuery could benefit greatly from a simple How To
 document/book/website addition/etc. If we followed my model the pages
 would
 be a collection of How Do I...(do something in jQ) in a standard format.
 It
 would need a super table of contents and be set up for searching concepts.

 The key is picking a range of really really good How To's. If any of you
 have our old Visual Basic How To that sucker really sold well because we
 worked very hard picking good examples.

 I've been thinking about what these might be and have a lot of other
 ideas.
 In our books we would start with the most basic uses of jQuery and move up
 in difficulty and level towards later chapters.  We would aim to have How
 Tos that actually did things that are useful but we would try and keep
 them
 short as possible.

 I have started a How To list because as a novice I am very aware of the
 simple assumptions the docs make and the very important things you need to
 know early about syntax and basic concepts.

 If anyone is interested in working with me on such a project, let me know
 offline and I will report back here if I spark any interest.

 Mitch

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Terry B
 Sent: Thursday, August 02, 2007 7:18 AM
 To: jQuery (English)
 Subject: [jQuery] Re: Do you think jQuery's documentation is enought?


 I like http://www.visualjquery.com  for my jquery documentation...

 yes there is lots of room for improvements but it's a working and
 living project which is constantly changing and I think the project
 managers are doing a great job to date...  and demos?  look at the
 plugin pages for demos...  imho the core documentation should only be
 techinical with little to no examples...  like the link above, they
 give a two liner example with before and after expectations  that
 is more then a programmer deserves and is just icing on the cake...

 asking for demos of the core is like asking the creators for included
 libraries in any language (like c, c++, etc) to provide demos of the
 library functions when the coder only needs to know the name, input
 parameters and the expected output...

 ~Terry




[jQuery] Re: Ken Burns effects using jQuery?

2007-08-02 Thread Nicolas Hoizey

 it looks great nicolas.

Thanks!

 but i would sincerely recommend one demo per page. It is too  
 straining on the eyes, but i see ur point.

OK, I'll do that.


-Nicolas

-- 
Nicolas Brush HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002




[jQuery] Re: Ken Burns effects using jQuery?

2007-08-02 Thread Nicolas Hoizey

 Very nice in FF but no go in IE7.

Just tried with FF for a start.

 Too fast - slow down the effects speed so we can really see them.

The default duration for each photo is 6 seconds and a half, do you  
really think it's too fast???

 Is this plug in ready for prime time?

Not at all, it's just a quick proof of concept. As you mentioned, it  
needs something more to work on other browsers than just FF.


-Nicolas

-- 
Nicolas Brush HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002




[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Tane Piper

I'm in the process of setting up my new site, and I'm building it upon
drupal - which I've found supports the use of script tags, and
embedding JS within nodes - maybe the plugin repository can be
expanded to support demo pages for each plugin, that way its easily
available for any plugin in the repository.  Of course there would
have to be some kind of moderation to stop any malicious code!

I'll show my example off once my site is ready to go live.


On 02/08/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 Hi list,

 I have been thinking about a how-to/demo/interesting-use-cases kinda site
 for jquery lately.

 But, it is not a trivial effort if we want to get it to a state where it
 will be something jquery community can be proud of. So, i guess it should be
 more of a community effort with a group of people leading the pack.

 So, if someone, like one of the leading plugin authors start such an effort
 i will be more than willing to spend my nights and weekends on such an
 effort.

 -GTG

 On 8/2/07, Mitchell Waite [EMAIL PROTECTED] wrote:
 
 
  The documentation is excellent and one major reason I am here.
 
  As a publisher and writer of computer books, I think I know exactly what
  the
  best next step would be for improving the docs.
 
  Before I sold Waite Group Press to Simon and Schuster we had two very
  successful lines of language books
 
  Bibles (ergo reference guides)
  How To's (e.g. How Do I..Call a Javascript Function from jQuery)
 
  We let IDG (now Wiley) and others do the dummies books because that area
  of
  the market was a gold mine if you hit it first. I am hoping we will see a
  Head First jQuery from O'Rielly and a jQuery Visual QuickStart from
  Peachpit.
 
  We know Karl has a reference book coming out from Packit (you should all
  preorder it to support our local authors)
 
  WHAT IS NEEDED FOR A JQUERY LEARNING RESOURCE
 
  I think jQuery could benefit greatly from a simple How To
  document/book/website addition/etc. If we followed my model the pages
  would
  be a collection of How Do I...(do something in jQ) in a standard format.
  It
  would need a super table of contents and be set up for searching concepts.
 
  The key is picking a range of really really good How To's. If any of you
  have our old Visual Basic How To that sucker really sold well because we
  worked very hard picking good examples.
 
  I've been thinking about what these might be and have a lot of other
  ideas.
  In our books we would start with the most basic uses of jQuery and move up
  in difficulty and level towards later chapters.  We would aim to have How
  Tos that actually did things that are useful but we would try and keep
  them
  short as possible.
 
  I have started a How To list because as a novice I am very aware of the
  simple assumptions the docs make and the very important things you need to
  know early about syntax and basic concepts.
 
  If anyone is interested in working with me on such a project, let me know
  offline and I will report back here if I spark any interest.
 
  Mitch
 
  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of Terry B
  Sent: Thursday, August 02, 2007 7:18 AM
  To: jQuery (English)
  Subject: [jQuery] Re: Do you think jQuery's documentation is enought?
 
 
  I like http://www.visualjquery.com  for my jquery documentation...
 
  yes there is lots of room for improvements but it's a working and
  living project which is constantly changing and I think the project
  managers are doing a great job to date...  and demos?  look at the
  plugin pages for demos...  imho the core documentation should only be
  techinical with little to no examples...  like the link above, they
  give a two liner example with before and after expectations  that
  is more then a programmer deserves and is just icing on the cake...
 
  asking for demos of the core is like asking the creators for included
  libraries in any language (like c, c++, etc) to provide demos of the
  library functions when the coder only needs to know the name, input
  parameters and the expected output...
 
  ~Terry
 
 



-- 
Tane Piper
http://digitalspaghetti.tooum.net

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


[jQuery] Re: Before automatically closes tags...?

2007-08-02 Thread DaveG




On Thu, 02 Aug 2007 18:12:02 -, Stephan Beal [EMAIL PROTECTED] wrote:
 
 On Aug 2, 7:46 pm, DaveG [EMAIL PROTECTED] wrote:
 What I'd really like is a way to insert dom elements without automatic
 closure taking place. I checked out jQ and didn't see a flag in the code;
 although to be honest I'm not sure I fully understood what's going on in
 there ;)
 
 The automatic closure is happening due to HOW the functions like
 after() and before() are implemented. When you pass HTML to them, they
 use the browser-supplied DOM functions to create a miniature DOM tree.
 Your BROWSER is what creates the tree and gives jQuery back a well-
 formed DOM tree, which jQuery can than append/prepend/whatever to your
 existing DOM tree. This is, in fact, the only sane way to implement
 the behaviour, as implementing a full-fledged HTML parser into jQ
 would increase its size by several times.

I was not suggesting that the way it's currently handled was wrong. I'd just 
like to be able to optionally not have the tag closed, since I want the closure 
to occur later in the DOM. If I had a means of 'grabbing' the whole block I 
needed, then the auto-closure would be fine in this case, but at this point I 
don't have a way to specify 'grab the dom elements between any header level and 
any other subsequent header level'.



[jQuery] Re: Draw line or polygon like Google Map?

2007-08-02 Thread Tane Piper

UML-like flow diagrams embedded into pages?

I'm sure the canvas tag could be used to make something like this
relativly easy?


On 02/08/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 good idea? I am trying to think of use-cases for it... do u have any real
 world use case for it off-hand other than maps.

 -GTG

 On 8/2/07, howa [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  Did you played with Google Map?
 
  Google Map allow you to draw lines or polygon by providing points
  array.
 
  So wouldn't it be great if we have plugin using jQuery to do the same
  thing, but no need to related to map, just a general drawing library?
 
  howa
 
 



-- 
Tane Piper
http://digitalspaghetti.tooum.net

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


[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Klaus Hartl


Mike Miller wrote:

Ok...so this is working somewhat...the issue I see now is that the
find() in the plugins are finding the wrong row.

My table structure looks like this:

table
 - row1
 - cell 1
  -table
row 2
 -cell 1
   -table
row3
 -cell 1
 -table

When we use the parents(table eq:(0)) I get a reference to the main
table containing all of the nested tables...however when using the
find...it is finding rows within the nested table.

Is there a way to make the find pertain only to the parent?

Mike


Yes, change this.find('tr') to this.find('tr')

(function($) {
$.fn.moveRowAfter = function(index, afterIndex)
{

this.find(tr).eq(index).insertAfter(this.find(tr).eq(afterIndex));
return this;
};

...

})(jQuery);


Also the code could be optimized a bit to only perform one search for 
the rows:


(function($) {
$.fn.moveRowAfter = function(index, afterIndex) {
var trs = this.find(tr);
trs.eq(--index).insertAfter(trs.eq(--afterIndex));
return this;
};
$.fn.moveRowBefore = function(index, beforeIndex) {
var trs = this.find(tr);
trs.eq(--index).insertBefore(trs.eq(--beforeIndex));
return this;
};
})(jQuery);


Next iteration! :-) The code of both methods looks very similiar, why 
not make a single function out of it, save bytes and reduce possible 
maintenancing:


jQuery.fn.moveRow = function(from, to, useBefore) {
var trs = this.find(tr);
trs.eq(--from)['insert' + (useBefore  'Before' || 
'After')](trs.eq(--to));

return this;
};

Usage:

$('table tbody').moveRow(4, 1); // insert after is default

$('table tbody').moveRow(4, 1, true); // insert before


Cheers, Klaus






[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Klaus Hartl


Klaus Hartl wrote:


Mike Miller wrote:

Ok...so this is working somewhat...the issue I see now is that the
find() in the plugins are finding the wrong row.

My table structure looks like this:

table
 - row1
 - cell 1
  -table
row 2
 -cell 1
   -table
row3
 -cell 1
 -table

When we use the parents(table eq:(0)) I get a reference to the main
table containing all of the nested tables...however when using the
find...it is finding rows within the nested table.

Is there a way to make the find pertain only to the parent?

Mike


Yes, change this.find('tr') to this.find('tr')

(function($) {
$.fn.moveRowAfter = function(index, afterIndex)
{

this.find(tr).eq(index).insertAfter(this.find(tr).eq(afterIndex));
return this;
};

...

})(jQuery);


Also the code could be optimized a bit to only perform one search for 
the rows:


(function($) {
$.fn.moveRowAfter = function(index, afterIndex) {
var trs = this.find(tr);
trs.eq(--index).insertAfter(trs.eq(--afterIndex));
return this;
};
$.fn.moveRowBefore = function(index, beforeIndex) {
var trs = this.find(tr);
trs.eq(--index).insertBefore(trs.eq(--beforeIndex));
return this;
};
})(jQuery);


Next iteration! :-) The code of both methods looks very similiar, why 
not make a single function out of it, save bytes and reduce possible 
maintenancing:


jQuery.fn.moveRow = function(from, to, useBefore) {
var trs = this.find(tr);
trs.eq(--from)['insert' + (useBefore  'Before' || 
'After')](trs.eq(--to));

return this;
};

Usage:

$('table tbody').moveRow(4, 1); // insert after is default

$('table tbody').moveRow(4, 1, true); // insert before


Cheers, Klaus



Excuse me, to keep the zero based index, use this:

jQuery.fn.moveRow = function(from, to, useBefore) {
var trs = this.find(tr);
trs.eq(from)['insert' + (useBefore  'Before' || 
'After')](trs.eq(to));

return this;
};


Usage:
$('table tbody').moveRow(3, 0);



--Klaus


[jQuery] Re: 3D carousel?

2007-08-02 Thread Franck Marcia

On 2 août, 19:49, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
  Are you going to make it a plugin available on the jQuery site?

 I thought it was an implementation of the interface 3d carousel on his site.
 correct me if i am wrong?


Yeah, it's just a variation in Stephan's work, with some tweaks to fit
the needs of my company.

Sorry, I'll have no time to package it soon but download it and use it
as it *is* a plugin!

Franck.

PS: it works for me with FF2, IE6, IE7 and Opera9, not sure about
Safari2.



[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-02 Thread Mike Miller

ok Klaus,

Thanks for this...it truly is amazing what jquery can do.  A quick
question for you though regarding the index property.  If I want to
make this more dynamic...do you know how I would find out the value of
the rowIndex property for the table row I want to move?



On Aug 2, 1:17 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
 Klaus Hartl wrote:

  Mike Miller wrote:
  Ok...so this is working somewhat...the issue I see now is that the
  find() in the plugins are finding the wrong row.

  My table structure looks like this:

  table
   - row1
   - cell 1
-table
  row 2
   -cell 1
 -table
  row3
   -cell 1
   -table

  When we use the parents(table eq:(0)) I get a reference to the main
  table containing all of the nested tables...however when using the
  find...it is finding rows within the nested table.

  Is there a way to make the find pertain only to the parent?

  Mike

  Yes, change this.find('tr') to this.find('tr')

  (function($) {
  $.fn.moveRowAfter = function(index, afterIndex)
  {

  this.find(tr).eq(index).insertAfter(this.find(tr).eq(afterIndex));
  return this;
  };

  ...

  })(jQuery);

  Also the code could be optimized a bit to only perform one search for
  the rows:

  (function($) {
  $.fn.moveRowAfter = function(index, afterIndex) {
  var trs = this.find(tr);
  trs.eq(--index).insertAfter(trs.eq(--afterIndex));
  return this;
  };
  $.fn.moveRowBefore = function(index, beforeIndex) {
  var trs = this.find(tr);
  trs.eq(--index).insertBefore(trs.eq(--beforeIndex));
  return this;
  };
  })(jQuery);

  Next iteration! :-) The code of both methods looks very similiar, why
  not make a single function out of it, save bytes and reduce possible
  maintenancing:

  jQuery.fn.moveRow = function(from, to, useBefore) {
  var trs = this.find(tr);
  trs.eq(--from)['insert' + (useBefore  'Before' ||
  'After')](trs.eq(--to));
  return this;
  };

  Usage:

  $('table tbody').moveRow(4, 1); // insert after is default

  $('table tbody').moveRow(4, 1, true); // insert before

  Cheers, Klaus

 Excuse me, to keep the zero based index, use this:

 jQuery.fn.moveRow = function(from, to, useBefore) {
  var trs = this.find(tr);
  trs.eq(from)['insert' + (useBefore  'Before' ||
 'After')](trs.eq(to));
  return this;

 };

 Usage:
 $('table tbody').moveRow(3, 0);

 --Klaus- Hide quoted text -

 - Show quoted text -



[jQuery] .ajax error function

2007-08-02 Thread Joe

My .ajax call is erroring out and I can't figure out why.   Was
working fine, and all the sudden quit.

I am looking for an example of the .ajax error function.  Documentaion
says: error (Function) - A function to be called if the request fails.
The function gets passed three arguments: The XMLHttpRequest object, a
string describing the type of error that occurred and an optional
exception object, if one occurred.

I tried:  error: function(request, settings, expobj).  Is that
correct?
expobj=undefined when I display it.
Where can I find a list of errors the .ajax call can return?



  1   2   >