[jQuery] New site using jquery ( jcarousel )

2006-09-11 Thread Armand Datema
Well the site is life now ( soft launch )

http://www.politieknieuws.nl/

Still need to add a few more modules and ad some extra serverside code
to make sure the carousel id is only attached if the rows returned are
10 or more

but so far im pretty happ with it and takes a lot fatser to load then
a custom on i did a while back and the YUI one.

Armand

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


Re: [jQuery] Preserving context within closure

2006-09-11 Thread Michael Geary
> From: Jonas Galvez (via Patrick Hall)
> Is there any standardized way to preserve context when setting
> callbacks within an object's method? Here's how I see it is done now:
> 
> function Editor() { // class Editor
>   var self = this;
>   $(document).ready(function() { self.doSomething(); });
> }
> 
> Here's how I think it could be improved:
> 
> function Editor() { // class Editor
>   $(document).ready(function(ctx
> ) { ctx.doSomething(); }, this);
> }

No offense, but that seems more complicated to me. To use it, I have to
remember two rules:

1) The second argument to .ready() is an object.

2) This object is passed into the callback function as the first argument.

That's not too bad, but what about .hover()? It takes two callback
functions. I guess we will have to add that context object as the third
argument. Every jQuery method would have to have this extra argument added,
documented, and tested.

By contrast, for the first example all I have to remember is:

1) Lexical scoping always works, with any nested function, in any JavaScript
code.

And it requires no code in jQuery to implement this.

I think I can understand a possible motivation for the context argument
approach, having been through a similar discussion a few years ago at Adobe.
I was using closures extensively in the Acrobat multimedia JavaScript API
that I was developing. My manager, an outstanding C++ programmer, saw this
code and got a little freaked out - he asked me if I had a bug, because it
didn't possibly look like it could work. I explained about closures, but he
thought JavaScript programmers were unlikely to understand them or be
comfortable with them, so he insisted that we provide context arguments very
much like the one in your example.

In retrospect, I should have stood my ground. Closures may be a bit
discomforting when coming from other languages that do not encourage or
allow them (C++, Java, etc.), but they are so powerful and useful that it
pays to get familiar with them.

If there's another motivation for the context argument I'd be curious to
know what it is - I certainly may have overlooked something.

-Mike


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


[jQuery] Display Data in Chunks

2006-09-11 Thread Rahul Trikha
Hi,I am running a PHP script which processes around 1500 records. Is there a way in jQuery to get partial data back from the server. i.e. get 100 finished records.Regards,Rahul Trikha
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Display Data in Chunks

2006-09-11 Thread Arash Yalpani
Hi Rahul,

>
> I am running a PHP script which processes around 1500 records. Is 
> there a way in jQuery to get partial data back from the server. i.e. 
> get 100 finished records.


no, this is not JQuery's business (and this goes for every other 
Ajax-Framework too). You have to make the *server* return only 100 records.

So you could call your server like this:

$('div').load('http://myserver.com/script.php?page=1&pageSize=100');
$('div').load('http://myserver.com/script.php?page=2&pageSize=100');
$('div').load('http://myserver.com/script.php?page=3&pageSize=100');
...

And of course you have to adjust your script to process page/pageSize.
Cheers, Arash

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


Re: [jQuery] New site using jquery ( jcarousel )

2006-09-11 Thread Curdin Krummenacher
Hey buddy,just had a look at your site and have noticed that your carousel flickers every second or two. (Using Firefox 1.5.0.2 on Mac OSX 10.4.7). Not entirely sure whythought I'd let you know
CurdinOn 9/11/06, Armand Datema <[EMAIL PROTECTED]> wrote:
Well the site is life now ( soft launch )http://www.politieknieuws.nl/Still need to add a few more modules and ad some extra serverside codeto make sure the carousel id is only attached if the rows returned are
10 or morebut so far im pretty happ with it and takes a lot fatser to load thena custom on i did a while back and the YUI one.Armand___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Can XPath support multi-attributes selector?

2006-09-11 Thread limodou
I tried this:

$("thead//[EMAIL PROTECTED]'selectall',@type='checkbox']")

but it failed:

m has no properties

I want to know if the xpath in jQuery support multi attributes
selector, or I got the wrong syntax?

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


Re: [jQuery] Preserving context within closure

2006-09-11 Thread Patrick Hall
// start forward

Michael Geary wrote:
> That's not too bad, but what about .hover()? It takes two
> callback functions. I guess we will have to add that context
> object as the third argument. Every jQuery method would have to
> have this extra argument added, documented, and tested.
> [...]
> I explained about closures, but he thought JavaScript programmers
> were unlikely to understand them or be comfortable with them, so
> he insisted that we provide context arguments very much like the
> one in your example.

Well, my first language was ActionScript (Macromedia's Flash
JavaScript) and also remember having participated of several
discussions on the same topic. Scope chaining is very simple yet many
people seem to completely misunderstand it.

Let me make clear that I've got no problems with it. My only problem
is having to declare an extra variable. You may say, "you don't need
an extra variable", since outer contexts will be readily available due
to the lexicon scoping. But in this case, understand, they will not.
I'm creating a class, here's an example:

function MyClass() {
   $(document).ready(function() {
   alert(this.foo); // doesn't work
   });
}
MyClass.prototype.setFooAndDoSomething = function() {
   this.foo = 1;
}

app = new MyClass();

You see what I mean now? I need a way to preserve the current scope
("this") within an object, so I can use jQuery in a Composition-like
set-up like that... As it stands the solution is having a "var self =  this"
variable declared in the same function context as the event callback
closure is defined... but am I the only one who sees it as a bit way
too messy?

I guess only a few people use class-based approaches like I do, that
might a possible explanation why no one has complained about it before
:]

Perhaps jQuery just isn't meant to be used this way, but I hope that
is not the cause, since it's a really great tool set!

--Jonas Galvez

// end forward
-- 
ᗷɭoℊẚᗰսɳᑯѲ⁈⁈⁈
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Preserving context within closure

2006-09-11 Thread Christof Donat
Hi,

> My manager, an outstanding C++
> programmer, saw this code and got a little freaked out - he asked me if I
> had a bug, because it didn't possibly look like it could work.

Next time you meet an "outstanding C++ programmer" who doesn't understand 
functional programming point him to the boost libraries (www.boost.org). When 
I first discovered them I got freaked out:

for_each(a.begin(), a.end(), std::cout << _1 << ' ');

Spot the Lambda.

C++ really is a powerfull language and I guess that there is noone on earth 
who really is able to know everything about its possibilities - not even 
Bjarne Stroustrup.

Christof

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


Re: [jQuery] Can XPath support multi-attributes selector?

2006-09-11 Thread Blair McKenzie
The selector docs are missing at the moment, so I'll just take a stab at two possible causes:1) I can't remember if 'thead//input' is the child or descendant selector, but 'thead
 input' is definitely descendant.2) It's possible multiple attribute selectors aren't supported. Try 'thead input[...], thead input[...]' instead.Blair
On 9/11/06, limodou <[EMAIL PROTECTED]> wrote:
I tried this:$("thead//[EMAIL PROTECTED]'selectall',@type='checkbox']")but it failed:m has no propertiesI want to know if the xpath in jQuery support multi attributesselector, or I got the wrong syntax?
--I like python!My Blog: http://www.donews.net/limodouUliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Preserving context within closure

2006-09-11 Thread Christof Donat
Hi,

> As it stands the solution is having a "var self = 
> this" variable declared in the same function context as the event callback
> closure is defined... but am I the only one who sees it as a bit way too
> messy?

I guess so ;-) I don't think it is messy, actually it is very clear what 
happens and why it should be that way. I think your additional parameter is a 
lot more messy.

Actually I don't see any problem with "var selft=this".

> I guess only a few people use class-based approaches like I do, that
> might a possible explanation why no one has complained about it before

The "var selft=this"-construct has no problems with your class-based approach. 
Maybe it is not comfortable for you, but JavaScript is not a class-based 
language and jQuery is not a class-based library.

Christof

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


Re: [jQuery] Can XPath support multi-attributes selector?

2006-09-11 Thread limodou
On 9/11/06, Blair McKenzie <[EMAIL PROTECTED]> wrote:
> The selector docs are missing at the moment, so I'll just take a stab at two
> possible causes:
> 1) I can't remember if 'thead//input' is the child or descendant selector,
> but 'thead input' is definitely descendant.

'thead//input' is means the input could be the directly child or
descendant child of the thead.

> 2) It's possible multiple attribute selectors aren't supported. Try 'thead
> input[...], thead input[...]' instead.
>
> Blair

Using two selector, does this mean the relationship is *or*? I want is
*and*. But don't worry, the [EMAIL PROTECTED]'checkbox'] is eough for me now.

Thanks.

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


Re: [jQuery] Can XPath support multi-attributes selector?

2006-09-11 Thread Klaus Hartl


limodou schrieb:
> On 9/11/06, Blair McKenzie <[EMAIL PROTECTED]> wrote:
>> The selector docs are missing at the moment, so I'll just take a stab at two
>> possible causes:
>> 1) I can't remember if 'thead//input' is the child or descendant selector,
>> but 'thead input' is definitely descendant.
> 
> 'thead//input' is means the input could be the directly child or
> descendant child of the thead.
> 
>> 2) It's possible multiple attribute selectors aren't supported. Try 'thead
>> input[...], thead input[...]' instead.
>>
>> Blair
> 
> Using two selector, does this mean the relationship is *or*? I want is
> *and*. But don't worry, the [EMAIL PROTECTED]'checkbox'] is eough for me now.
> 
> Thanks.
> 

You may try this:

[EMAIL PROTECTED]@...]


