Re: [jQuery] Off topic : javascript css

2006-10-23 Thread David Duymelinck
Thank you all for the response, I'll try to mold all the information in 
an article.

To summarize the thread:

- use document.writeln( 'link rel=stylesheet href=jquery.css 
type=text/css media=screen' ); to import javascript css file
- style all essential css in the plugin/general javascript code.

-- 
David Duymelinck

[EMAIL PROTECTED]


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


Re: [jQuery] New Plugin: Resizeable

2006-10-23 Thread Mika Tuupola

On Oct 21, 2006, at 15:26, Stefan Petre wrote:

 http://interface.eyecon.ro/demos/resize.html more like a image crop

OSX FF 1.5.0.7

First time when I drag (not resize) the brigh area with mouse  
everything is ok. When I release it and drag second time the bright  
area disappears as soon as I press mouse button. It reappears when I  
release mouse.

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



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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Sam Collett
On 23/10/06, Michael Geary [EMAIL PROTECTED] wrote:
  I would like to be able to load my jquery plugins dynamically
  as this would reduce the number of scripts in my document head.

 You can easily load any .js file dynamically, for example with code like
 this:

function addScript( url ) {
   var script = document.createElement( 'script' );
   script.type = 'text/javascript';
   script.charset = 'utf-8';
   script.src = url;
   document.getElementsByTagName('head')[0].appendChild( script );
};

 That's just basic JavaScript code that doesn't require jQuery or anything.

 Or, using jQuery and my DOM plugin, you could do this:

function addScript( url ) {
   $('head',document).append(
  $.SCRIPT({ type:'text/javascript', charset:'utf-8', src:url })
   );
};

 There are other similar ways of doing this as well.

What about $.getScript(myplugin.js, callback)? With all the code you
want to run in the callback function.

 However, it may or may not be a good idea. Loading your plugin scripts
 dynamically will reduce the number of files loaded in HEAD, but the overall
 load time won't be any better. Loading a number of different scripts will
 take time however you do it.

 In many cases, a better approach is to simply concatenate your scripts into
 a single file. You don't increase the overall download size at all this way,
 but you can greatly reduce the *number* of scripts that are loaded.

 The Dojo Toolkit folks have a lot of experience with this. Dojo will load
 any number of scripts dynamically, but to gain performance, you create a
 build which is simply a single .js file containing all of the Dojo scripts
 you are using. It makes a big improvement in page load time.

 -Mike


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


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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread gilles
 I would like to be able to load my jquery plugins dynamically
 as this would reduce the number of scripts in my document head.

You could also combine all scripts you use on your entire site into 1
file, then, pack it and also don't forget to gzip it. There is a lot of
documentation on this on the net. I managed to get jQuery from 20k to 9k
when gzipped. I load this file using PHP which sets the correct headers
for all browsers.


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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Christof Donat
Hi,

 I would like to be able to load my jquery plugins dynamically as this would
 reduce the number of scripts in my document head.

I have my jsPax-Script: jspax.cdonat.de

That is traditional JS-code without jQuery-stuff, because I even load jQuery 
dynamically. You will have to slightly modify the scripts that you whant to 
load dynamically. See the documentation.

Christof

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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Christof Donat
Hi,

function addScript( url ) {
   var script = document.createElement( 'script' );
   script.type = 'text/javascript';
   script.charset = 'utf-8';
   script.src = url;
   document.getElementsByTagName('head')[0].appendChild( script );
};

There are some Safari versions that won't execute scripts like this. The 
solution is to load the script with a XMLHttpRequest and eval it.

The second drawback of that solution is that you can not resolve dependencies 
between dynamically loaded scripts. Well you can, but then you have to keep 
the dependency-informatin in a central place.

 However, it may or may not be a good idea. Loading your plugin scripts
 dynamically will reduce the number of files loaded in HEAD, but the overall
 load time won't be any better. Loading a number of different scripts will
 take time however you do it.

Yes, but you can delay the loading of some scripts. That way your page starts 
up very fast and some scripts can be loaded after startup or even on demand. 
Dynamically loaded scripts can also dynamically load other scripts and 
resolve dependencies that way.

You may also build your page with a CMS. Then you insert a script-tag 
hardcoded in your template and have that script decide which plugins to load 
based on the contents of the page.

Christof

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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Michael Geary
 From: Klaus Hartl
 
 Just wanted to note, that dynamic script elements are
 not supported in Safari 2.0. Support for that was added
 in Safari 2.01.

Hmm... It works in older versions of Safari. I just tested it in 1.2.  Are
you saying the support was removed (or broken) in 2.0 and put back in with
2.01?

 Don't know about document.write...

I don't think there's a browser out there that supports JavaScript but does
not support document.write - with the exception of modern browsers when
rendering a page with the text/xml MIME type. Then the XML parser is used
and document.write is not allowed.

-Mike


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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Christof Donat
Hi,

 What about $.getScript(myplugin.js, callback)? With all the code you
 want to run in the callback function.

For that you need jQuery and the Ajax-Plugin to be already loaded. In jsPax I 
don't use jQuery anywhere. I didn't whant it to be dependant on anything, 
because then I can make a package from every script, even from the 
jQuery-core. With your jQuery extention you will write:

script type=text/javascript src=jquery.js/script
script type=text/javascript src=jquery/ajax.js/script
script type=text/javascript src=jquery/dynamicloader.js/script
script type=text/javascript src=main.js/script

With jsPax you write:

script type=text/javascript src=jspax.js/script
script type=text/javascript src=main.js/script

And load jQuery and whatever plugins you need in main.js. The decission what 
you need might be depending on the content of your page.

Christof

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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Christof Donat
Hi,

  Just wanted to note, that dynamic script elements are
  not supported in Safari 2.0. Support for that was added
  in Safari 2.01.

 Hmm... It works in older versions of Safari. I just tested it in 1.2.  Are
 you saying the support was removed (or broken) in 2.0 and put back in with
 2.01?

I don't remember the version-numbers, but there was a Bug for a while.

  Don't know about document.write...

That didn't work either. The solution was to use XMLHttpRequest and eval the 
result.

In jsPax I use XMLHttpRequest if possible. There are two fallback steps: first 
I try to use DOM to create a script-tag and if that doesn't work I use 
document.write(). That did work in all Browsers that I have tested - if you 
find one that can't cope with that, please let me know.

Christof

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


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Klaus Hartl
Michael Geary schrieb:
 From: Klaus Hartl

 Just wanted to note, that dynamic script elements are
 not supported in Safari 2.0. Support for that was added
 in Safari 2.01.
 
 Hmm... It works in older versions of Safari. I just tested it in 1.2.  Are
 you saying the support was removed (or broken) in 2.0 and put back in with
 2.01?

Seems to be so. In my Safari 2.0 from the Multi Safari side it didn't work.

Back then I did a little research (I couldn't believe that this is not 
working in Safari 2.0) and found that on the Surfin Safari blog:

Added support for loading external scripts and executing inline scripts 
by dynamically adding script elements to the DOM. 

The post has the title WebKit Fixes in Safari 2.0.1,
http://webkit.org/blog/?p=26


-- Klaus



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


[jQuery] Simple Example of adding animations to thickbox?

2006-10-23 Thread Anders Schneiderman




Does anyone have code they wouldn't mind sharing 
that adds a simple animation to thickbox? The documentation for thickbox says 
animations have been taken out of the latest versions of the code but that 
authors can add the ones they like. Unfortunately, I'm still too new to 
jquery -- and _javascript_ -- to be clear on what I need to do. So an 
example I could model would be fabulous.

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


Re: [jQuery] $(.my_input).focus() shouldnt work?

2006-10-23 Thread Rafael Santos
$(#month).keypress( function(){  len = $(this).val().length;  if(len  1){ document.form_register.day.focus(); } });working on IE 6... =) enough for my lazy client who doesnt even know about the existence of another browser besides IE. lol
2006/10/23, Rafael Santos [EMAIL PROTECTED]:
hey guys, could u help me?this is my lines:$(#month).keypress( function(){  len = $(this).val().length;  if(len == 1){ document.getElementById(day).focus(); } });
this firebug give me an error.if(len == 1){ $(#day).focus(); } this do nothing... what am i doing wrong


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


[jQuery] IE7 .ready() bug was Re: Possible IE7 fadeOut bug

2006-10-23 Thread Chris Ovenden
For confidentiality reasons I can't show you code I'm working in at
the moment, but I have traced it to a problem with Matthias Miller's
onreadystatechange hack inside the jquery source code; basically the
script element created is not seen by IE7, causing a js error on the
following line:

script.onreadystatechange = function() {

which in turn was causing the rest of jquery not to load. wrapping
that clode block in

if (script) { }

solves that specific problem, but I suppose .ready() wouldn't work
(I'm not using it)

I am making a cross-domain script which self-loads jquery, if this
sheds any light on the matter. I will try to construct a minimal test
case.

Chris

On 10/20/06, Brandon Aaron [EMAIL PROTECTED] wrote:
 A link would be most helpful in trying to find a solution. Would it be
 possible to post a link?

 --
 Brandon Aaron

 On 10/20/06, Chris Ovenden [EMAIL PROTECTED] wrote:
  Interesting - .css returned a function value, but .animate was
  undefined. I'm pretty sure the animation module is in there, though,
  as it's working in FF, and indeed (checking) FF returns the expected
  function.
 
  On 10/20/06, Brandon Aaron [EMAIL PROTECTED] wrote:
   Could you also try doing an alert(clickBlock.css) and 
   alert(clickBlock.animate)?
  
   Thanks
  
   --
   Brandon Aaron
  
   On 10/20/06, Chris Ovenden [EMAIL PROTECTED] wrote:
On 10/20/06, Chris Ovenden [EMAIL PROTECTED] wrote:
 I forgot to say that if you uncomment the alert, it gives undefined 
 in IE7.

alert should read alert(clickBlock.fadeOut); // no 'this'
   
 On 10/20/06, Chris Ovenden [EMAIL PROTECTED] wrote:
  Hi
 
  I have a problem where fadeOut is undefined in IE7 (final), but
  working fine in Firefox (2.0RC3).
 
  The relevant code is:
  //alert(this.clickBlock.fadeOut);
  clickBlock.fadeOut(slow, function() {
   $(this).remove();
  });
 
  clickBlock is a regular  jQuery object defined earlier by
 
  clickBlock = $(document.createElement(div)).id(block);
 
  I originally had clickBlock.remove(); here and it worked just fine.
 
  Can't check in IE6 at present, so don't know if it only affects IE7.
 
  If someone can confirm this as a bug, I'll file a bug report.
 
  --
  Chris Ovenden
 
  http://thepeer.blogspot.com
  Imagine all the people / Sharing all the world
 


 --
 Chris Ovenden

 http://thepeer.blogspot.com
 Imagine all the people / Sharing all the world

   
   
--
Chris Ovenden
   
http://thepeer.blogspot.com
Imagine all the people / Sharing all the world
   
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
   
  
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
  
 
 
  --
  Chris Ovenden
 
  http://thepeer.blogspot.com
  Imagine all the people / Sharing all the world
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 

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



-- 
Chris Ovenden

http://thepeer.blogspot.com
Imagine all the people / Sharing all the world

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


Re: [jQuery] Expressions: Search for children within context

2006-10-23 Thread Mats Lindblad
Isn't there a way do something like find(dt).not(:child) or maybe like you do in LDAP and tell find to do a one level search instead of subtree search?On 10/23/06, 
Jörn Zaefferer [EMAIL PROTECTED] wrote:
  how do I search for a children within a context?   In other words, how to translate this:  $(context).children(dt)...  into something like this:  $(/dt, context)
   The latter one does unfortuanetely not work... I'm confused - could you give an example with some HTML code and show exactly what result you're looking for? My first reaction would be to use $( 'dt', context ) to get all DT
 elements within the context element. But are you looking for first-level children only instead of all DT elements, or something like that?Consider a definition list (dl) as the context: When using $('dt', context'), I'd select nested dl/dts, and I want to avoid that.
I'll give '  dt' a try...--Jörn Zaeffererhttp://bassistance.de--Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!Ideal für Modem und ISDN: 
http://www.gmx.net/de/go/smartsurfer___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- If there's anything more important than my ego around, I want it caught and shot now. -- Zaphod
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Sortables, new approach

2006-10-23 Thread Stefan Petre
Gilles, it is a draft :). I just tested the idea. Maybe some animations 
can be implemented.

Webunity | Gilles van den Hoven wrote:
 Me and Paul (Which paul?) are thinking to change the way sortables are 
 working right 
 now. So I had an idea that turned to be quite nice because of 2 reasons:
 - works faster
 - you can sort nested list
   
 
 Hi Stefan, all prommising features, however, when i start to drag 
 Option 1-1, the border (drop location i presume) is on top. When i 
 move the item around by dragging (not by dropping yet) the border is at 
 the bottom.
   
 But also has some drawbacks: you ca not have fancy affects.
   
 
 It would be really cool to be able to use the transfer-to effect when 
 you drag/drop in thesame list, or from one to another list.

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

   


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


Re: [jQuery] nice plugin idea - Splitter

2006-10-23 Thread Armand Datema
to see how he did that  click here linke animation thingie

http://www.jackslocum.com/yui/2006/08/24/javascript-animations-with-yahoo-ui-made-easy/

very interesting :)

Armand

On 10/19/06, Mark Gibson [EMAIL PROTECTED] wrote:
 Armand Datema wrote:
  I just found this link
 
  http://www.jackslocum.com/yui/2006/08/19/a-splitbar-component-for-yahoo-ui/
 
  Does a jquery version excist yet?

 I don't about that, but have you tried the
 'Click here and I will point it out' link!!!

 Wow! That's it, documentation is going in the bin, it's
 live demonstrations from now on.

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



-- 
Armand Datema
CTO SchwingSoft

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


Re: [jQuery] A question about ajaxStart and Stop

2006-10-23 Thread Mats Lindblad
But where do I initilize it? In $(document).ready() ?or can I do it anywhere?I've tried all of the above and it just wont work.On 10/22/06, Ⓙⓐⓚⓔ
 [EMAIL PROTECTED] wrote:it's great, and easy, and you don't often need it.
they are not for creating ajax requests or for dealing with responses!it's just a magical hook that can show that an ajax call has startedor that all the ajax calls are done.most people seem to just do a little css to show that an ajax request
is going on. Then remove the little effect when it is done.my first ajaxstart and stop just changed the background color a bit.On 10/22/06, Mats Lindblad 
[EMAIL PROTECTED] wrote: I have tried to get it to work and I am not sure that I am using it right so if anyone could explain to me how I am supposed to use it? Where do I initilize it, what do I attach it to?
 It just will not work for me. I am using jQuery 1.0.2 Rev: 413 -- If there's anything more important than my ego around, I want it caught and shot now.-- Zaphod
 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
--Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- If there's anything more important than my ego around, I want it caught and shot now. -- Zaphod
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Is there a way to dynamically load jquery plugins

2006-10-23 Thread Sam Sherlock
Christof Donat wrote:
 Hi,

   
 I would like to be able to load my jquery plugins dynamically as this would
 reduce the number of scripts in my document head.
 

 I have my jsPax-Script: jspax.cdonat.de

 That is traditional JS-code without jQuery-stuff, because I even load jQuery 
 dynamically. You will have to slightly modify the scripts that you whant to 
 load dynamically. See the documentation.

 Christof

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

   
Thanks to you all so much for the responses and thoughts tho this.

I had heard of problems with dynamic loading in Safari.  I have been 
thinking about using a combined compressed gzip'd script file

Though I would prefer along the lines of Mikes.  I will look into the 
suggestions made here


thx - S

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


Re: [jQuery] $(.my_input).focus() shouldnt work?

2006-10-23 Thread Webunity | Gilles van den Hoven
Rafael Santos wrote:
 hey guys, could u help me?

 this is my lines:
 $(#month).keypress( function(){
 len = $(this).val().length;
 if(len == 1){ document.getElementById(day).focus(); }
 });

 this firebug give me an error.

 if(len == 1){ $(#day).focus(); }

 this do nothing...

 what am i doing wrong
Please consult the website for more information, but in short you are 
doing 2 things wrong. First of all, you are using 
document.getElementById which can be shortened to $('#..') or 
jQuery('#..') and secondly you have to make sure that the element is 
focusable (e.g. not hidden, disabled or otherwise unfocusable).

Try this:

jQuery(#month).keypress(function() {
if (this.length == 1)
jQuery('#day')[0].focus();
});

[or]

$(#month).keypress(function() {
if (this.length == 1)
$('#day')[0].focus();
});

-- Gilles

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


Re: [jQuery] [Off-list] Re: Is svn broken or having problems?

2006-10-23 Thread Stephen Woodbridge
Thanks,

Yeah, all my other repositories were working fine also, but it seems to 
be fixed now! so thanks to whom ever fixed it.

-Steve

Choan C. Gálvez wrote:
 Hi, Stephen.
 
 I'm having problems too with SVN today (just for jquery, so I'm afraid
 there's something broken in the repo).
 
 On 10/23/06, Stephen Woodbridge [EMAIL PROTECTED] wrote:
 Hi all,

 Just tried to do:

 $ svn update
 svn: Can't find a temporary directory

 I googled for this and found a hint it my be the repository. I check
 that I do have /tmp and it is not full and it is writable.

 -Steve
 
 


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


Re: [jQuery] Is svn broken or having problems?

2006-10-23 Thread Doug Clinton
I'm seeing the same problem so I presume it is the server end.

Doug

- Original Message - 
From: Stephen Woodbridge [EMAIL PROTECTED]
To: jQuery Discussion. discuss@jquery.com
Sent: Monday, October 23, 2006 6:10 AM
Subject: [jQuery] Is svn broken or having problems?


 Hi all,
 
 Just tried to do:
 
 $ svn update
 svn: Can't find a temporary directory
 
 I googled for this and found a hint it my be the repository. I check 
 that I do have /tmp and it is not full and it is writable.
 
 -Steve
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


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


Re: [jQuery] Style sheet modification snippet

2006-10-23 Thread Olaf Bosch
Brandon Aaron schrieb:

 Yeah just call it like this:
 
 $.style('body', 'background-color: #000;');
   Hope that helps...

Yes, thank you good help.

-- 
Viele Grüße, Olaf

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

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


[jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-23 Thread Truppe Steven
Hello again,

i'm using the center plugin to center images inside a div. But i have to
call it with a timeout like this:

$(document).ready(function(){
   setTimeout(doCenter(),1000);
});

function doCenter(){
$(.jqcenter).each(){
   $(this).center();
}
}


I do not really understand why i need a timeout here because DOM should
allready be ready inside of $(document).ready().

The Problem with this is that it fails for some reason in certain cases,
so that the image is misplaced. To me it looks like that in these cases
the function is called to early because if i refresh the page it look fine.

If i replace setTimeOut and call the function direct with doCenter() it
does not work at all.
Do i have a general understanding problem or what am i doing wrong ?

best regards,
Truppe Steven

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


Re: [jQuery] expand one - collapse the others

2006-10-23 Thread Sean O

This should work:

$(.question).click(function(){
$(.answer).hide();   // hide all answers
$(this).next().show();   // show only the answer 
following the question
clicked
});

...as long as the answer immediately follows the question, as per your
example.

This uses the jQuery hide() and show() methods; you could add/remove
hide/show CSS classes as well.


SEAN O




badtant wrote:
 
 sounds goog but i can't get it to work... i can only get toggle all
 answers to work. i want to be able to toggle each specific question. 
 
 i think this should work, but nothing happends:
 
 $(p.question).click(function() {
   $(this).parent(p.answer).toggleClass(show);
 });
 
 /n
 
 
 
 
 Dan Atkinson wrote:
 
 How bout doing $().toggle?
 
 Also,
 
 $(p).addClass(classname); -- that will add a class.
 
 
 badtant wrote:
 
 hi! i have the following list:
 
 ul
 li
 h2Kapitalförsäkring/h2
 p class=question- q/p
 p class=answera/p
 /li
 
 li
 h2Kapitalpension/h2
 p class=question- q/p
 p class=answera/p
 /li
 /ul
 
 the class answer has the css display:none. what i want to do with it
 is that when someone clicks a question the answer should be shown and
 all other answers should be hidden. to show an answer i have the class
 show.
 i know how to remove the class from all answers with
 $(p.answer).removeClass(show); but i don't know how to add the class
 again for the right answer. any idéas on this?
 
 thanks!
 /niklas
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/expand-one---collapse-the-others-tf2493260.html#a6959713
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Simple Example of adding animations to thickbox?

2006-10-23 Thread bbuchs

for a *really* simple mod, you can change the Remove function. Instead of
fading out, you can use the hide effect:

function TB_remove() {
  $(#TB_window).fadeOut(fast...

change to:

function TB_remove() {
  $(#TB_window).hide(fast...




Erik Beeson wrote:
 
 Haven't actually tried, but I'd guess you'd add some CSS so TB_overlay and
 TB_window are initially hidden (display: none), and add
 $('#TB_overlay').doSomeAnimation() and $('#TB_window').doSomeAnimation()
 type calls after the $('body').append(...) line near the top of the
 TB_show
 function (or maybe outside the if statement? try it).
 
 HTH,
 Erik
 
 On 10/23/06, Anders Schneiderman [EMAIL PROTECTED] wrote:

  Does anyone have code they wouldn't mind sharing that adds a simple
 animation to thickbox? The documentation for thickbox says animations
 have
 been taken out of the latest versions of the code but that authors can
 add
 the ones they like.  Unfortunately, I'm still too new to jquery -- and
 JavaScript -- to be clear on what I need to do.  So an example I could
 model
 would be fabulous.

 Thanks,
 Anders
 

-- 
View this message in context: 
http://www.nabble.com/Simple-Example-of-adding-animations-to-thickbox--tf2496978.html#a6961658
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-23 Thread Kurt Mackey
Without really knowing what .center() does, I'd assume it's because when
$(document).ready() fires, the image isn't loaded.  I suspect the 1
second delay gives it enough time to do so.

Does the image have a set width and height?  If you specify those, it
might work.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Truppe Steven
Sent: Monday, October 23, 2006 5:03 PM
To: jQuery Discussion.
Subject: [jQuery] Why do i need a delay in $(document).ready when using
the center plugin ?

Hello again,

i'm using the center plugin to center images inside a div. But i have to
call it with a timeout like this:

$(document).ready(function(){
   setTimeout(doCenter(),1000);
});

function doCenter(){
$(.jqcenter).each(){
   $(this).center();
}
}


I do not really understand why i need a timeout here because DOM should
allready be ready inside of $(document).ready().

The Problem with this is that it fails for some reason in certain cases,
so that the image is misplaced. To me it looks like that in these cases
the function is called to early because if i refresh the page it look
fine.

If i replace setTimeOut and call the function direct with doCenter() it
does not work at all.
Do i have a general understanding problem or what am i doing wrong ?

best regards,
Truppe Steven

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

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


Re: [jQuery] expand one - collapse the others

2006-10-23 Thread Dan Atkinson

How bout doing $().toggle?

Also,

$(p).addClass(classname); -- that will add a class.


badtant wrote:
 
 hi! i have the following list:
 
 ul
 li
 h2Kapitalförsäkring/h2
 p class=question- q/p
 p class=answera/p
 /li
 
 li
 h2Kapitalpension/h2
 p class=question- q/p
 p class=answera/p
 /li
 /ul
 
 the class answer has the css display:none. what i want to do with it is
 that when someone clicks a question the answer should be shown and all
 other answers should be hidden. to show an answer i have the class show.
 i know how to remove the class from all answers with
 $(p.answer).removeClass(show); but i don't know how to add the class
 again for the right answer. any idéas on this?
 
 thanks!
 /niklas
 

-- 
View this message in context: 
http://www.nabble.com/expand-one---collapse-the-others-tf2493260.html#a6954269
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-23 Thread Truppe Steven
It's working now. Thank you for the fast reply !

I haven't seen $(window) until now. What's the difference between window
and $(window).
Also when inside of an .each(function(){}); what's the difference
between this and $(this) ?

Is this some wrapper for objects to extend their functionality over jquery ?



Truppe Steven

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


Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-23 Thread Matt Stith
inside an each loop, this refers to the actual DOM element. $(this) will wrap jQuery around that DOM element, so you can do stuff with it, like effects and whatnot. same thing with the window, $(window) thing, window refers to the browser object window, and $(window) wraps jquery around the window object. Browsers dont let you do much with the window object, but its usefull for checking if the page has loaded.
On 10/23/06, Truppe Steven [EMAIL PROTECTED] wrote:
It's working now. Thank you for the fast reply !I haven't seen $(window) until now. What's the difference between windowand $(window).Also when inside of an .each(function(){}); what's the differencebetween this and $(this) ?
Is this some wrapper for objects to extend their functionality over jquery ?Truppe Steven___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Ⓙⓐⓚⓔ
What kind of tree control? similar to the way browsers show xml when
there is no stylesheet?
Hiding and showing divs on command? that could be written in 1 (very long) line!

Roots  leaves  bark... more difficult!

On 10/23/06, Rey Bango [EMAIL PROTECTED] wrote:
 Hi guys,

 I'm looking for a good Javascript-based tree control that I can use for
 a project. I looked on the plugins page and didn't see any listed.

 If its JQuery-based, that's great but its not a requirement. It can be
 commercial or open source with open source being preferred.

 Rey...

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



-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] A question about ajaxStart and Stop

2006-10-23 Thread sdkester

I created a JS file on my server to contain my start/stop/post/get etc. I
works with Rev. 249, not sure it will work with yours. Feel free to take a
look to see how I did it.

http://www.skfox.net/jquery/jAjax.js

Hope that helps.


ztamizzen wrote:
 
 I have tried to get it to work and I am not sure that I am using it right
 so
 if anyone could explain to me how I am supposed to use it?
 Where do I initilize it, what do I attach it to?
 
 It just will not work for me. I am using jQuery 1.0.2 Rev: 413
 
 -- 
 If there's anything more important than my ego around, I want it caught
 and
 shot now.
 -- Zaphod
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-ajaxStart-and-Stop-tf2490963.html#a6964482
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] A question about ajaxStart and Stop

2006-10-23 Thread Ⓙⓐⓚⓔ
anywhere, it just has to be executed before the ajax call!

Start simple, make sure your jq works in other contexts.

On 10/23/06, Mats Lindblad [EMAIL PROTECTED] wrote:
 But where do I initilize it? In $(document).ready() ?
 or can I do it anywhere?

 I've tried all of the above and it just wont work.


 On 10/22/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
  it's great, and easy, and you don't often need it.
  they are not for creating ajax requests or for dealing with responses!
 
  it's just a magical hook that can show that an ajax call has started
  or that all the ajax calls are done.
 
  most people seem to just do a little css to show that an ajax request
  is going on. Then remove the little effect when it is done.
 
  my first ajaxstart and stop just changed the background color a bit.
 
 
 
  On 10/22/06, Mats Lindblad  [EMAIL PROTECTED] wrote:
   I have tried to get it to work and I am not sure that I am using it
 right so
   if anyone could explain to me how I am supposed to use it?
   Where do I initilize it, what do I attach it to?
  
   It just will not work for me. I am using jQuery 1.0.2 Rev: 413
  
   --
   If there's anything more important than my ego around, I want it caught
 and
   shot now.
-- Zaphod
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
  
  
  
 
 
  --
  Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 



 --
 If there's anything more important than my ego around, I want it caught and
 shot now.
  -- Zaphod
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/





-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Rey Bango
BTW, try running that treeview in IE and see the results. Its a little 
shaky, at least for me. :o)

Rey...

Matt Stith wrote:
 A simple google search could have saved you a bit of time.
 
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
  
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
 
 leads to
 
 http://interface.eyecon.ro/plugins
 
 leads to
 
 http://be.twixt.us/jquery/treeView.php 
 http://be.twixt.us/jquery/treeView.php
 
 
 BAM! kick it up a notch ;)
 
 On 10/23/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 Hi guys,
 
 I'm looking for a good Javascript-based tree control that I can use for
 a project. I looked on the plugins page and didn't see any listed.
 
 If its JQuery-based, that's great but its not a requirement. It can be
 commercial or open source with open source being preferred.
 
 Rey...
 
 ___
 jQuery mailing list
 discuss@jquery.com mailto:discuss@jquery.com
 http://jquery.com/discuss/
 
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Rey Bango
Hey Jake. Something like this:

http://www.destroydrop.com/javascripts/tree/

That one looks good but I wanted a good recommendation before just using 
any ole code. :o)

Rey


Ⓙⓐⓚⓔ wrote:
 What kind of tree control? similar to the way browsers show xml when
 there is no stylesheet?
 Hiding and showing divs on command? that could be written in 1 (very long) 
 line!
 
 Roots  leaves  bark... more difficult!
 
 On 10/23/06, Rey Bango [EMAIL PROTECTED] wrote:
 
Hi guys,

I'm looking for a good Javascript-based tree control that I can use for
a project. I looked on the plugins page and didn't see any listed.

If its JQuery-based, that's great but its not a requirement. It can be
commercial or open source with open source being preferred.

Rey...

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

 
 
 

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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Ⓙⓐⓚⓔ
Looks good, but that style is so last millennium!

Modern thought says do it in a series of UL's and LI's then style  script it.

Let's keep looking and see what the  serious JQers say.


On 10/23/06, Rey Bango [EMAIL PROTECTED] wrote:
 Hey Jake. Something like this:

 http://www.destroydrop.com/javascripts/tree/

 That one looks good but I wanted a good recommendation before just using
 any ole code. :o)

 Rey


 Ⓙⓐⓚⓔ wrote:
  What kind of tree control? similar to the way browsers show xml when
  there is no stylesheet?
  Hiding and showing divs on command? that could be written in 1 (very long) 
  line!
 
  Roots  leaves  bark... more difficult!
 
  On 10/23/06, Rey Bango [EMAIL PROTECTED] wrote:
 
 Hi guys,
 
 I'm looking for a good Javascript-based tree control that I can use for
 a project. I looked on the plugins page and didn't see any listed.
 
 If its JQuery-based, that's great but its not a requirement. It can be
 commercial or open source with open source being preferred.
 
 Rey...
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 
 
 

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



-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Another update for form.js

2006-10-23 Thread Mike Alsup
I just checked in some more changes to the form plugin.  The methods
were reworked to use the standard plugin style for specifying options.
 The signatures for ajaxSubmit and ajaxForm now take just a single
argument which is an object literal.  Here are the details from the
docs:

-

The following options are supported:

target:   Identifies the element(s) in the page to be updated with the
server response.
  This value may be specified as a jQuery selection string, a
jQuery object,
  or a DOM element.
  default value: null

url:  URL to which the form data will be submitted.
  default value: value of form's 'action' attribute

method:   The method in which the form data should be submitted, 'GET'
or 'POST'.
  default value: value of form's 'method' attribute (or 'GET'
if none found)

before:   Callback method to be invoked before the form is submitted.
  default value: null

after:Callback method to be invoked after the form has been
successfully submitted.
  default value: null

dataType: Expected dataType of the response.  One of: null, 'xml',
'script', or 'json'
  default value: null

semantic: Boolean flag indicating whether data must be submitted in
semantic order
  default value: false

...

The dataType option provides a means for specifying how the server
response should be handled.  This maps directly to the jQuery.httpData
method so the following values are supported:

  'xml':if dataType == 'xml' the server response is treated as XML
and the 'after'
  callback method will be passed the responseXML value
  'json':   if dataType == 'json' the server response will be
evaluated and passed to
  the 'after' callback
  'script': if dataType == 'script' the server response is evaluated
in the global context

-

I've updated the example page and unit tests to reflect these updates:

http://malsup.com/jquery/form/

Note: Like the previous update, this version of form.js requires
jQuery 1.02 or later.

Cheers.

Mike

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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Ⓙⓐⓚⓔ
Kevin, that looks great! I bet those dotted numbers could be
dynamically generated too!

On 10/23/06, Kevin Scholl [EMAIL PROTECTED] wrote:
 Rey,

 I started with Myles's treeView and noticed the same issues that you
 apparently have. What I've done is use Myles's script as a start, and
 then made some pretty significant alterations, including some branching
 for IE that removes the background images (the root of the display issue
 in IE). I also added Expand and Collapse All buttons.

 http://beta.ksscholl.com/jquery/treeview.html

 It's not perfect by any stretch, but may give you a start. You can get
 all of the associated JS and CSS files from the source on that page, but
 I suspect the ones in which you'd be most interested are

 http://beta.ksscholl.com/jquery/js/jqtreeview.js
 http://beta.ksscholl.com/jquery/css/treeview.css
 http://beta.ksscholl.com/jquery/css/ie.css

 (TOC NAVIGATION OVERRIDES section on the last one)

 Hope that helps a bit...

 Kevin

 Rey Bango wrote:
  BTW, try running that treeview in IE and see the results. Its a little
  shaky, at least for me. :o)
 
  Rey...
 
  Matt Stith wrote:
  A simple google search could have saved you a bit of time.
 
  http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
  http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
 
  leads to
 
  http://interface.eyecon.ro/plugins
 
  leads to
 
  http://be.twixt.us/jquery/treeView.php
  http://be.twixt.us/jquery/treeView.php
 
 
  BAM! kick it up a notch ;)
 
  On 10/23/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  wrote:
 
  Hi guys,
 
  I'm looking for a good Javascript-based tree control that I can use for
  a project. I looked on the plugins page and didn't see any listed.
 
  If its JQuery-based, that's great but its not a requirement. It can be
  commercial or open source with open source being preferred.
 
  Rey...
 
  ___
  jQuery mailing list
  discuss@jquery.com mailto:discuss@jquery.com
  http://jquery.com/discuss/
 
 
 
  
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 


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



-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] [feature request:] scrolling viewport when draggable leaves viewport?

