[jQuery] Re: Draggables in jQuery

2007-06-27 Thread Gilles (Webunity)

Drag yes, drop no ;)

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



[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Ganeshji Marwaha
When i look at Ext or Dojo or YUI, i always have a wow feeling... For a
while i play around with them, and the next thing i know, i remember why i
chose jquery. jquery is a great library that makes javascript easy as
heaven. Once i realize this, again, i am outta dreamland and back into my
favourite place...

First when i saw this post, i thought to myself that probably we dont need
all those interface widgets. They make the page heavy to load, less
responsive... Look at yahoo mail, it takes for ever. If i were to develop an
enterprise app, i wouldn't use many javascript interface widgets (i would
use some).

But not all apps that are developed are enterprise apps. Even if they are,
they need not use so many widgets as to make the page unresponsive. They can
choose the right collection of widgets that will solve their purpose. This
means that choosing jquery as their library of choice should not leave them
stranded without cool outta the box widgets. The best javascript library
sure should have the best collection of widgets. I agree, we have quite a
few widgets and many are cool. But, i guess we need to make it more tight. I
am just thinking out loud here. We probably just need a more coherent effort
to develop great interface components.

I know, i didnt say anything new that u guys dont know. I was just saying
what i felt.

-GTG

On 6/26/07, Gilles (Webunity) [EMAIL PROTECTED] wrote:


 And i am also creating some widgets (including the unobtrusive
 combobox) for jQuery


 http://groups.google.com/group/jquery-en/browse_thread/thread/4ebf9924c0a33ac4



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Alexandre Plennevaux

jScrollpane? Completely, in fact that implementation you see is our custom
designed scrollbars. 
Btw, it is not my plugin it is another of those great plugins by Kelvin
Luck: http://kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

My plugin is jqUploader, which answers the need to show a bar indicating the
progress of a file upload:
http://www.pixeline.be/experiments/jqUploader/test.php

Cheers,

A.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Farrar
Sent: mercredi 27 juin 2007 1:41
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery solutions needed...


Pretty cool... is it skin-able?

Alexandre Plennevaux wrote:
 Hi John,

 I believe jScrollpane should be in this tight list. It's very 
 customisable, fast and easy setup, feels responsive, renders fastly 
 and degrades
 gracefully: http://www.lab-au.com/v1/index.php?section=news

 And some day, my jqUploader plugin will be set for battle :)

 Cheers,

 Alexandre


   
\

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.9.10/873 - Date: 26/06/2007
23:54
 



[jQuery] Re: How to show/add content under a row in a table

2007-06-27 Thread Massimiliano Marini

 Then I do
 $(tr:even).hide();

this works fine, but also the thead/thead become hidden.
There's a method to exclude the thead tag?

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it.  -- Alan Kay


[jQuery] Re: Attn. developers. Speed of getElementById

2007-06-27 Thread Dmitrii 'Mamut' Dimandt

Rey Bango wrote:

 Hi Dmitrii,

 Unfortunately, this isn't a JavaScript support mailing list. The list
 is here to support jQuery users. There are some great JavaScript
 support forums at WebmasterWorld and SitePoint.

 If you have a specific jQuery issue, we'll be glad to help.
Yeah, I know :) I just posted it here for others to see. I might repost
it to jQuery Dev list


[jQuery] Re: Draggables in jQuery

2007-06-27 Thread weepy

lurvely - i can easily hack an end event into that and it makes it
droppable !



On Jun 27, 7:27 am, Gilles (Webunity) [EMAIL PROTECTED] wrote:
 Drag yes, drop no ;)

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



[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Erik Beeson


If you're looking for really fancy Desktop Application type controls,
jQuery probably isn't the right library for you. jQuery is awesome at
being a really small, blazing fast library that adds just the right
amount of features to the javascript language that it actually makes
javascript development fun(tm). It's like javascript++, and it's
really good at what it does. While some people have used it to build
some desktop application type widgets, I don't think that is really
the primary focus of the core development team.

However, jQuery does play along just fine with the other heavyweight
frameworks/libraries that you mentioned. There's even some sort of
thing for integrating jQuery with Ext I believe. So there's no reason
that you couldn't use the YUI or Ext components if you wanted to.

That's not to discourage developers from building widgets with jQuery.
I use jqModal, jEditable, and parts of Interface all the time and I'm
very glad to not have to load up a big library like YUI to get those
features. I'm just saying, use the tool that is appropriate for your
needs :)

--Erik


On 6/26/07, John Farrar [EMAIL PROTECTED] wrote:


The intention of this post is to spark a plug-in dream list.

Here's mine...

1. Tree (like the one in EXTjs)
2. Grid (like the one in EXTjs)
... if your wondering, I want to do server side markup, and modify only
when needed. :)
3. Windows component. (Popup divs rather than windows that are select
box safe of course)
4. Dialogs (msgBox, inputBox, etc.)... modal ready  of course.
5. slider input (feeds a hidden form field of course) with dual sliders
range points of course
6. color requestor
7. date/time requestor
8. drag/drop tile/list components with common drag data interface for
clean interaction
9. Menus
10. toolbar (sorry, not sold on the ribbon as good web senario yet... heh.)
11. ... add yours here.

...now likely some of these things are out there already, but this is
just a shortlist of the ideal plugin library. Perhaps they should
start a survey to see what features are wanted most!



[jQuery] Re: Draggables in jQuery

2007-06-27 Thread [EMAIL PROTECTED]

Make sure you post back here when you've done that as I'd be
interested in this and I'm sure others would too!

On Jun 27, 9:22 am, weepy [EMAIL PROTECTED] wrote:
 lurvely - i can easily hack an end event into that and it makes it
 droppable !

 On Jun 27, 7:27 am, Gilles (Webunity) [EMAIL PROTECTED] wrote:

  Drag yes, drop no ;)

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



[jQuery] Re: Attn. developers. Speed of getElementById

2007-06-27 Thread howa

Hi John,

Currently jQuery don't have caching functions, wouldn't it be great if
we add it?



On 6月22日, 下午10時33分, John Resig [EMAIL PROTECTED] wrote:
 Dimitii -

  test_results.PNG
 14K檢視下載

 Those results are really interesting - you should post them to the jQuery
 Dev list (where we discuss issues like selector speed).

 More information about the list can be found 
 here:http://docs.jquery.com/Discussion

 --John

 On 6/22/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote:





   The original is in Russian:
 http://blogs.gotdotnet.ru/personal/poigraem/PermaLink.aspx?guid=88FEC...

  Here's a quick translation:
  
  We've hit a problem where getElementById is working slowly on a _very_
  large page

  After some research we've found out some interesting facts

  - Speed of getElementById depends on the length of ids. Tests have shown
  that for two identical documents, one with ids like a, another with ids
  like , the speed of getElementById would
  differ by a factor of two. This is especially important for ASP.NET pages
  which usually have long ids

  - There are fast methods and slow methods:
  -- Fast
   parentNode
   nextSibling
   ownerDocument
   firstChild
  -- Slow
   previousSibling
   getElementById
   lastChild

  The getElemenByTagName has a paradox. It returns the list of elements very
  quickly. However, access to elements from that list is very slow. It feels
  as if it were returning a proxy of sorts.

  In a large tree it's faster to collect a hash of all element ids than use
  getElementById. This may look like this:
  [code]

  function build_document_id_map()
 {
 var r = document;
 map = {}
 build_id_map( r, map )
 return map
 }

  function build_id_map( node, map )
 {
 for ( var e = node.firstChild; e != null; e = e.nextSibling )
 {
 if ( e.id ) map[ e.id ] = e;
 if (e.firstChild ) build_id_map( e, map )
 }
 }

  var cache;
  function get_element_by_id( id )
  {
  if ( !cache )
  cache = build_document_id_map(id)
  return cache[id];
  }

  [/code]

  To test this, you may use the test I wrote:
 http://files.rsdn.ru/11521/test.htm

  For each type of element access the test prepares test data anew and runs
  the test three times. These three times appear in the table in milliseconds

  *getDocumentById -* find all nodes through getDocumentById

  *getDocumentById2 -* same, but after the test is run there is a small DOM
  manipulation in the end. See below for explanation of the test.

  *get_element_by_id* -  find all nodes using the get_element_by_id
  described above. The ids cache is cleared every time before the test is run.

  *get_element_by_id2* -  same, but the cache is not cleared. Expect to see
  speed increase in the second and the third run.
  Here's the table of results for my FF:
 http://files.rsdn.ru/11521/test_results.PNG
  [image: Test results for FF]

  Note that FF caches results of getDocumentById and in the first test the
  second and the third pass are much faster than the first one. But as soon as
  we manipulate the DOM even a little, the cache is reset, as we see it in the
  second test

  I'm not going to comment on the third and the fourth test, the numbers
  speak for themselves. I'm going to talk about disadvantages

  The method works well for a static tree. If the tree is being changed,
  there's problems with adding/removing elements. The problem of adding
  elements can easily be solved by:

  function get_element_by_id( id )
  {
  if ( !cache )
  cache = build_document_id_map( id )
  if( !cache[id] )
  cache[id] = document.getElementById( id );
  return cache[id];
  }

  Removal of elements in this case can only be done by a special method
  which will correct the cache. In this case you can forget about

  someElem.innerHTML = ;

  if you wish to remove a large portion of the tree
  - 隱藏被引用文字 -

 - 顯示被引用文字 -



[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Ganeshji Marwaha

Thanks for the suggestion mike... i will take that into account as well...
isn't it a pain. why wouldn't IE implement something as clearly documented
as box model... maybe it implemented it before box model was properly
documented. i dont know.

- GTG


On 6/26/07, Mike Alsup [EMAIL PROTECTED] wrote:



Ganeshji,

Remember to check the box model before blindly adding the margin
values.   You can use the jQuery.boxModel property to check the
browser's impl.

Mike


On 6/26/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 no problem brandon, i seems like, i just have to add margin-left and
 margin-height properties. its all well, as long as there is some
solution...
 :)


 On 6/26/07, Brandon Aaron [EMAIL PROTECTED] wrote:
  Sorry I thought you where looking for offsetWidth which is what
outerWidth
 method does.
 
 
  --
  Brandon Aaron
 
 
  On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED] wrote:
   thanks glen... but i don't completely agree, because technically,
 according to the box model, width does not include border, padding,
margin
 etc.
   But the total box's width, (not the element's width property)
accounts
 for width+border+padding+margin. This is how a box is seen by the
browser
 AFAIK.
  
   So, it is understandable that jquery's width() method returns the
 elements width style alone . But why is dimension's plugin explicitly
 intended to give the width+padding+border without including the margin?
 maybe because that is what offsetWidth property returns and that is what
 outerWidth means probably... no idea. It would be great if someone knew
the
 answer.
  
   Regardless, thank u very much for the calculation suggestion. it
works..
 i used offsetWidth + margin-left + margin-right and it works like a
charm.
 Dont know what will happen when percent values are specified though. got
to
 try that out as well ;)
  
   -GTG
  
  
  
   On 6/26/07, Glen Lipka  [EMAIL PROTECTED] wrote:
But margin shouldn't be included in width.
According to box model that is outside the box.
   
http://www.w3.org/TR/REC-CSS2/box.html
   
Hmm, is there something that computes it all?
http://www.redmelon.net/tstme/box_model/  -- not
 helpful but cool to play with.
   
You could do it on your own, offset + margin-left + margin-right
   
   
Glen
   
   
   
On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED] wrote:
 hey, thanks for putting together a demo page in no time...
 Still, in your settings the margin is not included. When i
include
 the margin, the outerWidth returns the result excluding the margin.

 :((

 - GTG



 On 6/26/07, Glen Lipka [EMAIL PROTECTED] wrote:
  http://www.commadot.com/jquery/dimensions/
  Im too slow. But I made a little test page to see what outputs
 what.
  Change the settings in firebug and click the box.
 
 
  Glen
 
 
  On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED] wrote:
   thanks brandon... lemme try that now i will keep u
posted on
 how it goes...
  
  
  
   On 6/26/07, Brandon Aaron [EMAIL PROTECTED]  wrote:
You need to use the outerWidth and outerHeight methods of
the
 Dimensions plugin. The width and height just return the actual width and
 height according to the box model.
   
--
Brandon Aaron
   
   
   
On 6/26/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 thanks glen,

 but dimensions also return the same result as does
jquery's
 height() and width() method...
 I checked dimesion's source and it seems to delegate the
 call to jquery core's width() / height() method, if the call was not for
 document or window.

 So, still i am getting the width and  height without the
 margin... :(..
 Is there anything else i am missing here.

 -GTG



 On 6/26/07, Glen Lipka [EMAIL PROTECTED] wrote:
  Are you using the dimensions plugin?
  It might be worth using.  Alot of plugins depend on
it.
 
  Glen
 
 
 
  On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED]
 wrote:
   friends,
  
   In the process of developing this jCarouselLite
plugin,
 i am facing a problem. When i retrieve the width or height of an element
 that has a margin associated with it, then the returned width/height
does
 not take the margin into account.
  
   Can anyone help me here?
  
  
   Thanks
   -GTG
  
  
  
   On 6/26/07, Dan G. Switzer, II 
[EMAIL PROTECTED]
  wrote:
   
   
   
   
I'm having the same problem with my plug-in...
   
   
   
-Dan
   
   
   
   


   
From: jquery-en@googlegroups.com
 

[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Ganeshji Marwaha

Hi there,

I have made some fixes to jCarouselLite in the past couple of days. They are
1. make the hidden until the processing is done, so that the images dont
display haphazaedly all around the place
2. some margin, width, height issues where popping up which was handled in
css in the earlier version. Now, this has also been fixed in the code
itself. Glen and Brandon's were extremely helpful here. thanks friends.

The url for the project page has also changed. Now it points to
http://www.gmarwaha.com/jquery/jcarousellite/index.php

I have updated both the plugin wiki and the plugin repository.

-GTG

On 6/27/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:


Thanks for the suggestion mike... i will take that into account as well...
isn't it a pain. why wouldn't IE implement something as clearly documented
as box model... maybe it implemented it before box model was properly
documented. i dont know.

- GTG


 On 6/26/07, Mike Alsup [EMAIL PROTECTED] wrote:


 Ganeshji,

 Remember to check the box model before blindly adding the margin
 values.   You can use the jQuery.boxModel property to check the
 browser's impl.

 Mike


 On 6/26/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
  no problem brandon, i seems like, i just have to add margin-left and
  margin-height properties. its all well, as long as there is some
 solution...
  :)
 
 
  On 6/26/07, Brandon Aaron [EMAIL PROTECTED] wrote:
   Sorry I thought you where looking for offsetWidth which is what
 outerWidth
  method does.
  
  
   --
   Brandon Aaron
  
  
   On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED] wrote:
thanks glen... but i don't completely agree, because technically,
  according to the box model, width does not include border, padding,
 margin
  etc.
But the total box's width, (not the element's width property)
 accounts
  for width+border+padding+margin. This is how a box is seen by the
 browser
  AFAIK.
   
So, it is understandable that jquery's width() method returns the
  elements width style alone . But why is dimension's plugin explicitly
  intended to give the width+padding+border without including the
 margin?
  maybe because that is what offsetWidth property returns and that is
 what
  outerWidth means probably... no idea. It would be great if someone
 knew the
  answer.
   
Regardless, thank u very much for the calculation suggestion. it
 works..
  i used offsetWidth + margin-left + margin-right and it works like a
 charm.
  Dont know what will happen when percent values are specified though.
 got to
  try that out as well ;)
   
-GTG
   
   
   
On 6/26/07, Glen Lipka  [EMAIL PROTECTED] wrote:
 But margin shouldn't be included in width.
 According to box model that is outside the box.

 http://www.w3.org/TR/REC-CSS2/box.html

 Hmm, is there something that computes it all?
 http://www.redmelon.net/tstme/box_model/  -- not
  helpful but cool to play with.

 You could do it on your own, offset + margin-left + margin-right


 Glen



 On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED] wrote:
  hey, thanks for putting together a demo page in no time...
  Still, in your settings the margin is not included. When i
 include
  the margin, the outerWidth returns the result excluding the margin.
 
  :((
 
  - GTG
 
 
 
  On 6/26/07, Glen Lipka  [EMAIL PROTECTED] wrote:
   http://www.commadot.com/jquery/dimensions/
   Im too slow. But I made a little test page to see what
 outputs
  what.
   Change the settings in firebug and click the box.
  
  
   Glen
  
  
   On 6/26/07, Ganeshji Marwaha  [EMAIL PROTECTED] wrote:
thanks brandon... lemme try that now i will keep u
 posted on
  how it goes...
   
   
   
On 6/26/07, Brandon Aaron  [EMAIL PROTECTED] 
 wrote:
 You need to use the outerWidth and outerHeight methods
 of the
  Dimensions plugin. The width and height just return the actual width
 and
  height according to the box model.

 --
 Brandon Aaron



 On 6/26/07, Ganeshji Marwaha [EMAIL PROTECTED] 
 wrote:
  thanks glen,
 
  but dimensions also return the same result as does
 jquery's
  height() and width() method...
  I checked dimesion's source and it seems to delegate
 the
  call to jquery core's width() / height() method, if the call was not
 for
  document or window.
 
  So, still i am getting the width and  height without
 the
  margin... :(..
  Is there anything else i am missing here.
 
  -GTG
 
 
 
  On 6/26/07, Glen Lipka [EMAIL PROTECTED] wrote:
   Are you using the dimensions plugin?
   It might be worth using.  Alot of plugins depend on
 it.
  
   Glen
  
  
  
   On 6/26/07, Ganeshji Marwaha  [EMAIL 

[jQuery] Re: Draggables in jQuery

2007-06-27 Thread Erik Beeson


Good luck editing Brice's code :)

On 6/27/07, weepy [EMAIL PROTECTED] wrote:


lurvely - i can easily hack an end event into that and it makes it
droppable !

On Jun 27, 7:27 am, Gilles (Webunity) [EMAIL PROTECTED] wrote:
 Drag yes, drop no ;)

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


[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Ganeshji Marwaha

While some people have used it to build
some desktop application type widgets, I don't think that is really
the primary focus of the core development team.


Is interface not part of core development team?

- GTG


On 6/27/07, Erik Beeson [EMAIL PROTECTED] wrote:



If you're looking for really fancy Desktop Application type controls,
jQuery probably isn't the right library for you. jQuery is awesome at
being a really small, blazing fast library that adds just the right
amount of features to the javascript language that it actually makes
javascript development fun(tm). It's like javascript++, and it's
really good at what it does. While some people have used it to build
some desktop application type widgets, I don't think that is really
the primary focus of the core development team.

However, jQuery does play along just fine with the other heavyweight
frameworks/libraries that you mentioned. There's even some sort of
thing for integrating jQuery with Ext I believe. So there's no reason
that you couldn't use the YUI or Ext components if you wanted to.

That's not to discourage developers from building widgets with jQuery.
I use jqModal, jEditable, and parts of Interface all the time and I'm
very glad to not have to load up a big library like YUI to get those
features. I'm just saying, use the tool that is appropriate for your
needs :)

--Erik


On 6/26/07, John Farrar [EMAIL PROTECTED] wrote:

 The intention of this post is to spark a plug-in dream list.

 Here's mine...

 1. Tree (like the one in EXTjs)
 2. Grid (like the one in EXTjs)
 ... if your wondering, I want to do server side markup, and modify only
 when needed. :)
 3. Windows component. (Popup divs rather than windows that are select
 box safe of course)
 4. Dialogs (msgBox, inputBox, etc.)... modal ready  of course.
 5. slider input (feeds a hidden form field of course) with dual sliders
 range points of course
 6. color requestor
 7. date/time requestor
 8. drag/drop tile/list components with common drag data interface for
 clean interaction
 9. Menus
 10. toolbar (sorry, not sold on the ribbon as good web senario yet...
heh.)
 11. ... add yours here.

 ...now likely some of these things are out there already, but this is
 just a shortlist of the ideal plugin library. Perhaps they should
 start a survey to see what features are wanted most!




[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Anton

Love it! But...

 button class=prev/button
 button class=next/button

Is there any way you could determine if the number of items equals the
setting in visible? I'd like to hide these buttons if I'm already
viewing all of the items.

cheers,

/Anton



[jQuery] Are there any Wordpress themes using jquery?

2007-06-27 Thread Kia Niskavaara


One of my favourite Wordpress themes, Redoable at 
http://www.deanjrobinson.com/wordpress/redoable is 
using Prototype. I'm also aware of a few other themes using other libraries. 
But I haven't found a 
single theme that's using jquery. Are there any?

Kia


[jQuery] JQuery + Interface, Multiple Slider Problems

2007-06-27 Thread Jamie Turner

Hey All,

I've been building a thermometer-like control using jquery +
interface, and I've been having some problems with the Slider.  I have
a stripped down example here:

http://jamwt.com/temp/jq/

Using FF 2.X you can see, on both thermometers, clicking anywhere
works perfectly.  However, dragging is problematic: on the first,
there is a 10-25px gap between the dragging point and the top of the
active region, and on the second, dragging doesn't seem to work at
all.

Any ideas?  Suggestions for an alternative approach to achieve this
interface?  (Assume the background must be an image...)

Thanks,

 - Jamie Turner



[jQuery] Re: jQuery for GreaseMonkey

2007-06-27 Thread Kia Niskavaara



Sean Catchpole wrote:
 
 On 6/25/07, Kia Niskavaara [EMAIL PROTECTED] wrote:
 Will this work if a site already is using jquery?
 
 Should do, jQuery has it's own double loading protection.
 

Yes, but what about other libraries?

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

If you want to make sure that jQuery won't conflict with another library - but 
you want the benefit 
of a short name, you could do something like this

var $j = jQuery.noConflict();

Maby this should be included in the greasemonkey script?

Kia


[jQuery] Transitions equivalent

2007-06-27 Thread Allan Mullan


Hey guys (and gals)

Are there any plugins for jQuery that work like the transition effects
from Mootools (http://docs.mootools.net/Effects/Fx-Transitions.js) -
Especially the quad function?

Thanks,
Allan



[jQuery] Re: Attn. developers. Speed of getElementById

2007-06-27 Thread Christof Donat

hI,

 String comparison has to compare each char at each position.
 abc=abc would involve 3 iterations.

 digitalbush.com=digitalbush.com would involve 15 iterations.

That is only really relevant if you really need to do all the comparisons. I 
guess that browsers do a linear search trough the list of IDs. That is a 
complexity of O(m*n) for m beeing the length of the id and n the number of 
IDs. Then the length of the ID is important as you did describe it.

If they only would sort the ID list before and use a binary search that would 
go down to O(m*log(n)), which means that both m and n get a lot less 
important for the overall runtime of the algorithm.

They could improve even this by hashing an rehashing. That helps to increase 
the base of the logarithm compared to the base 2 for the binary search.

There is a lot of work available about how big datasets can be handled and 
these algorithms work really fast on Datasets you will never find as IDs in a 
HTML Page - e.g. Datbases with millions of entries.

Caching results sounds like a workaround for jQuery, but actually the problem 
is on the side of the browser vendors. I think that caching brings so many 
problems like knowing when to clear the cache, that I guess that the effort 
to get it right is better invested in pushing the browser vendors. Maybe 
implement better algorithms in free engines like Gecko and Konqueror and make 
some publicity about it.

Christof


[jQuery] Re: How to show/add content under a row in a table

2007-06-27 Thread Massimiliano Marini

 this works fine, but also the thead/thead become hidden.
 There's a method to exclude the thead tag?

I've solved this problem using tow different classes, one for the tr
that must be visible and one for the tr must me hidden. Tnx at all.

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it.  -- Alan Kay


[jQuery] Interface Plugin draggables

2007-06-27 Thread Michael Fuerst

Hi,

I'm having a problem with the draggables:

I'm trying to get a half transparent background for the element I'm
dragging:

$('[EMAIL PROTECTED]' + strKey + ']').Draggable
(
{
revert: true,
autoSize: true,
ghosting: true,
onStart: function(helper)
{
$(helper).addClass('dragging');
}
}
);

And here the css:

.dragging {
backgound-color: #dd;
filter: alpha(opacity=50);
-moz-opacity: 0.5;
}

The class is assigned to the element, I can test this for eg with adding
a border. But the element always has a transparent background...

Michael
 


[jQuery] Re: Drop event

2007-06-27 Thread Michael Fuerst

Erik Beeson schrieb:
 Also, it looks like the current position is stored internally in the
 Draggable somewhere. Maybe try one of these:
 dropped.dragCfg.currentPointer.x
 dropped.dragCfg.nx
 dropped.dragCfg.nRx

Thanks Erik!

dropped.dragCfg.currentPointer.x works like a charm. It's the postion
of the mouse pointer which is perfect for a popup!

Michael


[jQuery] Re: Interface Plugin draggables

2007-06-27 Thread Michael Fuerst

Michael Fuerst schrieb:
 Hi,

 I'm having a problem with the draggables:

 I'm trying to get a half transparent background for the element I'm
 dragging:

   
Stupid me, forget it, I had a typo in my css. Sorry.

Michael


[jQuery] Improving Link Display for Print

2007-06-27 Thread fambizzari

Hi all,

Does anybody know if the js used in the ALA article Improving Link
Display for Print (http://alistapart.com/articles/improvingprint) was
re-written for jQuery?

I think that jQuery would do a much better job than that which has
been presented.

Thanks



[jQuery] Select only the next row in a table

2007-06-27 Thread Massimiliano Marini

Hi all,

I've this table :

table id=t1
  tr class=visible
   tda href=# class=showNextRowView Next Row/td
   tdCell with content/td
  /tr
  tr class=hidden
td colspan=2Hello to the jQuery community/td
  /tr
  ...
  ...
  ...
/table

I'm using this code to diplay the tr with hidden class :
$('a').filter('.visible').click(function(){
  $('.hidden').toggle();
}

what I want to do, is to toggle or show only the tr(only one only
the next) that is under the tr where is the link that I've clicked. 

I think the example and the code may help more than my description of
the problem :)

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it.  -- Alan Kay


[jQuery] Re: Interface Plugin draggables

2007-06-27 Thread Michael Fuerst

Michael Fuerst schrieb:
 I'm having a problem with the draggables:

 I'm trying to get a half transparent background for the element I'm
 dragging:
   
Stupid me, forget it, I had a typo in my css, sorry.

Michael


[jQuery] Re: Draggables in jQuery

2007-06-27 Thread weepy

ah - don't want to get y'all too excited - but I just meant providing
'dragstart' and 'dragend' callback events.

:...(

On Jun 27, 10:23 am, Erik Beeson [EMAIL PROTECTED] wrote:
 Good luck editing Brice's code :)

 On 6/27/07, weepy [EMAIL PROTECTED] wrote:



  lurvely - i can easily hack an end event into that and it makes it
  droppable !

  On Jun 27, 7:27 am, Gilles (Webunity) [EMAIL PROTECTED] wrote:
   Drag yes, drop no ;)

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



[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Olaf Bosch


Ganeshji Marwaha schrieb:

Hi there,

I have made some fixes to jCarouselLite in the past couple of days. They 
are


Oho, what for fine Plug. Is so good.

On other side, i do JS OFF in Fx, oh, what i see, nothing and all the 
Buttons :(


This should be on your ToDo-List. And is it better you use A HREF=# 
for the Buttuns? Is better to styling! And cane you make this write from 
the JS to the DOM, for JS OFF? The Links/Buttons is not for this user 
with JS OFF.


Thanks, and sorry for bad english.

--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---


[jQuery] Re: Transitions equivalent

2007-06-27 Thread Erik Beeson


Like this?

http://gsgd.co.uk/sandbox/jquery.easing.php

--Erik


On 6/27/07, Allan Mullan [EMAIL PROTECTED] wrote:


Hey guys (and gals)

Are there any plugins for jQuery that work like the transition effects
from Mootools (http://docs.mootools.net/Effects/Fx-Transitions.js) -
Especially the quad function?

Thanks,
Allan




[jQuery] Re: Attn. developers. Speed of getElementById

2007-06-27 Thread Rey Bango


Yeah, I saw that you posted it into Dev. I know John wanted you to share 
it with the dev group so thanks for posting it there.


Rey

Dmitrii 'Mamut' Dimandt wrote:

Rey Bango wrote:

Hi Dmitrii,

Unfortunately, this isn't a JavaScript support mailing list. The list
is here to support jQuery users. There are some great JavaScript
support forums at WebmasterWorld and SitePoint.

If you have a specific jQuery issue, we'll be glad to help.

Yeah, I know :) I just posted it here for others to see. I might repost
it to jQuery Dev list



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


[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Erik Beeson


While it's arguing a bit of a technicality, I maintain that Interface
is not part of the core development of jQuery, and that it's still
very much an addon, not a true first class citizen like in Ext/YUI.

From http://docs.jquery.com/About/Contributors


Interface has been adopted as an officially-sponsored jQuery plugin

While Interface is made by jQuery developers, it's still just a
plugin, and isn't even hosted on (or even specially promoted much on)
the main jquery.com site.

Even so, Interface is not Ext/YUI, and it probably never will be
(which I like about it, btw). I think Interface falls about in the
middle between vanilla jQuery and a heavier widget driven library.

--Erik


On 6/27/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:

While some people have used it to build
some desktop application type widgets, I don't think that is really
the primary focus of the core development team.

Is interface not part of core development team?

- GTG



On 6/27/07, Erik Beeson [EMAIL PROTECTED] wrote:

 If you're looking for really fancy Desktop Application type controls,
 jQuery probably isn't the right library for you. jQuery is awesome at
 being a really small, blazing fast library that adds just the right
 amount of features to the javascript language that it actually makes
 javascript development fun(tm). It's like javascript++, and it's
 really good at what it does. While some people have used it to build
 some desktop application type widgets, I don't think that is really
 the primary focus of the core development team.

 However, jQuery does play along just fine with the other heavyweight
 frameworks/libraries that you mentioned. There's even some sort of
 thing for integrating jQuery with Ext I believe. So there's no reason
 that you couldn't use the YUI or Ext components if you wanted to.

 That's not to discourage developers from building widgets with jQuery.
 I use jqModal, jEditable, and parts of Interface all the time and I'm
 very glad to not have to load up a big library like YUI to get those
 features. I'm just saying, use the tool that is appropriate for your
 needs :)

 --Erik


 On 6/26/07, John Farrar [EMAIL PROTECTED] wrote:
 
  The intention of this post is to spark a plug-in dream list.
 
  Here's mine...
 
  1. Tree (like the one in EXTjs)
  2. Grid (like the one in EXTjs)
  ... if your wondering, I want to do server side markup, and modify only
  when needed. :)
  3. Windows component. (Popup divs rather than windows that are select
  box safe of course)
  4. Dialogs (msgBox, inputBox, etc.)... modal ready  of course.
  5. slider input (feeds a hidden form field of course) with dual sliders
  range points of course
  6. color requestor
  7. date/time requestor
  8. drag/drop tile/list components with common drag data interface for
  clean interaction
  9. Menus
  10. toolbar (sorry, not sold on the ribbon as good web senario yet...
heh.)
  11. ... add yours here.
 
  ...now likely some of these things are out there already, but this is
  just a shortlist of the ideal plugin library. Perhaps they should
  start a survey to see what features are wanted most!
 





[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Rey Bango


Erik,

I think I can clarify this. Interface is an official plugin and a big 
part of the jQuery project. Both Stefan  Paul, the authors and 
maintainers of Interface, are members of the jQuery project team whose 
primary task is to work on effects.


The relationship is more like Prototype/Scriptaculous than YUI/Ext. 
There are no plans to directly embed something like Interface into the 
core jQuery library because we want to maintain a small compact 
framework for working with JS, DOM  Ajax. We prefer to keep them apart 
so the community can choose what's appropriate for their project.


As for hosting, Interface's code is actually hosted on the jQuery SVN.

Rey...

Erik Beeson wrote:


While it's arguing a bit of a technicality, I maintain that Interface
is not part of the core development of jQuery, and that it's still
very much an addon, not a true first class citizen like in Ext/YUI.

From http://docs.jquery.com/About/Contributors


Interface has been adopted as an officially-sponsored jQuery plugin

While Interface is made by jQuery developers, it's still just a
plugin, and isn't even hosted on (or even specially promoted much on)
the main jquery.com site.

Even so, Interface is not Ext/YUI, and it probably never will be
(which I like about it, btw). I think Interface falls about in the
middle between vanilla jQuery and a heavier widget driven library.

--Erik


On 6/27/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:

While some people have used it to build
some desktop application type widgets, I don't think that is really
the primary focus of the core development team.

Is interface not part of core development team?

- GTG



On 6/27/07, Erik Beeson [EMAIL PROTECTED] wrote:

 If you're looking for really fancy Desktop Application type controls,
 jQuery probably isn't the right library for you. jQuery is awesome at
 being a really small, blazing fast library that adds just the right
 amount of features to the javascript language that it actually makes
 javascript development fun(tm). It's like javascript++, and it's
 really good at what it does. While some people have used it to build
 some desktop application type widgets, I don't think that is really
 the primary focus of the core development team.

 However, jQuery does play along just fine with the other heavyweight
 frameworks/libraries that you mentioned. There's even some sort of
 thing for integrating jQuery with Ext I believe. So there's no reason
 that you couldn't use the YUI or Ext components if you wanted to.

 That's not to discourage developers from building widgets with jQuery.
 I use jqModal, jEditable, and parts of Interface all the time and I'm
 very glad to not have to load up a big library like YUI to get those
 features. I'm just saying, use the tool that is appropriate for your
 needs :)

 --Erik


 On 6/26/07, John Farrar [EMAIL PROTECTED] wrote:
 
  The intention of this post is to spark a plug-in dream list.
 
  Here's mine...
 
  1. Tree (like the one in EXTjs)
  2. Grid (like the one in EXTjs)
  ... if your wondering, I want to do server side markup, and modify 
only

  when needed. :)
  3. Windows component. (Popup divs rather than windows that are select
  box safe of course)
  4. Dialogs (msgBox, inputBox, etc.)... modal ready  of course.
  5. slider input (feeds a hidden form field of course) with dual 
sliders

  range points of course
  6. color requestor
  7. date/time requestor
  8. drag/drop tile/list components with common drag data interface for
  clean interaction
  9. Menus
  10. toolbar (sorry, not sold on the ribbon as good web senario yet...
heh.)
  11. ... add yours here.
 
  ...now likely some of these things are out there already, but this is
  just a shortlist of the ideal plugin library. Perhaps they should
  start a survey to see what features are wanted most!
 







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


[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread Erik Beeson


Thanks for the clarification.

--Erik


On 6/27/07, Rey Bango [EMAIL PROTECTED] wrote:


Erik,

I think I can clarify this. Interface is an official plugin and a big
part of the jQuery project. Both Stefan  Paul, the authors and
maintainers of Interface, are members of the jQuery project team whose
primary task is to work on effects.

The relationship is more like Prototype/Scriptaculous than YUI/Ext.
There are no plans to directly embed something like Interface into the
core jQuery library because we want to maintain a small compact
framework for working with JS, DOM  Ajax. We prefer to keep them apart
so the community can choose what's appropriate for their project.

As for hosting, Interface's code is actually hosted on the jQuery SVN.

Rey...

Erik Beeson wrote:

 While it's arguing a bit of a technicality, I maintain that Interface
 is not part of the core development of jQuery, and that it's still
 very much an addon, not a true first class citizen like in Ext/YUI.
 From http://docs.jquery.com/About/Contributors

 Interface has been adopted as an officially-sponsored jQuery plugin

 While Interface is made by jQuery developers, it's still just a
 plugin, and isn't even hosted on (or even specially promoted much on)
 the main jquery.com site.

 Even so, Interface is not Ext/YUI, and it probably never will be
 (which I like about it, btw). I think Interface falls about in the
 middle between vanilla jQuery and a heavier widget driven library.

 --Erik


 On 6/27/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 While some people have used it to build
 some desktop application type widgets, I don't think that is really
 the primary focus of the core development team.

 Is interface not part of core development team?

 - GTG



 On 6/27/07, Erik Beeson [EMAIL PROTECTED] wrote:
 
  If you're looking for really fancy Desktop Application type controls,
  jQuery probably isn't the right library for you. jQuery is awesome at
  being a really small, blazing fast library that adds just the right
  amount of features to the javascript language that it actually makes
  javascript development fun(tm). It's like javascript++, and it's
  really good at what it does. While some people have used it to build
  some desktop application type widgets, I don't think that is really
  the primary focus of the core development team.
 
  However, jQuery does play along just fine with the other heavyweight
  frameworks/libraries that you mentioned. There's even some sort of
  thing for integrating jQuery with Ext I believe. So there's no reason
  that you couldn't use the YUI or Ext components if you wanted to.
 
  That's not to discourage developers from building widgets with jQuery.
  I use jqModal, jEditable, and parts of Interface all the time and I'm
  very glad to not have to load up a big library like YUI to get those
  features. I'm just saying, use the tool that is appropriate for your
  needs :)
 
  --Erik
 
 
  On 6/26/07, John Farrar [EMAIL PROTECTED] wrote:
  
   The intention of this post is to spark a plug-in dream list.
  
   Here's mine...
  
   1. Tree (like the one in EXTjs)
   2. Grid (like the one in EXTjs)
   ... if your wondering, I want to do server side markup, and modify
 only
   when needed. :)
   3. Windows component. (Popup divs rather than windows that are select
   box safe of course)
   4. Dialogs (msgBox, inputBox, etc.)... modal ready  of course.
   5. slider input (feeds a hidden form field of course) with dual
 sliders
   range points of course
   6. color requestor
   7. date/time requestor
   8. drag/drop tile/list components with common drag data interface for
   clean interaction
   9. Menus
   10. toolbar (sorry, not sold on the ribbon as good web senario yet...
 heh.)
   11. ... add yours here.
  
   ...now likely some of these things are out there already, but this is
   just a shortlist of the ideal plugin library. Perhaps they should
   start a survey to see what features are wanted most!
  
 




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



[jQuery] Re: resize columns!

2007-06-27 Thread Simpel

Hi Su

YEAH! the splitter is is exactly what I'm after! Thanks for the tip!

On 25 Juni, 17:42, Su [EMAIL PROTECTED] wrote:
 On 6/25/07, Simpel [EMAIL PROTECTED] wrote:



  What I'm after is a way of changing the width of the columns by
  dragging some kind of slider, the height of the columns is more or
  less irrelevant...

 I'm assuming you mean something like the Splitter 
 plugin?:http://methvin.com/jquery/splitter/

 Slider to me says this(not jQuery, just for 
 illustration):http://webfx.eae.net/dhtml/slider/slider.html



[jQuery] How much info to disclose

2007-06-27 Thread Rey Bango


John,

There have been some questions about Interface and whether its official 
or not. With Paul basically reworking several key aspects of effects, do 
we want to release any info on his work?


Rey...

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


[jQuery] Re: jQuery solutions needed...

2007-06-27 Thread John Farrar
I have shared this at speaking engagements on other topics over the 
years. When windows and mac took the Xerox window technology and created 
the replacement for DOS as it was known there was a reason it worked. 
Along the same time there was also a core group of assembly 
programmers that thought everything should be done in the lowest fastest 
level possible.


Thoughts from a developer who has seen many generations of technology 
mature.


  1. The interface belongs to the user, and that is who we write our
 apps for primarily. If we can make it easier for the developer to
 create and maintain these apps the true purpose of the app will be
 achieved. (The true purpose is user interaction, not enterprise.
 Enterprise is a concern, not the primary goal. Therefore we cannot
 or at least should not replace our primary  goals with necessary
 secondary concerns.)
  2. Apple, Amiga, Atari (lol, just realized those were all companies
 with A names) had machines with better functionality than Windows
 PCs. They were missing essential business solutions that Microsoft
 provided. It is true that we as developers want certain
 essentials. Yet, the applications are written for  users.
 Perhaps we ought to look at things like Adobe AIR and how that
 relates to jQuery. With AIR you write the app once and deploy it
 to Linux, Mac or Windows as a desktop application. This would
 eliminate the need for large bandwidth issues. It's the next wave
 of internet connected applications. If it's enterprise then it's
 not random customers hitting the site. Installing a package in
 technology like AIR is the enterprise solution of the future.
  3. As someone else said, plugins aren't part of the core. So if
 jQuery adds plugins that are cool that is great. My concept is not
 to create heavy but moderate plugins that work with back end coded
 pages. I agree that EXT could be to heavy in many cases. So rather
 than looking at extreme all or nothing solutions perhaps there
 should be some middle of the road solutions also.
  4. Not all business applications are enterprise apps. Some times
 there are business apps where they  have let someone in IT or
 someone who is a web designer and wants to try something in the
 programmer side of things take on a project. It would be a shame
 if jQuery provided everything they needed to end the promise of
 doing more work like that in the company. That is where EXT
 shines. The boss will love what he gets for an end product. We
 need to be careful that we realize not everyone can do an
 original work. Learning dom to do a good job for the first
 project it is needed is a bad idea.

Summary:

   * Apps are for users, the interface is key
   * Enterprise is a concern, but not to the exclusion of the primary
 goals (scale shouldn't replace primary goals)
   * AIR or some other technology is the right way to do enterprise,
 resolves majority of scale issues
   * Not all business is enterprise. We need solutions that help
 business on the SOHO level also. In fact we brag about when we are
 used by an enterprise. Yet, every one of these technologies
 started in a non-scale solution. (Or at least became popular
 without a scale solution.) AND... the majority of users will be a
 non-scale solution on the level of a mega enterprise that is.
   * AND... yes, the still need to serve the enterprise. (Before
 someone missed that I still agree with that point.)




[jQuery] Re: How much info to disclose

2007-06-27 Thread John Resig


Rey sent this to the list accidentally.

Just to clarify for everyone: We're working on some more plugins that
we'll be announcing soon. Interface is still an official plugin and
nothing is changing in this respect.

Expect to see more information about the upcoming releases later this week.

--John

On 6/27/07, Rey Bango [EMAIL PROTECTED] wrote:


John,

There have been some questions about Interface and whether its official
or not. With Paul basically reworking several key aspects of effects, do
we want to release any info on his work?

Rey...

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



[jQuery] Re: jQuery, Ajax Form and memory usage

2007-06-27 Thread Vivi

Anyone got any idea about how to resolve this issue? Thanks a lot :)



[jQuery] slideViewer now works with the toolTip plugin!

2007-06-27 Thread GianCarlo Mingati

http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html

Hi all.
I think i'm done with this plugin.
It is becoming a monster so it's better to leave it as it is now.

Added in the past 24H:

1) a tricky preloader wich equally works for FF, Opera and IE7
2) added the 'support' for the tootip plugin from bassistance.de

Now if you wish to make a gallery with *custom* easing effects, *fancy
tooltips* from a SINGLE unorder list with an unknown number of images
of an unknown size, you just need to:
a) write your list of images
b)
$(div#mygaltwo).slideView({ easeFunc: backinout, easeTime: 1200,
toolTip: true });