-- Klaus

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


Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-11 Thread Mark Gibson
John Resig wrote:
>> Just a hunch, but IE's DOM support isn't native Javascript. If they got
>> their typelib wrong it may be trying to call getAttribute rather than check
>> elem for a getAttribute property. Can you replace that last line with this
>> and see if it works?
>>
>> } else if ( typeof(elem.getAttribute) != "undefined" ) {

Ok, this fixes one problem, but a further error occurs on line 641:

return elem.getAttribute( name, 2 );

It appears that the getAttribute method on XML elements only accepts
a single argument:

return elem.getAttribute( name );

 From the MS docs the second argument of 2 forces the method to be
case-sensitive, which if I'm correct, isn't required by any browser
other than IE. So is it possible to detect whether the browser is IE
and the document is an HTML doc - in which case use the two args method,
otherwise call with just one arg.

Cheers
- Mark

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


Re: [jQuery] jCarousel

2006-09-11 Thread Armand Datema
thanks that did it

http://www.politieknieuws.nl/

for now i just use some .net code to check the nr of rows returned in
order for the list to be wrapped in a caraousel container or not

Armand

On 9/8/06, Jan Sorgalla <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> first... i unfortunately messed up things with safari in the current
> version. I've just uploaded a fixed version, so, download jcarousel.js
> again.
>
> Armand Datema wrote:
> >
> > After trying it out some more I have a few feature suggestions , check
> > out the following
> >
> > http://politiek2.howardshome.com/Partijen/tabid/53/hmod/menu/default.aspx?pr=508523
> >
> > I have the following setting
> >
> > // Ride the carousel...
> > jQuery(document).ready(function() {
> > jQuery("#mycarousel").jcarousel({
> > orientation: "vertical",
> > itemWidth : 600,
> > itemHeight : 20,
> > itemVisible: 10,
> > itemScroll: 9,
> > scrollAnimation: "slow"
> > });
> > });
> >
> > but this list only has 6 items to start with so there are 2 disabled
> > arrows and auto generated height based on the content
> >
> > Would it be an idea to have it check for the nr of items in the list
> > and if there are less than or equal to the itemvisible settings then
> > both images are set to display:none and the hight is calcaulated byt
> > the real nr of list items times the item height.
> >
> > This would make it better usable in a dynamic environements where you
> > dont always exactly know how much items are returned
> >
>
> I'll keep that in mind for the next version
>
>
> Armand Datema wrote:
> >
> > And if we are on it, is there a feture where we can set a text label
> > that shows which part of the list you are currently viewing
> >
> > so if there are 60 items it should say   showing:20/60
> >
> You can do that right now passing the itemFirstInHandler as option.
> See http://sorgalla.com/projects/jcarousel/example_static_callbacks.html
>
> In your case, the callback should look like:
>
> function itemFirstInHandler(carousel, li) {
>jQuery("#textlabel").html("Showing " +
> jQuery(li).attr("jCarouselItemIdx")+"/60");
> }
>
> Jan
> --
> View this message in context: 
> http://www.nabble.com/jCarousel-tf2205628.html#a6206513
> Sent from the JQuery forum at Nabble.com.
>
>
> ___
> 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] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-11 Thread Mark Gibson
Mark Gibson wrote:
> John Resig wrote:
>>> Just a hunch, but IE's DOM support isn't native Javascript. If they got
>>> their typelib wrong it may be trying to call getAttribute rather than check
>>> elem for a getAttribute property. Can you replace that last line with this
>>> and see if it works?
>>>
>>> } else if ( typeof(elem.getAttribute) != "undefined" ) {
> 
> Ok, this fixes one problem, but a further error occurs on line 641:
> 
>   return elem.getAttribute( name, 2 );
> 
> It appears that the getAttribute method on XML elements only accepts
> a single argument:
> 
>   return elem.getAttribute( name );
> 
>  From the MS docs the second argument of 2 forces the method to be
> case-sensitive, which if I'm correct, isn't required by any browser
> other than IE. So is it possible to detect whether the browser is IE
> and the document is an HTML doc - in which case use the two args method,
> otherwise call with just one arg.

Sorry, I got this wrong - it doesn't force case sensitive.

According to the docs:
2 - Returns the value exactly as it was set in script or in the source 
document.

Now I'm even more confused, what else would it return?

- Mark.

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


Re: [jQuery] Fwd: Tabs plugin feature request

2006-09-11 Thread Klaus Hartl
I've updated the plugin and the demo:

http://stilbuero.de/jquery/tabs/ (see last example)

Thank you, Ashutosh for the help.

If you use effects to switch the tabs the callback is fired after the 
animation is completed.

I also added a convenient function to switch a tab from "outside":

$(...).triggerTab(3);


-- Klaus


ashutosh bijoor schrieb:
> Oops attachment not accepted... pls find code below
> 
> -- Forwarded message --
> From: *ashutosh bijoor* <[EMAIL PROTECTED] >
> Date: Aug 18, 2006 7:30 AM
> Subject: Re: [jQuery] Tabs plugin feature request
> To: "jQuery Discussion." mailto:discuss@jquery.com>>
> 
> Hi
> Pls find attached, jtabs.js with the callback modification. Basically 
> added the following lines at line number 72:
> // apply callback function if defined
> if (typeof options.callback != 'undefined' && 
> options.callback.constructor==Function) {
> 
> options.callback.apply(target,[target.attr('id'),visible.attr('id')]);
> }
> 
> Here, I'm passing two parameters to the callback:
> - the id of the new tab's container and
> - the id of the new tab's container
> Also, this  will point to the current tab
> 
> Regards
> Ashutosh
> 
> 
> 
> On 8/18/06, *Klaus Hartl* <[EMAIL PROTECTED] 
> > wrote:
> 
> 
> 
> ashutosh bijoor schrieb:
> >  Hi Klaus
> >  I've been playing around with your tabs plugin, and would very
> much like
> >  it if you could add a callback facility. ie, when the tab is changed,
> >  i'd like a function to be called in the scope of the active tab.
> >  I can make this change myself, but dont know whether i have the latest
> >  version. does the URL quoted below contain the latest version?
> >  Regards
> >  Ashutosh
> 
> I assume you would like to have the possibility to have different
> callbacks for each tab or alternatively one function for all or even
> both together?
> 
> 
> -- Klaus
> 
> ___
> jQuery mailing list
> discuss@jquery.com 
> http://jquery.com/discuss/
> 
> 
> 
> 
> -- 
> Reach1to1 Communications
> http://www.reach1to1.com 
> [EMAIL PROTECTED] 
> 98201-94408
> 
> 
> 
> -- 
> Reach1to1 Communications
> http://www.reach1to1.com
> [EMAIL PROTECTED] 
> 98201-94408
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

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


Re: [jQuery] Fwd: Tabs plugin feature request

2006-09-11 Thread ashutosh bijoor
Thanks Klaus, for accepting the suggestion.RegardsAshutoshOn 9/11/06, Klaus Hartl <[EMAIL PROTECTED]
> wrote:I've updated the plugin and the demo:
http://stilbuero.de/jquery/tabs/ (see last example)Thank you, Ashutosh for the help.If you use effects to switch the tabs the callback is fired after theanimation is completed.I also added a convenient function to switch a tab from "outside":
$(...).triggerTab(3);-- Klausashutosh bijoor schrieb:> Oops attachment not accepted... pls find code below>> -- Forwarded message --> From: *ashutosh bijoor* <
[EMAIL PROTECTED] [EMAIL PROTECTED]>>> Date: Aug 18, 2006 7:30 AM> Subject: Re: [jQuery] Tabs plugin feature request
> To: "jQuery Discussion."  Pls find attached, 
jtabs.js with the callback modification. Basically> added the following lines at line number 72:> // apply callback function if defined> if (typeof options.callback
 != 'undefined' &&> options.callback.constructor==Function) {>> options.callback.apply(target,[target.attr('id'),visible.attr('id')]);> }>> Here, I'm passing two parameters to the callback:
> - the id of the new tab's container and> - the id of the new tab's container> Also, this  will point to the current tab>> Regards> Ashutosh On 8/18/06, *Klaus Hartl* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote: ashutosh bijoor schrieb:
> >  Hi Klaus> >  I've been playing around with your tabs plugin, and would very> much like> >  it if you could add a callback facility. ie, when the tab is changed,
> >  i'd like a function to be called in the scope of the active tab.> >  I can make this change myself, but dont know whether i have the latest> >  version. does the URL quoted below contain the latest version?
> >  Regards> >  Ashutosh>> I assume you would like to have the possibility to have different> callbacks for each tab or alternatively one function for all or even
> both together?>>> -- Klaus>> ___> jQuery mailing list> discuss@jquery.com
 discuss@jquery.com>> http://jquery.com/discuss/> --> Reach1to1 Communications
> http://www.reach1to1.com > [EMAIL PROTECTED] [EMAIL PROTECTED]>> 98201-94408 --> Reach1to1 Communications> http://www.reach1to1.com
> [EMAIL PROTECTED] [EMAIL PROTECTED]>> 98201-94408>>> 
>> ___> jQuery mailing list> discuss@jquery.com> http://jquery.com/discuss/
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Stefan Petre




Hi,

I already started to implement this feature. For now the dragged
element is copied to a helper and only the helper is moved. The
draggable will have a new option to append this helper to the parent
element.

Paul Bakaus wrote:
Hi there,
  
this is because of Interface appending the draggable element to the
body, rather then to its parent. For example, scriptaculous appends the
draggable to it's parent, so it will stay in context.
I had the problem the other way around: When using scriptaculous, I had
to modify scriptaculous to append to body, because of this: My
draggable was in a overflow: auto container and I wanted to move it
out. However, trying to move a overflow: auto's child will give you
only scrollbars.
  
  
Perhaps we should implement a option to toggle between appending to
body/parent, like appendTo: 'body'
  
  2006/9/10, Yehuda Katz <[EMAIL PROTECTED]
  >:
  
Anyone have any idea about this. Resolving this issue is
honestly the difference between using Prototype and jQuery for a
particular project.



On 9/8/06, Yehuda Katz
 <[EMAIL PROTECTED]>
wrote:

  Stefan or anyone who can answer this,
  
  
I'd like to use a sortable inside a container a la Google Maps.
Unfortunately, the current sortable code "lifts" items wrapper inside a
container out of the container (regardless of zIndex) so you can see
the entire item being dragged. Is there a way to have a draggable item
inside a container that stays inside the container when being dragged?
  
  
  
-- 
Yehuda Katz
Web Developer
(ph)  718.877.1325
  





-- 
Yehuda Katz
Web Developer
(ph)  718.877.1325


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


  
  
  
  
  
-- 
Paul Bakaus
Web Developer

Hildastr. 35
79102 Freiburg
  

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





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


Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Stefan Petre
If you want to keep the draggable inside its parent you can use 
containment 'parent'. This way the dragged element will never leave its 
parent.

Paul Bakaus wrote:
> Hi there,
>
> this is because of Interface appending the draggable element to the 
> body, rather then to its parent. For example, scriptaculous appends 
> the draggable to it's parent, so it will stay in context.
> I had the problem the other way around: When using scriptaculous, I 
> had to modify scriptaculous to append to body, because of this: My 
> draggable was in a overflow: auto container and I wanted to move it 
> out. However, trying to move a overflow: auto's child will give you 
> only scrollbars.
>
> Perhaps we should implement a option to toggle between appending to 
> body/parent, like appendTo: 'body'
>
> 2006/9/10, Yehuda Katz <[EMAIL PROTECTED] >:
>
> Anyone have any idea about this. Resolving this issue is honestly
> the difference between using Prototype and jQuery for a particular
> project.
>
>
> On 9/8/06, *Yehuda Katz * <[EMAIL PROTECTED]
> > wrote:
>
> Stefan or anyone who can answer this,
>
> I'd like to use a sortable inside a container a la Google
> Maps. Unfortunately, the current sortable code "lifts" items
> wrapper inside a container out of the container (regardless of
> zIndex) so you can see the entire item being dragged. Is there
> a way to have a draggable item inside a container that stays
> inside the container when being dragged?
>
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
>
>
>
>
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
>
> ___
> jQuery mailing list
> discuss@jquery.com 
> http://jquery.com/discuss/
>
>
>
>
>
> -- 
> Paul Bakaus
> Web Developer
> 
> Hildastr. 35
> 79102 Freiburg
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   


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


Re: [jQuery] Ajax Throbber How-to?

2006-09-11 Thread Andy Matthews



Rey...
 
Do you 
have an example?
 
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Rey 
  BangoSent: Saturday, September 09, 2006 11:07 PMTo: 
  jQuery Discussion.Subject: Re: [jQuery] Ajax Throbber 
  How-to?Man, that is REALLY powerful John. I added a 
  .hide() method like this:$("#throbber").hide()    
      .ajaxStart(function(){    
      
  $(this).show();        
  })        
  .ajaxStop(function(){    
      
  $(this).hide();     });and 
  then added my div like this:and it worked like a charm!Thanks for your 
  help and patience John.Rey...John Resig wrote: 
  $("#throbber")
.ajaxStart(function(){
$(this).show();
})
.ajaxStop(function(){
$(this).hide();
 });

jQuery's system is more dynamic than just hiding/showing a single
element, as you can see. Let me know if this helps you at all.

--John

  
I've seen some Ajax libraries that have an Ajax throbber/indicator
function built in which allows you to specify an indicator during the
Ajax call.

Does JQuery have something like this? If not, whats everyone doing to
display one? Any plugins for this?

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

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


Re: [jQuery] Ajax Throbber How-to?

2006-09-11 Thread Andy Matthews



Felix...
 
When 
was the last time you disabled _javascript_?
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Felix 
  GeisendörferSent: Sunday, September 10, 2006 5:17 AMTo: 
  jQuery Discussion.Subject: Re: [jQuery] Ajax Throbber 
  How-to?One thing I really hate about AJAX, is that 
  everybody put's those semantically meaningless activity indicators in their 
  html layout. When you disable css you end up with a mess of animated gif's 
  which is really annoying. I don't blame you, but it's a very nice move towards 
  accessibility and usability to add those div's/images/etc. with _javascript_ to 
  your DOM instead of having them there already and just hiding them with 
  CSS.Best Regards,Felix Geisendörfer
  --http://www.thinkingphp.orghttp://www.fg-webdesign.de 
  Rey Bango schrieb: 
  Man, that is 
REALLY powerful John. I added a .hide() method like 
this:$("#throbber").hide()        
.ajaxStart(function(){    
    
$(this).show();        
})        
.ajaxStop(function(){    
    
$(this).hide();     
});and then added my div like this:and it worked like a 
charm!Thanks for your help and patience 
John.Rey...John Resig wrote: 
$("#throbber")
.ajaxStart(function(){
$(this).show();
})
.ajaxStop(function(){
$(this).hide();
 });