2006-10-23 Thread Eckhard Rotte
Hi there,

i would like to see a scrolling feature for any drag/dropable: when
you leave the viewport with an object and the document body is longer
or wider than the viewport the document scrolls connected to the mouse
position.

You can see a good example at this YUI demo:
http://developer.yahoo.com/yui/examples/dragdrop/ontop.html?mode=dist

Is somebody working on it or did I miss it in the documentation?


regards
ecki

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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Kevin Scholl
Thanks much, Jake!

Yes, the content could very much be dynamic. In fact, this was part of a 
proof of concept for work, the idea being that the content of the tree 
would be dynamically generated through Java Server Faces (JSF) written 
by one of the developers, while the operation of the tree itself would 
be driven via the JQuery functionality (provided by yours truly).

Feel free to look through any of my experiments there...

http://beta.ksscholl.com/jquery/default.html

...a few of which have been used, most haven't yet in a real-world 
application or site. That'll be changing soon! I need to update some of 
them, as I've made further strides in several of the examples. Happy to 
say that management likes the concepts, though.

Kevin

Ⓙⓐⓚⓔ wrote:
 Kevin, that looks great! I bet those dotted numbers could be
 dynamically generated too!
 
 On 10/23/06, Kevin Scholl [EMAIL PROTECTED] wrote:
 Rey,

 I started with Myles's treeView and noticed the same issues that you
 apparently have. What I've done is use Myles's script as a start, and
 then made some pretty significant alterations, including some branching
 for IE that removes the background images (the root of the display issue
 in IE). I also added Expand and Collapse All buttons.

 http://beta.ksscholl.com/jquery/treeview.html

 It's not perfect by any stretch, but may give you a start. You can get
 all of the associated JS and CSS files from the source on that page, but
 I suspect the ones in which you'd be most interested are

 http://beta.ksscholl.com/jquery/js/jqtreeview.js
 http://beta.ksscholl.com/jquery/css/treeview.css
 http://beta.ksscholl.com/jquery/css/ie.css

 (TOC NAVIGATION OVERRIDES section on the last one)

 Hope that helps a bit...

 Kevin

 Rey Bango wrote:
 BTW, try running that treeview in IE and see the results. Its a little
 shaky, at least for me. :o)

 Rey...

 Matt Stith wrote:
 A simple google search could have saved you a bit of time.

 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a

 leads to

 http://interface.eyecon.ro/plugins

 leads to

 http://be.twixt.us/jquery/treeView.php
 http://be.twixt.us/jquery/treeView.php


 BAM! kick it up a notch ;)

 On 10/23/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:

 Hi guys,

 I'm looking for a good Javascript-based tree control that I can use for
 a project. I looked on the plugins page and didn't see any listed.

 If its JQuery-based, that's great but its not a requirement. It can be
 commercial or open source with open source being preferred.

 Rey...

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



 

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


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

 
 


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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Rey Bango
Ⓙⓐⓚⓔ wrote:
 Looks good, but that style is so last millennium!