et voilà, you get a gallery.
How fun is jQuery!?

Ciao
GC



[jQuery] Integrating Google Internal Site Search using jquery

2007-06-27 Thread tzmedia

Curious if anyone had any ideas about integrating the internal site
search from javascriptKit:
http://www.javascriptkit.com/script/script2/google_site_search.shtml

I've got some ideas, but wondered if anyone had seen any site search
utilities using jquery and any other search resources or Google. I
haven't seen anything, but thought somebody might have already looked
at solutions for site searches.
Thanks.



[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread tzmedia

It looks very useful, i've been looking at solutions to add feature
content, slides if you will to site homepages.
Something on a timer, with manual slide controls also. Similar to what
download.com used to do on it's homepage.
This looks like it could do just that, possibly.
You've got a nice page of example/demos there.
thanks.


On Jun 24, 6:42 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 Hi there,

 I have been using jquery for a couple of weeks now. I should say this is the
 best library out there. I come from raw javascript, prototype, mootools
 background and i am damn sure, i am not going back.

 That said, a couple of days ago, i was looking for a carousel style widget
 for my app, and stumbled upon the excellent jCarousel plugin. The plugin is
 awesome. It has everything i needed and more. It worked like a charm out of
 the box, but my issue was that, my use-case used carousel as a secondary
 widget, and jCarousel seemed kinda like a overkill. So, i started developing
 my own mini carousel inspired by jCarousel and called it jCarouselLite.

 This is not a replacement for jCarousel by any means. It is just a
 light-weight alternative for those who might not need all the
 functionalities offered by jCarousel. The minified version is just
 under 1.5k in size. Yet, it is very flexible and customizable for many
 of our needs.

 Right now, the plugin is in very early stage and i thought i could get
 feedback from my friends here and see if there is any interest around it.

 I have put together a page to show-case all the things that are possible
 with it 
 athttp://www.gmarwaha.com/jquerylite/jcarousellite/html/jcarousellite.h...

 The basic html markup expected is just a div enclosing a ul element. You
 can have your navigation buttons anywhere. No special classes, or css files
 are required. The js is the lone file needed.

 div class=anyClass
 ul
 liimg src=someimage alt=1/li
 liimg src=someimage alt=2/li
 liimg src=someimage alt=3/li
 liimg src=someimage alt=4/li
 /ul
 /div

 button class=prev/button
 button class=next/button

 $(function() {
 $(.someClass).jCarouselLite({
 btnNext: .next,
 btnPrev: .prev
 });
 });

 Thanks in advance for all your feedback.
 Ganesh.



[jQuery] Re: jQuery and confirm

2007-06-27 Thread Angelo Zanetti


Hi Alexander,

Do you have any idea of how I can build a wrapper for the confirm() box?

Thanks
Angelo

Alexandre Plennevaux wrote:

It's because of the way cody's thickbox script is made: it does not by
default give control on how the thickbox gets executed

Your link gets thickboxed since it has the class=thickbox. You need to
either build a wrapper function that articulates the thickbox together with
the confirm() command.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Angelo Zanetti
Sent: mercredi 20 juin 2007 10:00
To: jquery-en@googlegroups.com
Subject: [jQuery] jQuery and confirm


Dear All.

I got a form and a link that has an onclick confirm:

a href=ajaxImage.php?height=480width=600modal=true class=thickbox 
style=text-decoration:underline; onclick=return confirm('delete

image?');Delete Image/a

No matter if u choose ok or cancel (returns true or false) the link still
gets executed. Im assuming that JQuery is causing this irregularity. I have
the same code on normal HTML pages and it works 100%.

Any suggestions as to how to get this to work or where i might be going
wrong?

Thanks in advance.
Angelo

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.472 / Base de données virus: 269.9.1/854 - Date: 19/06/2007
13:12
 





  


--

Angelo Zanetti
Systems developer


*Telephone:* +27 (021) 552 9799
*Mobile:*   +27 (0) 72 441 3355
*Fax:*+27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]




[jQuery] Re: slideViewer now works with the toolTip plugin!

2007-06-27 Thread Salvatore FUSTO


great, paisa'
salvatore
P.S.
è che su queste liste sembriamo degli emigrati stile inizio '900 :)
- Original Message - 
From: GianCarlo Mingati [EMAIL PROTECTED]

To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, June 27, 2007 3:43 PM
Subject: [jQuery] slideViewer now works with the toolTip plugin!



http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html

Hi all.
I think i'm done with this plugin.
It is becoming a monster so it's better to leave it as it is now.

Added in the past 24H:

1) a tricky preloader wich equally works for FF, Opera and IE7
2) added the 'support' for the tootip plugin from bassistance.de