jQuery's system is more dynamic than just hiding/showing a single
element, as you can see. Let me know if this helps you at all.

--John

  
  I've seen some Ajax libraries that have an Ajax throbber/indicator
function built in which allows you to specify an indicator during the
Ajax call.

Does JQuery have something like this? If not, whats everyone doing to
display one? Any plugins for this?

___
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] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Andy Matthews
I completely and totally disagree with the court in this case. At what point
does it stop? Does my personal blog need to be accessible to the blind? What
if I don't care about them? Why should the courts get involved in this
matter?

I just think that we're taking things like this a little too far, IMO.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Rey Bango
Sent: Sunday, September 10, 2006 8:48 PM
To: jQuery Discussion.
Subject: [jQuery] Accessibility. Take it Seriously in Your Web Apps.


Guys,

If you haven't taken accessibility seriously, then you need to read this:

http://dailycal.org/sharticle.php?id=21297

Rey...

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


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


Re: [jQuery] New site using jquery ( jcarousel )

2006-09-11 Thread Andy Matthews
Well done!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Armand Datema
Sent: Monday, September 11, 2006 2:16 AM
To: jQuery Discussion.
Subject: [jQuery] New site using jquery ( jcarousel )


Well the site is life now ( soft launch )

http://www.politieknieuws.nl/

Still need to add a few more modules and ad some extra serverside code
to make sure the carousel id is only attached if the rows returned are
10 or more

but so far im pretty happ with it and takes a lot fatser to load then
a custom on i did a while back and the YUI one.

Armand

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


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


Re: [jQuery] Ajax Throbber How-to?

2006-09-11 Thread Rey Bango
Hey Andy,

Here ya go. Its basically the same thing that John sent me:


$(document).ready(function() {

$('
') .hide() .ajaxStart(function(){ $(this).show(); }) .ajaxStop(function(){ $(this).hide(); }) .appendTo("#rating"); var container = $("#rating"); container.find("a").click( function(e) { e.preventDefault(); $.ajax({ type: "GET", url: "test.cfm", dataType: "xml", success: function(msg){ alert( $( "MyText", msg ).text() ); } }); } ); }); Rey... Andy Matthews wrote: > Rey... > > Do you have an example? > > > andy matthews > web developer > certified advanced coldfusion programmer > ICGLink, Inc. > [EMAIL PROTECTED] > 615.370.1530 x737 > --//-> > > -Original Message- > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of *Rey Bango > *Sent:* Saturday, September 09, 2006 11:07 PM > *To:* jQuery Discussion. > *Subject:* Re: [jQuery] Ajax Throbber How-to? > > Man, that is REALLY powerful John. I added a .hide() method like this: > > $("#throbber").hide() > .ajaxStart(function(){ > $(this).show(); > }) > .ajaxStop(function(){ > $(this).hide(); > }); > > and then added my div like this: > > alt="" border="0" /> > > and it worked like a charm! > > Thanks for your help and patience John. > > Rey... > > John Resig wrote: > >>$("#throbber") >>.ajaxStart(function(){ >>$(this).show(); >>}) >>.ajaxStop(function(){ >>$(this).hide(); >> }); >> >>jQuery's system is more dynamic than just hiding/showing a single >>element, as you can see. Let me know if this helps you at all. >> >>--John >> >> >> >>>I've seen some Ajax libraries that have an Ajax throbber/indicator >>>function built in which allows you to specify an indicator during the >>>Ajax call. >>> >>>Does JQuery have something like this? If not, whats everyone doing to >>>display one? Any plugins for this? >>> >> >> >>___ >>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] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Andy Matthews
I can understand laws on physical access. My uncle is a parapalegic, and had
to fight to gain access to public buildings in Jacksonville, Flordai (where
he lives). But to carry the law over to the website is just pushing it. It's
"less expensive" than building ramps to all of your stores, but why?!? At
what point do we stop bowing to political correctness and start telling
people "you're BLIND...get a friend to help you with the website."



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Morbus Iff
Sent: Monday, September 11, 2006 8:28 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.


> I completely and totally disagree with the court in this case. At what
point
> does it stop? Does my personal blog need to be accessible to the blind?
What
> if I don't care about them? Why should the courts get involved in this

No, your personal blog doesn't need to be accessible because it does not
have a commercial brick and mortar store. Much like government agencies
have to follow accessibility in the real world (and are /required/ to do
the same on the Web with US 508), commercial entities have the same
basic requirements (wheelchair ramp). These laws extending to their
commercial entities on the web is not a huge leap to make.

> I just think that we're taking things like this a little too far, IMO.
>
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->

It's "

Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Morbus Iff
> I completely and totally disagree with the court in this case. At what point
> does it stop? Does my personal blog need to be accessible to the blind? What
> if I don't care about them? Why should the courts get involved in this

No, your personal blog doesn't need to be accessible because it does not 
have a commercial brick and mortar store. Much like government agencies 
have to follow accessibility in the real world (and are /required/ to do 
the same on the Web with US 508), commercial entities have the same 
basic requirements (wheelchair ramp). These laws extending to their 
commercial entities on the web is not a huge leap to make.

> I just think that we're taking things like this a little too far, IMO.
> 
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->

It's "

Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Yehuda Katz
I was under the impression that contaiment kept the element constrained inside the parent element, so its X and Y coordinates could not be smaller than the X and Y coordinates of the parent.That's not what I need. I need something like Google Maps, where the element can be "outside" the parent box, but will still be wrapped inside it.
-- YehudaOn 9/11/06, Stefan Petre <[EMAIL PROTECTED]> wrote:
If you want to keep the draggable inside its parent you can usecontainment 'parent'. This way the dragged element will never leave itsparent.Paul Bakaus wrote:> Hi there,>> this is because of Interface appending the draggable element to the
> body, rather then to its parent. For example, scriptaculous appends> the draggable to it's parent, so it will stay in context.> I had the problem the other way around: When using scriptaculous, I
> had to modify scriptaculous to append to body, because of this: My> draggable was in a overflow: auto container and I wanted to move it> out. However, trying to move a overflow: auto's child will give you
> only scrollbars.>> Perhaps we should implement a option to toggle between appending to> body/parent, like appendTo: 'body'>> 2006/9/10, Yehuda Katz <
[EMAIL PROTECTED] [EMAIL PROTECTED]>>:>> Anyone have any idea about this. Resolving this issue is honestly> the difference between using Prototype and jQuery for a particular
> project.>>> On 9/8/06, *Yehuda Katz * <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:
>> Stefan or anyone who can answer this,>> I'd like to use a sortable inside a container a la Google> Maps. Unfortunately, the current sortable code "lifts" items
> wrapper inside a container out of the container (regardless of> zIndex) so you can see the entire item being dragged. Is there> a way to have a draggable item inside a container that stays
> inside the container when being dragged?>> --> Yehuda Katz> Web Developer> (ph)  718.877.1325> --
> Yehuda Katz> Web Developer> (ph)  718.877.1325>> ___> jQuery mailing list> 
discuss@jquery.com discuss@jquery.com>> http://jquery.com/discuss/>> --
> Paul Bakaus> Web Developer> > Hildastr. 35> 79102 Freiburg> >> ___
> jQuery mailing list> discuss@jquery.com> http://jquery.com/discuss/>___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz
Web Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mootools

2006-09-11 Thread Meece, Clifford T
I'm using the interface library effects, so it could be those, or CSS as
you mentioned.  The sample page is:

http://langdata.potowski.org/Tests/InterfaceTest.php# 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Resig
Sent: Friday, September 08, 2006 6:48 PM
To: jQuery Discussion.
Subject: Re: [jQuery] mootools

> If that makes any sense.  It seems like the float attribute is being 
> turned off during the animation.  Or something.

Must be a CSS issue, seems to work fine for me:
http://john.jquery.com/jquery/test/float.html

Make sure that all the floated elements have a display of block, that
might help.

--John

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

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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Stephen Howard
Consider your own independence.  Now consider needing to rely on others 
for many tasks in your life.  Why would someone with disabilities be any 
less desirous of independence than yourself?  Sure, it's a bit of a 
hassle from a developer's point of view when you have so much else 
already stacked on your plate.  Maybe screen reader companies who want 
an edge on the market should work harder at working with the mess of a 
web that is already out there.  And maybe we can all chip in a bit to 
make the web a more useful place for everyone.  Frankly, solid semantic 
web design is a goal for me regardless of the accessibility issue.  
Where it gets tricky of course is graceful degredation of all the 
javascript work we're so fond of on this list.  But I've heard enough 
other people also express that as a goal that I would expect we'd be 
batting pretty well there too.

-Stephen

Andy Matthews wrote:
> I can understand laws on physical access. My uncle is a parapalegic, and had
> to fight to gain access to public buildings in Jacksonville, Flordai (where
> he lives). But to carry the law over to the website is just pushing it. It's
> "less expensive" than building ramps to all of your stores, but why?!? At
> what point do we stop bowing to political correctness and start telling
> people "you're BLIND...get a friend to help you with the website."
>
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Morbus Iff
> Sent: Monday, September 11, 2006 8:28 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.
>
>
>   
>> I completely and totally disagree with the court in this case. At what
>> 
> point
>   
>> does it stop? Does my personal blog need to be accessible to the blind?
>> 
> What
>   
>> if I don't care about them? Why should the courts get involved in this
>> 
>
> No, your personal blog doesn't need to be accessible because it does not
> have a commercial brick and mortar store. Much like government agencies
> have to follow accessibility in the real world (and are /required/ to do
> the same on the Web with US 508), commercial entities have the same
> basic requirements (wheelchair ramp). These laws extending to their
> commercial entities on the web is not a huge leap to make.
>
>   
>> I just think that we're taking things like this a little too far, IMO.
>>
>> > andy matthews
>> web developer
>> certified advanced coldfusion programmer
>> ICGLink, Inc.
>> [EMAIL PROTECTED]
>> 615.370.1530 x737
>> --//->
>> 
>
> It's " Morbus Iff ( take your rosaries off my ovaries )
> Technical: http://www.oreillynet.com/pub/au/779
> Culture: http://www.disobey.com/ and http://www.gamegrene.com/
> icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
>
> ___
> 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] mootools

2006-09-11 Thread Stefan Petre




Hi,

yes, there is a bug in fx part. I fixed it already and will be on-line
today. I also submitted a bug regarding float on IE with the solution.
I hope someone can take some time to fix css('float') in jQuery.

Meece, Clifford T wrote:

  I'm using the interface library effects, so it could be those, or CSS as
you mentioned.  The sample page is:

http://langdata.potowski.org/Tests/InterfaceTest.php# 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of John Resig
Sent: Friday, September 08, 2006 6:48 PM
To: jQuery Discussion.
Subject: Re: [jQuery] mootools

  
  
If that makes any sense.  It seems like the float attribute is being 
turned off during the animation.  Or something.

  
  
Must be a CSS issue, seems to work fine for me:
http://john.jquery.com/jquery/test/float.html

Make sure that all the floated elements have a display of block, that
might help.

--John

___
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] Interface Draggable in a container

2006-09-11 Thread Stefan Petre
True, that's the behavior. I will let you know when the new feature (to 
drag en element inside it's parent) is available for download.

Yehuda Katz wrote:
> I was under the impression that contaiment kept the element 
> constrained inside the parent element, so its X and Y coordinates 
> could not be smaller than the X and Y coordinates of the parent.
>
> That's not what I need. I need something like Google Maps, where the 
> element can be "outside" the parent box, but will still be wrapped 
> inside it.
>
> -- Yehuda
>


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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Rey Bango
I think the hardest part for many web developers to grasp, including 
myself, is how web accessibility is handled in web apps. Just hearing 
the term "web accessibility" makes it sound like a massive task when it 
may be as simple as placing text in ALT or TITLE tags. Since I've never 
coded for this personally, I can't say whats involved but I will be 
looking further into this as I'm sure that my clients, one day, will be 
affected by this.

 From an Ajax perspective, though, I'm not sure of what the implications 
are and with the dynamic nature of Ajax-enabled apps, I'm sure that 
there are additional challenges that we'll face.

Rey...

Morbus Iff wrote:
>>I completely and totally disagree with the court in this case. At what point
> 
> No, your personal blog doesn't need to be accessible because it does not 
> have a commercial brick and mortar store. Much like government agencies 
> have to follow accessibility in the real world (and are /required/ to do 
> the same on the Web with US 508), commercial entities have the same 
> basic requirements (wheelchair ramp). These laws extending to their 
> commercial entities on the web is not a huge leap to make.
> 
> 
>>I just think that we're taking things like this a little too far, IMO.
>>
>>>andy matthews
>>web developer
>>certified advanced coldfusion programmer
>>ICGLink, Inc.
>>[EMAIL PROTECTED]
>>615.370.1530 x737
>>--//->
> 
> 
> It's "

Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Yehuda Katz
Thanks a ton Stefan,It really is the difference, in this case, between using Interface and Scriptaculous. I appreciate your hard work (as I've said before, community is a major strength of jQuery over Prototype and you're proving it here). Kudos.
-- YehudaOn 9/11/06, Stefan Petre <[EMAIL PROTECTED]> wrote:
True, that's the behavior. I will let you know when the new feature (todrag en element inside it's parent) is available for download.Yehuda Katz wrote:> I was under the impression that contaiment kept the element
> constrained inside the parent element, so its X and Y coordinates> could not be smaller than the X and Y coordinates of the parent.>> That's not what I need. I need something like Google Maps, where the
> element can be "outside" the parent box, but will still be wrapped> inside it.>> -- Yehuda>___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  
718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Renato Formato
Stefan Petre ha scritto:
> True, that's the behavior. I will let you know when the new feature (to 
> drag en element inside it's parent) is available for download.
> 
Keeping the drag_helper of a draggable within its parent has a very nice 
"side effect" too, it inherits correctly styles from their ancestors.