LOL! Too funny.

 Let's keep looking and see what the  serious JQers say.

Cool. Lets see what the group suggests.

Rey

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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Rey Bango
Very nice Kevin!

Rey

Kevin Scholl wrote:
 Rey,
 
 I started with Myles's treeView and noticed the same issues that you 
 apparently have. What I've done is use Myles's script as a start, and 
 then made some pretty significant alterations, including some branching 
 for IE that removes the background images (the root of the display issue 
 in IE). I also added Expand and Collapse All buttons.
 
 http://beta.ksscholl.com/jquery/treeview.html
 
 It's not perfect by any stretch, but may give you a start. You can get 
 all of the associated JS and CSS files from the source on that page, but 
 I suspect the ones in which you'd be most interested are
 
 http://beta.ksscholl.com/jquery/js/jqtreeview.js
 http://beta.ksscholl.com/jquery/css/treeview.css
 http://beta.ksscholl.com/jquery/css/ie.css
 
 (TOC NAVIGATION OVERRIDES section on the last one)
 
 Hope that helps a bit...
 
 Kevin
 
 Rey Bango wrote:
 
BTW, try running that treeview in IE and see the results. Its a little 
shaky, at least for me. :o)

Rey...

Matt Stith wrote:

A simple google search could have saved you a bit of time.