Now if you wish to make a gallery with *custom* easing effects, *fancy
tooltips* from a SINGLE unorder list with an unknown number of images
of an unknown size, you just need to:
a) write your list of images
b)
$(div#mygaltwo).slideView({ easeFunc: backinout, easeTime: 1200,
toolTip: true });


et voilà, you get a gallery.
How fun is jQuery!?

Ciao
GC



[jQuery] Re: Could anyone send me a copy of Catfish Advert Plugin 1.3.

2007-06-27 Thread Kia Niskavaara

Michael Price wrote:
 
 Logan Cai wrote:
 could you send me a copy of Catfish-Advert-Plugin-1.3, if you have.
 
 Logan,
 I don't think the problem is the plugin. The one I sent may well have 
 been 1.3, but I think Catfish was written for jQuery 1.0.x and obviously 
 we're on 1.1.x now and there may be incompatibilities between the two 
 which prevent Catfish from working on newer versions of jQuery. This 
 isn't something anyone can fix unless someone takes over development of 
 the plugin or Matt, the original author, gets his website back online 
 and updates it himself.

Is the source available somewhere? Maby I, or someone else, can fix it?


[jQuery] Re: jQuery and confirm

2007-06-27 Thread Alexandre Plennevaux

Change your links launchingthe tickbox to another class, say
thickboxDeleteImage. Remove the onclick code attached to your links. Stick
Something like this (untested) inside a script tag in the head of yur html
document:

$(document).ready(function(){

$(.thickboxDeleteImage).bind(click,function(){
If(confirm('delete image?')){
  var t = this.title || this.name || null;
  var a = this.href || this.alt;
  var g = this.rel || false;
  tb_show(t,a,g);
  this.blur();
  return false;
}
});

}); 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Angelo Zanetti
Sent: mercredi 27 juin 2007 15:07
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery and confirm


Hi Alexander,

Do you have any idea of how I can build a wrapper for the confirm() box?

Thanks
Angelo

Alexandre Plennevaux wrote:
 It's because of the way cody's thickbox script is made: it does not by 
 default give control on how the thickbox gets executed

 Your link gets thickboxed since it has the class=thickbox. You need 
 to either build a wrapper function that articulates the thickbox 
 together with the confirm() command.

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Angelo Zanetti
 Sent: mercredi 20 juin 2007 10:00
 To: jquery-en@googlegroups.com
 Subject: [jQuery] jQuery and confirm


 Dear All.

 I got a form and a link that has an onclick confirm:

 a href=ajaxImage.php?height=480width=600modal=true class=thickbox 
 style=text-decoration:underline; onclick=return confirm('delete 
 image?');Delete Image/a

 No matter if u choose ok or cancel (returns true or false) the link 
 still gets executed. Im assuming that JQuery is causing this 
 irregularity. I have the same code on normal HTML pages and it works 100%.

 Any suggestions as to how to get this to work or where i might be 
 going wrong?

 Thanks in advance.
 Angelo

 Ce message Envoi est certifié sans virus connu.
 Analyse effectuée par AVG.
 Version: 7.5.472 / Base de données virus: 269.9.1/854 - Date: 
 19/06/2007
 13:12
  




   

--

Angelo Zanetti
Systems developer


*Telephone:* +27 (021) 552 9799
*Mobile:*   +27 (0) 72 441 3355
*Fax:*+27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.476 / Base de données virus: 269.9.10/873 - Date: 26/06/2007
23:54
 



[jQuery] Re: Are there any Wordpress themes using jquery?

2007-06-27 Thread Su

Aquatic Adventures[1]:
http://tomk32.de/2007/04/03/wordpress-theme-aquatic-adventures/
Scanning the post, he says that it uses jQuery as usual, so I presume he's
done others with it.


[1] http://www.google.com/search?q=wordpress+theme+jquery

On 6/27/07, Kia Niskavaara [EMAIL PROTECTED] wrote:




One of my favourite Wordpress themes, Redoable at
http://www.deanjrobinson.com/wordpress/redoable is
using Prototype. I'm also aware of a few other themes using other
libraries. But I haven't found a
single theme that's using jquery. Are there any?

Kia



[jQuery] Re: How to Rotate an Image 90 Degrees

2007-06-27 Thread cfdvlpr

I've taken a look at swfIR and that seems to work.  However, I'm not
sure that I can change the src of the image with Jquery and have it
still work (without a page refresh).  Please correct me if I am
wrong.

I'm developing in Coldfusion, by the way.  But, I don't think I can
use a server side script for this as I need it to update without a
page refresh...



[jQuery] Re: How to Rotate an Image 90 Degrees

2007-06-27 Thread Scott Trudeau



I'm developing in Coldfusion, by the way.  But, I don't think I can
use a server side script for this as I need it to update without a
page refresh...


There are a number of ways you could do this with a .ajax or similar call.

E.g., let's say you write a coldfusion script that accepts as
parameters the image path and some rotation parameters (let's say 90,
180 or 270 for degrees of rotation to the right).  E.g.,
http://example.com/rotateimage.cf/?image=foo.jpgrotate=90 ... and
have that script rotate the source image, save it to disk, and return
the new image (you can set headers to deliver a straight-up image from
that URL).  If it makes sense for your app, you could cache the
rotated images and check the cache first ... but those are details.

Then, for example, onclick you could replace the src attribute of an
img tag with the rotated version of the URL.

Lots of details here, but that might work.  You could also have the CF
script process the image and return the direct URL to the static file
and replace it with that, instead...

Scott

On 6/27/07, cfdvlpr [EMAIL PROTECTED] wrote:


I've taken a look at swfIR and that seems to work.  However, I'm not
sure that I can change the src of the image with Jquery and have it
still work (without a page refresh).  Please correct me if I am
wrong.

I'm developing in Coldfusion, by the way.  But, I don't think I can
use a server side script for this as I need it to update without a
page refresh...





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


[jQuery] Re: Select only the next row in a table

2007-06-27 Thread Corey Frang

Not really, that selector finds ALL tr then any tr after each of those.

Assuming your calling it from something like this:

$(.showNextRow).click(function() {
 $(this).parents(tr).next(tr.hidden).show();
 return false;
});

also assuming that the t1 table isn't inside another table with a 
tr.hidden.  That would get funny :)


Glen Lipka wrote:

$(tr).next(tr).show();

Would this do it?

Glen

On 6/27/07, *Massimiliano Marini*  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



Hi all,

I've this table :

table id=t1
  tr class=visible
   tda href=# class=showNextRowView Next Row/td
   tdCell with content/td
  /tr
  tr class=hidden
td colspan=2Hello to the jQuery community/td
  /tr
  ...
  ...
  ...
/table

I'm using this code to diplay the tr with hidden class :
$('a').filter('.visible').click(function(){
  $('.hidden').toggle();
}

what I want to do, is to toggle or show only the tr(only one only
the next) that is under the tr where is the link that I've clicked.

I think the example and the code may help more than my description of
the problem :)

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it.  -- Alan Kay






[jQuery] Re: Select only the next row in a table

2007-06-27 Thread Karl Swedberg


On Jun 27, 2007, at 11:29 AM, Corey Frang wrote:

Not really, that selector finds ALL tr then any tr after each  
of those.


Assuming your calling it from something like this:

$(.showNextRow).click(function() {
  $(this).parents(tr).next(tr.hidden).show();
  return false;
});

also assuming that the t1 table isn't inside another table with a  
tr.hidden.  That would get funny :)


In that case, changing the second line to this would do the trick:
  $(this).parents(tr:first).next(tr.hidden).show();

One thing you might want to consider is changing the class name from  
hidden to something less presentational. Question: When is a  
tr.hidden not hidden? Answer: When you've applied .show() to it!  ;-)  
Another possibility would be to remove the hidden class instead of  
using .show(), like so:

  $(this).parents(tr:first).next().removeClass('hidden');

(No need here for tr.hidden in the .next() here because the next  
sibling of a tr has to be another tr, and if it doesn't have  
class=hidden no harm done.)


Hope that helps,