Renato

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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Yehuda Katz
Or we could say, "As a society, we will insist that people who are physically disabled be afforded a minimal level of access to large, commercial or public areas." Disabled people are human beings too, and if we can do something to ensure that those who cannot do the things we take for granted can do them too, we'll be better off in the long run.
Some of our greatest geniuses have been disabled, and we should not risk losing another genius because they cannot operate at a minimal level in the new information age.-- Yehuda
On 9/11/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
I can understand laws on physical access. My uncle is a parapalegic, and hadto fight to gain access to public buildings in Jacksonville, Flordai (wherehe lives). But to carry the law over to the website is just pushing it. It's
"less expensive" than building ramps to all of your stores, but why?!? Atwhat point do we stop bowing to political correctness and start tellingpeople "you're BLIND...get a friend to help you with the website."

-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]OnBehalf Of Morbus Iff
Sent: Monday, September 11, 2006 8:28 AMTo: jQuery Discussion.Subject: Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.> I completely and totally disagree with the court in this case. At what
point> does it stop? Does my personal blog need to be accessible to the blind?What> if I don't care about them? Why should the courts get involved in thisNo, your personal blog doesn't need to be accessible because it does not
have a commercial brick and mortar store. Much like government agencieshave to follow accessibility in the real world (and are /required/ to dothe same on the Web with US 508), commercial entities have the same
basic requirements (wheelchair ramp). These laws extending to theircommercial entities on the web is not a huge leap to make.> I just think that we're taking things like this a little too far, IMO.>
> It's "

Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Morbus Iff
> I think the hardest part for many web developers to grasp, including 
> myself, is how web accessibility is handled in web apps. Just hearing 
> the term "web accessibility" makes it sound like a massive task when it 
> may be as simple as placing text in ALT or TITLE tags. Since I've never 
> coded for this personally, I can't say whats involved but I will be 
> looking further into this as I'm sure that my clients, one day, will be 

At my old job, we did a large number of government websites, which had 
to meet up with 508. In 90% of the cases, you were fine if:

  * you wrote the HTML/CSS yourself - no WYSIWIGs.

  * you didn't use tables for presentation purposes.

  * you didn't use Javascript for necessary features (this wasn't
that bad for me anyways, cos I was never much a fan of JS for
features, and our clients didn't really want them anyways).

  * every image that was a link had a text equivalent somewhere.
and yes, title and alt attributes [1] not just on images, but also
on /every/  element. And writing strong alt/title is the key too
- saying "Click here to visit the Features page" is NOT what
you're looking for.

  * you validated your HTML and your CSS at validator.w3.org,
and validated every page against Bobby.

Honestly, if you start with a strong and semantic and validated X?HTML 
design, adding the accessibility to just that HTML is easy as pie. 
Adding accessibility to jQuery would be a whole 'nother issue.

> From an Ajax perspective, though, I'm not sure of what the implications 
> are and with the dynamic nature of Ajax-enabled apps, I'm sure that 
> there are additional challenges that we'll face.

For my needs, if you can't bookmark the results of an
AJAX application, it's not ready for prime time. Note that
this is the /exact/ metric I applied to "good" Flash apps.

[1] There is no such thing as an "ALT or TITLE tag" - they are
 attributes. Please start referring to them as such.

-- 
Morbus Iff ( omnia mutantur, nihil interit )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Rey Bango
> Honestly, if you start with a strong and semantic and validated X?HTML 
> design, adding the accessibility to just that HTML is easy as pie. 
> Adding accessibility to jQuery would be a whole 'nother issue.

Thanks for the feedback.

  > For my needs, if you can't bookmark the results of an
> AJAX application, it's not ready for prime time. Note that
> this is the /exact/ metric I applied to "good" Flash apps.

I'd be interested in hearing John's perspective on this.

> [1] There is no such thing as an "ALT or TITLE tag" - they are
>  attributes. Please start referring to them as such.

Yes I know. I was typing quickly and had the img and anchor tags on my 
mind when I wrote that. A little bossy today aren't we? ;o)

Rey...

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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Mike Alsup
> Why should the courts get involved in this matter?

Because few would make the effort otherwise.  Sad but true.  Section
508 was written to call out the fact that software companies CAN NOT
ignore our disabled citizens.  Even so, most do anyway.  Believe me,
it's MUCH easier going into a project thinking about A11y than trying
to tack it on later.  And if you do any work for the government or for
IBM then this is moot point anyway; they won't even consider a product
w/o a VPAT.

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


[jQuery] Help with loading a Google Map

2006-09-11 Thread Jim Davis
I am trying to load this map page:

http://www.4realty.info/newAugust06/maps/map_test.html

into this test page:

http://www.4realty.info/newAugust06/map_example.html

The map_test.html file is the "standard" Google maps API script with
fixed coordinates.

The map_example.html file uses jquery to load map_test into a div using


  $(document).ready(function(){
  $("a.snoco").click(function(){
$("div#mapContainer").load("maps/map_test.html");
});
  });


As you can see by viewing the example, the file is loading into the
div, but the map is not being displayed.

I was unsuccessful in trying to use pieces of the Google Map plugin found here:
http://olbertz.de/jquery/googlemap.html

My goal is to have a list of cities that when clicked will load the
corresponding map into the div on the page (Ajax style).

Thanks for any help.

Jim

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


[jQuery] Multiple IE+Opera problems

2006-09-11 Thread Michael Weibel
Hi all,

I've got a problem, probably found a bug in jQuery.
The $.load function doesn't refresh the DOM in select-fields when
using IE6 (7 not tested) or Opera(8.5 and 9beta) but in FF it works.
I've got the following source (unimportant things are hided):

in Head:
  
  
$(document).ready(function() {
  $("#KLS").bind("change", function() {
$("#STW").load("./ajax.html");
  })
});
  

in Body:

  
Klasse
Stichwort
  
  

  

Adressgruppe
verantwortliche 
Person
  


  
  

  


an Alert instead of the load function works.

Another Problem is to display a ToolTip (or any other hover-Thing) when 
hovering an option within a select-list like this:

   
 foo
   


Without optgroup it doesn't work, too.

Thanks for replying (and please leave me a copy if you answer to the
mailinglist - i only receive daily digests)

Yours,
Michael

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


Re: [jQuery] Fwd: Tabs plugin feature request

2006-09-11 Thread Klaus Hartl


ashutosh bijoor schrieb:
> Thanks Klaus, for accepting the suggestion.
> Regards
> Ashutosh


Please note that the callback slightly differs from what you suggested. 
The parameters are not the id's but references to the elements itself. I 
thought that might be more useful.


-- Klaus

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


Re: [jQuery] Help with loading a Google Map

2006-09-11 Thread Yehuda Katz
Check this out:http://www.nytsweeps.com/openhouseA site I designed that integrates Thickbox with Google Maps. May help you out.-- Yehuda
On 9/11/06, Jim Davis <[EMAIL PROTECTED]> wrote:
I am trying to load this map page:http://www.4realty.info/newAugust06/maps/map_test.htmlinto this test page:
http://www.4realty.info/newAugust06/map_example.htmlThe map_test.html file is the "standard" Google maps API script withfixed coordinates.The map_example.html file uses jquery to load map_test into a div using

  $(document).ready(function(){
  $("a.snoco").click(function(){
$("div#mapContainer").load("maps/map_test.html");
});
  });
As you can see by viewing the example, the file is loading into thediv, but the map is not being displayed.I was unsuccessful in trying to use pieces of the Google Map plugin found here: http://olbertz.de/jquery/googlemap.htmlMy goal is to have a list of cities that when clicked will load thecorresponding map into the div on the page (Ajax style). Thanks for any help.Jim___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ -- Yehuda KatzWeb Developer(ph)  718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] mootools

2006-09-11 Thread John Resig
> I hope someone can take some time to fix css('float') in jQuery.

Ah, ok - I see the bug for it. I'll check into it.

--John

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


Re: [jQuery] Help with loading a Google Map

2006-09-11 Thread Andy Matthews



Ooooh. 
Yehuda...what a great idea. Works really well on IE/PC.
 
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Yehuda 
  KatzSent: Monday, September 11, 2006 11:01 AMTo: jQuery 
  Discussion.Subject: Re: [jQuery] Help with loading a Google 
  MapCheck this out:http://www.nytsweeps.com/openhouseA 
  site I designed that integrates Thickbox with Google Maps. May help you 
  out.-- Yehuda
  On 9/11/06, Jim 
  Davis <[EMAIL PROTECTED]> wrote:
  I 
am trying to load this map page:http://www.4realty.info/newAugust06/maps/map_test.htmlinto 
this test page:http://www.4realty.info/newAugust06/map_example.htmlThe 
map_test.html file is the "standard" Google maps API script withfixed 
coordinates.The map_example.html file uses jquery to load map_test 
into a div using 
  $(document).ready(function(){
  $("a.snoco").click(function(){
$("div#mapContainer").load("maps/map_test.html");
});
  });
As you can see by viewing the example, the file is loading into thediv, but the map is not being displayed.I was unsuccessful in trying to use pieces of the Google Map plugin found here: http://olbertz.de/jquery/googlemap.htmlMy goal is to have a list of cities that when clicked will load thecorresponding map into the div on the page (Ajax style). Thanks for any help.Jim___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ -- Yehuda KatzWeb Developer(ph)  718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] New site using jquery ( jcarousel )

2006-09-11 Thread París Prieto , José Ignacio
Title: [jQuery] New site using jquery ( jcarousel )






It runs extremelly slow, and takes about 95% of CPU.

Firefox 1.5.0.6, WinXP


Jose I.



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


Re: [jQuery] Fwd: Tabs plugin feature request

2006-09-11 Thread ashutosh bijoor
yes that makes it better.On 9/11/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
ashutosh bijoor schrieb:> Thanks Klaus, for accepting the suggestion.> Regards> AshutoshPlease note that the callback slightly differs from what you suggested.The parameters are not the id's but references to the elements itself. I
thought that might be more useful.-- Klaus___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Reach1to1 Communicationshttp://www.reach1to1.com[EMAIL PROTECTED]
98201-94408
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Multiple IE+Opera problems

2006-09-11 Thread Dave Methvin
> I've got a problem, probably found a bug in jQuery.
> The $.load function doesn't refresh the DOM in select-fields when
> using IE6 (7 not tested) or Opera(8.5 and 9beta) but in FF it works.

It's a cross-browser issue, arguably a bug in IE (and Opera?), but should
jQuery should try to work around the problem. I am pretty sure that IE does
not support innerHTML to update options on a select element. The ajax
.load() basically reduces to innerHTML, so that won't work. I believe it
does work to replace the entire select though, maybe you could do that. Or,
you could send your information as JSON and have the callback build the
option elements using "new Option" methods.

 



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