http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
 
http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a

leads to

http://interface.eyecon.ro/plugins

leads to

http://be.twixt.us/jquery/treeView.php 
http://be.twixt.us/jquery/treeView.php


BAM! kick it up a notch ;)

On 10/23/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

Hi guys,

I'm looking for a good Javascript-based tree control that I can use for
a project. I looked on the plugins page and didn't see any listed.

If its JQuery-based, that's great but its not a requirement. It can be
commercial or open source with open source being preferred.

Rey...

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





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

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

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

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


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Yehuda Katz
That tree control fills a very important niche in the jQuery widget space. It should *definitely* be added to the wiki.-- YehudaOn 10/23/06, Kevin Scholl
 [EMAIL PROTECTED] wrote:
Thanks much, Jake!Yes, the content could very much be dynamic. In fact, this was part of aproof of concept for work, the idea being that the content of the treewould be dynamically generated through Java Server Faces (JSF) written
by one of the developers, while the operation of the tree itself wouldbe driven via the JQuery functionality (provided by yours truly).Feel free to look through any of my experiments there...
http://beta.ksscholl.com/jquery/default.html...a few of which have been used, most haven't yet in a real-worldapplication or site. That'll be changing soon! I need to update some of
them, as I've made further strides in several of the examples. Happy tosay that management likes the concepts, though.KevinⒿⓐⓚⓔ wrote: Kevin, that looks great! I bet those dotted numbers could be
 dynamically generated too! On 10/23/06, Kevin Scholl [EMAIL PROTECTED] wrote: Rey, I started with Myles's treeView and noticed the same issues that you
 apparently have. What I've done is use Myles's script as a start, and then made some pretty significant alterations, including some branching for IE that removes the background images (the root of the display issue
 in IE). I also added Expand and Collapse All buttons. http://beta.ksscholl.com/jquery/treeview.html It's not perfect by any stretch, but may give you a start. You can get
 all of the associated JS and CSS files from the source on that page, but I suspect the ones in which you'd be most interested are 