Karl




Glen Lipka wrote:

$(tr).next(tr).show();

Would this do it?

Glen

On 6/27/07, Massimiliano Marini  [EMAIL PROTECTED] wrote:

Hi all,

I've this table :

table id=t1
  tr class=visible
   tda href=# class=showNextRowView Next Row/td
   tdCell with content/td
  /tr
  tr class=hidden
td colspan=2Hello to the jQuery community/td
  /tr
  ...
  ...
  ...
/table

I'm using this code to diplay the tr with hidden class :
$('a').filter('.visible').click(function(){
  $('.hidden').toggle();
}

what I want to do, is to toggle or show only the tr(only one only
the next) that is under the tr where is the link that I've clicked.

I think the example and the code may help more than my description of
the problem :)

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it.  -- Alan Kay







[jQuery] Re: How to Rotate an Image 90 Degrees

2007-06-27 Thread weepy

maybe check this out :

http://www.netzgesta.de/instant/

*...(




On Jun 27, 4:24 pm, Scott Trudeau [EMAIL PROTECTED] wrote:
  I'm developing in Coldfusion, by the way.  But, I don't think I can
  use a server side script for this as I need it to update without a
  page refresh...

 There are a number of ways you could do this with a .ajax or similar call.

 E.g., let's say you write a coldfusion script that accepts as
 parameters the image path and some rotation parameters (let's say 90,
 180 or 270 for degrees of rotation to the right).  
 E.g.,http://example.com/rotateimage.cf/?image=foo.jpgrotate=90... and
 have that script rotate the source image, save it to disk, and return
 the new image (you can set headers to deliver a straight-up image from
 that URL).  If it makes sense for your app, you could cache the
 rotated images and check the cache first ... but those are details.

 Then, for example, onclick you could replace the src attribute of an
 img tag with the rotated version of the URL.

 Lots of details here, but that might work.  You could also have the CF
 script process the image and return the direct URL to the static file
 and replace it with that, instead...

 Scott

 On 6/27/07, cfdvlpr [EMAIL PROTECTED] wrote:



  I've taken a look at swfIR and that seems to work.  However, I'm not
  sure that I can change the src of the image with Jquery and have it
  still work (without a page refresh).  Please correct me if I am
  wrong.

  I'm developing in Coldfusion, by the way.  But, I don't think I can
  use a server side script for this as I need it to update without a
  page refresh...

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



[jQuery] Re: How do I find this error?

2007-06-27 Thread Chris Jordan

Thanks heaps, Mike! I've a question though.

That blog entry you point to says:

When you've enabled Script Debugging 'View-Script Debugger' will now
be present to help you break into the debugger.

But, I'm not finding that's the case. Also, it goes on to talk about
three applications that the author has used for script debugging. Do I
have to have one of those in order to debug? Why don't I have the
'View-Script Debugger'? Have you used this debugger in IE? How many
angels can dance on the head of a pin? What are the eleven secret
herbs and spices in Kentucky Fried Chicken? Can God make a rock so
heavy even He can't lift it? Are you tired of my questions yet? ;o)

Any help would be appreciated.

Thanks again,
Chris

On Jun 26, 11:07 am, Mike Alsup [EMAIL PROTECTED] wrote:
 IE has a powerful script debugger, but you have to enable it.
 Details can be found here:

 http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx

 Mike

  I've got a bit of a problem where by I get a JavaScript syntax error in
  IE6, but everything works fine (no errors show in firebug) in FF 2.0.0.4.



[jQuery] Re: Load into tbody, errors IE6

2007-06-27 Thread JoshN

OK, after some Googling I found out that in IE6, innerHTML within a
table is read-only.  Since the jQuery load method uses innerHTML, you
can't load a tr into a table.  Crap.

On Jun 26, 6:01 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
 Hey all,

 I have a script that does an ajax load into a tbody jQuery object, like so:

 $tbl = $(# + asp + _tbody); // dynamically finds tbody
 $tbl.load(prodsched/dom_dpdcolorrow.html,
  {},
  addrow
  ); // load html content (tr's) into tbody

 The html file consists of a table row tr with some junk in it.

 It works great on Firefox but gives the error unknown runtime error in
 IE6.  Is this an issue with IE6 not being able to innerHTML a tbody or
 something?  If so is there a workaround?  Thanks for any help.

 -- Josh



[jQuery] Re: InnerFade-Plugin: Text jumps from left to the center

2007-06-27 Thread tzmedia

Not for certain, did you try placing the link between paragraph tags
and applying the css to the P tags.
Just a thought, seems to me I've tried centering some text beneath an
image and not had much luck either.

On Jun 27, 12:18 pm, Muckinger [EMAIL PROTECTED] wrote:
 Hi,

 i would like to use the fantastic InnerFade Plugin 
 fromhttp://medienfreunde.com/lab/innerfade/http://medienfreunde.com/lab/innerfade/

 I want to change DIV-Containers. A Link in this container is centerd with
 text-align: center. But with Firefox the Link/Text starts with every Fade on
 the left and jumps then to the center, not nice. In IE everything works
 fine. I tried many things (Links as Blick-Elem, margin: 0 auto etc.), but
 nothing works.

 Can anybody give me a hint? Or another possibility to achieve the same
 effect?

 THX!
 --
 View this message in 
 context:http://www.nabble.com/InnerFade-Plugin%3A-Text-jumps-from-left-to-the...
 Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Ganeshji Marwaha

sure anton... point noted and will incorporate it this weekend :-). thanks
for the feedback.

-GTG


On 6/27/07, Anton [EMAIL PROTECTED] wrote:



Love it! But...

 button class=prev/button
 button class=next/button

Is there any way you could determine if the number of items equals the
setting in visible? I'd like to hide these buttons if I'm already
viewing all of the items.

cheers,

/Anton




[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Ganeshji Marwaha

Thanks Jan, I will take a look at it. To be honest, i was planning to dig
into your source code this weekend. Now that you have pointed me to the
exact functions that i need to de-code, i guess, you have saved me a lot of
time. Thank u very much.

-GTG


On 6/27/07, Jan Sorgalla [EMAIL PROTECTED] wrote:



Hi,

On Jun 27, 2:24 am, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 brandon,

 no luck buddy... outerHeight returns the result that excludes the margin
 values of the element.
 i would like the width of the element including the margin values as
well...

you should check the dimension() and margin() functions in my
jcarousel plugin. They also handle a weird behaviour of marginRight in
Safari.

Jan




[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Ganeshji Marwaha

Thanks for ur kind words tzmedia. Some of the features that are planned for
the next release are
1. automatic scrolling
2. scrolling many items at a time
3. auto-detection of buttons - if necessary

Looks like automatic scrolling is something that you are looking for. But, i
don't understand what download.com used to do on their homepage. Can you
explain that a bit more? i would like to know ur use-case.

Thanks
-GTG


On 6/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



It looks very useful, i've been looking at solutions to add feature
content, slides if you will to site homepages.
Something on a timer, with manual slide controls also. Similar to what
download.com used to do on it's homepage.
This looks like it could do just that, possibly.
You've got a nice page of example/demos there.
thanks.


On Jun 24, 6:42 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 Hi there,

 I have been using jquery for a couple of weeks now. I should say this is
the
 best library out there. I come from raw javascript, prototype, mootools
 background and i am damn sure, i am not going back.

 That said, a couple of days ago, i was looking for a carousel style
widget
 for my app, and stumbled upon the excellent jCarousel plugin. The plugin
is
 awesome. It has everything i needed and more. It worked like a charm out
of
 the box, but my issue was that, my use-case used carousel as a secondary
 widget, and jCarousel seemed kinda like a overkill. So, i started
developing
 my own mini carousel inspired by jCarousel and called it jCarouselLite.

 This is not a replacement for jCarousel by any means. It is just a
 light-weight alternative for those who might not need all the
 functionalities offered by jCarousel. The minified version is just
 under 1.5k in size. Yet, it is very flexible and customizable for many
 of our needs.

 Right now, the plugin is in very early stage and i thought i could get
 feedback from my friends here and see if there is any interest around
it.

 I have put together a page to show-case all the things that are possible
 with it
athttp://www.gmarwaha.com/jquerylite/jcarousellite/html/jcarousellite.h...

 The basic html markup expected is just a div enclosing a ul element.
You
 can have your navigation buttons anywhere. No special classes, or css
files
 are required. The js is the lone file needed.

 div class=anyClass
 ul
 liimg src=someimage alt=1/li
 liimg src=someimage alt=2/li
 liimg src=someimage alt=3/li
 liimg src=someimage alt=4/li
 /ul
 /div

 button class=prev/button
 button class=next/button

 $(function() {
 $(.someClass).jCarouselLite({
 btnNext: .next,
 btnPrev: .prev
 });
 });

 Thanks in advance for all your feedback.
 Ganesh.




[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-27 Thread Jan Sorgalla

Hi,

On Jun 27, 6:40 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 Thanks Jan, I will take a look at it. To be honest, i was planning to dig
 into your source code this weekend. Now that you have pointed me to the
 exact functions that i need to de-code, i guess, you have saved me a lot of
 time. Thank u very much.

i had plans to create a light version of jcarousel as well. So, _you_
save me a lot of time doing that ;)
I guess, i already faced most problems you have or will have. So, just
ask... :)

Jan





[jQuery] Re: InnerFade-Plugin: Text jumps from left to the center

2007-06-27 Thread Muckinger


I´ve tried to but the Link between div, p span ... whatever. Always the same
effect.
I tried also to change the Link to a block-element. :-(

Any other Idee? As i said, must be a Firefox-Problem, IE works...


{js}sTyler wrote:
 
 
 Not for certain, did you try placing the link between paragraph tags
 and applying the css to the P tags.
 Just a thought, seems to me I've tried centering some text beneath an
 image and not had much luck either.
 
 On Jun 27, 12:18 pm, Muckinger [EMAIL PROTECTED] wrote:
 Hi,

 i would like to use the fantastic InnerFade Plugin
 fromhttp://medienfreunde.com/lab/innerfade/http://medienfreunde.com/lab/innerfade/

 I want to change DIV-Containers. A Link in this container is centerd with
 text-align: center. But with Firefox the Link/Text starts with every Fade
 on
 the left and jumps then to the center, not nice. In IE everything works
 fine. I tried many things (Links as Blick-Elem, margin: 0 auto etc.), but
 nothing works.

 Can anybody give me a hint? Or another possibility to achieve the same
 effect?

 THX!
 --
 View this message in
 context:http://www.nabble.com/InnerFade-Plugin%3A-Text-jumps-from-left-to-the...
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/InnerFade-Plugin%3A-Text-jumps-from-left-to-the-center-tf3989346s15494.html#a11328182
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] NEWS: Ajax Rain: Showcase of Awesome Ajax Controls

2007-06-27 Thread Rey Bango


I came across a great link today on DZone.com for Ajax Rain 
(http://www.ajaxrain.com). It has one of the best lists of Ajax widgets 
and controls I've ever seen. The site actually uses jQuery and lists 
quite a number of jQuery plugins. In addition, it lists out controls 
from other libraries and many have amazing capabilities.


With all of the talk about which jQuery plugins to build or use, I 
thought this would be a good list for a jQuery plugin author to look at.


Enjoy.

Rey...



[jQuery] Re: Estimated 1.1.3 release date?

2007-06-27 Thread Chip D

Just wondering in 1.1.3 is any closer to getting a release date?

On May 15, 8:07 pm, MikeR [EMAIL PROTECTED] wrote:
 Ok great, John =). Thanks for the update.

 On May 15, 12:43 pm, John Resig [EMAIL PROTECTED] wrote:

  We're still dealing with site issues, hopefully this weekend, but
  again, that's what I said last week before the attack.

  --John

  On 5/15/07, MikeR [EMAIL PROTECTED] wrote:

   I understand that the site issues, illnesses, etc caused delays... but
   does anybody have a new estimated date for the jQuery1.1.3release?
   Thanks!

   On Apr 28, 8:13 pm, Brandon Aaron [EMAIL PROTECTED] wrote:
Here is a list of fixes thus far that will be 
in1.1.3:http://tinyurl.com/2t2we5

--
Brandon Aaron

On 4/28/07, Shelane [EMAIL PROTECTED] wrote:

 What might we expect in the next release?  You mentioned a few things
 related to faster selectors, animations, etc.  What bug fixes might
 we see?  IE issues?

 Why is IE always the problem child?  Oh yeah, M$.  OK, off my soapbox
 now.

 On Apr 26, 7:21 pm, John Resig [EMAIL PROTECTED] wrote:
   John! Wow :) Did not expect you to chime in on this!

  No problem - I'm busy at the moment, but I still like to watch out 
  for
  meta-problems (site issues, releases dates, etc.)

   First thing's first... I bought your book Pro Javascript
   Techniques (published 2006?).. and my respect and recognition for
   your talent has skyrocketed since. jQuery itself demonstrates very
   clearly that you are skilled, but after even starting to read that
   book I was very pleasantly surprised. No fluff, no mess... just 
   right
   into the JS goodness :).

  Exactly. I hate books that nuts around talking about The History of
  JavaScript and this is how you use document.write. I'm a
  programmer, I want code :-) (Especially code that is still 
  relevant.)
  Glad you're enjoying it, though!

   Now back to the original topic lol.. glad to hear1.1.3will be out
   soon. Hope things are not getting too stressful over there.

   Looking forward to more jQuery releases! Have a good one.

  Yeah, things are less than ideal right now - however I really want 
  to
  squeeze some time in and get the last changes into this release.
  There's speed improvements across the board (faster selectors and
  faster animations) along with a bunch of bug fixes. Not too shabby 
  for
  a point release. I just have to stomp some final bugs then we can 
  move
  ahead and release the alpha. (Just need to find a moment to clear my
  head.)

  --John



[jQuery] Difference between element and # access

2007-06-27 Thread Terry B