Re: [jQuery] AJAXGrid plugin - text version

2006-09-11 Thread Florian
Hi,There is a documentation ? Or send us your .php (To generate XML)Thank you,FlorianOn 8/23/06, Gilles Vincent <
[EMAIL PROTECTED]> wrote:Impressive !However, it's really buggy on Opera :(
Sounds really promising althought--2006/8/21, Stefan Petre <[EMAIL PROTECTED]>:> Maybe this time the text gets right:>> This is a plugin I worked on a lot. Has a lot of features:
>> * in place edit: the cells converts into text field, textarea or select> * resizeable columns> * keyboard navigation> * live scrolling> * triggers events on select and onsort , based on those you can link
>   two grids or interact with other _javascript_ function of your own> * AJAX driven data loading based on a simple XML format> * buffers data> * basic API to interact with the grid from outside
> * the possibility to filter on server side the data inserted by user>> I'm working on:>> * on a reasonable date picker to edit date fields> * freezed columns on horizontal scroll
> * resizeable grid>> demo at http://interface.eyecon.ro/demos/grid.html>> NOTE: don;t jump to use this plugin because:>
>1. is a very alpha>2. I haven't decide under which license will be released ___> jQuery mailing list> 
discuss@jquery.com> http://jquery.com/discuss/>___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Florian
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Performance of idrag/idrop

2006-09-11 Thread Mark Gibson
Hi,
I've created a UI where items can be dragged from a palette and
dropped into a table - using jQuery and iDrag/iDrop from Interface.

So, I've made every table cell and heading ('th.td') a Droppable,
so there could be hundreds of droppables, but only a small amount
of draggables (ie. less than 20).

Now this is causing a major delay on starting a drag operation.

I've had a look at idrop.js, and highlight() seems to where the
delay occurs. I tried to profile the code using venkman, but can't
my head round it at the minute - anyone know an easy way to profile
a javascript function?

Anyway, could anyone suggest an alternative, some performance
improvements, or where the bottleneck is in highlight()?

I thought about making the whole table a droppable - but I'm unsure
of how to retreive the target element from a draggable.
(BTW, i'm using ghosting if it makes a difference)

Cheers
- Mark Gibson

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


Re: [jQuery] AJAXGrid plugin - text version

2006-09-11 Thread Stefan Petre
The grid is alpha. Leaks a lot and works very slow on IE, not usable on 
Opera. I don;t advice to use it yet.

Florian wrote:
> Hi,
>
> There is a documentation ? Or send us your .php (To generate XML)
>
> Thank you,
> Florian
>
> On 8/23/06, *Gilles Vincent* < [EMAIL PROTECTED] 
> > wrote:
>
> Impressive !
> However, it's really buggy on Opera :(
> Sounds really promising althought
> --
> 2006/8/21, Stefan Petre <[EMAIL PROTECTED]
> >:
> > Maybe this time the text gets right:
> >
> > This is a plugin I worked on a lot. Has a lot of features:
> >
> > * in place edit: the cells converts into text field,
> textarea or select
> > * resizeable columns
> > * keyboard navigation
> > * live scrolling
> > * triggers events on select and onsort , based on those you
> can link
> >   two grids or interact with other JavaScript function of
> your own
> > * AJAX driven data loading based on a simple XML format
> > * buffers data
> > * basic API to interact with the grid from outside
> > * the possibility to filter on server side the data inserted
> by user
> >
> > I'm working on:
> >
> > * on a reasonable date picker to edit date fields
> > * freezed columns on horizontal scroll
> > * resizeable grid
> >
> > demo at http://interface.eyecon.ro/demos/grid.html
> >
> > NOTE: don;t jump to use this plugin because:
> >
> >1. is a very alpha
> >2. I haven't decide under which license will be released
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com 
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com 
> http://jquery.com/discuss/
>
>
>
>
> -- 
> Florian
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   


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


Re: [jQuery] Performance of idrag/idrop

2006-09-11 Thread Stefan Petre
When you drag an element each droppable is interrogated until overlaps 
or to the end if no droppable is overlapped. If you have a large amount 
of drop zones in a grid with the same dimensiunos then you can use 
'onDrag' and 'onDrop' callback from draggable to use mathematic rules 
for overlapping and decide witch drop zone is overlapped and to do 
further action.

Mark Gibson wrote:
> Hi,
> I've created a UI where items can be dragged from a palette and
> dropped into a table - using jQuery and iDrag/iDrop from Interface.
>
> So, I've made every table cell and heading ('th.td') a Droppable,
> so there could be hundreds of droppables, but only a small amount
> of draggables (ie. less than 20).
>
> Now this is causing a major delay on starting a drag operation.
>
> I've had a look at idrop.js, and highlight() seems to where the
> delay occurs. I tried to profile the code using venkman, but can't
> my head round it at the minute - anyone know an easy way to profile
> a javascript function?
>
> Anyway, could anyone suggest an alternative, some performance
> improvements, or where the bottleneck is in highlight()?
>
> I thought about making the whole table a droppable - but I'm unsure
> of how to retreive the target element from a draggable.
> (BTW, i'm using ghosting if it makes a difference)
>
> Cheers
> - Mark Gibson
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>   


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


[jQuery] Sortable table plugin in the wild

2006-09-11 Thread Yehuda Katz
http://jobs.joelonsoftware.com/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help with loading a Google Map

2006-09-11 Thread Yehuda Katz
Yup. I tested it on IE/FF/Opera in both Windows and Mac, so it should be pretty stable. It was for a "real" site, so it was quite important that it really work.-- Yehuda
On 9/11/06, Andy Matthews <[EMAIL PROTECTED]> wrote:





Ooooh. 
Yehuda...what a great idea. Works really well on IE/PC.
 
 

  -Original Message-From: [EMAIL PROTECTED]
 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Yehuda 
  KatzSent: Monday, September 11, 2006 11:01 AMTo: jQuery 
  Discussion.Subject: Re: [jQuery] Help with loading a Google 
  MapCheck this out:http://www.nytsweeps.com/openhouseA 
  site I designed that integrates Thickbox with Google Maps. May help you 
  out.-- Yehuda
  On 9/11/06, Jim 
  Davis <[EMAIL PROTECTED]> wrote:
  I 
am trying to load this map page:http://www.4realty.info/newAugust06/maps/map_test.html
into 
this test page:http://www.4realty.info/newAugust06/map_example.html
The 
map_test.html file is the "standard" Google maps API script withfixed 
coordinates.The map_example.html file uses jquery to load map_test 
into a div using 
  $(document).ready(function(){
  $("a.snoco").click(function(){
$("div#mapContainer").load("maps/map_test.html");
});
  });
As you can see by viewing the example, the file is loading into thediv, but the map is not being displayed.I was unsuccessful in trying to use pieces of the Google Map plugin found here: http://olbertz.de/jquery/googlemap.htmlMy goal is to have a list of cities that when clicked will load thecorresponding map into the div on the page (Ajax style). Thanks for any help.Jim___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ -- Yehuda KatzWeb Developer(ph)  718.877.1325 ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Isaac Weinhausen








I like what
Yehuda has to say.  I think we as a society have a responsibility to look
out for those who are weaker and more needy, especially if we have the means
too – which we do.

 

With that in
mind, we also need to be practical.  If we spent our time trying to make
everything in life accessible, we wouldn’t find much time for other
important things and our businesses may suffer.

 

That’s
why we must find a balance.  Both the courts, the disabled, and designers
need to be patient and gracious with each other.  In time, these things
will come about, just as they have in public and commercial buildings.

 

-Isaac

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yehuda Katz
Sent: Monday, September 11, 2006
7:46 AM
To: jQuery
 Discussion.
Subject: Re: [jQuery]
Accessibility. Take it Seriously in Your Web Apps.



 

Or we could say, "As
a society, we will insist that people who are physically disabled be afforded a
minimal level of access to large, commercial or public areas." Disabled
people are human beings too, and if we can do something to ensure that those
who cannot do the things we take for granted can do them too, we'll be better
off in the long run. 

Some of our greatest geniuses have been disabled, and we should not risk losing
another genius because they cannot operate at a minimal level in the new
information age.

-- Yehuda 






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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Felix Geisendörfer




I took this from the other thread "Ajax Throbber How-to?" since I
believe it fits into this one better:

When was the last time you
disabled _javascript_?
Today, yesterday and most days before that. Not for my normal web
browsing, but for ensuring that the applications I build work without
_javascript_. Now even if you don't care about blind people, one thing
you should care about is writing good code. That includes using
graceful degradation for every aspect you can. Why that is important?
Because the landscape of browsers out there is incredibly complex and
it's difficult to test your site with all of them. Now you can take the
common "screw everything non ie/firefox" path or even include
"opera/safari" in that, but you can also try to do better. No matter
how old / bad a browser is, chances that it displays semantic html
correctly and can handle normal forms are *very* high. So if you make a
site that works just with that, and can manage it to build all this
fancy _javascript_ as a layer on top of it, you've build an accessible
web application for 99% of the people. That also includes the majority
of internet users that do *not* have access via broadband and sometimes
turn off JS / images just to gain speed. And I have to admit that I'm
on a 64 kbit connection myself and most of those fancy 500 kb js web
2.0 apps have very little appeal to myself. Yet another reason I like 
the lightweightness of jQuery.

One exception to what I've written above is the administration / back
end area of your site. I think it's reasonable to set lower goals for
the accessibility requirements on it unless it's going to be used by
thousands of people. However, I still try do keep it light on JS anyway.

Best Regards,
Felix Geisendörfer
--
http://www.thinkingphp.org
http://www.fg-webdesign.de



Mike Alsup schrieb:

  
Why should the courts get involved in this matter?

  
  
Because few would make the effort otherwise.  Sad but true.  Section
508 was written to call out the fact that software companies CAN NOT
ignore our disabled citizens.  Even so, most do anyway.  Believe me,
it's MUCH easier going into a project thinking about A11y than trying
to tack it on later.  And if you do any work for the government or for
IBM then this is moot point anyway; they won't even consider a product
w/o a VPAT.

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

  



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


Re: [jQuery] Performance of idrag/idrop

2006-09-11 Thread Mark Gibson
Stefan Petre wrote:
> When you drag an element each droppable is interrogated until overlaps 
> or to the end if no droppable is overlapped. If you have a large amount 
> of drop zones in a grid with the same dimensiunos then you can use 
> 'onDrag' and 'onDrop' callback from draggable to use mathematic rules 
> for overlapping and decide witch drop zone is overlapped and to do 
> further action.

Yeah, I though of this, but can't see where I can position info from
in the callback.

Ideally I'd like to have a single Droppable on the whole table,
and use the 'ondrop' callback, but having the position of the pointer
(relative to the table element) passed to the callback function,
is this possible?

Cheers
- Mark.


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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Yehuda Katz
Visual jQuery does not work without js. That was a purposeful decision I made to get it out the door and working. Obviously, this is something that probably will change in the future, but sites like Visual jQuery often can be released in a less friendly format, *especially if an alternative exists.* The existence of John's basic API made me much more comfortable in designing Visual jQuery around _javascript_.
Thoughts?On 9/11/06, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:



  
  


I took this from the other thread "Ajax Throbber How-to?" since I
believe it fits into this one better:

When was the last time you
disabled _javascript_?
Today, yesterday and most days before that. Not for my normal web
browsing, but for ensuring that the applications I build work without
_javascript_. Now even if you don't care about blind people, one thing
you should care about is writing good code. That includes using
graceful degradation for every aspect you can. Why that is important?
Because the landscape of browsers out there is incredibly complex and
it's difficult to test your site with all of them. Now you can take the
common "screw everything non ie/firefox" path or even include
"opera/safari" in that, but you can also try to do better. No matter
how old / bad a browser is, chances that it displays semantic html
correctly and can handle normal forms are *very* high. So if you make a
site that works just with that, and can manage it to build all this
fancy _javascript_ as a layer on top of it, you've build an accessible
web application for 99% of the people. That also includes the majority
of internet users that do *not* have access via broadband and sometimes
turn off JS / images just to gain speed. And I have to admit that I'm
on a 64 kbit connection myself and most of those fancy 500 kb js web
2.0 apps have very little appeal to myself. Yet another reason I like 
the lightweightness of jQuery.

One exception to what I've written above is the administration / back
end area of your site. I think it's reasonable to set lower goals for
the accessibility requirements on it unless it's going to be used by
thousands of people. However, I still try do keep it light on JS anyway.

Best Regards,
Felix Geisendörfer
--
http://www.thinkingphp.org
http://www.fg-webdesign.de



Mike Alsup schrieb:

  
Why should the courts get involved in this matter?
  
  Because few would make the effort otherwise.  Sad but true.  Section508 was written to call out the fact that software companies CAN NOTignore our disabled citizens.  Even so, most do anyway.  Believe me,
it's MUCH easier going into a project thinking about A11y than tryingto tack it on later.  And if you do any work for the government or forIBM then this is moot point anyway; they won't even consider a product
w/o a VPAT.___jQuery mailing listdiscuss@jquery.com

http://jquery.com/discuss/

  




___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Morbus Iff
> http://jobs.joelonsoftware.com/

My own examples are at:

  http://www.disobey.com/d/lists/ccgs/
  (click through the subpages for larger examples)

Of special interest here is that /there's no images/ - my
arrows are UTF entities set via CSS' :before and 'content';

-- 
Morbus Iff ( relax have a happy meal )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Yehuda Katz
Which means it won't work in IE, right?On 9/11/06, Morbus Iff <[EMAIL PROTECTED]> wrote:
> http://jobs.joelonsoftware.com/My own examples are at:  http://www.disobey.com/d/lists/ccgs/  (click through the subpages for larger examples)
Of special interest here is that /there's no images/ - myarrows are UTF entities set via CSS' :before and 'content';--Morbus Iff ( relax have a happy meal )Technical: 
http://www.oreillynet.com/pub/au/779Culture: http://www.disobey.com/ and http://www.gamegrene.com/icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / 
jabber.org: morbus___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-11 Thread John Resig
> Sorry, I got this wrong - it doesn't force case sensitive.
>
> According to the docs:
> 2 - Returns the value exactly as it was set in script or in the source
> document.
>
> Now I'm even more confused, what else would it return?

Specifically, this relates to the 'href' attribute - since browsers
frequently interpret the URL provide into a full URL. If you were to
put in "/foo.html", the browser would (instead) return
"http://mydomain.com/foo.html";

Although, if it dies on XML documents, I may have to reconsider using it.

--John

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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Klaus Hartl


Yehuda Katz schrieb:
> Which means it won't work in IE, right?

right. could accomplish that with background-images instead...


-- klaus

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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Mike Alsup
That's an excellent point Yehuda.  It's very easy to under estimate
the work involved in making an entire application "accessible".  I've
suffered through this pain for a huge Swing application.  But at the
same time, people often over estimate what is involved (especially for
a small web-app or website).  The bar is actually rather low: the app
or site must be "usable".  If I disable css and js, can I use your
site?  If I use a screen reader with your site will it work?  It
doesn't have to be pretty and it doesn't have to be optimized (bonus
points if it is though).  It just has to work.

Mike

On 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
> Visual jQuery does not work without js. That was a purposeful decision I
> made to get it out the door and working. Obviously, this is something that
> probably will change in the future, but sites like Visual jQuery often can
> be released in a less friendly format, *especially if an alternative
> exists.* The existence of John's basic API made me much more comfortable in
> designing Visual jQuery around Javascript.
>
> Thoughts?

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


Re: [jQuery] Performance of idrag/idrop

2006-09-11 Thread Klaus Hartl

> I've had a look at idrop.js, and highlight() seems to where the
> delay occurs. I tried to profile the code using venkman, but can't
> my head round it at the minute - anyone know an easy way to profile
> a javascript function?

you could use the excellent firebug extension:

console.time('name');

// code to profile

console.timeEnd('name');


http://www.joehewitt.com/software/firebug/docs.php



-- klaus

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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Morbus Iff
> Which means it won't work in IE, right?

No idea - I don't run any machines with IE. I just loaded up Parallels, 
and it doesn't appear that anything related to jQuery on those pages 
actually work (tablesorter, or the hider on the inner pages -- and since 
tablesorter sets the CSS id, I can't tell if the :before/content works). 
I don't care enough to fix it immediately -- about 60% of my visitors 
are not using IE, and the pages degrade nicely enough.

If you can eyeball the fault immediately, lemme know ;)

-- 
Morbus Iff ( in japan, i'm known as a puchi-iede. )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Morbus Iff
>> Which means it won't work in IE, right?
> 
> right. could accomplish that with background-images instead...

The point of my exercise was NOT to use images. I am perfectly fine with 
users of IE not seeing a visual clue that they can sort the headers.

-- 
Morbus Iff ( get on the floor. baby, lose control. )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

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


Re: [jQuery] New site using jquery ( jcarousel )

2006-09-11 Thread Abdur-Rahman Advany
Ziet er leuk uit : ) leuk om te zien dan jquery ook door nl-ers wordt 
gebruikt :)

Andy Matthews wrote:
> Well done!
>
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Armand Datema
> Sent: Monday, September 11, 2006 2:16 AM
> To: jQuery Discussion.
> Subject: [jQuery] New site using jquery ( jcarousel )
>
>
> Well the site is life now ( soft launch )
>
> http://www.politieknieuws.nl/
>
> Still need to add a few more modules and ad some extra serverside code
> to make sure the carousel id is only attached if the rows returned are
> 10 or more
>
> but so far im pretty happ with it and takes a lot fatser to load then
> a custom on i did a while back and the YUI one.
>
> Armand
>
> ___
> 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] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Felix Geisendörfer