http://beta.ksscholl.com/jquery/js/jqtreeview.js http://beta.ksscholl.com/jquery/css/treeview.css 
http://beta.ksscholl.com/jquery/css/ie.css (TOC NAVIGATION OVERRIDES section on the last one) Hope that helps a bit... Kevin Rey Bango wrote:
 BTW, try running that treeview in IE and see the results. Its a little shaky, at least for me. :o) Rey... Matt Stith wrote:
 A simple google search could have saved you a bit of time. 
http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a 
http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a leads to 
http://interface.eyecon.ro/plugins leads to 
http://be.twixt.us/jquery/treeView.php http://be.twixt.us/jquery/treeView.php BAM! kick it up a notch ;)
 On 10/23/06, *Rey Bango* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 Hi guys, I'm looking for a good _javascript_-based tree control that I can use for a project. I looked on the plugins page and didn't see any listed.
 If its JQuery-based, that's great but its not a requirement. It can be commercial or open source with open source being preferred.
 Rey... ___ jQuery mailing list 
discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/
  ___ jQuery mailing list
 discuss@jquery.com http://jquery.com/discuss/ ___
 jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] OT: Anyone know of a good tree control

2006-10-23 Thread Kevin Scholl
Yehuda,

I'm not terribly familiar with using the wiki; I'm just an experimenter 
that jumps into these discussions in the rare occasion that I may have 
something useful to offer. If you (or anyone else) would like to grab 
code and add it, that's fine by me.