what is the difference between
$t(div.TimelineContainer)
and
$t(#TimelineContainer)

within JQuery?  is the first using byid and the other by tagname?



[jQuery] Re: Load into tbody, errors IE6

2007-06-27 Thread Terry B

i dont have any problems with mine in IE6


var ID = function(query) { return query.ID };
var FIELD = function(query) { return query.FIELD };

function NewQueryResult(result)
{

DWRUtil.removeAllRows(testBody);
DWRUtil.addRows(testBody, resultarray, [ ID , FIELD ])

}

~Terry


On Jun 27, 12:27 pm, JoshN [EMAIL PROTECTED] wrote:
 OK, after some Googling I found out that in IE6, innerHTML within a
 table is read-only.  Since the jQuery load method uses innerHTML, you
 can't load a tr into a table.  Crap.

 On Jun 26, 6:01 pm, Josh Nathanson [EMAIL PROTECTED] wrote:



  Hey all,

  I have a script that does an ajax load into a tbody jQuery object, like so:

  $tbl = $(# + asp + _tbody); // dynamically finds tbody
  $tbl.load(prodsched/dom_dpdcolorrow.html,
   {},
   addrow
   ); // load html content (tr's) into tbody

  The html file consists of a table row tr with some junk in it.

  It works great on Firefox but gives the error unknown runtime error in
  IE6.  Is this an issue with IE6 not being able to innerHTML a tbody or
  something?  If so is there a workaround?  Thanks for any help.

  -- Josh- Hide quoted text -

 - Show quoted text -



[jQuery] Re: Estimated 1.1.3 release date?

2007-06-27 Thread John Resig


We got delayed trying to add some speed improvements, it'll be this
work week, we're just checking against the final few plugins that we
broke last time.

--John

On 6/27/07, Chip D [EMAIL PROTECTED] wrote:


Just wondering in 1.1.3 is any closer to getting a release date?

On May 15, 8:07 pm, MikeR [EMAIL PROTECTED] wrote:
 Ok great, John =). Thanks for the update.

 On May 15, 12:43 pm, John Resig [EMAIL PROTECTED] wrote:

  We're still dealing with site issues, hopefully this weekend, but
  again, that's what I said last week before the attack.

  --John

  On 5/15/07, MikeR [EMAIL PROTECTED] wrote:

   I understand that the site issues, illnesses, etc caused delays... but
   does anybody have a new estimated date for the jQuery1.1.3release?
   Thanks!

   On Apr 28, 8:13 pm, Brandon Aaron [EMAIL PROTECTED] wrote:
Here is a list of fixes thus far that will be 
in1.1.3:http://tinyurl.com/2t2we5

--
Brandon Aaron

On 4/28/07, Shelane [EMAIL PROTECTED] wrote:

 What might we expect in the next release?  You mentioned a few things
 related to faster selectors, animations, etc.  What bug fixes might
 we see?  IE issues?

 Why is IE always the problem child?  Oh yeah, M$.  OK, off my soapbox
 now.

 On Apr 26, 7:21 pm, John Resig [EMAIL PROTECTED] wrote:
   John! Wow :) Did not expect you to chime in on this!

  No problem - I'm busy at the moment, but I still like to watch out 
for
  meta-problems (site issues, releases dates, etc.)

   First thing's first... I bought your book Pro Javascript
   Techniques (published 2006?).. and my respect and recognition for
   your talent has skyrocketed since. jQuery itself demonstrates very
   clearly that you are skilled, but after even starting to read that
   book I was very pleasantly surprised. No fluff, no mess... just 
right
   into the JS goodness :).

  Exactly. I hate books that nuts around talking about The History of
  JavaScript and this is how you use document.write. I'm a
  programmer, I want code :-) (Especially code that is still 
relevant.)
  Glad you're enjoying it, though!

   Now back to the original topic lol.. glad to hear1.1.3will be out
   soon. Hope things are not getting too stressful over there.

   Looking forward to more jQuery releases! Have a good one.

  Yeah, things are less than ideal right now - however I really want 
to
  squeeze some time in and get the last changes into this release.
  There's speed improvements across the board (faster selectors and
  faster animations) along with a bunch of bug fixes. Not too shabby 
for
  a point release. I just have to stomp some final bugs then we can 
move
  ahead and release the alpha. (Just need to find a moment to clear my
  head.)

  --John




[jQuery] Re: Validate() and TinyMCE problem

2007-06-27 Thread Diego A.

Ideally...
OR, the FCK plugin could integrate itself to the others the same way I
integrate it with the Form plugin. But since we're talking about mix-
matching plugins, this would require some feedback from the plugins'
authors...

eg.:
// find existing method to override
if($.fn.ajaxSubmit){

 // archive the method
 $.fn.ajaxSubmit_ = $.fn.ajaxSubmit;

 // override the method
 $.fn.ajaxSubmit = function(){

  // do this plugin's stuff
  $.FCK(1); // update html

  // call original method
  $.fn.ajaxSubmit_.apply(this, arguments);

  // don't break the chain...
  return $(this);

 };

};


On Jun 26, 7:23 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 Diego A. wrote:
  Sorry about the delay...
  I took long to reply because I've been away on holiday.

  Here's a little something I've put together:
 http://www.fyneworks.com/jquery/FCKEditor/

  Let me know what you think!

 Looks good. It wouldn't hurt to provide explicit methods for init and
 update.

 For integration with validation the validation plugin could check for
 $.FCK and call it to update before validating a form, right?

 --
 Jörn Zaefferer

 http://bassistance.de



[jQuery] Re: Load into tbody, errors IE6

2007-06-27 Thread Karl Swedberg

Hi Josh,

I wonder if you could get your tr through a different ajax method  
and then append it to the tbody once it's retrieved. Something like  
this, perhaps:


$.get('prodsched/dom_dpdcolorrow.html', function(data){
  $(data).appendTo('#' + asp + '_tbody');
});

Not positive it will work, but worth a shot.

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



On Jun 27, 2007, at 12:27 PM, JoshN wrote:



OK, after some Googling I found out that in IE6, innerHTML within a
table is read-only.  Since the jQuery load method uses innerHTML, you
can't load a tr into a table.  Crap.

On Jun 26, 6:01 pm, Josh Nathanson [EMAIL PROTECTED] wrote:

Hey all,

I have a script that does an ajax load into a tbody jQuery object,  
like so:


$tbl = $(# + asp + _tbody); // dynamically finds tbody
$tbl.load(prodsched/dom_dpdcolorrow.html,
 {},
 addrow
 ); // load html content (tr's) into tbody

The html file consists of a table row tr with some junk in it.

It works great on Firefox but gives the error unknown runtime  
error in
IE6.  Is this an issue with IE6 not being able to innerHTML a  
tbody or

something?  If so is there a workaround?  Thanks for any help.

-- Josh






[jQuery] Re: Validate() and TinyMCE problem

2007-06-27 Thread Diego A.

I've started a new thread here:
http://groups.google.com/group/jquery-en/browse_frm/thread/f649148d8ff5511a
...so more people can check it out and tell us what they think.

On Jun 27, 6:15 pm, Diego A. [EMAIL PROTECTED] wrote:
 Ideally...
 OR, the FCK plugin could integrate itself to the others the same way I
 integrate it with the Form plugin. But since we're talking about mix-
 matching plugins, this would require some feedback from the plugins'
 authors...

 eg.:
 // find existing method to override
 if($.fn.ajaxSubmit){

  // archive the method
  $.fn.ajaxSubmit_ = $.fn.ajaxSubmit;

  // override the method
  $.fn.ajaxSubmit = function(){

   // do this plugin's stuff
   $.FCK(1); // update html

   // call original method
   $.fn.ajaxSubmit_.apply(this, arguments);

   // don't break the chain...
   return $(this);

  };

 };

 On Jun 26, 7:23 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:

  Diego A. wrote:
   Sorry about the delay...
   I took long to reply because I've been away on holiday.

   Here's a little something I've put together:
  http://www.fyneworks.com/jquery/FCKEditor/

   Let me know what you think!

  Looks good. It wouldn't hurt to provide explicit methods for init and
  update.

  For integration with validation the validation plugin could check for
  $.FCK and call it to update before validating a form, right?

  --
  Jörn Zaefferer

 http://bassistance.de



[jQuery] Re: Load into tbody, errors IE6

2007-06-27 Thread Josh Nathanson



DWRUtil.removeAllRows(testBody);
DWRUtil.addRows(testBody, resultarray, [ ID , FIELD ])


I think that those methods probably create/append nodes rather than use 
innerHTML.  I recognize those methods from CFAjax.


-- Josh

- Original Message - 
From: Terry B [EMAIL PROTECTED]

To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, June 27, 2007 9:50 AM
Subject: [jQuery] Re: Load into tbody, errors IE6




i dont have any problems with mine in IE6


var ID = function(query) { return query.ID };
var FIELD = function(query) { return query.FIELD };

function NewQueryResult(result)
{

DWRUtil.removeAllRows(testBody);
DWRUtil.addRows(testBody, resultarray, [ ID , FIELD ])

}

~Terry


On Jun 27, 12:27 pm, JoshN [EMAIL PROTECTED] wrote:

OK, after some Googling I found out that in IE6, innerHTML within a
table is read-only.  Since the jQuery load method uses innerHTML, you
can't load a tr into a table.  Crap.

On Jun 26, 6:01 pm, Josh Nathanson [EMAIL PROTECTED] wrote:



 Hey all,

 I have a script that does an ajax load into a tbody jQuery object, like 
 so:


 $tbl = $(# + asp + _tbody); // dynamically finds tbody
 $tbl.load(prodsched/dom_dpdcolorrow.html,
  {},
  addrow
  ); // load html content (tr's) into tbody

 The html file consists of a table row tr with some junk in it.

 It works great on Firefox but gives the error unknown runtime error 
 in

 IE6.  Is this an issue with IE6 not being able to innerHTML a tbody or
 something?  If so is there a workaround?  Thanks for any help.

 -- Josh- Hide quoted text -

- Show quoted text -






[jQuery] Re: Load into tbody, errors IE6

2007-06-27 Thread Josh Nathanson
Thanks Karl, I'll give that a try.

-- Josh

  - Original Message - 
  From: Karl Swedberg 
  To: jquery-en@googlegroups.com 
  Sent: Wednesday, June 27, 2007 10:16 AM
  Subject: [jQuery] Re: Load into tbody, errors IE6


  Hi Josh, 


  I wonder if you could get your tr through a different ajax method and then 
append it to the tbody once it's retrieved. Something like this, perhaps:


  $.get('prodsched/dom_dpdcolorrow.html', function(data){
$(data).appendTo('#' + asp + '_tbody');
  });


  Not positive it will work, but worth a shot.



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






  On Jun 27, 2007, at 12:27 PM, JoshN wrote:




OK, after some Googling I found out that in IE6, innerHTML within a
table is read-only.  Since the jQuery load method uses innerHTML, you
can't load a tr into a table.  Crap.


On Jun 26, 6:01 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
  Hey all,


  I have a script that does an ajax load into a tbody jQuery object, like 
so:


  $tbl = $(# + asp + _tbody); // dynamically finds tbody
  $tbl.load(prodsched/dom_dpdcolorrow.html,
   {},
   addrow
   ); // load html content (tr's) into tbody


  The html file consists of a table row tr with some junk in it.


  It works great on Firefox but gives the error unknown runtime error in
  IE6.  Is this an issue with IE6 not being able to innerHTML a tbody or
  something?  If so is there a workaround?  Thanks for any help.


  -- Josh





[jQuery] Re: Difference between element and # access

2007-06-27 Thread Diego A.

I'm not sure, but I'm guessing there will be some sort of performance
difference. I'm guessing '#id' is faster than 'div#id' if '#id' just
uses getElementById, whereas 'div#id' might finds all divs then filter
by id.

On Jun 27, 5:46 pm, Terry B [EMAIL PROTECTED] wrote:
 what is the difference between
 $t(div.TimelineContainer)
 and
 $t(#TimelineContainer)

 within JQuery?  is the first using byid and the other by tagname?



[jQuery] Re: Difference between element and # access

2007-06-27 Thread Ganeshji Marwaha

the first one will find all the div elements with a class name of
TimelineContainer.

the second one will any element with an id of TimelineContainer

-GTG

On 6/27/07, Diego A. [EMAIL PROTECTED] wrote:



I'm not sure, but I'm guessing there will be some sort of performance
difference. I'm guessing '#id' is faster than 'div#id' if '#id' just
uses getElementById, whereas 'div#id' might finds all divs then filter
by id.

On Jun 27, 5:46 pm, Terry B [EMAIL PROTECTED] wrote:
 what is the difference between
 $t(div.TimelineContainer)
 and
 $t(#TimelineContainer)

 within JQuery?  is the first using byid and the other by tagname?




[jQuery] Re: Difference between element and # access

2007-06-27 Thread John Resig


They're both just as fast as each other - jQuery has an optimization
in place to account for that.

Terry: I assume that you mean div#TimelineContainer in your first example.

--John

On 6/27/07, Diego A. [EMAIL PROTECTED] wrote:


I'm not sure, but I'm guessing there will be some sort of performance
difference. I'm guessing '#id' is faster than 'div#id' if '#id' just
uses getElementById, whereas 'div#id' might finds all divs then filter
by id.

On Jun 27, 5:46 pm, Terry B [EMAIL PROTECTED] wrote:
 what is the difference between
 $t(div.TimelineContainer)
 and
 $t(#TimelineContainer)

 within JQuery?  is the first using byid and the other by tagname?




[jQuery] Re: jQuery for GreaseMonkey

2007-06-27 Thread Sean Catchpole


On 6/27/07, Kia Niskavaara [EMAIL PROTECTED] wrote:

Yes, but what about other libraries?
var $j = jQuery.noConflict();
Maby this should be included in the greasemonkey script?


An excellent point, perhaps I'll stick the entire [code] region
inside of a closure so that one can still call jQuery using $, but
without conflicting other libraries.

(function($){ [code] })(jQuery);

~Sean


[jQuery] Re: slideViewer now works with the toolTip plugin!

2007-06-27 Thread GianCarlo Mingati

bella ;-)
ma tu di dove sei?
io di roma

gc

On Jun 27, 4:19 pm, Salvatore FUSTO [EMAIL PROTECTED] wrote:
 great, paisa'
 salvatore
 P.S.
 è che su queste liste sembriamo degli emigrati stile inizio '900 :)

 - Original Message -
 From: GianCarlo Mingati [EMAIL PROTECTED]
 To: jQuery (English) jquery-en@googlegroups.com
 Sent: Wednesday, June 27, 2007 3:43 PM
 Subject: [jQuery]slideViewernow works with the toolTip plugin!

 http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/i...

 Hi all.
 I think i'm done with this plugin.
 It is becoming a monster so it's better to leave it as it is now.

 Added in the past 24H:

 1) a tricky preloader wich equally works for FF, Opera and IE7
 2) added the 'support' for the tootip plugin from bassistance.de

 Now if you wish to make a gallery with *custom* easing effects, *fancy
 tooltips* from a SINGLE unorder list with an unknown number of images
 of an unknown size, you just need to:
 a) write your list of images
 b)
 $(div#mygaltwo).slideView({ easeFunc: backinout, easeTime: 1200,
 toolTip: true });

 et voilà, you get a gallery.
 How fun is jQuery!?

 Ciao
 GC