On 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
Visual jQuery does not work without js.

Well given that it is the documentation for a _javascript_ library you can sort of expect people to have JS turned on when visiting it ; ).

--
http://www.thinkingphp.org
http://www.fg-webdesign.de



Mike Alsup schrieb:

  That's an excellent point Yehuda.  It's very easy to under estimate
the work involved in making an entire application "accessible".  I've
suffered through this pain for a huge Swing application.  But at the
same time, people often over estimate what is involved (especially for
a small web-app or website).  The bar is actually rather low: the app
or site must be "usable".  If I disable css and js, can I use your
site?  If I use a screen reader with your site will it work?  It
doesn't have to be pretty and it doesn't have to be optimized (bonus
points if it is though).  It just has to work.

Mike

On 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
  
  
Visual jQuery does not work without js. That was a purposeful decision I
made to get it out the door and working. Obviously, this is something that
probably will change in the future, but sites like Visual jQuery often can
be released in a less friendly format, *especially if an alternative
exists.* The existence of John's basic API made me much more comfortable in
designing Visual jQuery around _javascript_.

Thoughts?

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

  



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


Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Yehuda Katz
That's actually a pretty good point. Or at least have JS accessible.-- YehudaOn 9/11/06, Felix Geisendörfer <
[EMAIL PROTECTED]> wrote:


  
  


On 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
Visual jQuery does not work without js.
Well given that it is the documentation for a _javascript_ library you can sort of expect people to have JS turned on when visiting it ; ).

--
http://www.thinkingphp.org
http://www.fg-webdesign.de



Mike Alsup schrieb:

  That's an excellent point Yehuda.  It's very easy to under estimatethe work involved in making an entire application "accessible".  I've
suffered through this pain for a huge Swing application.  But at thesame time, people often over estimate what is involved (especially fora small web-app or website).  The bar is actually rather low: the app
or site must be "usable".  If I disable css and js, can I use yoursite?  If I use a screen reader with your site will it work?  Itdoesn't have to be pretty and it doesn't have to be optimized (bonuspoints if it is though).  It just has to work.
MikeOn 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:  
  
Visual jQuery does not work without js. That was a purposeful decision Imade to get it out the door and working. Obviously, this is something thatprobably will change in the future, but sites like Visual jQuery often can
be released in a less friendly format, *especially if an alternativeexists.* The existence of John's basic API made me much more comfortable indesigning Visual jQuery around _javascript_.Thoughts?

  
  ___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/

  




___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Yehuda Katz
You probably shouldn't be fine with 40% of your users have no visual clue *at all* that they can do something. Or am I missing something?On 9/11/06, Morbus Iff
 <[EMAIL PROTECTED]> wrote:>> Which means it won't work in IE, right?
>> right. could accomplish that with background-images instead...The point of my exercise was NOT to use images. I am perfectly fine withusers of IE not seeing a visual clue that they can sort the headers.
--Morbus Iff ( get on the floor. baby, lose control. )Technical: http://www.oreillynet.com/pub/au/779Culture: http://www.disobey.com/
 and http://www.gamegrene.com/icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz
Web Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New site using jquery ( jcarousel )

2006-09-11 Thread Armand Datema
Yeah i can say that jquery is used on a nr of fortune 50 internal web
applications here in the netherlands :)

Armand



On 9/11/06, Abdur-Rahman Advany <[EMAIL PROTECTED]> wrote:
> Ziet er leuk uit : ) leuk om te zien dan jquery ook door nl-ers wordt
> gebruikt :)
>
> Andy Matthews wrote:
> > Well done!
> >
> >  > andy matthews
> > web developer
> > certified advanced coldfusion programmer
> > ICGLink, Inc.
> > [EMAIL PROTECTED]
> > 615.370.1530 x737
> > --//->
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Behalf Of Armand Datema
> > Sent: Monday, September 11, 2006 2:16 AM
> > To: jQuery Discussion.
> > Subject: [jQuery] New site using jquery ( jcarousel )
> >
> >
> > Well the site is life now ( soft launch )
> >
> > http://www.politieknieuws.nl/
> >
> > Still need to add a few more modules and ad some extra serverside code
> > to make sure the carousel id is only attached if the rows returned are
> > 10 or more
> >
> > but so far im pretty happ with it and takes a lot fatser to load then
> > a custom on i did a while back and the YUI one.
> >
> > Armand
> >
> > ___
> > 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/
>


-- 
Armand Datema
CTO SchwingSoft

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


[jQuery] Triggering with extra data

2006-09-11 Thread Choan C. Gálvez
Hi all.

I'm developing a validation system which involves custom events
handling. That is, I want to execute some code before the validation
and some code after the validation.

So, my `$.fn.validate` looks like this (simplified):

$.fn.validate = function(callback) {
return this.each(function() {
var res;
var $this = $(this);
$this.trigger("beforeValidate");
res = validationExecution(); // edited to simplify
$this.trigger("afterValidate", [res]); // <-- look at this line
});
};

Trouble is, while the `$("something").trigger("event", data)` allows
passing extra data to the handler (as seen inside `$.fn.trigger` and
`$.event.trigger`), the handler function receives just a param, which
is the real-or-fake event.

Reason to want this feature is that the `afterValidate` handler must
know if the validation has been succesfull to proceed in one of two
manner (succesfull/unsuccesfull).

Any workaround for this? Should I create a ticket?

-- 
Choan


Dizque. Desarrollo web y pequeñas dosis de vida real


Mundo Du. Cuentos breves, relatos sorprendentes


Scriptia. Javascript y buenas prácticas

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


Re: [jQuery] Sortables conflicting with Droppables

2006-09-11 Thread Stefan Petre
Hi Brendan,

I changed the Sortables. Now you can insert Draggables inside Sortables 
by just dragging them to the list.

Brendan O'Brien wrote:
> Hi all,
>
> I have a situation where I want to make a container both Droppable and 
> Sortable at the same time.  The use case is, you drag a button into 
> the Droppable container, and when you do so the onDrop callback 
> creates an HTML node and inserts it into the container.  I also want 
> those objects to be Sortable, so that I can reorder them after I have 
> dropped them into the container.
>
> But if I make the container Droppable first and then Sortable, then it 
> doesn't quite work.  When I initialize the containers as Sortable, it 
> first makes the "accept" elements Draggable, and then tries to make 
> the container Droppable.  But, since I have already made it Droppable, 
> the Sortable code sees this and skips it.  Thus the Droppable still 
> works, and the "accept" elements are draggable, but I can't drop them 
> anywhere, so they always just revert to where they originated from.
> If I do it the other way around, make the container Sortable and then 
> Droppable then the opposite is true.  The elements are sortable, but 
> nothing happens when I drop something in the container.
>
> I was wondering if anyone else has seen this problem, and if so if 
> they have a workaround or solution.  I tried adding an onDrop as a 
> Sortables configuration parameter, and then appending the method that 
> is passed in after the default onDrop that Sortables adds to the 
> container.  That was moderately successful, but then I ran into more 
> issues, because it still tried to sort.  I added a cancelling 
> mechanism, but there were more issues with that.  You can see where 
> this is going...
>
> Any suggestions on this issue would be greatly appreciated.
>
> Thanks,
> Brendan O'Brien
>
>
>
>
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   


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


Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Stefan Petre
I uploaded the changes. The sad part is I change a lot in draggables but 
I haven't got the time to test everything. Again, I didn't test on 
Safari 
You have an extra parameter for Daraggables 'insideParent', this way the 
dragged element will not leave the parent.