I might suggest, though, that those of you more seasoned in the use of 
JQuery refine the code before adding it. I'm quite sure that my solution 
is not the most pristine that can be accomplished. The treeview was one 
of my first attempts at using the library, and that wasn't but maybe 
three months ago.

Kevin

Yehuda Katz wrote:
 That tree control fills a very important niche in the jQuery widget 
 space. It should *definitely* be added to the wiki.
 
 -- Yehuda
 
 On 10/23/06, *Kevin Scholl * [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Thanks much, Jake!
 
 Yes, the content could very much be dynamic. In fact, this was part of a
 proof of concept for work, the idea being that the content of the tree
 would be dynamically generated through Java Server Faces (JSF) written
 by one of the developers, while the operation of the tree itself would
 be driven via the JQuery functionality (provided by yours truly).
 
 Feel free to look through any of my experiments there...
 
 http://beta.ksscholl.com/jquery/default.html
 
 ...a few of which have been used, most haven't yet in a real-world
 application or site. That'll be changing soon! I need to update some of
 them, as I've made further strides in several of the examples. Happy to
 say that management likes the concepts, though.
 
 Kevin
 
 Ⓙⓐⓚⓔ wrote:
   Kevin, that looks great! I bet those dotted numbers could be
   dynamically generated too!
  
   On 10/23/06, Kevin Scholl [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
   Rey,
  
   I started with Myles's treeView and noticed the same issues that
 you
   apparently have. What I've done is use Myles's script as a
 start, and
   then made some pretty significant alterations, including some
 branching
   for IE that removes the background images (the root of the
 display issue
   in IE). I also added Expand and Collapse All buttons.
  
   http://beta.ksscholl.com/jquery/treeview.html
  
   It's not perfect by any stretch, but may give you a start. You
 can get
   all of the associated JS and CSS files from the source on that
 page, but
   I suspect the ones in which you'd be most interested are
  
   http://beta.ksscholl.com/jquery/js/jqtreeview.js
   http://beta.ksscholl.com/jquery/css/treeview.css
   http://beta.ksscholl.com/jquery/css/ie.css
  
   (TOC NAVIGATION OVERRIDES section on the last one)
  
   Hope that helps a bit...
  
   Kevin
  
   Rey Bango wrote:
   BTW, try running that treeview in IE and see the results. Its a
 little
   shaky, at least for me. :o)
  
   Rey...
  
   Matt Stith wrote:
   A simple google search could have saved you a bit of time.
  
  
 
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
 
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
   
 
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
 
 http://www.google.com/search?q=jquery+tree+controlie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a
  
   leads to
  
   http://interface.eyecon.ro/plugins
  
   leads to
  
   http://be.twixt.us/jquery/treeView.php
   http://be.twixt.us/jquery/treeView.php
  
  
   BAM! kick it up a notch ;)
  
   On 10/23/06, *Rey Bango* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   wrote:
  
   Hi guys,
  
   I'm looking for a good Javascript-based tree control that
 I can use for
   a project. I looked on the plugins page and didn't see any
 listed.
  
   If its JQuery-based, that's great but its not a
 requirement. It can be
   commercial or open source with open source being preferred.
  
   Rey...
  
   ___
   jQuery mailing list
   discuss@jquery.com mailto:discuss@jquery.com
 mailto:discuss@jquery.com mailto:discuss@jquery.com
   http://jquery.com/discuss/
  
  
  
  
 
  
   ___
   jQuery mailing list
   discuss@jquery.com mailto:discuss@jquery.com
   http://jquery.com/discuss/
   ___
 