[jQuery] Re: Difference between element and # access

2007-06-27 Thread Terry B

yea already been testing the methods and going from div.[name] to
#[name] took my script from 70s to 16s.   i also tested using the
document.getElementById('[name]') and there was no difference between
that and using #.

no more div.[name] for me

On Jun 27, 1:57 pm, Diego A. [EMAIL PROTECTED] wrote:
 I'm not sure, but I'm guessing there will be some sort of performance
 difference. I'm guessing '#id' is faster than 'div#id' if '#id' just
 uses getElementById, whereas 'div#id' might finds all divs then filter
 by id.

 On Jun 27, 5:46 pm, Terry B [EMAIL PROTECTED] wrote:



  what is the difference between
  $t(div.TimelineContainer)
  and
  $t(#TimelineContainer)

  within JQuery?  is the first using byid and the other by tagname?- Hide 
  quoted text -

 - Show quoted text -



[jQuery] Re: Difference between element and # access

2007-06-27 Thread Karl Swedberg

On Jun 27, 2007, at 2:02 PM, Ganeshji Marwaha wrote:

the second one [ $t(#TimelineContainer) ] will select any element  
with an id of TimelineContainer


Quick clarification. This will only select the first one it finds in  
the DOM. To find any element with an id of TimelineContainer, we'd  
have to use the much slower $('[EMAIL PROTECTED]')




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






[jQuery] Re: Load into tbody, errors IE6

2007-06-27 Thread Karl Swedberg

So glad to hear that it worked!

Cheers,

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



On Jun 27, 2007, at 2:09 PM, Josh Nathanson wrote:

Karl, I've got it working now, using $.get and appendTo. I knew it  
couldn't be as hard as I was making it. Thanks a million!


-- Josh

- Original Message -
From: Karl Swedberg
To: jquery-en@googlegroups.com
Sent: Wednesday, June 27, 2007 10:16 AM
Subject: [jQuery] Re: Load into tbody, errors IE6

Hi Josh,

I wonder if you could get your tr through a different ajax method  
and then append it to the tbody once it's retrieved. Something  
like this, perhaps:


$.get('prodsched/dom_dpdcolorrow.html', function(data){
  $(data).appendTo('#' + asp + '_tbody');
});

Not positive it will work, but worth a shot.

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



On Jun 27, 2007, at 12:27 PM, JoshN wrote:



OK, after some Googling I found out that in IE6, innerHTML within a
table is read-only.  Since the jQuery load method uses innerHTML, you
can't load a tr into a table.  Crap.

On Jun 26, 6:01 pm, Josh Nathanson [EMAIL PROTECTED] wrote:

Hey all,

I have a script that does an ajax load into a tbody jQuery  
object, like so:


$tbl = $(# + asp + _tbody); // dynamically finds tbody
$tbl.load(prodsched/dom_dpdcolorrow.html,
 {},
 addrow
 ); // load html content (tr's) into tbody

The html file consists of a table row tr with some junk in it.

It works great on Firefox but gives the error unknown runtime  
error in
IE6.  Is this an issue with IE6 not being able to innerHTML a  
tbody or

something?  If so is there a workaround?  Thanks for any help.

-- Josh









[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino

Wow, Scott, that's thorough!

The third method seems the most plausible. I've tried to implement it,
but the fact snippets don't appear in the 'factholder'. Safari tells
me there's an error loading the page, and I see that it's tried to
load the file website/facts/undefined.html (instead of website/scr/
facts/FactA.html) ... so *that*s why the fact doesn't display.

How come the javascript governing which file-name to choose isn't
working? Also, does the path in the jQuery .load event have to be
relative to that javascript file, or the 'parent' html file?

- - - - -

Here's my code, just incase that helps...

// in 'facts.js' (url: website/scr/facts.js)
var facts = [FactA, FactB, FactC];

// in 'custom.js' (url: website/scr/custom.js)
$(document).ready(function() {
 var fact = facts[Math.floor(facts.size * Math.random())];
 $(#fact-box).load(facts/ + fact + .html);
});

// HTML snippets in the directory: website/scr/facts/ (eg: website/
scr/facts/FactA.html)

// in the 'parent' HTML page (url: website/default.htm)
script src=scr/facts.js type=text/javascript/script
script src=scr/custom.js type=text/javascript/script

div id=fact-box
/div


Cheers.

~ Zarino



On Jun 27, 3:40 pm, Scott Sauyet [EMAIL PROTECTED] wrote:
 zarino wrote:
  Server-side coding would be nice, but it's not PHP-enabled, and I
  think the only method would through ASP which I, frankly, haven't the
  foggiest clue about! For the time it'll take to download the
  relatively small number of 'facts', it shouldn't be a problem.

 Wasted bandwidth!  Tsk, tsk!  :-)

 For small amounts of data, it's certainly not a big deal.  Then you are
 left with two straightforward techniques, and one trickier option.

 --
 The first one is relatively obnoxious unless you have access to *some*
 dynamic method on the server.  (Do you have SSI available?)  This would
 be to have the divs included on each page, but hidden with some
 combination of CSS and JS, then to use JS to display the randomly
 selected one.

 Pros: Leaves the HTML formating inside HTML
Easy to implement
 Cons: Large maintenance issue unless you have some dynamic include
Increased bandwidth

 --
 The second one is to do the HTML formating from Javascript.  Download a
 JSON array with all your facts, randomly, choose one, and format HTML
 from it to add to the DOM.

 Pros: Pretty easy to implement
Centralized maintenance of your facts
 Cons: Less flexibility in HTML facts, as they're created by static code.

 --
 The trickier one involves AJAX: format each fact in its own HTML file,
 and maintain a simple JSON list of filenames.  At load time, randomly
 select one element from the list, and AJAX it into the DOM.

 Pros: Leaves the HTML formating inside HTML
Centralized maintenance of your facts
 Cons: More complex to implement

 This one is not that hard.  If you would like your facts to have some
 simple flexibility in layout and design, I would recommend it.  Here's
 some pseudo-code:

 // in facts.js:
 var facts = [factA, factB, factC, brandNewFact, faceTheFacts];

 // in a script included after facts.js:
 $(document).ready(function() {
  var fact = facts[Math.floor(facts.size * Math.random())];
  $(#factHolder).load(/path/to/fact/dir/ + fact + .html);

 });

 Adding a new fact involves creating an HTML snippet in a file and
 updating the list in facts.js.  You can delete one by simply updating
 facts.js.

 Cheers,

-- Scott

  I take it, using your code, Glen, I'd have a series of hidden divs and
  then jQuery will randomly pick one and show it?

  This, I presume, will require all of the divs to be duplicated in all
  of the pages I want to have a random fact displaying on? Is there a
  way to have the 'facts' centralised -- for example in the jQuery
  'custom.js' file or something -- so it's easy to add and remove new or
  old facts?

  Thanks for your imput. We've nearly cracked it! :-D

  Zarino

  On Jun 26, 11:07 pm, Glen Lipka [EMAIL PROTECTED] wrote:
  I agree.  I was stretching his original intent. :)

  Glen

  On 6/26/07, Scott Sauyet [EMAIL PROTECTED] wrote:

  Glen Lipka wrote:
  Scott, I can think of a couple reasons for this.
  Let's say you want to scroll some facts or quotes or customer
  testamonials across the screen, but you also want to start at a random 
  one.
  That sort of thing.   Or scrolling images.
  Oh, I can see plenty of reasons for choosing a random element of a set,
  but the OP said
  I'd like to create a repository of 'facts' and have jQuery serve up
  a different fact at random with each page-load.
  which sounds more server-side to me.  Not a big deal either way.  As you
  pointed out, it's easy enough to do in JQuery if that's what's needed.
 -- Scott



[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread Scott Sauyet


zarino wrote:

How come the javascript governing which file-name to choose isn't
working? Also, does the path in the jQuery .load event have to be
relative to that javascript file, or the 'parent' html file?


The path should be relative to the HTML page, not the Javascript.

If that doesn't work, do you have a public location to post it so that 
we can look at it?


  -- Scott



[jQuery] Re: Integrating Google Internal Site Search using jquery

2007-06-27 Thread Sean Catchpole


Hi,

I don't really see the point of making this a jQuery plugin, it's very
straightforward as is.
Now perhaps if the searches where returned via ajax then that's a
different story.

~Sean


[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino

Hm... I've made the path relative to the HTML file, but it still
doesn't work.

You can now find all of the files here - http://zarino.zappia.co.uk/keep/

...or for quick reference:
  - http://zarino.zappia.co.uk/keep/default.html
  - http://zarino.zappia.co.uk/keep/scr/files.js
  - http://zarino.zappia.co.uk/keep/scr/custom.js
  - http://zarino.zappia.co.uk/keep/scr/facts/FactA.html (etc...)

The page's very much still under construction, and has proprietary
Blogger tags everywhere, but the fact-box in which the facts should
be generated is in the right-hand sidebar, between the return to home
page and KEEP comic strip areas.

Thanks for you input.



On Jun 27, 7:44 pm, Scott Sauyet [EMAIL PROTECTED] wrote:
 zarino wrote:
  How come the javascript governing which file-name to choose isn't
  working? Also, does the path in the jQuery .load event have to be
  relative to that javascript file, or the 'parent' html file?

 The path should be relative to the HTML page, not the Javascript.

 If that doesn't work, do you have a public location to post it so that
 we can look at it?

-- Scott



[jQuery] Re: Difference between element and # access

2007-06-27 Thread Terry B

The whole point of having an ID is to have a unique id.  You should
not be assigning the same ID name to multiple objects.  Use classes if
you want to handle multiple objects.

http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#adef-id

id = name [CS]
This attribute assigns a name to an element. This name must be unique
in a document.

class = cdata-list [CS]
This attribute assigns a class name or set of class names to an
element. Any number of elements may be assigned the same class name or
names. Multiple class names must be separated by white space
characters.


On Jun 27, 2:25 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 On Jun 27, 2007, at 2:02 PM, Ganeshji Marwaha wrote:

  the second one [ $t(#TimelineContainer) ] will select any element  
  with an id of TimelineContainer

 Quick clarification. This will only select the first one it finds in  
 the DOM. To find any element with an id of TimelineContainer, we'd  
 have to use the much slower $('[EMAIL PROTECTED]')

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



[jQuery] Re: FCKEditor/Codepress/TinyMCE Plugin

2007-06-27 Thread Benjamin Sterling

Diego,
No real feedback, just a Great work pat on the back.  I'd like to see the
TinyMCE implementation (or even a TinyMCE to jQuery re-write).

On 6/27/07, Diego A. [EMAIL PROTECTED] wrote:



This is a new thread that originates from this one:

http://groups.google.com/group/jquery-en/browse_frm/thread/dc46c37c32327ab1/63c079e865ab1945#63c079e865ab1945

As the thread developed I decided to share my solution to the problem
and start a new plugin (work in progress). The thread has been
forgotten over time I decided to start a new thread to gather a little
feedback...

The plugin: http://www.fyneworks.com/jquery/FCKEditor/
The purpose of this plugin is to facilitate the implementation of rich-
text editors with jQuery/Ajax.
The current implementation applies only to FCKEditor, but the
principle would be the same for others such as Codepress (which I use)
and TinyMCE (which was the topic of the original thread).

The next step is,
1. to improve the implementation of the plugin up to jQuery standards
(proper methods, comments)
2. to work out where and how this plugin can integrate with others
(validation plugins, etc) for seamless functionality.

Any feedback will be appreciated.





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


[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread Scott Sauyet


zarino wrote:

Hm... I've made the path relative to the HTML file, but it still
doesn't work.


My fault.  Try:

 var fact = facts[Math.floor(facts.length * Math.random())];
not  var fact = facts[Math.floor(facts.size * Math.random())];

  -- Scott



[jQuery] Re: Integrating Google Internal Site Search using jquery

2007-06-27 Thread tzmedia

That's what I was thinking about was using Ajax to show the results in
the main div content area as one possibility with jquery.
Not sure how practical that would be. I've seen search features
contained in a div where the whole thing slides down.
Such as:
http://www.wordofsport.com/
when you click on advanced search top right.
Thanks for jogging my memory, ajax in an expanding div would work.
Something to think about thanks Sean.


On Jun 27, 2:56 pm, Sean Catchpole [EMAIL PROTECTED] wrote:
 Hi,

 I don't really see the point of making this a jQuery plugin, it's very
 straightforward as is.
 Now perhaps if the searches where returned via ajax then that's a
 different story.

 ~Sean



[jQuery] Re: Difference between element and # access

2007-06-27 Thread Karl Swedberg
Yes, of course, Terry. I didn't mean to suggest that having multiple  
IDs is a good idea.


I was just noting that the ID selector $('#TimelineContainer') will  
not select any element with that ID.
It will only find one -- even if someone wrongly has more than one  
element with the same ID.



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



On Jun 27, 2007, at 3:19 PM, Terry B wrote:



The whole point of having an ID is to have a unique id.  You should
not be assigning the same ID name to multiple objects.  Use classes if
you want to handle multiple objects.

http://www.w3.org/TR/1999/REC-html401-19991224/struct/ 
global.html#adef-id


id = name [CS]
This attribute assigns a name to an element. This name must be unique
in a document.

class = cdata-list [CS]
This attribute assigns a class name or set of class names to an
element. Any number of elements may be assigned the same class name or
names. Multiple class names must be separated by white space
characters.


On Jun 27, 2:25 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

On Jun 27, 2007, at 2:02 PM, Ganeshji Marwaha wrote:


the second one [ $t(#TimelineContainer) ] will select any element
with an id of TimelineContainer


Quick clarification. This will only select the first one it finds in
the DOM. To find any element with an id of TimelineContainer, we'd
have to use the much slower $('[EMAIL PROTECTED]')

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






[jQuery] Re: Select only the next row in a table

2007-06-27 Thread Massimiliano Marini

Great! It works! :)

I've learned something new, thanks to Glen, Corey and Karl.

-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it.  -- Alan Kay


[jQuery] Re: Difference between element and # access

2007-06-27 Thread Terry B

sry man, i wasnt meaning to get on ya...  i wanted to just to point it
out cause some ppl really dont know and i would luv to see the
developers actually enforce it and not make it easy to be lazy  :D

so, again sorry...


On Jun 27, 4:12 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 Yes, of course, Terry. I didn't mean to suggest that having multiple  
 IDs is a good idea.



[jQuery] error at new plugin page

2007-06-27 Thread MathiasBank

Hallo,

It seems, that there is an error at the new plugin page: jQuery
Extensions for example should have 8 plugins. But if I'm looking into
this category, there are only 4 Extensions. I cannot see a next or
previous link. How can I get a complete list of avaiable plugins?

Mathias



[jQuery] Re: error at new plugin page

2007-06-27 Thread John Resig


Huh, yeah - that's weird - it stops at four and doesn't continue. Also
look at Layout (which should have 7) which also only has 4.

I'm CC'ing Mike into this so that he can spot it as well.

--John

On 6/27/07, MathiasBank [EMAIL PROTECTED] wrote:


Hallo,

It seems, that there is an error at the new plugin page: jQuery
Extensions for example should have 8 plugins. But if I'm looking into
this category, there are only 4 Extensions. I cannot see a next or
previous link. How can I get a complete list of avaiable plugins?

Mathias




[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread zarino

Excellent! That was it. It all works brilliantly now. :-D

As a side-note: Am I being really picky here, or could the contents of
facts.js and custom.js be combined into one file? Seems a shame to
have a whole separate javascript file containing just one line of
code.

Thanks so much.

~ Zarino



On Jun 27, 8:34 pm, Scott Sauyet [EMAIL PROTECTED] wrote:
 zarino wrote:
  Hm... I've made the path relative to the HTML file, but it still
  doesn't work.

 My fault.  Try:

   var fact = facts[Math.floor(facts.length * Math.random())];
 not  var fact = facts[Math.floor(facts.size * Math.random())];

-- Scott



[jQuery] Re: error at new plugin page

2007-06-27 Thread Mike Alsup


A lot of (most? all?) categories behave that way.  Including the All
plugins category.

Mike

On 6/27/07, John Resig [EMAIL PROTECTED] wrote:


Huh, yeah - that's weird - it stops at four and doesn't continue. Also
look at Layout (which should have 7) which also only has 4.

I'm CC'ing Mike into this so that he can spot it as well.

--John

On 6/27/07, MathiasBank [EMAIL PROTECTED] wrote:

 Hallo,

 It seems, that there is an error at the new plugin page: jQuery
 Extensions for example should have 8 plugins. But if I'm looking into
 this category, there are only 4 Extensions. I cannot see a next or
 previous link. How can I get a complete list of avaiable plugins?

 Mathias





[jQuery] Re: Dimensions - scrollTop

2007-06-27 Thread Brandon Aaron

On 6/27/07, Glen Lipka [EMAIL PROTECTED] wrote:


I dont understand how scrollTop works.
Look at this demo page. http://www.commadot.com/jquery/dimensions/

Scroll to the bottom and click the box.  Shouldn't it have something in
ScrollTop?



It is the window that has the scroll offset in this case. If you have a div
with overflow auto and scroll it, it will also have a scrollTop.

$(window).scrollTop();

And with 1.0 you can set the scrollTop.

$(window).scrollTop(100);

To illustrate how scrollTop works on an element just go to the visual offset
test page (
http://brandonaaron.net/jquery/plugins/dimensions/test/offset_visual.html)
and run this line of code in firebug.

$('#relative3').scrollTop(100).scrollTop();


I tried $(body).scrollTop() too.  I think this plugin is really powerful

and useful, but the documentation is really small right now.



The examples are lacking but there are inline docs which explain the API. I
am working on finalizing 1.0 and the I will write some better docs with
examples soon. It will take time since this is a pretty powerful plugin. If
anyone would like to help write some docs and/or put together some examples,
it would be much appreciated.

--
Brandon Aaron


[jQuery] Re: Randomly insert one of a pre-defined HTML extracts?

2007-06-27 Thread Scott Sauyet


zarino wrote:

Excellent! That was it. It all works brilliantly now. :-D

As a side-note: Am I being really picky here, or could the contents of
facts.js and custom.js be combined into one file? Seems a shame to
have a whole separate javascript file containing just one line of
code.


That would be fine.  The only reason I thought they should be separated 
is that the list of facts is likely to change regularly; the other 
should remain static.  If you have other JQuery on the page, you can put 
it together with what's in custom.  I guess it's  simply a way to 
separate the dynamic data from the code.


Good luck,

  -- Scott



[jQuery] Re: Draggables in jQuery

2007-06-27 Thread Ganeshji Marwaha

whatever u provide... i am interested in some lite-weight dra-drop plugin...

be sure to post it back here... u already have an excited user waiting to
use it.

-GTG

On 6/27/07, weepy [EMAIL PROTECTED] wrote:



ah - don't want to get y'all too excited - but I just meant providing
'dragstart' and 'dragend' callback events.

:...(

On Jun 27, 10:23 am, Erik Beeson [EMAIL PROTECTED] wrote:
 Good luck editing Brice's code :)

 On 6/27/07, weepy [EMAIL PROTECTED] wrote:



  lurvely - i can easily hack an end event into that and it makes it
  droppable !

  On Jun 27, 7:27 am, Gilles (Webunity) [EMAIL PROTECTED] wrote:
   Drag yes, drop no ;)

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




[jQuery] Re: Dimensions - scrollTop

2007-06-27 Thread Glen Lipka

Ahh, I see.  Thank you.
In terms of setting the ScrollTop, is it possible for that to take a
Duration parameter so it could do a slow scroll?  Maybe even take easing?
Its alot less jarring on the user that way. (Although certainly not for all
circumstances)

Im excited to swap out for 1.0.  I can help make demos if that helps.  Not
sure how much I can do with my limited technical ability.

Glen

On 6/27/07, Brandon Aaron [EMAIL PROTECTED] wrote:


On 6/27/07, Glen Lipka [EMAIL PROTECTED] wrote:

 I dont understand how scrollTop works.
 Look at this demo page. http://www.commadot.com/jquery/dimensions/

 Scroll to the bottom and click the box.  Shouldn't it have something in
 ScrollTop?


It is the window that has the scroll offset in this case. If you have a
div with overflow auto and scroll it, it will also have a scrollTop.

$(window).scrollTop();

And with 1.0 you can set the scrollTop.

$(window).scrollTop(100);

To illustrate how scrollTop works on an element just go to the visual
offset test page 
(http://brandonaaron.net/jquery/plugins/dimensions/test/offset_visual.html
) and run this line of code in firebug.

$('#relative3').scrollTop(100).scrollTop();


I tried $(body).scrollTop() too.  I think this plugin is really powerful
 and useful, but the documentation is really small right now.


The examples are lacking but there are inline docs which explain the API.
I am working on finalizing 1.0 and the I will write some better docs with
examples soon. It will take time since this is a pretty powerful plugin. If
anyone would like to help write some docs and/or put together some examples,
it would be much appreciated.

--
Brandon Aaron



[jQuery] Re: How do I find this error?

2007-06-27 Thread Ganeshji Marwaha

yes, u r right, u have to have one of those applications... i have used both
script debugger and script editor. both are ok...
so, first download and install it... and then follow the instructions that
is given on the top of the blog entry. This should result in ur view-script
debuggger menu...

if it doesnt, then goto options, disable script debbugging, the close IE,
then open IE again, then enable script debugging again, then close IE and
then open IE again. it should work...

-GTG

On 6/27/07, Chris Jordan [EMAIL PROTECTED] wrote:



Thanks heaps, Mike! I've a question though.

That blog entry you point to says:

When you've enabled Script Debugging 'View-Script Debugger' will now
be present to help you break into the debugger.

But, I'm not finding that's the case. Also, it goes on to talk about
three applications that the author has used for script debugging. Do I
have to have one of those in order to debug? Why don't I have the
'View-Script Debugger'? Have you used this debugger in IE? How many
angels can dance on the head of a pin? What are the eleven secret
herbs and spices in Kentucky Fried Chicken? Can God make a rock so
heavy even He can't lift it? Are you tired of my questions yet? ;o)

Any help would be appreciated.

Thanks again,
Chris

On Jun 26, 11:07 am, Mike Alsup [EMAIL PROTECTED] wrote:
 IE has a powerful script debugger, but you have to enable it.
 Details can be found here:

 http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx

 Mike

  I've got a bit of a problem where by I get a JavaScript syntax error
in
  IE6, but everything works fine (no errors show in firebug) in FF
2.0.0.4.




[jQuery] Re: InnerFade-Plugin: Text jumps from left to the center

2007-06-27 Thread Ganeshji Marwaha

posting an demo page some where would help me take a look.

-GTG

On 6/27/07, Muckinger [EMAIL PROTECTED] wrote:




I´ve tried to but the Link between div, p span ... whatever. Always the
same
effect.
I tried also to change the Link to a block-element. :-(

Any other Idee? As i said, must be a Firefox-Problem, IE works...


{js}sTyler wrote:


 Not for certain, did you try placing the link between paragraph tags
 and applying the css to the P tags.
 Just a thought, seems to me I've tried centering some text beneath an
 image and not had much luck either.

 On Jun 27, 12:18 pm, Muckinger [EMAIL PROTECTED] wrote:
 Hi,

 i would like to use the fantastic InnerFade Plugin

fromhttp://medienfreunde.com/lab/innerfade/http://medienfreunde.com/lab/innerfade/

 I want to change DIV-Containers. A Link in this container is centerd
with
 text-align: center. But with Firefox the Link/Text starts with every
Fade
 on
 the left and jumps then to the center, not nice. In IE everything works
 fine. I tried many things (Links as Blick-Elem, margin: 0 auto etc.),
but
 nothing works.

 Can anybody give me a hint? Or another possibility to achieve the same
 effect?

 THX!
 --
 View this message in
 context:
http://www.nabble.com/InnerFade-Plugin%3A-Text-jumps-from-left-to-the...
 Sent from the JQuery mailing list archive at Nabble.com.




--
View this message in context:
http://www.nabble.com/InnerFade-Plugin%3A-Text-jumps-from-left-to-the-center-tf3989346s15494.html#a11328182
Sent from the JQuery mailing list archive at Nabble.com.




[jQuery] Collapsible/Accordion Listing

2007-06-27 Thread aDeviKreates

Greetings All!

I am attempting to create a price list as follows:

Product
Product Category
Items

When the user comes to the page, I want all the Products to be visible
with their Categories and Items hidden.

Once the user clicks on the Product, I want the Categories to be
displayed with their Items still hidden.

Once the user clicks on a Category, then I want the items to be
displayed.

I can get this to work halfway, showing the group of Products and when
I click on the Product it does display the list of Categories for that
Product.  However, I am stuck here.  I cannot get it to when I click
on the Category this list of items is displayed.

Here is my code (I am using h3divh4 tags - I was trying to go by
the More Showing, More Hiding tutorial, but it's not working for me)

$(document).ready(function() {
$('div.demo-show  div').hide();
$('div.demo-show  h3').click(function() {
$(this).next().slideToggle('fast');
});
$('div.demo-show  prodcat.h4').click(function() {
//$(this).next().slideToggle('fast');
});
});

Thanks in advance for any assistance provided.

CREATE A GREAT DAY!



[jQuery] Re: Draggables in jQuery

2007-06-27 Thread Glen Lipka

Wow, that kicks ass.  I just switched to it from interface draggable on my
blog.
Saved me 40k.

Interestingly, I am dragging a 24-bit PNG.  IE is the one with wierd
behavior.
First off, it jumps way to the left when you start dragging.
Secondly, it kills the opacity.

I probably should revisit my PNG hack fixes.  This is jQuery 1.1.3a by the
way.
I hope this is good troubleshooting.

Gle

On 6/27/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:


whatever u provide... i am interested in some lite-weight dra-drop
plugin...
be sure to post it back here... u already have an excited user waiting to
use it.

-GTG

On 6/27/07, weepy [EMAIL PROTECTED] wrote:


 ah - don't want to get y'all too excited - but I just meant providing
 'dragstart' and 'dragend' callback events.

 :...(

 On Jun 27, 10:23 am, Erik Beeson  [EMAIL PROTECTED] wrote:
  Good luck editing Brice's code :)
 
  On 6/27/07, weepy [EMAIL PROTECTED] wrote:
 
 
 
   lurvely - i can easily hack an end event into that and it makes it
   droppable !
 
   On Jun 27, 7:27 am, Gilles (Webunity) [EMAIL PROTECTED]
 wrote:
Drag yes, drop no ;)
 
   http://dev.iceburg.net/jquery/jqDnR/





  1   2   >