Yehuda Katz wrote:
> Thanks a ton Stefan,
>
> It really is the difference, in this case, between using Interface and 
> Scriptaculous. I appreciate your hard work (as I've said before, 
> community is a major strength of jQuery over Prototype and you're 
> proving it here). Kudos.
>
> -- Yehuda
>
> On 9/11/06, *Stefan Petre* <[EMAIL PROTECTED] 
> > wrote:
>
> True, that's the behavior. I will let you know when the new
> feature (to
> drag en element inside it's parent) is available for download.
>
> Yehuda Katz wrote:
> > I was under the impression that contaiment kept the element
> > constrained inside the parent element, so its X and Y coordinates
> > could not be smaller than the X and Y coordinates of the parent.
> >
> > That's not what I need. I need something like Google Maps, where
> the
> > element can be "outside" the parent box, but will still be wrapped
> > inside it.
> >
> > -- Yehuda
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com 
> http://jquery.com/discuss/
>
>
>
>
> -- 
> Yehuda Katz
> Web Developer
> (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] mootools

2006-09-11 Thread Meece, Clifford T



seems to be fixed in FF, but still 
has a problem in IE.  I assume this is due to the JQuery bug you 
mentioned?


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Stefan 
PetreSent: Monday, September 11, 2006 9:13 AMTo: jQuery 
Discussion.Subject: Re: [jQuery] mootools
Hi,yes, there is a bug in fx part. I fixed it already and 
will be on-line today. I also submitted a bug regarding float on IE with the 
solution. I hope someone can take some time to fix css('float') in 
jQuery.Meece, Clifford T wrote: 
I'm using the interface library effects, so it could be those, or CSS as
you mentioned.  The sample page is:

http://langdata.potowski.org/Tests/InterfaceTest.php# 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of John Resig
Sent: Friday, September 08, 2006 6:48 PM
To: jQuery Discussion.
Subject: Re: [jQuery] mootools

  
  If that makes any sense.  It seems like the float attribute is being 
turned off during the animation.  Or something.

Must be a CSS issue, seems to work fine for me:
http://john.jquery.com/jquery/test/float.html

Make sure that all the floated elements have a display of block, that
might help.

--John

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

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

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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Morbus Iff
> You probably shouldn't be fine with 40% of your users have no visual 
> clue *at all* that they can do something. Or am I missing something?

Considering that these lists are largely for my own purposes, yes, I 
could care less ;) Note, however, that the lack of :before or content 
isn't entirely a huge loss - the header of the table cell itself is also 
colored. Granted, it's certainly nothing that I'd proclaim or sell to 
clients as Finished, but these particular lists don't need to be. 
They're not a "site" -- merely a list of something I collect.

Will I someday fix the error that is causing the jQuery elements to not 
work at all in IE? Yes. Do I plan to stop everything I'm doing to do so, 
when the data itself, and not its interaction, is most important? No.

-- 
Morbus Iff ( my name is legion, for we are many... )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

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


Re: [jQuery] Triggering with extra data

2006-09-11 Thread John Resig
The triggered function should receive two arguments (in this case).
The first one is the fake event, the second one is the new data item.
Let me know if this is not the case.

--John

On 9/11/06, Choan C. Gálvez <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> I'm developing a validation system which involves custom events
> handling. That is, I want to execute some code before the validation
> and some code after the validation.
>
> So, my `$.fn.validate` looks like this (simplified):
>
> $.fn.validate = function(callback) {
> return this.each(function() {
> var res;
> var $this = $(this);
> $this.trigger("beforeValidate");
> res = validationExecution(); // edited to simplify
> $this.trigger("afterValidate", [res]); // <-- look at this 
> line
> });
> };
>
> Trouble is, while the `$("something").trigger("event", data)` allows
> passing extra data to the handler (as seen inside `$.fn.trigger` and
> `$.event.trigger`), the handler function receives just a param, which
> is the real-or-fake event.
>
> Reason to want this feature is that the `afterValidate` handler must
> know if the validation has been succesfull to proceed in one of two
> manner (succesfull/unsuccesfull).
>
> Any workaround for this? Should I create a ticket?
>
> --
> Choan
> 
>
> Dizque. Desarrollo web y pequeñas dosis de vida real
> 
>
> Mundo Du. Cuentos breves, relatos sorprendentes
> 
>
> Scriptia. Javascript y buenas prácticas
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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


Re: [jQuery] Can XPath support multi-attributes selector?

2006-09-11 Thread John Resig
> [EMAIL PROTECTED]@...]

Klaus is correct, this is how multiple attribute selectors are
supported in jQuery.

--John

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


Re: [jQuery] Interface Draggable in a container

2006-09-11 Thread Yehuda Katz
It's uploaded as the regular version, or is there a svn somewhere I need to download from?On 9/11/06, Stefan Petre <
[EMAIL PROTECTED]> wrote:I uploaded the changes. The sad part is I change a lot in draggables but
I haven't got the time to test everything. Again, I didn't test onSafari You have an extra parameter for Daraggables 'insideParent', this way thedragged element will not leave the parent.Yehuda Katz wrote:
> Thanks a ton Stefan,>> It really is the difference, in this case, between using Interface and> Scriptaculous. I appreciate your hard work (as I've said before,> community is a major strength of jQuery over Prototype and you're
> proving it here). Kudos.>> -- Yehuda>> On 9/11/06, *Stefan Petre* <[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>> wrote:>> True, that's the behavior. I will let you know when the new> feature (to> drag en element inside it's parent) is available for download.
>> Yehuda Katz wrote:> > I was under the impression that contaiment kept the element> > constrained inside the parent element, so its X and Y coordinates> > could not be smaller than the X and Y coordinates of the parent.
> >> > That's not what I need. I need something like Google Maps, where> the> > element can be "outside" the parent box, but will still be wrapped> > inside it.
> >> > -- Yehuda>  ___> jQuery mailing list> discuss@jquery.com
 discuss@jquery.com>> http://jquery.com/discuss/> --> Yehuda Katz
> Web Developer> (ph)   718.877.1325> >> ___> jQuery mailing list
> discuss@jquery.com> http://jquery.com/discuss/>___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  
718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Display Data in Chunks

2006-09-11 Thread John Resig
Rahul -

This is a case where implementing a Live Grid style application would
be really good. There's already a jQuery Plugin that supports this:
http://makoomba.altervista.org/grid/

--John

> I am running a PHP script which processes around 1500 records. Is there a
> way in jQuery to get partial data back from the server. i.e. get 100
> finished records.

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


Re: [jQuery] Preserving context within closure

2006-09-11 Thread John Resig
> function Editor() { // class Editor
>   var self = this;
>   $(document).ready(function() { self.doSomething(); });
> }

The simplest way, that I've found, to "avoid this issue" is to simply
pass in the context as an argument to the function - so doing:

function Editor(self) {
$(function(){
self.doSomething();
});
}

Of course, if you still want to use 'this', there's another really
easy way to do it:

function Editor() {
$( self.doSomething );
}

In this case you're passing in a function to the document ready (since
doSomething is just a function, no need to wrap it again). Although,
this depends a lot on what code you're trying to execute.

--John

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


Re: [jQuery] Help with loading a Google Map

2006-09-11 Thread Jim Davis
Yehuda,

Thanks for the link to your site. I used your method for creating the
map page using jquery, as can be seen here:
http://www.4realty.info/newAugust06/map4.html

I still want to simply load this page into a div rather than use
thickbox. My example page:
http://www.4realty.info/newAugust06/map_example.html , still refuses
to load the map.

Any ideas?

Jim

On 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
> Check this out:
>
> http://www.nytsweeps.com/openhouse
>
> A site I designed that integrates Thickbox with Google Maps. May help you
> out.
>
> -- Yehuda

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


Re: [jQuery] Help with loading a Google Map

2006-09-11 Thread Yehuda Katz
You should look at my CSS. I had major issues that were similar to yours, and I used some padding and whatnot to make it work. I don't remember the details at the moment, but take a look at my CSS ;)-- Yehuda
On 9/11/06, Jim Davis <[EMAIL PROTECTED]> wrote:
Yehuda,Thanks for the link to your site. I used your method for creating themap page using jquery, as can be seen here:http://www.4realty.info/newAugust06/map4.html
I still want to simply load this page into a div rather than usethickbox. My example page:http://www.4realty.info/newAugust06/map_example.html
 , still refusesto load the map.Any ideas?JimOn 9/11/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:> Check this out:>> 
http://www.nytsweeps.com/openhouse>> A site I designed that integrates Thickbox with Google Maps. May help you> out.>> -- Yehuda___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz
Web Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Christian Bach
Great find Yehuda!

It's fun to see that the plugin is being put to work.

/christian



Yehuda Katz wrote:
> http://jobs.joelonsoftware.com/
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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


[jQuery] Client-side query term highlighting demo using jQuery

2006-09-11 Thread Dossy Shiobara
Client-side query term highlighting demo using jQuery
http://dossy.org/referer-demo.html

Here's a quick client-side query term highlighting demo that uses jQuery
to parse the document.referrer and walks the DOM to highlight text by
wrapping it in a  with the class "qterm".

Thanks, John, for pointing out that I can recursively walk the DOM with
$("body *") ... that hit the spot.

Here's the code:


.qterm { color: #444; background-color: #ee9; font-weight: bold; }
a span.qterm { color: #00f; text-decoration: underline; }
a:hover span.qterm { color: #666; }



$(document).ready(function() {
  if (!document.referrer) return;
  var matches = document.referrer.match(/[?&]q=([^&]*)/);
  if (!matches) return;
  var terms = unescape(matches[1].replace(/\+/g, ' '));
  var re = new RegExp().compile('(' + terms + ')', 'i');
  $("body *").each(function() {
if ($(this).children().size() > 0) return;
if ($(this).is("xmp, pre")) return;
var html = $(this).html();
var newhtml = html.replace(re, '$1');
$(this).html(newhtml);
  });
});


Naturally, my parsing of document.referrer is *very* naive.  Naturally,
adding the appropriate expressions to match more than just Google (or
any search engine that uses the "q=terms" form) is probably necessary.

I leave that up to you folks to help fill that part in.  :-)

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)

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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Christian Bach
Morbus Iff wrote:
> My own examples are at:
> 
>   http://www.disobey.com/d/lists/ccgs/
>   (click through the subpages for larger examples)
> 
> Of special interest here is that /there's no images/ - my
> arrows are UTF entities set via CSS' :before and 'content';
>

Great Morbus,

Will be adding this url to the tablesorter site as soon as i have the 
time. Man that plugin can sure sort :)

/christian



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


Re: [jQuery] Client-side query term highlighting demo using jQuery