[jQuery] Window Dialogues

2006-10-23 Thread Yehuda Katz
Anyone know of any good movable, expandable and minimzable window dialogs (like http://prototype-window.xilinus.com/index.html for Prototype)
-- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Window Dialogues

2006-10-23 Thread Ⓙⓐⓚⓔ
Wow that is pretty! But so big and unpleasantly written! I look
forward to a jq version!

On 10/23/06, Yehuda Katz [EMAIL PROTECTED] wrote:
 Anyone know of any good movable, expandable and minimzable window dialogs
 (like http://prototype-window.xilinus.com/index.html for
 Prototype)

  --
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/





-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Window Dialogues

2006-10-23 Thread gilles
 Anyone know of any good movable, expandable and minimzable window dialogs
 (like http://prototype-window.xilinus.com/index.html for Prototype)

I am allready working on that, it's about 70% ready. All i need is some
extra time to work on it :p

It is allready pretty big in filesize, but i wanted as much flexibility as
possible, meaning you can set: isDraggable, isResizable, hasTitlebar,
hasStatusbar etc.etc.

I think i can have a demo ready tomorrow late in the evening.

-- Gilles


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


Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-23 Thread gilles
 Hello again,

 i'm using the center plugin to center images inside a div. But i have to
 call it with a timeout like this:

 $(document).ready(function(){
setTimeout(doCenter(),1000);
 });

 function doCenter(){
 $(.jqcenter).each(){
$(this).center();
 }
 }


If you DO want to use jQuery, you could use something like this;

$(document).ready(function() {
// Makes sure the image is centered no matter how often you change the
image src.
$(.jqcenter).load( function() { $(this).center();  } );
});

However, i am not sure if the onload tag for images is 100% supported.

-- Gilles


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