2006-09-11 Thread Matt Stith
Great job! Personally, i would check if document.location has a 'q' set, and if not, use the referrer, That would make it a little more usable.On 9/11/06, 
Dossy Shiobara <[EMAIL PROTECTED]> wrote:
Client-side query term highlighting demo using jQueryhttp://dossy.org/referer-demo.htmlHere's a quick client-side query term highlighting demo that uses jQuery
to parse the document.referrer and walks the DOM to highlight text bywrapping it in a  with the class "qterm".Thanks, John, for pointing out that I can recursively walk the DOM with$("body *") ... that hit the spot.
Here's the code:
.qterm { color: #444; background-color: #ee9; font-weight: bold; }
a span.qterm { color: #00f; text-decoration: underline; }
a:hover span.qterm { color: #666; }

$(document).ready(function() {
  if (!document.referrer) return;
  var matches = document.referrer.match(/[?&]q=([^&]*)/);
  if (!matches) return;
  var terms = unescape(matches[1].replace(/\+/g, ' '));
  var re = new RegExp().compile('(' + terms + ')', 'i');
  $("body *").each(function() {
if ($(this).children().size() > 0) return;
if ($(this).is("xmp, pre")) return;
var html = $(this).html();
var newhtml = html.replace(re, '$1');
$(this).html(newhtml);
  });
});
Naturally, my parsing of document.referrer is *very* naive.  Naturally,adding the appropriate expressions to match more than just Google (orany search engine that uses the "q=terms" form) is probably necessary. I leave that up to you folks to help fill that part in.  :-)-- Dossy--Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network   | http://panoptic.com/  "He realized the fastest way to change is to laugh at your ownfolly -- then you can let go and quickly move on." (p. 70) ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread dolinsky

I noticed it picked up our job posting (
http://jobs.joelonsoftware.com/default.asp?276 Money-Media ). We're using
jQuery here (I found it while working at a previous job and brought it to MM
when I came here a few months ago, and we're using it in a few current
projects as well as a big project we're working on now). 

On a sidenote...if anybody knows a very good PHP developer (by very good I
mean someone with OOP experience) as well as CSS/JS (jQuery!) experience,
let them know we're looking.

-David Olinsky
Web Developer
Money-Media, Inc. 


wycats wrote:
> 
> http://jobs.joelonsoftware.com/
> 
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Sortable-table-plugin-in-the-wild-tf2253730.html#a6255030
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Sortable table plugin in the wild

2006-09-11 Thread Yehuda Katz
Yeah. I was just browsing the jobs board and I was like, "Hmm... that look familiar." The green arrows were a giveaway. Good to see jQuery hard at work.-- YehudaOn 9/11/06, 
Christian Bach <[EMAIL PROTECTED]> wrote:
Great find Yehuda!It's fun to see that the plugin is being put to work./christianYehuda Katz wrote:> http://jobs.joelonsoftware.com/
>>> >> ___> jQuery mailing list> 
discuss@jquery.com> http://jquery.com/discuss/___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Tabs plugin update: autoheight, effects

2006-09-11 Thread Klaus Hartl
Hi all,

I have updated the tabs plugin a bit again. There is now an autoheight
option with which turned on all tabs have the same height. That avoids
jumping content on a page on tab selection.

$(...).tabs({fxAutoheight: true});

Not sure if I mentioned it here before, but you can also have a fade
and/or slide effect for the tab switching...

$(...).tabs({fxSlide: true, fxFade: true, fxSpeed: 'fast'});

If you omit the fxSpeed option it will default to 'normal'.

All kind of examples here: http://stilbuero.de/jquery/tabs/

If you use effects you should include the following CSS in your style
sheet to override inline styles and ensure printing (it's also in the
demo's CSS, but I think it's worth mentioning):

@media print {
 .fragment {
 display: block !important;
 height: auto !important;
 opacity: 1 !important;
 }
}

This works in all modern browsers. Needless to say that IE is not a
modern browser. I will add that later.


-- Klaus



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


[jQuery] date picker plugin bug fix

2006-09-11 Thread Kelvin Luck
Hi,

I've just fixed a bug in my date picker plugin (thanks to Bruce McKenzie 
for pointing it out). Basically the plugin was getting confused about 
which was the first day of the month in certain circumstances...

So if you are using it then please download the newest version of the 
code from the plugin's page:
http://kelvinluck.com/assets/jquery/datePicker/

Cheers,

Kelvin :)

p.s. No IE memory leak experts had any feedback on my other problem 
where chaining methods in jQuery (as opposed to executing them 
consecutively) results in more memory usage? Details here:
http://jquery.com/discuss/2006-September/011331/

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


[jQuery] Only allow PDF File upload

2006-09-11 Thread Raffael Luthiger
Hi,

I would like to create a simple file upload form. The whole thing should 
be something like described here: http://ch2.php.net/features.file-upload

But I would like to restrict the upload to PDF files. Since I already 
have jQuery running for other purposes I was thinking about using it for 
this as well. (At least for the first stage to check the last three 
letters of the filename. If I am right it is not possible to check the 
MIME type before sending)

My idea is to check the file-input field as soon as the name of the file 
is in there. I am not sure now if I can treat this file-input field like 
a text-input field or if I have to look for something special. If I have 
to treat is special can someone give me more information on how to do it?

Thanks,
Raffael

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


Re: [jQuery] Only allow PDF File upload

2006-09-11 Thread Kelvin Luck
How about:



A good first step, this should get most browsers limiting what you can 
select in the popup choose file dialog,

Hope this helps,

Kelvin :)

Raffael Luthiger wrote:
> Hi,
> 
> I would like to create a simple file upload form. The whole thing should 
> be something like described here: http://ch2.php.net/features.file-upload
> 
> But I would like to restrict the upload to PDF files. Since I already 
> have jQuery running for other purposes I was thinking about using it for 
> this as well. (At least for the first stage to check the last three 
> letters of the filename. If I am right it is not possible to check the 
> MIME type before sending)
> 
> My idea is to check the file-input field as soon as the name of the file 
> is in there. I am not sure now if I can treat this file-input field like 
> a text-input field or if I have to look for something special. If I have 
> to treat is special can someone give me more information on how to do it?
> 
> Thanks,
> Raffael

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


Re: [jQuery] Only allow PDF File upload

2006-09-11 Thread Raffael Luthiger
Thanks!

I did already read http://www.w3.org/TR/html4/interact/forms.html. But 
somehow I didn't see this part. I should read more carefully next time. :(

That's exactly what I needed as a first step.

Raffael

Kelvin Luck wrote:
> How about:
> 
> 
> 
> A good first step, this should get most browsers limiting what you can 
> select in the popup choose file dialog,
> 
> Hope this helps,
> 
> Kelvin :)


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


Re: [jQuery] Client-side query term highlighting demo using jQuery

2006-09-11 Thread Dossy Shiobara
On 2006.09.11, Matt Stith <[EMAIL PROTECTED]> wrote:
> Great job! Personally, i would check if document.location has a 'q'
> set, and if not, use the referrer, That would make it a little more
> usable.

More usable how?  The idea behind this code snippet is to highlight
search query terms on click-through from a SERP.  The SERP's URL is
what we have in document.referrer, not document.location.

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)

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


[jQuery] Checkboxes

2006-09-11 Thread Kevin Scholl
Would anyone have any idea why checkboxes within the THEAD and TFOOT of 
a table would not be recognized up by the following:

$(document).ready(function(){
   $("[EMAIL PROTECTED]'checkbox']").click(function() {
 // do whatever
 });
   }); // end ready function

I'm working on a check/uncheck all script:

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

where the checkboxes in the header and footer of the table should 
select/deselect all the others. If I put those checkboxes into regular 
TBODY rows, they work fine. But as soon as the THEAD and TFOOT tags are 
applied, it's as if the script can't even see that they exist (as tested 
using simple alerts).

Any ideas?

Thanks,
Kevin


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


Re: [jQuery] Checkboxes

2006-09-11 Thread Matt Grimm
Works for me if the checkbox is within a correctly constructed data
cell:





m. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin Scholl
Sent: Monday, September 11, 2006 2:26 PM
To: jQuery Discussion.
Subject: [jQuery] Checkboxes

Would anyone have any idea why checkboxes within the THEAD and TFOOT of 
a table would not be recognized up by the following:

$(document).ready(function(){
   $("[EMAIL PROTECTED]'checkbox']").click(function() {
 // do whatever
 });
   }); // end ready function

I'm working on a check/uncheck all script:

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

where the checkboxes in the header and footer of the table should 
select/deselect all the others. If I put those checkboxes into regular 
TBODY rows, they work fine. But as soon as the THEAD and TFOOT tags are 
applied, it's as if the script can't even see that they exist (as tested

using simple alerts).

Any ideas?

Thanks,
Kevin


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

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


Re: [jQuery] Checkboxes

2006-09-11 Thread Kevin Scholl
Interesting. So it's not the THEAD/TFOOT, but the TH instead of TD.

Thanks for the insight, Matt! I'll try that out!

Kevin

Matt Grimm wrote:
> Works for me if the checkbox is within a correctly constructed data
> cell:
> 
> 
>   
> 
> 
> m. 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin Scholl
> Sent: Monday, September 11, 2006 2:26 PM
> To: jQuery Discussion.
> Subject: [jQuery] Checkboxes
> 
> Would anyone have any idea why checkboxes within the THEAD and TFOOT of 
> a table would not be recognized up by the following:
> 
> $(document).ready(function(){
>$("[EMAIL PROTECTED]'checkbox']").click(function() {
>  // do whatever
>  });
>}); // end ready function
> 
> I'm working on a check/uncheck all script:
> 
> http://beta.ksscholl.com/jquery/checkboxes.html
> 
> where the checkboxes in the header and footer of the table should 
> select/deselect all the others. If I put those checkboxes into regular 
> TBODY rows, they work fine. But as soon as the THEAD and TFOOT tags are 
> applied, it's as if the script can't even see that they exist (as tested
> 
> using simple alerts).
> 
> Any ideas?
> 
> Thanks,
> Kevin
> 
> 
> ___
> 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] Client-side query term highlighting demo using jQuery

2006-09-11 Thread Matt Stith
But it could also be used to highlight things on the current page, maybe a live search, and if someone wants to link to a page with the live search results highlighted, then they could add ?q=Terms onto the end.
On 9/11/06, Dossy Shiobara <[EMAIL PROTECTED]> wrote:
On 2006.09.11, Matt Stith <[EMAIL PROTECTED]> wrote:> Great job! Personally, i would check if document.location has a 'q'> set, and if not, use the referrer, That would make it a little more
> usable.More usable how?  The idea behind this code snippet is to highlightsearch query terms on click-through from a SERP.  The SERP's URL iswhat we have in document.referrer, not document.location
.-- Dossy--Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/Panoptic Computer Network   | 
http://panoptic.com/  "He realized the fastest way to change is to laugh at your ownfolly -- then you can let go and quickly move on." (p. 70)___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Only allow PDF File upload

2006-09-11 Thread Matt Stith
Make sure you dont just accept any inputs from that form, its really easy to spoof referrers and all of that, so be sure to check the file's header in your server-side script and make sure its application/pdf.
On 9/11/06, Raffael Luthiger <[EMAIL PROTECTED]> wrote:
Thanks!I did already read http://www.w3.org/TR/html4/interact/forms.html. Butsomehow I didn't see this part. I should read more carefully next time. :(
That's exactly what I needed as a first step.RaffaelKelvin Luck wrote:> How about:>> 
>> A good first step, this should get most browsers limiting what you can> select in the popup choose file dialog,>> Hope this helps,>> Kelvin :)___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Checkboxes

2006-09-11 Thread Kevin Scholl
Actually, have discovered that the problem has nothing at all to do with 
the HTML table structure. Appears to be a conflict with the table 
sorting script that I currently have in place (which will shortly be 
replaced with the excellent JQuery solution from Christian Bach).

Appreciate the look-see, though, Matt!

Kevin

Matt Grimm wrote:
> Works for me if the checkbox is within a correctly constructed data
> cell:
> 
> 
>   
> 
> 
> m. 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin Scholl
> Sent: Monday, September 11, 2006 2:26 PM
> To: jQuery Discussion.
> Subject: [jQuery] Checkboxes
> 
> Would anyone have any idea why checkboxes within the THEAD and TFOOT of 
> a table would not be recognized up by the following:
> 
> $(document).ready(function(){
>$("[EMAIL PROTECTED]'checkbox']").click(function() {
>  // do whatever
>  });
>}); // end ready function
> 
> I'm working on a check/uncheck all script:
> 
> http://beta.ksscholl.com/jquery/checkboxes.html
> 
> where the checkboxes in the header and footer of the table should 
> select/deselect all the others. If I put those checkboxes into regular 
> TBODY rows, they work fine. But as soon as the THEAD and TFOOT tags are 
> applied, it's as if the script can't even see that they exist (as tested
> 
> using simple alerts).
> 
> Any ideas?
> 
> Thanks,
> Kevin
> 
> 
> ___
> 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/


  1   2   >