Re: [jQuery] [PLUGIN] Interface.Draggable zIndex ignored

2007-01-17 Thread Stefan Petre
j. siefer wrote:
> --
> .Draggable({
>   zIndex:1000,
>   ghosting:true,
>   opacity:0.5,
>   containment:[_dtP.left,_dtP.top,_dtP.w,_dtP.h],
>   insideParent:true
> })
> ---
> Hi, 
> i have problems with zIndex while draggin an element. Is there anyting i
> have to watch out for?
>
> greetings
> jac
>   
It's not ignored. This issue will be fixed with jQuery 1.1.1 or you can 
download hacked version of jQuery from Interface website.

Stefan

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


Re: [jQuery] Safari/IE not working at all

2007-01-17 Thread Ⓙⓐⓚⓔ
I'm not the person to ask about IE...IE makes me sneeze!

I was wondering about trailing commas the other day... It caught my
eye, and sure enough safari doesn't like 'em!

do you have the debug menu turned on in Safari? in terminal
defaults write com.apple.Safari IncludeDebugMenu 1
it sure ain't firebug... but it helps!

On 1/17/07, Kenneth Love <[EMAIL PROTECTED]> wrote:
> Jake:
>
> Thanks a lot, that worked great for Safari. Everything is now hidden in IE,
> though, and clicking doesn't show it. Any ideas there?
>
>
> On 1/17/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > all the words look good, but that trailing comma I noticed a while
> > back that firefox permits it...  safari doesn't like it.
> >
> > On 1/17/07, Kenneth Love <[EMAIL PROTECTED]> wrote:
> > > Hey all.
> > >
> > > I have a bit of JQuery magic that works great in Firefox, but not in
> Safari
> > > or IE at all. Here's the code:
> > >
> > > $(document).ready(
> > > function()
> > > {
> > > $('div.yui-u').Sortable({
> > > accept: 'sortable',
> > > helperclass: 'sortHelper',
> > > activeclass : 'sortableactive',
> > > hoverclass : 'sortablehover',
> > > handle: ' h3.list',
> > > tolerance: 'pointer',
> > > });
> > >
> > > $('h3.list').title('Click to expand; drag to reorganize')
> > > $('dl').hide();
> > > $('dd').hide();
> > > $(' h3.list').click(function() {
> > > $(this.parentNode).find('dl').toggle('fast');
> > > $(this).toggleClass('listDown');
> > > return false;
> > > });
> > > $('li dl dt').click(function() {
> > > $(this.parentNode).find('dd').toggle('fast');
> > > });
> > > }
> > > );
> > >
> > >
> > > You can see it in action at
> > > http://www.eyeheartzombies.com/webpen-html/ Any ideas?
> > >
> > > Thanks a lot.
> > >
> > > --
> > > => the blog from beyond <=
> > > => www.eyeheartzombies.com <=
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> > >
> > >
> >
> >
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
>
> --
> => the blog from beyond <=
>  => www.eyeheartzombies.com <=
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


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


Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread Blair McKenzie

Actually, using an id is as good as it gets. Sorry, that's the only thing I
could think of that would effect the speed so much.

Blair

On 1/18/07, byan <[EMAIL PROTECTED]> wrote:



i have page like this






new content always fetch into #cmain ... using $("#cmain").load(url, ...)

what is the best way to speed up the rendering this new content ?

tia,
byan


What kinds of select strings are you using ( $("in here") ). This can have
a
big impact on speed.

Blair


--
View this message in context:
http://www.nabble.com/best-practice-using-jquery.ajax-tf3032402.html#a8425461
Sent from the JQuery mailing list archive at Nabble.com.


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

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


Re: [jQuery] Safari/IE not working at all

2007-01-17 Thread Kenneth Love

Jake:

Thanks a lot, that worked great for Safari. Everything is now hidden in IE,
though, and clicking doesn't show it. Any ideas there?

On 1/17/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:


all the words look good, but that trailing comma I noticed a while
back that firefox permits it...  safari doesn't like it.

On 1/17/07, Kenneth Love <[EMAIL PROTECTED]> wrote:
> Hey all.
>
> I have a bit of JQuery magic that works great in Firefox, but not in
Safari
> or IE at all. Here's the code:
>
> $(document).ready(
> function()
> {
> $('div.yui-u').Sortable({
> accept: 'sortable',
> helperclass: 'sortHelper',
> activeclass : 'sortableactive',
> hoverclass : 'sortablehover',
> handle: ' h3.list',
> tolerance: 'pointer',
> });
>
> $('h3.list').title('Click to expand; drag to reorganize')
> $('dl').hide();
> $('dd').hide();
> $('h3.list').click(function() {
> $(this.parentNode).find('dl').toggle('fast');
> $(this).toggleClass('listDown');
> return false;
> });
> $('li dl dt').click(function() {
> $(this.parentNode).find('dd').toggle('fast');
> });
> }
> );
>
>
> You can see it in action at
> http://www.eyeheartzombies.com/webpen-html/ Any ideas?
>
> Thanks a lot.
>
> --
> => the blog from beyond <=
> => www.eyeheartzombies.com <=
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


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





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


Re: [jQuery] fadeOut text

2007-01-17 Thread Blair McKenzie

The jQuery ajax methods take callbacks which are run when the data is
recieved/loaded, so:
$(...).load(url,params,function(){
  $('.notify',this).fadeOut('slow'); // '.notify',this, looks for .notify
elements inside the element being updated
});

Blair

On 1/17/07, Vaska <[EMAIL PROTECTED]> wrote:


Well, I was close...but still not close enough:

$(document).ready ( function() { $('.notify').fadeOut('slow') });

Works onload - for the obvious reasons.

But, I need this to work any time there is a something with class
'notify'. This is the hard part (I'm reading up on things now). I
also need to pause this, but I think I can throw a setTimeout in
there and all will be ok.

And yeah, it's working fine on a span.

;)



On 16 Jan 2007, at 18:13, James Thomas wrote:

>
> Use  instead of  - that worked for me when I had a similar
> problem.
>
>
> Vaska wrote:
>
>>
>> I'm trying to write my first jquery function using it's rules...it's
>> hard getting started.
>>
>> I want to write a function that is ready at all times for any div's
>> (or perhaps spans's instead) that when they appear they will fade
>> away about ten second later. I'll attach a class to the span called
>> 'notify'...like this...
>>
>> Updated
>>
>> These are appearing via an ajax call already, so they don't appear
>> when the page originally loads...only after an ajax call has been
>> executed.
>>
>> The best I've been able to get so far...no, this doesn't work...I'm
>> hoping somebody can help me move forward with this (my head is
>> spinning here):
>>
>> $(document).ready
>> (
>>  function ()
>>  {
>>  $('span.notify').fadeOut('slow')
>>  }
>> );
>>
>> I don't care if it simply fades out the text or the entire span...or
>> perhaps even innerHTML's the text to an   (there's another
>> idea)...
>>
>> Help! ;)
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/fadeOut-text-
> tf3021748.html#a8394482
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


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

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


Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread byan

i have page like this






new content always fetch into #cmain ... using $("#cmain").load(url, ...)

what is the best way to speed up the rendering this new content ?

tia,
byan


What kinds of select strings are you using ( $("in here") ). This can have a
big impact on speed.

Blair


-- 
View this message in context: 
http://www.nabble.com/best-practice-using-jquery.ajax-tf3032402.html#a8425461
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread Blair McKenzie

What kinds of select strings are you using ( $("in here") ). This can have a
big impact on speed.

Blair

On 1/18/07, byan <[EMAIL PROTECTED]> wrote:



dear all,
i'm using $(elm).load(url, function() {...}) to insert new content, but i
found this cost me extra 3-5 times than
using standar ajax methods, and then insert responseText to elm using
innerHTML.

inserting simple content, using standard ajax cost me 0.2s but using
jquery
cost me 1.1s ... inserting complex content with form/input usually cost me
only 1.2s ... but now cost me 6.6s ...

is there something i should know to avoid this ?

i'm using jquery 1.0.4 ...
using jquery 1.1a only reduce minor time.

thx before, and sorry for my bad english ...

--
View this message in context:
http://www.nabble.com/best-practice-using-jquery.ajax-tf3032402.html#a8425339
Sent from the JQuery mailing list archive at Nabble.com.


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

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


Re: [jQuery] Safari/IE not working at all

2007-01-17 Thread Ⓙⓐⓚⓔ
all the words look good, but that trailing comma I noticed a while
back that firefox permits it...  safari doesn't like it.

On 1/17/07, Kenneth Love <[EMAIL PROTECTED]> wrote:
> Hey all.
>
> I have a bit of JQuery magic that works great in Firefox, but not in Safari
> or IE at all. Here's the code:
>
> $(document).ready(
> function()
> {
> $('div.yui-u').Sortable({
> accept: 'sortable',
> helperclass: 'sortHelper',
> activeclass : 'sortableactive',
> hoverclass : 'sortablehover',
> handle: ' h3.list',
> tolerance: 'pointer',
> });
>
> $('h3.list').title('Click to expand; drag to reorganize')
> $('dl').hide();
> $('dd').hide();
> $('h3.list').click(function() {
> $(this.parentNode).find('dl').toggle('fast');
> $(this).toggleClass('listDown');
> return false;
> });
> $('li dl dt').click(function() {
> $(this.parentNode).find('dd').toggle('fast');
> });
> }
> );
>
>
> You can see it in action at
> http://www.eyeheartzombies.com/webpen-html/ Any ideas?
>
> Thanks a lot.
>
> --
> => the blog from beyond <=
> => www.eyeheartzombies.com <=
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


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


[jQuery] best practice using jquery.ajax

2007-01-17 Thread byan

dear all,
i'm using $(elm).load(url, function() {...}) to insert new content, but i
found this cost me extra 3-5 times than 
using standar ajax methods, and then insert responseText to elm using
innerHTML.

inserting simple content, using standard ajax cost me 0.2s but using jquery
cost me 1.1s ... inserting complex content with form/input usually cost me
only 1.2s ... but now cost me 6.6s ...

is there something i should know to avoid this ?

i'm using jquery 1.0.4 ...
using jquery 1.1a only reduce minor time.

thx before, and sorry for my bad english ...

-- 
View this message in context: 
http://www.nabble.com/best-practice-using-jquery.ajax-tf3032402.html#a8425339
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Safari/IE not working at all

2007-01-17 Thread Kenneth Love

Hey all.

I have a bit of JQuery magic that works great in Firefox, but not in Safari
or IE at all. Here's the code:

$(document).ready(
   function()
   {
   $('div.yui-u').Sortable({
   accept: 'sortable',
   helperclass: 'sortHelper',
   activeclass : 'sortableactive',
   hoverclass : 'sortablehover',
   handle: 'h3.list',
   tolerance: 'pointer',
   });

   $('h3.list').title('Click to expand; drag to reorganize')
   $('dl').hide();
   $('dd').hide();
   $('h3.list').click(function() {
   $(this.parentNode).find('dl').toggle('fast');
   $(this).toggleClass('listDown');
   return false;
   });
   $('li dl dt').click(function() {
   $(this.parentNode).find('dd').toggle('fast');
   });
   }
);


You can see it in action at http://www.eyeheartzombies.com/webpen-html/ Any
ideas?

Thanks a lot.

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


Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread Dave Methvin
As soon as I sent I thought of this.

> width: expression(document.body.clientWidth > 310 ? "300px" : "auto" );
> margin: 10px expression(document.body.clientWidth > 310 ? "auto" : "10px"
) 10px 10px;
>
> You might expect  "10px auto 10px 10px" to work but
> it doesn't; the expression has to be there.

Yes it does, but this is all the expression has to say:

 margin: 10px expression("auto") 10px 10px;

It just seems to need to reapply the "auto" that gets lost at some point.


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


Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread Dave Methvin
I'm glad you brought this up, I was going to need it soon. I ran your test
case (thanks for giving one) and noticed that if you size the window to like
150px and reload it does resize up or down fine until it reaches the >310
case and then it gets stuck. 

> width: expression(document.body.clientWidth > 310 ? "300px" : "auto" );
> margin: 10px;  /* DELETE THIS AND EVERYTHING RESIZES AS EXPECTED */

I think that problem is because the box is over-constrained when clientWidth
is <= 310. You are telling it you want a 10px margin which implies a width
of clientWidth-20px. Perhaps it forces the margins in those cases and does
not recompute it? 

Given that we're talking IE it may not apply, but here is the standard:
http://www.w3.org/TR/REC-CSS2/visudet.html#q6

With that in mind, this seems to work:

 width: expression(document.body.clientWidth > 310 ? "300px" : "auto" );
 margin: 10px expression(document.body.clientWidth > 310 ? "auto" : "10px" )
10px 10px;

You might expect  "10px auto 10px 10px" to work but it doesn't; the
expression has to be there. Firefox seemed to pick up the 10px margin spec
and apply it to all sides, but it might have to be protected in some way to
prevent some browsers from seeing it. Or you could go to conditional
comments.

> The workaround, for some reason, is to set the DOCTYPE
> at HTML 3.2 or below, or to not set the DOCTYPE at all.

At that point it's using the non-standard quirks mode, which probably has
different rules. To paraphrase an old joke, "When people have a problem with
HTML4 Strict in IE, they sometimes say 'Hey, I'll use quirks mode.' Now they
have two problems."


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


Re: [jQuery] Display error if no INPUT radio is checked.

2007-01-17 Thread mohd khairi

$(function(){
$("#myForm").submit(function(){
   var error="";
   $("#myTable tr td:nth-child(even)").each(function(){
 if(!$(this).find("[EMAIL PROTECTED]:checked").size())
   error=error + $(this).prev("td").text() + "";
   });
   $("#error").html(error);
   return error=="";
});});

myTable is the id of your table.

On 1/18/07, Blair McKenzie <[EMAIL PROTECTED]> wrote:


Try
error = error + $(this).parent().parent().find("td:first").text();

Blair

On 1/17/07, Jamal Arbib <[EMAIL PROTECTED]> wrote:
>
> hi i am very new to this group
> i try to display the text of  the first  TD if  no  INPUT radio  of the
> second  TD  is checked.
>
> i try this code , it return all TD 's text.
>
> $(document).ready(function(){
>  var error="";
>   $("#myForm").submit( function() {
>   $("[EMAIL PROTECTED]'radio']").each(function() {
> if(!$(this).checked){
> error = error+
> $(this).parent().parent().find("td").text();
> }
> });
>
>   $("#error").html(error);
>   });
> });
>
> <>
>
> 
> Situation de l hotel  
> 
> insatisfait name='questionnaire[hotel1]'>
> moyen name='questionnaire[hotel1]'>
> bien value='3'  name='questionnaire[hotel1]'>
> tres bien  name='questionnaire[hotel1]'>
> excellent  name='questionnaire[hotel1]'>
>  
>   
>   
> restauration 
>
> 
> insatisfait name='questionnaire[hotel1]'>
> moyen name='questionnaire[hotel1]'>
> bien value='3'  name='questionnaire[hotel1]'>
> tres bien  name='questionnaire[hotel1]'>
> excellent  name='questionnaire[hotel1]'>
>  
>   
> <>
> 
>
> Any help would be appreciated.
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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






--
Regards,
Hairiemx
http://www.hairiemx.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] List styling not working after $.ajax call

2007-01-17 Thread Mungbeans

Compare the html before and after the replace.  If you are using Firefox and
the Web Developer Toolbar you can examine the ajax generated source using
View Source -> View Generated Source.  

You will probably find that the html is different in some way.  Also, if the
styling was added using javascript initially it has to be reapplied after
the ajax call with one of the callback functions.
-- 
View this message in context: 
http://www.nabble.com/List-styling-not-working-after-%24.ajax-call-tf3031632.html#a8424287
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] [PLUGIN] Interface.Draggable zIndex ignored

2007-01-17 Thread j. siefer

--
.Draggable({
zIndex:1000,
ghosting:true,
opacity:0.5,
containment:[_dtP.left,_dtP.top,_dtP.w,_dtP.h],
insideParent:true
})
---
Hi, 
i have problems with zIndex while draggin an element. Is there anyting i
have to watch out for?

greetings
jac
-- 
View this message in context: 
http://www.nabble.com/-PLUGIN--Interface.Draggable-zIndex-ignored-tf3031901.html#a8424127
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Display error if no INPUT radio is checked.

2007-01-17 Thread Blair McKenzie

Try
error = error + $(this).parent().parent().find("td:first").text();

Blair

On 1/17/07, Jamal Arbib <[EMAIL PROTECTED]> wrote:


hi i am very new to this group
i try to display the text of  the first  TD if  no  INPUT radio  of the
second  TD  is checked.

i try this code , it return all TD 's text.

$(document).ready(function(){
 var error="";
  $("#myForm").submit( function() {
  $("[EMAIL PROTECTED]'radio']").each(function() {
if(!$(this).checked){
error = error+
$(this).parent().parent().find("td").text();
}
});

  $("#error").html(error);
  });
});

<>


Situation de l hotel  

insatisfait
moyen
bien
tres bien 
excellent 
 
  
  
restauration 


insatisfait
moyen
bien
tres bien 
excellent 
 
  
<>


Any help would be appreciated.



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

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


Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread tony rasmus

I'm stuck :)

The desired behavior is in Firefox:  When the window size decreases below a
box's max-width value, the box width is "auto" and shrinks.  I think this is
standard: http://www.w3.org/TR/CSS21/visudet.html#min-max-widths

The popular expressions fix to the "IE5/6 CSS max-width" bug is: 
max-width: 300px;  /* For all but IE */
width: expression(document.body.clientWidth > 301 ? "300px" : "auto" ); /*
For IE */

This works fine until I add a margin to the box.  With a margin, the 'else'
statement in the expression is ignored.  In the example above, the width is
stuck at 300px.

The workaround, for some reason, is to set the DOCTYPE at HTML 3.2 or below,
or to not set the DOCTYPE at all.

jQMinMax, a brilliant and needed plugin, unfortunately does not seem to
offer the "auto" shrinking behavior of max-width.

Test case:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
Max-width test

  #resize {
border: medium double black;
max-width: 300px;
width: expression(document.body.clientWidth > 310 ? "300px" : "auto" );
margin: 10px;  /* DELETE THIS AND EVERYTHING RESIZES AS EXPECTED */
  }

Li Europan lingues es membres del sam familie. Lor separat
existentie es un myth. Por scientie, musica, sport etc., li tot Europa usa
li sam vocabularium.






wycats wrote:
> 
> Any reason not to use IE's expressions?
> 
> Perhaps a plugin that created the appropriate expressions would be useful.
> 
> -- Yehuda
> 
> On 1/17/07, tony rasmus <[EMAIL PROTECTED]> wrote:
>>
>>
>> IE5/6 do not support CSS 'max-width'.
>>
>> I love JQuery, and I wonder if there is a way jQuery can help.  Does
>> anyone
>> know of a jQuery fix to IE's lack of 'max-width'?
>>
>> Cheers,
>>
>> -Tony
>>
>> --
>> View this message in context:
>> http://www.nabble.com/jQuery-fix-to-IE%27s-lack-of-%27max-width%27-CSS-support---tf3025554.html#a8405344
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> Yehuda Katz
> Web Developer | Wycats Designs
> (ph)  718.877.1325
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-fix-to-IE%27s-lack-of-%27max-width%27-CSS-support---tf3025554.html#a8423996
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] newb question - JQuery fade and replace

2007-01-17 Thread Blair McKenzie

JQueryFadeSwap(oldStuff, newStuff){
  $(newStuff).hide(); // this handles browser differences, but also gives
you a place to hook it 'out' animations for new
  $(oldStuff).fadeOut(function(){ // you can add a callback to animations
that run when the effect is completed
 swap(oldStuff, newStuff); // your function (runs after old has faded
 $(newStuff).fadeIn(); // new appears after old is removed and old/new
have been swapped
  });
}

Blair

On 1/18/07, James Thomas <[EMAIL PROTECTED]> wrote:



You could use the setTimeout method, giving it enough time to make sure
that
the swap finished successfully.




rplobue wrote:
>
> Im looking for help on how to write a function.  In standard javascript
i
> have 2 elements: oldData, and newData.  Currently i just am swapping the
> two with replaceChild.  However i want to add a [fade-out, replace,
> fade-in] sequence to it with JQuery.
>
> I am wondering is it possible to create a function like this in JQuery
and
> simply call it from a standard javascript function:
>
> JQueryFadeSwap(oldStuff, newStuff){
>
>   newStuff.opacity = 0;
>   oldStuff.fadeOut();
>   swap(oldStuff, newStuff);
>   newStuff.fadeIn();
> }
>
> Can someone give me some input on how to accomplish this?  Thanks!
>
>

--
View this message in context:
http://www.nabble.com/newb-question---JQuery-fade-and-replace-tf3030628.html#a8420990
Sent from the JQuery mailing list archive at Nabble.com.


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

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


[jQuery] Calling webservices via WSDL SOAP

2007-01-17 Thread jquezy

Search for this, but couldn't find an answer.  How do call webservices in
Jquery via a wsdl file?
-- 
View this message in context: 
http://www.nabble.com/Calling-webservices-via-WSDL-SOAP-tf3031039.html#a8421717
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans



Olaf wrote:
> 
> I ask why you replace in script a gif in a png and not use the
> png in HTML!? ( !? == rhetorical ask == no answer necessarily ) ;)
> 

I was playing around with the image formats seeing if they made to a
difference to the way they displayed.  The images were exactly the same. 
The image format didn't make a difference, unfortunately.

!? == rhetorical ask
And there is another convention I wasn't aware of.  
-- 
View this message in context: 
http://www.nabble.com/Form-not-submitting-tf3025179.html#a8422462
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] JQuery and Interface

2007-01-17 Thread Timothy Bowler
Hi,

Im using the slide show from the interface plugin. It all works apart 
from the links.

Im using apache rewrite and also php re-writes. The slide show's url is 
property_details/1 and when clicking on a link goes to #2slideShow/. 
Instead it should be property_details/1#2slideShow. On their demo site 
it works, but it is on a static html page.

Anyone got any ideas?

Thanx in advance

-- 

Timothy M Bowler BSc(Hons) MSc  MIEE | Senior Programmer

Or Multimedia Ltd
Savoy Hill House
Savoy Hill
London
WC2R 0BL

(T) 020 7240 8556
(F) 020 7240 8557

http://www.or-media.com




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


Re: [jQuery] Form not submitting

2007-01-17 Thread Olaf Bosch
Mungbeans schrieb:
> 
> Olaf wrote:
>> For what is this good? You have this in posted HTML!?
>> 
> 
> I'm not sure I understand this question or its tone.  I posted into
> Nabble in text.   I have to remember to replace the <: and > so
> it doesn't print out as html.   Pity Nabble doesn't have a quote or
> code button to wrap around html and code.

I follow the mails per Thunderbird, all the same of write < or <,
better for copy is < and >

Sorry, the tone is not bad meant.

I ask why you replace in script a gif in a png and not use the
png in HTML!? ( !? == rhetorical ask == no answer necessarily ) ;)


-- 
Viele Grüße, Olaf

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

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


Re: [jQuery] Junior Programmers (RE: Proper OOP paradigm / please be friendly)

2007-01-17 Thread Erik Beeson


Never saw Linerider before, that is really cute. Will have to try it on
the
tablet PC.



Far, far off topic now, but since somebody else mentioned it, I might as
well point out this excellent roundup of some of the best Linerider runs:
http://splashcastmedia.com/the-best-of-line-rider-on-youtube

I wish I had that kind of free time...

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


Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans


Olaf wrote:
> 
> For what is this good? You have this in posted HTML!?
> 

I'm not sure I understand this question or its tone.  I posted into Nabble
in text.   I have to remember to replace the <: and > so it doesn't
print out as html.   Pity Nabble doesn't have a quote or code button to wrap
around html and code.

I'll bear the "-" tip in mind.
-- 
View this message in context: 
http://www.nabble.com/Form-not-submitting-tf3025179.html#a8421959
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Form not submitting

2007-01-17 Thread Olaf Bosch
Mungbeans schrieb:

> Thanks, Olaf.  Since last posting I reworked the javascript (pretty much as
> you said):

Your image replace are shit. Looks so:

$("#submit-container").empty().append("");

ATTENTION!!! "-" in Scripts are bad, see image name

For what is this good? You have this in posted HTML!?

-- 
Viele Grüße, Olaf

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

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


Re: [jQuery] Junior Programmers (RE: Proper OOP paradigm / please be friendly)

2007-01-17 Thread Jonathan Sharp

On 1/17/07, Michael Geary <[EMAIL PROTECTED]> wrote:


> > From: Michael Geary
[snip]
They're 10 and 11. We will see if they actually stick with it; they've
only
done a little bit so far. What amazed me was that they actually took an
interest themselves. So far so good...



I can just see their resume's out of college...

"JavaScript Experience: 13 years, expert guru"

dang...

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


Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans

I've finally worked out how to get my image replacement AND my form
validation working.  Here is my form (more or less):

 Sign in 

* required fields







Here is the css: .img_button { cursor: pointer; } Here is the javascript: function submitLoginForm() { if ($("#username").val()=="" ) { alert ("Please complete the username fields."); return false; } else if ($("#passwd").val()=="" ) { alert ("Please complete the password field."); return false; } else { $('#frmLogin')[0].submit(); } } function loadLoginForm() { $("#submit-container").empty().append('Sign in'); $("#js").val("1"); $("#submit").keydown( function() { submitLoginForm(); return false; }).click(function(){ submitLoginForm(); return false; }); } The trick is to wrap the replacement image in an empty link (.. ). Once inside this the form submission through javascript works. -- View this message in context: http://www.nabble.com/Form-not-submitting-tf3025179.html#a8421502 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] can't get accordion to work

2007-01-17 Thread Daniel McBrearty
additionally, I threw some alert boxes into the accordion source, to
see if the code is actually getting there (haven't quite got the hang
of firebug yet ... )

// create private scope with $ alias for jQuery
(function($) {

alert("here"); // this fires

// save reference to plugin method
var plugin = $.fn.Accordion = function(settings) {
  alert("or here"); // so does this ...

yet still no accordian ...


On 1/17/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> hi,
>
> I am trying to get this to fire, but no joy ...
>
> My code is very similar to the example code:
>
> 
>   sitetext
>  to do
>  done
>
>   
>   phrases
> 
>
> .
> .
> .
>
> $(function() { $(".tx_acc").Accordion(); });
>
>
> but nothing happens. Just a plain set of h3's/paras.
>
> If I change to
>
> $(function() { $(".tx_acc").hide(); });
>
> this works, so I know we are selecting.
>
> The Accordion library is definitely there, I include it after jquery
> itself, before the code where I initialise. I can get it and see it
> with the browser.
>
> what else can I check? using Firefox 1.5 under Ubuntu.
>
>
> --
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

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


[jQuery] jQuery 1.1-support for Aptana

2007-01-17 Thread Edwin Martin
Instead of waiting for the new version of Aptana, you can download the
latest jQuery 1.1 scriptdoc-file and documentation for Aptana here:

http://www.bitstorm.org/edwin/jquery/

Edwin Martin

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


[jQuery] can't get accordion to work

2007-01-17 Thread Daniel McBrearty
hi,

I am trying to get this to fire, but no joy ...

My code is very similar to the example code:


  sitetext
 to do
 done

  
  phrases


.
.
.

$(function() { $(".tx_acc").Accordion(); });


but nothing happens. Just a plain set of h3's/paras.

If I change to

$(function() { $(".tx_acc").hide(); });

this works, so I know we are selecting.

The Accordion library is definitely there, I include it after jquery
itself, before the code where I initialise. I can get it and see it
with the browser.

what else can I check? using Firefox 1.5 under Ubuntu.


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

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


Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans



Olaf wrote:
> 
> 
> function submitLoginForm() {
>   //validation is working so I know that the load form function worked
>   // when this do, then is submitted
>if ( ($("#username").val()=="" ) || ($("#passwd").val()=="" )) {
>  alert ("Please complete the username and password fields."); 
>  return false;
>} else {
> 
>//THIS IS THE PART CAUSING TROUBLE
>// what is to do, #username and #passwd are valid
>// what make we now with this??? ;)
>   
> }
> 
> 

Thanks, Olaf.  Since last posting I reworked the javascript (pretty much as
you said):

function submitLoginForm() {
if  ($("#username").val()=="" ) {
alert ("Please complete the username fields."); 
return false;
} else if  ($("#passwd").val()=="" ) {
alert ("Please complete the password field.");  
return false;
} else {
$('#frmLogin')[0].submit();
}
}

function loadLoginForm() {

$("#js").val("1");
$("#submit").keydown( function() { 
submitLoginForm(); 
return false;
}).click(function(){
submitLoginForm();
return false; 
});
}

I tested the functions without the image replacement and discovered that the
whole thing works well when the javascript is called from a submit button,
rather than the image used in the replacement.   So the submit function
can't be called from an image like this:

Sign in

with the submitLoginForm() function attached, but works fine with this:



with the same function attached.

I'm rather bummed by this because it leaves me with a very ugly button with
daggy jaggedy edges.


-- 
View this message in context: 
http://www.nabble.com/Form-not-submitting-tf3025179.html#a8421157
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Junior Programmers (RE: Proper OOP paradigm / please be friendly)

2007-01-17 Thread Michael Geary
> > From: Michael Geary
> > Just to clarify, my daughters don't actually read the 
> > jQuery list - yet. Their goal is to make an online
> > computer game for some of their friends to play.
> > Right now they're just learning about variables and 
> > loops and a bit of HTML and CSS. Hopefully they will
> > be among the youngest jQuery users soon.

> From: Mike Alsup
> Jeez Mike, way to make me feel even older. My eleven
> year olds haven't a clue what JavaScript is, but they're
> pretty good at linerider!  (http://www.linerider.com/)

Mike, not to worry, there are good odds that I'm older than you!

Never saw Linerider before, that is really cute. Will have to try it on the
tablet PC.

> From: Christopher Jordan
> How old are they Mike? I hope someday that I have kids
> who dig this stuff as much as I do. It'll be neat to see
> where they could take it. :o)

They're 10 and 11. We will see if they actually stick with it; they've only
done a little bit so far. What amazed me was that they actually took an
interest themselves. So far so good...

-Mike


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


Re: [jQuery] newb question - JQuery fade and replace

2007-01-17 Thread James Thomas

You could use the setTimeout method, giving it enough time to make sure that
the swap finished successfully.




rplobue wrote:
> 
> Im looking for help on how to write a function.  In standard javascript i
> have 2 elements: oldData, and newData.  Currently i just am swapping the
> two with replaceChild.  However i want to add a [fade-out, replace,
> fade-in] sequence to it with JQuery.
> 
> I am wondering is it possible to create a function like this in JQuery and
> simply call it from a standard javascript function:
> 
> JQueryFadeSwap(oldStuff, newStuff){
>  
>   newStuff.opacity = 0;
>   oldStuff.fadeOut();
>   swap(oldStuff, newStuff);
>   newStuff.fadeIn();
> }
> 
> Can someone give me some input on how to accomplish this?  Thanks!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/newb-question---JQuery-fade-and-replace-tf3030628.html#a8420990
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Fotonotes-like plugin?

2007-01-17 Thread Michael E. Carluen
Thanks Jorn.  I didn't even notice those annotations.  Its definitely a good
start.  I appreciate the response... Michael



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jörn Zaefferer
> Sent: Wednesday, January 17, 2007 1:48 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Fotonotes-like plugin?
> 
> Michael E. Carluen schrieb:
> >
> > Hello folks.
> >
> > Somewhere buried in the list archive is an inquiry regarding a jQuery
> > plugin adaptation of Fotonotes.net. I can not however, confirm if
> > there were any responses. Is anyone aware of, or is working on a
> > similar photo annotation plugin for jQuery?
> >
> Maybe something to start with:
> http://interface.eyecon.ro/demos/drag_vr.html
> 
> --
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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


Re: [jQuery] Form not submitting

2007-01-17 Thread Olaf Bosch
Mungbeans schrieb:

try this:

function submitLoginForm() {
  //validation is working so I know that the load form function worked
  // when this do, then is submitted
   if ( ($("#username").val()=="" ) || ($("#passwd").val()=="" )) {
 alert ("Please complete the username and password fields.");   
 return false;
   } else {

   //THIS IS THE PART CAUSING TROUBLE
   // what is to do, #username and #passwd are valid
   // what make we now with this??? ;)

}

-- 
Viele Grüße, Olaf

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

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


[jQuery] newb question - JQuery fade and replace

2007-01-17 Thread rplobue

Im looking for help on how to write a function.  In standard javascript i
have 2 elements: oldData, and newData.  Currently i just am swapping the two
with replaceChild.  However i want to add a [fade-out, replace, fade-in]
sequence to it with JQuery.

I am wondering is it possible to create a function like this in JQuery and
simply call it from a standard javascript function:

JQueryFadeSwap(oldStuff, newStuff){
 
  newStuff.opacity = 0;
  oldStuff.fadeOut();
  swap(oldStuff, newStuff);
  newStuff.fadeIn();
}

Can someone give me some input on how to accomplish this?  Thanks!

-- 
View this message in context: 
http://www.nabble.com/newb-question---JQuery-fade-and-replace-tf3030628.html#a8420399
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Fotonotes-like plugin?

2007-01-17 Thread Jörn Zaefferer
Michael E. Carluen schrieb:
>
> Hello folks.
>
> Somewhere buried in the list archive is an inquiry regarding a jQuery 
> plugin adaptation of Fotonotes.net. I can not however, confirm if 
> there were any responses. Is anyone aware of, or is working on a 
> similar photo annotation plugin for jQuery?
>
Maybe something to start with: http://interface.eyecon.ro/demos/drag_vr.html

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Update for jQuery 1.1 compatibility?

2007-01-17 Thread Jan Sorgalla


agent2026 wrote:
> 
> Hi Jan,
> 
> Testing in IE6/7 the carousel breaks with jQuery 1.1 (with or without the
> 1.0 compatibility plugin):
> 
> Line: 30
> Char: 2
> Error: Type Mismatch
> Code: 0
> 
> 
> Still works with 1.0.4 though.
> 
> Adam
> 
Hi,

thats because of this bug: http://jquery.com/dev/bugs/bug/843/
I'm working on a new version but if you want to fix right now, search for
"zIndex" in jCrousel an replace the number value with a string value.

For example:

"zIndex": "2",

Surround the value argument with quotes.

Jan
-- 
View this message in context: 
http://www.nabble.com/Update-for-jQuery-1.1-compatibility--tf3014033.html#a8420001
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans



malsup wrote:
> 
> 
> You don't *have* to have a submit button on the form, but you really
> should.  What if javascript is disabled?  You still want the form to
> work, right?
> 
> You can use your image as a submit element if you like:
> 
> 
> 

Actually my code starts off with an image submit button (and the form works
well without javasript), but javascript swaps it for a standard image
because the transparency for the image doesn't work when it is used in an
input field.   Here is the code (I renamed the form from "login" to
"frmLogin"):

The javascript:

function submitLoginForm() {
 //validation is working so I know that the load form function worked
  if ( ($("#username").val()=="" ) || ($("#passwd").val()=="" )) {
alert ("Please complete the username and password fields.");
return false;
  }
  //THIS IS THE PART CAUSING TROUBLE
  $('#frmLogin')[0].submit();

}

function loadLoginForm() {
$("#submit-container").empty().append(" \"images/sign-in.png\" ");
$("#submit").keydown( function() { 
 //actually I'd like this event only to be linked to the enter key - haven't
worked that one out yet
submitLoginForm(); 
}).click(function(){
submitLoginForm(); 
});
}

Teensy bit of CSS:
.img_button {
cursor: pointer;
}

And finally the form:




 Sign in 

* Required fields

User name:



Password: *



Remember me
 



 





-- 
View this message in context: 
http://www.nabble.com/Form-not-submitting-tf3025179.html#a8419439
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Christopher Jordan
How old are they Mike? I hope someday that I have kids who dig this 
stuff as much as I do. It'll be neat to see where they could take it. :o)


Michael Geary wrote:
Guys, I don't appreciate the profanity. My 10 and 11 year old 
daughters are learning JavaScript. I don't want them to be 
subjected to language like that.



Just to clarify, my daughters don't actually read the jQuery list - yet.
Their goal is to make an online computer game for some of their friends to
play. Right now they're just learning about variables and loops and a bit of
HTML and CSS. Hopefully they will be among the youngest jQuery users soon.
:-)

-Mike


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

  


--
http://cjordan.info

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


[jQuery] Fotonotes-like plugin?

2007-01-17 Thread Michael E. Carluen
Hello folks. 

Somewhere buried in the list archive is an inquiry regarding a jQuery plugin
adaptation of Fotonotes.net. I can not however, confirm if there were any
responses. Is anyone aware of, or is working on a similar photo annotation
plugin for jQuery? 

Thanks, 

Michael

 

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


[jQuery] Strange bug with jquery 1.1 and i.e 6

2007-01-17 Thread Matthieu BARBE

See this page in action with i.e 6 :
http://www.mes-anniversaires.com/jquery/

Internet explorer don't load correctly... this script test.js (
http://www.mes-anniversaires.com/jquery/test.js) fails this navigator but
with firefox and opera, it's ok, why ?

Thx

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


Re: [jQuery] Using JQuery to fix Flash z-index problem?

2007-01-17 Thread Geoffrey Knutzen
Note, this also works for safari on a mac

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of rolfsf
Sent: Wednesday, January 17, 2007 11:54 AM
To: discuss@jquery.com
Subject: Re: [jQuery] Using JQuery to fix Flash z-index problem?


Thanks SeViR! I'll give it a try

r.



SeViR wrote:
> 
> I use SWFObject to insert Flash.
> 
> in html I have:
>  style="width:100px;height:200px">If you can see this, then you have not 
> flash.
> 
> and javascript:
> 
> $("div.flash").each(function(){
>   this.style.zIndex = "1";
>   this.style.visibility = "visible";
>   var so = new SWFObject(this.title, this.id,
this.style.width,
> this.style.height, "8", "#ff");
>   so.addParam("wmode", "transparent");
>   so.addParam("bgcolor", "#FF");
>   so.write(this.id);
>   });
> 
> Really only you need set wmode param to "transparent" and set some
> bgcolor.
> 
> That only works in Windows Flash plugin, the Linux version doesn't 
> support wmode :(
> 
> - Original Message -
> Subject: [jQuery] Using JQuery to fix Flash z-index problem?
> Date: Wed, 17 Jan 2007 11:19:59 -0800 (PST)
> From: rolfsf
> 
> 
> I'm using toggle to show/hide a div that partially overlaps a flash movie.
> Apparently, flash, being active content, will always rise to the top of
> the
> stacking order. Since I can see that my div will sit on top until the
> flash
> loops or updates, I'm wondering if there is a javascript or jquery method
> of
> keeping the div active and therefore on top? Or, has anyone found a
> reliable method for forcing flash back into the normal stacking order?
> -- 
> View this message in context: 
>
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.h
tml#a8416980
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> -- 
> Saludos,
>  José Francisco Rives Lirola 
> 
>  Grupo de Apoyo a la Tele-Enseñanza
>  http://www.um.es/atica/gat
>  ext: 8277
>  
>  Edificio ATICA
>  Campus de Espinardo
>  Universidad de Murcia
>  30100 Murcia-España
> 
> 
> -- 
> Best Regards,
>  José Francisco Rives Lirola 
> 
>  SeViR CW · Computer Design
>  http://www.sevir.org
>   
>  Murcia - Spain
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context:
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.h
tml#a8417691
Sent from the JQuery mailing list archive at Nabble.com.


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


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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Mike Alsup
Jeez Mike, way to make me feel even older.My eleven year olds
haven't a clue what JavaScript is, but they're pretty good at
linerider!  (http://www.linerider.com/)

Mike


On 1/17/07, Michael Geary <[EMAIL PROTECTED]> wrote:
> > Guys, I don't appreciate the profanity. My 10 and 11 year old
> > daughters are learning JavaScript. I don't want them to be
> > subjected to language like that.
>
> Just to clarify, my daughters don't actually read the jQuery list - yet.
> Their goal is to make an online computer game for some of their friends to
> play. Right now they're just learning about variables and loops and a bit of
> HTML and CSS. Hopefully they will be among the youngest jQuery users soon.
> :-)
>
> -Mike
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Form not submitting

2007-01-17 Thread Mungbeans



dave.methvin wrote:
> 
> 
> Do you have a form with the id of "login"? If not, use a different
> selector
> to get it. The key is to call the submit method on the underlying DOM
> object
> of the form.
> 
> $("selector-to-your-form")[0].submit()
> 
> 

Yes it is there.  Absolutely, definitely.
-- 
View this message in context: 
http://www.nabble.com/Form-not-submitting-tf3025179.html#a8419229
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Interface: Draggable Ghost should only show the border

2007-01-17 Thread Webunity | Gilles van den Hoven
I have to update my window plugin some time.. All those nice jQuery 
releases make my life so much easier!

Thanx you guys for activly devving this!!

Stefan Petre wrote:
> floepi wrote:
>   
>> Hi all,
>>
>> i was wondering how i can set my draggable options so that while dragging a
>> copy of the element is made which shows only the border dimensions of it's
>> parent element. 
>>
>> Gilles window plugin (http://gilles.jquery.com/window/) does that really
>> nicely. 
>>
>> My problem is, that the modal divs i want to drag around contain a lot of
>> data like forms and such. While dragging the browser update is really bad
>> and i get this stutter effect, which makes the overall feel quite bad. 
>>
>> Hope somebody can give me a hint. 
>>
>> Cheers
>>
>> Phil
>>
>>
>>   
>> 
> Hi Phill,
>
> I change draggables so now you can drag only a frame by setting option 
> 'frameClass' with the name for the frame's class. This will be released 
> at the end of the week.
>
> Stefan
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   


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


Re: [jQuery] Interface: Draggable Ghost should only show the border

2007-01-17 Thread Stefan Petre
floepi wrote:
> Hi all,
>
> i was wondering how i can set my draggable options so that while dragging a
> copy of the element is made which shows only the border dimensions of it's
> parent element. 
>
> Gilles window plugin (http://gilles.jquery.com/window/) does that really
> nicely. 
>
> My problem is, that the modal divs i want to drag around contain a lot of
> data like forms and such. While dragging the browser update is really bad
> and i get this stutter effect, which makes the overall feel quite bad. 
>
> Hope somebody can give me a hint. 
>
> Cheers
>
> Phil
>
>
>   
Hi Phill,

I change draggables so now you can drag only a frame by setting option 
'frameClass' with the name for the frame's class. This will be released 
at the end of the week.

Stefan

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


Re: [jQuery] Site developers section

2007-01-17 Thread John Resig
> It seems like the development section kind of vanished since the new
> jQuery 1.1 redesign. I don't find any link on browsing the tickets
> database... which is kind of annoying because I would like to track
> tickets I've submitted.

Sorry about the missing links, they should be back soon.

> BTW, what would be the "official" process to submit feature requests
> or enhancements ? Should we send them to the mailing-list first or
> create a ticket instead ?

You should bring it up on the dev list - where it can be discussed in
depth (then moved to a ticket where, if it gets "approved").
http://jquery.com/mailman/listinfo/dev_jquery.com

--John

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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Michael Geary
> Guys, I don't appreciate the profanity. My 10 and 11 year old 
> daughters are learning JavaScript. I don't want them to be 
> subjected to language like that.

Just to clarify, my daughters don't actually read the jQuery list - yet.
Their goal is to make an online computer game for some of their friends to
play. Right now they're just learning about variables and loops and a bit of
HTML and CSS. Hopefully they will be among the youngest jQuery users soon.
:-)

-Mike


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


[jQuery] Site developers section

2007-01-17 Thread Sébastien Pierre
Hi all,

It seems like the development section kind of vanished since the new  
jQuery 1.1 redesign. I don't find any link on browsing the tickets  
database... which is kind of annoying because I would like to track  
tickets I've submitted.

BTW, what would be the "official" process to submit feature requests  
or enhancements ? Should we send them to the mailing-list first or  
create a ticket instead ?

Thanks,

  -- Sébastien
  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Slow Selector... What should I do?

2007-01-17 Thread Christopher Jordan
Thanks for the advice Brian. I hope it will too. What do you consider a 
big DOM? I'm working with three calendars on screen at a time. Given a 
three month span that's somewhere in the neighborhood of 90 cells (give 
or take). Of course there's three divs on the right of those, and spans, 
checkboxes, dropdowns, etc. inside of those... I guess it could be sort 
of large.


Well, I really hope narrowing the field like you suggest will do the trick.

Thanks heaps!
Chris

Brian Miller wrote:

You can still start off by grabbing your table, and that will make each
individual search for a td quicker.

mytable = $('#mytable');
...
FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]", mytable);

Or, even better, you can grab all the td elements that have a dateValue in
the first place.

mycells = $('[EMAIL PROTECTED]');
...
FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]", mycells);


As for the rest...  it looks like it would be painful to refactor your
whoe method just to get the selection outside of the iteration.  So,
hopefully, you'll get enough help out of limiting the context that your
speed will go down by a good bit.  Given that it's taking 3 seconds, I'm
guessing that you're running this on a relatively large DOM.  The bigger
the DOM, the more benefit you get from limiting the context.

- Brian


  

Brian,

The only problem I see with that is that the dates come from the object
that I'm looping over.

I maybe should have included the entire for loop in my original post:

for(i = 0; i < ThisRecordCount; i++){
ShiftDate = "{ts '" +
CFJS.ListFirst(FlexOrderData.data.SHIFTDATE[i],".") + "'}";
TempDate = $.odbcDateTimeParse(ShiftDate);
BackgroundColor = "#ThisWeekdayColor#";
if(!(TempDate.getDay() % 6)){
BackgroundColor = "#ThisWeekendColor#";
}

FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");

FlexCell.removeClass("CalendarCellDisabled").addClass("CalendarCellEnabled").attr("state",
"Enabled").css({background:BackgroundColor, color:"#someColdFusionVar#"});
}

I don't know the ShiftDates ahead of time, nor how many there will be.
Can I still apply you possible solution?

Thanks,
Chris

Brian Miller wrote:


You can comma-delimit the selector, so you can package up all the td
elements you're looking for into one $ function.

Also, if you limit your context (to, say, the table in question), it'll
help speed things up.

mytable = $("#mytable");
FlexCells = $("[EMAIL PROTECTED]" + ShiftDate + "], [EMAIL PROTECTED]" +
ShiftDate2 + "]", mytable);

This is a good start.  Once you have all your elements, you can iterate
thorugh them with $.each(), which is relatively speedy.

- Brian



  

Hi gang,

I've got a for loop in which I have jQuery select a different DOM
element for each iteration. The code I've got that selects the element
is:

FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");

So far, it's taking about three seconds to complete a loop of fifteen
iterations. Yikes! :o( If I remove the above line from the code, it's
lightning quick!

I should mention that the three second approximation is *after* I
upgraded to the very latest jQuery build (jquery-latest.pack.js... from
the jquery.com main page). So upgrading did give me a slight
performance
increase.

Can anybody help me speed this up?

Thanks,
Chris

--
http://www.cjordan.info





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

  


--
http://cjordan.info

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


Re: [jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Nathaniel See
Looks good FF2.0.0.1, IE 6 On winXP SP2. Very nice.

Mika Tuupola wrote:
> I just released new version of jEditable plugin which works with  
> jQuery 1.1. I would appreciate feedback from people using Windows  
> browsers. Download [1] and test [2] links below:
>
> [1] http://www.appelsiini.net/~tuupola/javascript/jEditable/
> [2] http://www.appelsiini.net/~tuupola/jquery/jeditable/
>
> Thank you in advance!
>
> --
> Mika Tuupola  http://www.appelsiini.net/~tuupola/
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>   

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


Re: [jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Ⓙⓐⓚⓔ
I would have done it the same way... but return this, instead of
return false (the chain breaker)

On 1/17/07, Mika Tuupola <[EMAIL PROTECTED]> wrote:
>
> On Jan 17, 2007, at 9:40 PM, Ⓙⓐⓚⓔ wrote:
>
> > I did notice a few thing though,
> >in the case of a degenerate this.length == 0, you break the chain.
> >you can get the nodeName, so you shouldn't have to pass it
>
> This is related bug:
>
> http://jquery.com/dev/bugs/bug/811/
>
> Code is there to prevent "prevent elem has no properties" if you try
> to attach editable to nonexisting element. For example
>
> $('#nosuch').editable();
>
> With 1.1 I cant check it with:
>
> if (jQuery(this).attr('id') == null)
>
> this is why I am using
>
>   if (this.length == 0)
>
>
> Haven't tried latest from svn though.
>
> --
> Mika Tuupola  http://www.appelsiini.net/~tuupola/
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] $.ajax call works with 1.04 but not with 1.1

2007-01-17 Thread Sasha Oros

Jörn,


I found out that when I use 1.04 a 'test' variable gets a list of the user
names, but when I switch to 1.1 it gets "" value.

var test = $("/viewentries/viewentry/[EMAIL PROTECTED]'1']",
xml).text();




Jörn Zaefferer wrote:
> 
> Sasha Oros schrieb:
>> By the way, all the variable values (url, columnNo & elementID) are the
>> same
>> for both jQuery libraries.
>>   
> Can you post a test page? Can't spot any obvious errors in your code.
> 
> -- 
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%24.ajax-call-works-with-1.04-but-not-with-1.1-tf3016787.html#a8417846
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Mika Tuupola

On Jan 17, 2007, at 9:40 PM, Ⓙⓐⓚⓔ wrote:

> I did notice a few thing though,
>in the case of a degenerate this.length == 0, you break the chain.
>you can get the nodeName, so you shouldn't have to pass it

This is related bug:

http://jquery.com/dev/bugs/bug/811/

Code is there to prevent "prevent elem has no properties" if you try  
to attach editable to nonexisting element. For example

$('#nosuch').editable();

With 1.1 I cant check it with:

if (jQuery(this).attr('id') == null)

this is why I am using

  if (this.length == 0)


Haven't tried latest from svn though.

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




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


Re: [jQuery] Using JQuery to fix Flash z-index problem?

2007-01-17 Thread rolfsf

Thanks SeViR! I'll give it a try

r.



SeViR wrote:
> 
> I use SWFObject to insert Flash.
> 
> in html I have:
>  style="width:100px;height:200px">If you can see this, then you have not 
> flash.
> 
> and javascript:
> 
> $("div.flash").each(function(){
>   this.style.zIndex = "1";
>   this.style.visibility = "visible";
>   var so = new SWFObject(this.title, this.id, this.style.width,
> this.style.height, "8", "#ff");
>   so.addParam("wmode", "transparent");
>   so.addParam("bgcolor", "#FF");
>   so.write(this.id);
>   });
> 
> Really only you need set wmode param to "transparent" and set some
> bgcolor.
> 
> That only works in Windows Flash plugin, the Linux version doesn't 
> support wmode :(
> 
> - Original Message -
> Subject: [jQuery] Using JQuery to fix Flash z-index problem?
> Date: Wed, 17 Jan 2007 11:19:59 -0800 (PST)
> From: rolfsf
> 
> 
> I'm using toggle to show/hide a div that partially overlaps a flash movie.
> Apparently, flash, being active content, will always rise to the top of
> the
> stacking order. Since I can see that my div will sit on top until the
> flash
> loops or updates, I'm wondering if there is a javascript or jquery method
> of
> keeping the div active and therefore on top? Or, has anyone found a
> reliable method for forcing flash back into the normal stacking order?
> -- 
> View this message in context: 
> http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.html#a8416980
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> -- 
> Saludos,
>  José Francisco Rives Lirola 
> 
>  Grupo de Apoyo a la Tele-Enseñanza
>  http://www.um.es/atica/gat
>  ext: 8277
>  
>  Edificio ATICA
>  Campus de Espinardo
>  Universidad de Murcia
>  30100 Murcia-España
> 
> 
> -- 
> Best Regards,
>  José Francisco Rives Lirola 
> 
>  SeViR CW · Computer Design
>  http://www.sevir.org
>   
>  Murcia - Spain
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.html#a8417691
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] jQuery 1.1, Site, Docs, Surprise

2007-01-17 Thread Marc Jansen
Hi list,

I just wanted to give my two cents (I'm not even sure whether this has 
been discussed already):

the new layout (which I like very much!) is looking somehow strange in 
IE 5.01 and 5.5:

http://browsershots.org/website/http://jquery.com/#success

IE 5.01: 
http://browsershots.org/screenshots/717dfed3f041c2dc1be7e665ae1cf371/
IE 5.5: 
http://browsershots.org/screenshots/9eb5f8ff0af5bda07ff845662d57d145/

What do we do? Ignore?

-- Marc




Karl Swedberg schrieb:
> Admittedly there is some more work that can be done to ensure a 
> pleasant experience with larger text sizes.  
>
> However, I think that reports of the layout's death are greatly 
> exaggerated. ;-)
>
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
> On Jan 16, 2007, at 9:11 PM, abba bryant wrote:
>
>>
>> Also, in FF1.5 / FF2 the layout dies after a single text size increase.
>>
>> I would like to voice the opinion that this library of all of them should
>> advocate and design with standards and useability in mind. It 
>> wouldn't have
>> been ( won't be ) that hard to design so that I can increase my font size
>> 2-3 times, much less once.
>> -- 
>> View this message in context: 
>> http://www.nabble.com/jQuery-1.1%2C-Site%2C-Docs%2C-Surprise-tf3012331.html#a8402871
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com 
>> http://jquery.com/discuss/
>
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   


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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Michael Geary
>   // this is .n much too complicated!

Guys, I don't appreciate the profanity. My 10 and 11 year old daughters are
learning JavaScript. I don't want them to be subjected to language like
that.

When you've offended some people already, offending more is probably not the
best way to fix it. :-)

Still friends, just please keep the language clean,

-Mike


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


Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-17 Thread Aaron Heimlich

On 1/17/07, Andrea Ercolino <[EMAIL PROTECTED]> wrote:


Could you please confirm that the page you see in FF and IE both show
colored code? You'll begin to think I'm pedant, but in FF I see colored
code, no matter if I reload. On the contrary, in IE7 I can see at first
black code, and after a reload the page disappears and the progress bar
keeps loading, and loading, and loading... (it never stops)



I'm getting something similar in IE7 as well (FF and Opera seem fine). A
"View Source" reveals this:



and that's it.

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


Re: [jQuery] Using JQuery to fix Flash z-index problem?

2007-01-17 Thread SeViR
I use SWFObject to insert Flash.

in html I have:
If you can see this, then you have not 
flash.

and javascript:

$("div.flash").each(function(){
this.style.zIndex = "1";
this.style.visibility = "visible";
var so = new SWFObject(this.title, this.id, this.style.width, 
this.style.height, "8", "#ff");
so.addParam("wmode", "transparent");
so.addParam("bgcolor", "#FF");
so.write(this.id);
});

Really only you need set wmode param to "transparent" and set some bgcolor.

That only works in Windows Flash plugin, the Linux version doesn't 
support wmode :(

- Original Message -
Subject: [jQuery] Using JQuery to fix Flash z-index problem?
Date: Wed, 17 Jan 2007 11:19:59 -0800 (PST)
From: rolfsf


I'm using toggle to show/hide a div that partially overlaps a flash movie.
Apparently, flash, being active content, will always rise to the top of the
stacking order. Since I can see that my div will sit on top until the flash
loops or updates, I'm wondering if there is a javascript or jquery method of
keeping the div active and therefore on top? Or, has anyone found a
reliable method for forcing flash back into the normal stacking order?
-- 
View this message in context: 
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.html#a8416980
Sent from the JQuery mailing list archive at Nabble.com.


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

-- 
Saludos,
 José Francisco Rives Lirola 

 Grupo de Apoyo a la Tele-Enseñanza
 http://www.um.es/atica/gat
 ext: 8277
 
 Edificio ATICA
 Campus de Espinardo
 Universidad de Murcia
 30100 Murcia-España


-- 
Best Regards,
 José Francisco Rives Lirola 

 SeViR CW · Computer Design
 http://www.sevir.org
  
 Murcia - Spain


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


Re: [jQuery] Using JQuery to fix Flash z-index problem?

2007-01-17 Thread rolfsf

Thanks Geoffrey - I tried that, as I had read it elsewhere, but it didn't
work. Perhaps I've got a typo somewhere - I'll go back and look again.


Geoffrey Knutzen wrote:
> 
> I think you need to add the parameter wmode:"transparent" to your
> embed/object tag. That will allow a div to go over the flash movie.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of rolfsf
> Sent: Wednesday, January 17, 2007 11:20 AM
> To: discuss@jquery.com
> Subject: [jQuery] Using JQuery to fix Flash z-index problem?
> 
> 
> I'm using toggle to show/hide a div that partially overlaps a flash movie.
> Apparently, flash, being active content, will always rise to the top of
> the
> stacking order. Since I can see that my div will sit on top until the
> flash
> loops or updates, I'm wondering if there is a javascript or jquery method
> of
> keeping the div active and therefore on top?  Or, has anyone found a
> reliable method for forcing flash back into the normal stacking order?
> -- 
> View this message in context:
> http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.h
> tml#a8416980
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.html#a8417488
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Ⓙⓐⓚⓔ
that's a beautiful piece of jQuery code! It does the job, it's short,
and it just works! I look forward to using it!

I did notice a few thing though,
   in the case of a degenerate this.length == 0, you break the chain.
   you can get the nodeName, so you shouldn't have to pass it
   you have different post & get attibutes,where 1 would do,I'd rather
pass in the type myself.

BUT boy oh boy it's sweet! congrats!

On 1/17/07, Mika Tuupola <[EMAIL PROTECTED]> wrote:
> I just released new version of jEditable plugin which works with
> jQuery 1.1. I would appreciate feedback from people using Windows
> browsers. Download [1] and test [2] links below:
>
> [1] http://www.appelsiini.net/~tuupola/javascript/jEditable/
> [2] http://www.appelsiini.net/~tuupola/jquery/jeditable/
>
> Thank you in advance!
>
> --
> Mika Tuupola  http://www.appelsiini.net/~tuupola/
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] JQuery FX set an element to display block in progress ...

2007-01-17 Thread Brandon Aaron
We are looking into refactoring the code in FX. This has been brought
up a couple of times that display: block is not necessary for the
opacity animations. I'll see if I can get a temporary patch together
for this.

--
Brandon Aaron

On 1/17/07, Microtoby <[EMAIL PROTECTED]> wrote:
> Thanks for your reply, I'm using the fadeTo property.
>
> Regards,
> Microtoby
> 2007-1-17
>
> 2007/1/17, Brandon Aaron <[EMAIL PROTECTED]>:
> > What property or properties are you animating?
> >
> > --
> > Brandon Aaron
> >
> > On 1/16/07, Microtoby < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > > When using fx of JQuery, animate will set display of an element to block
> in
> > > progress,
> > >
> > > This is a bad thing, so I must wrap another element.
> > >
> > > Is there any way to use this correctly?
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Yours,
> > >
> > > Microtoby
> > >
> > > 2007-1-17
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> > >
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

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


[jQuery] Interface: Draggable Ghost should only show the border

2007-01-17 Thread floepi

Hi all,

i was wondering how i can set my draggable options so that while dragging a
copy of the element is made which shows only the border dimensions of it's
parent element. 

Gilles window plugin (http://gilles.jquery.com/window/) does that really
nicely. 

My problem is, that the modal divs i want to drag around contain a lot of
data like forms and such. While dragging the browser update is really bad
and i get this stutter effect, which makes the overall feel quite bad. 

Hope somebody can give me a hint. 

Cheers

Phil


-- 
View this message in context: 
http://www.nabble.com/Interface%3A-Draggable-Ghost-should-only-show-the-border-tf3029309.html#a8417085
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Using JQuery to fix Flash z-index problem?

2007-01-17 Thread Geoffrey Knutzen
I think you need to add the parameter wmode:"transparent" to your
embed/object tag. That will allow a div to go over the flash movie.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of rolfsf
Sent: Wednesday, January 17, 2007 11:20 AM
To: discuss@jquery.com
Subject: [jQuery] Using JQuery to fix Flash z-index problem?


I'm using toggle to show/hide a div that partially overlaps a flash movie.
Apparently, flash, being active content, will always rise to the top of the
stacking order. Since I can see that my div will sit on top until the flash
loops or updates, I'm wondering if there is a javascript or jquery method of
keeping the div active and therefore on top?  Or, has anyone found a
reliable method for forcing flash back into the normal stacking order?
-- 
View this message in context:
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.h
tml#a8416980
Sent from the JQuery mailing list archive at Nabble.com.


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


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


Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-17 Thread Andrea Ercolino


Christof Donat wrote:
> 
> Maybe it has to do with your security-setings in IE. You need to allow
> scripts 
> to access "secure" ActiveX-Controls, as you need for all ajax stuff. 
> Otherwise there will of course not be any chance to get an XMLHttpRequest 
> object.
> 

But that cannot be the case because I tested your page and it worked... 
so my IE security-settings must be OK for jsPAX.

Could you please confirm that the page you see in FF and IE both show
colored code? You'll begin to think I'm pedant, but in FF I see colored
code, no matter if I reload. On the contrary, in IE7 I can see at first
black code, and after a reload the page disappears and the progress bar
keeps loading, and loading, and loading... (it never stops)

I've put a test page here:
http://www.mondotondo.com/test/chili/test-jspax.html

-- 
View this message in context: 
http://www.nabble.com/dynamic-loading-of-jquery.js-into-my-web-page-tf2905089.html#a8417084
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Sam Sherlock

all working in FF2 & IE6 on windows 2 k
Opera 9 also all working appart from basic usage, the otthers work fine some
odd in that.

fantastic stuff, nice work - S

On 17/01/07, Mika Tuupola <[EMAIL PROTECTED]> wrote:


I just released new version of jEditable plugin which works with
jQuery 1.1. I would appreciate feedback from people using Windows
browsers. Download [1] and test [2] links below:

[1] http://www.appelsiini.net/~tuupola/javascript/jEditable/
[2] http://www.appelsiini.net/~tuupola/jquery/jeditable/

Thank you in advance!

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




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

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


[jQuery] Using JQuery to fix Flash z-index problem?

2007-01-17 Thread rolfsf

I'm using toggle to show/hide a div that partially overlaps a flash movie.
Apparently, flash, being active content, will always rise to the top of the
stacking order. Since I can see that my div will sit on top until the flash
loops or updates, I'm wondering if there is a javascript or jquery method of
keeping the div active and therefore on top?  Or, has anyone found a
reliable method for forcing flash back into the normal stacking order?
-- 
View this message in context: 
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.html#a8416980
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Slow Selector... What should I do?

2007-01-17 Thread Brian Miller
You can still start off by grabbing your table, and that will make each
individual search for a td quicker.

mytable = $('#mytable');
...
FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]", mytable);

Or, even better, you can grab all the td elements that have a dateValue in
the first place.

mycells = $('[EMAIL PROTECTED]');
...
FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]", mycells);


As for the rest...  it looks like it would be painful to refactor your
whoe method just to get the selection outside of the iteration.  So,
hopefully, you'll get enough help out of limiting the context that your
speed will go down by a good bit.  Given that it's taking 3 seconds, I'm
guessing that you're running this on a relatively large DOM.  The bigger
the DOM, the more benefit you get from limiting the context.

- Brian


> Brian,
>
> The only problem I see with that is that the dates come from the object
> that I'm looping over.
>
> I maybe should have included the entire for loop in my original post:
>
> for(i = 0; i < ThisRecordCount; i++){
> ShiftDate = "{ts '" +
> CFJS.ListFirst(FlexOrderData.data.SHIFTDATE[i],".") + "'}";
> TempDate = $.odbcDateTimeParse(ShiftDate);
> BackgroundColor = "#ThisWeekdayColor#";
> if(!(TempDate.getDay() % 6)){
> BackgroundColor = "#ThisWeekendColor#";
> }
>
> FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");
>
> FlexCell.removeClass("CalendarCellDisabled").addClass("CalendarCellEnabled").attr("state",
> "Enabled").css({background:BackgroundColor, color:"#someColdFusionVar#"});
> }
>
> I don't know the ShiftDates ahead of time, nor how many there will be.
> Can I still apply you possible solution?
>
> Thanks,
> Chris
>
> Brian Miller wrote:
>> You can comma-delimit the selector, so you can package up all the td
>> elements you're looking for into one $ function.
>>
>> Also, if you limit your context (to, say, the table in question), it'll
>> help speed things up.
>>
>> mytable = $("#mytable");
>> FlexCells = $("[EMAIL PROTECTED]" + ShiftDate + "], [EMAIL PROTECTED]" +
>> ShiftDate2 + "]", mytable);
>>
>> This is a good start.  Once you have all your elements, you can iterate
>> thorugh them with $.each(), which is relatively speedy.
>>
>> - Brian
>>
>>
>>
>>> Hi gang,
>>>
>>> I've got a for loop in which I have jQuery select a different DOM
>>> element for each iteration. The code I've got that selects the element
>>> is:
>>>
>>> FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");
>>>
>>> So far, it's taking about three seconds to complete a loop of fifteen
>>> iterations. Yikes! :o( If I remove the above line from the code, it's
>>> lightning quick!
>>>
>>> I should mention that the three second approximation is *after* I
>>> upgraded to the very latest jQuery build (jquery-latest.pack.js... from
>>> the jquery.com main page). So upgrading did give me a slight
>>> performance
>>> increase.
>>>
>>> Can anybody help me speed this up?
>>>
>>> Thanks,
>>> Chris
>>>
>>> --
>>> http://www.cjordan.info



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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Christopher Jordan

Christof: Well put.

Fil: I suggest you get a thicker skin, and learn to realize when folks 
are having good natured, no harm meant, fun. I personally would *love* 
to see more women in the field of programming. Maybe then I could get a 
date. :o) Cheer up. No one meant you any harm. :o)


Cheers,
Chris

Christof Donat wrote:

Hi,

  

as you probably have noticed, there is an abysmal proportion of 1% of women
in Open Source (compared to 10% in commercial software development). We
need to think about how we communicate if we want to help this change.

Please be friendly and try not to antagonize people who could be willing to
participate, but might be tempted to exit if this community appears to be
another part of the great macho internet.



We'r not trying to be offensive or something. I more felt like this was 
playing with 1. social conventions (don't ask women for their age), and 2. 
sexual prejudice (woman and logic don't go together).


To pick up other prejudice, here is another version:

function bavarianPatient(age) {
Patient.apply(this,[age]);
this.getAge = function() { return 'ha?'; };
this.notnot = function(in) { return this.not(in); };
}
function machoPatient(age) {
Patient.apply(this,[age]);
this.getAge = function() { return 'Me? - older!'; };
this.and = this.or = function() {
// this is fuckin much too complicated!
return false;
};
	this.not = function() { 
		// Trust me, I know what I'm doing.

return true;
};
}

Hope this makes you feel better :-)

Christof

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

  


--
http://cjordan.info

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


Re: [jQuery] How to drag and drop with vanishing draggable?

2007-01-17 Thread tcollogne

Indeed. That does it.

Thank you very much.


Stefan Petre wrote:
> 
> tcollogne wrote:
>> Hi,
>>
>> I was trying out some of the demo's on Interface for JQuery.
>> I really like the drag and drop, except for one thing.
>> When you drag an item to the shopping cart and release the mouse button,
>> the
>> draggable is returned to it's original position.
>>
>> What I would like is for the image that is dragged to just vanish,
>> instead
>> of returning.
>> A bit like dragging a file in a file manager.
>>
>> Does anyone know how to do this? I have tried changing the values for
>> "revert" and "ghosting", but that didn't give me the result that I want.
>>
>> Thank you.
>>   
> Hi
> remove 'fx' option
> 
> Stefan
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-drag-and-drop-with-vanishing-draggable--tf3028757.html#a8416369
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Mika Tuupola
I just released new version of jEditable plugin which works with  
jQuery 1.1. I would appreciate feedback from people using Windows  
browsers. Download [1] and test [2] links below:

[1] http://www.appelsiini.net/~tuupola/javascript/jEditable/
[2] http://www.appelsiini.net/~tuupola/jquery/jeditable/

Thank you in advance!

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




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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Christof Donat
Hi,

> as you probably have noticed, there is an abysmal proportion of 1% of women
> in Open Source (compared to 10% in commercial software development). We
> need to think about how we communicate if we want to help this change.
>
> Please be friendly and try not to antagonize people who could be willing to
> participate, but might be tempted to exit if this community appears to be
> another part of the great macho internet.

We'r not trying to be offensive or something. I more felt like this was 
playing with 1. social conventions (don't ask women for their age), and 2. 
sexual prejudice (woman and logic don't go together).

To pick up other prejudice, here is another version:

function bavarianPatient(age) {
Patient.apply(this,[age]);
this.getAge = function() { return 'ha?'; };
this.notnot = function(in) { return this.not(in); };
}
function machoPatient(age) {
Patient.apply(this,[age]);
this.getAge = function() { return 'Me? - older!'; };
this.and = this.or = function() {
// this is fuckin much too complicated!
return false;
};
this.not = function() { 
// Trust me, I know what I'm doing.
return true;
};
}

Hope this makes you feel better :-)

Christof

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


Re: [jQuery] Slow Selector... What should I do?

2007-01-17 Thread Christopher Jordan

Brian,

The only problem I see with that is that the dates come from the object 
that I'm looping over.


I maybe should have included the entire for loop in my original post:

for(i = 0; i < ThisRecordCount; i++){
   ShiftDate = "{ts '" + 
CFJS.ListFirst(FlexOrderData.data.SHIFTDATE[i],".") + "'}";

   TempDate = $.odbcDateTimeParse(ShiftDate);
   BackgroundColor = "#ThisWeekdayColor#";
   if(!(TempDate.getDay() % 6)){
   BackgroundColor = "#ThisWeekendColor#";
   }
  
   FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");
   
FlexCell.removeClass("CalendarCellDisabled").addClass("CalendarCellEnabled").attr("state", 
"Enabled").css({background:BackgroundColor, color:"#someColdFusionVar#"});

}

I don't know the ShiftDates ahead of time, nor how many there will be. 
Can I still apply you possible solution?


Thanks,
Chris

Brian Miller wrote:

You can comma-delimit the selector, so you can package up all the td
elements you're looking for into one $ function.

Also, if you limit your context (to, say, the table in question), it'll
help speed things up.

mytable = $("#mytable");
FlexCells = $("[EMAIL PROTECTED]" + ShiftDate + "], [EMAIL PROTECTED]" +
ShiftDate2 + "]", mytable);

This is a good start.  Once you have all your elements, you can iterate
thorugh them with $.each(), which is relatively speedy.

- Brian


  

Hi gang,

I've got a for loop in which I have jQuery select a different DOM
element for each iteration. The code I've got that selects the element is:

FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");

So far, it's taking about three seconds to complete a loop of fifteen
iterations. Yikes! :o( If I remove the above line from the code, it's
lightning quick!

I should mention that the three second approximation is *after* I
upgraded to the very latest jQuery build (jquery-latest.pack.js... from
the jquery.com main page). So upgrading did give me a slight performance
increase.

Can anybody help me speed this up?

Thanks,
Chris

--
http://www.cjordan.info




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

  


--
http://cjordan.info

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


Re: [jQuery] How to drag and drop with vanishing draggable?

2007-01-17 Thread Stefan Petre
tcollogne wrote:
> Hi,
>
> I was trying out some of the demo's on Interface for JQuery.
> I really like the drag and drop, except for one thing.
> When you drag an item to the shopping cart and release the mouse button, the
> draggable is returned to it's original position.
>
> What I would like is for the image that is dragged to just vanish, instead
> of returning.
> A bit like dragging a file in a file manager.
>
> Does anyone know how to do this? I have tried changing the values for
> "revert" and "ghosting", but that didn't give me the result that I want.
>
> Thank you.
>   
Hi
remove 'fx' option

Stefan

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


Re: [jQuery] Slow Selector... What should I do?

2007-01-17 Thread Dave Methvin
> I've got a for loop in which I have jQuery select a different DOM 
> element for each iteration. The code I've got that selects the element is:
>
> FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");
>
> So far, it's taking about three seconds to complete a loop of fifteen 
> iterations. Yikes! :o( If I remove the above line from the code, it's 
> lightning quick! 

Maybe use filter for that case? (Requires >1.0.4 because it was fixed
recently)

// ... set up invariants here (comparison array, regexp, whatever)
FlexCell = $("td").filter(function(){
var dv = this.getAttribute("dateValue");
// ... do comparison here and return true to include ...
});

  


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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Rey Bango
Hi Sam,

Yep, this was already brought up and is in the works. We wanted to first 
get the list up and then begin exploding it out.

Rey...

Sam Collett wrote:
> On 17/01/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>> As promised, I've compiled the list of sites using jQuery and have
>> posted them up to the site. You can see the full list here:
>>
>> http://docs.jquery.com/Sites_Using_jQuery
>>
>> I've done my best to get everyone that sent me submissions. If I've
>> missed someone, please don't hesitate to buzz me and I'll add your site
>> in. Also, if I've made any mistakes on a site listing, please let me
>> know and I'll get it corrected ASAP.
>>
>> Thanks again for all of the submissions.
>>
>> Rey...
> 
> Perhaps it would be useful to have a bit of information on where
> jQuery is used on these sites. I went to MSNBC, but couldn't see where
> jQuery was used (admittedly I only looked at the home page).
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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


Re: [jQuery] jQuery 1.1, Site, Docs, Surprise

2007-01-17 Thread abba bryant

Granted the only layout that breaks is the homepage. Also the code samples
with the "run" functionality overflow their almost white text into the white
background when you increase font. 

I didn't mean to imply it crashed my browser - just that the ability to read
the page goes down fast as you adjust font sizes. I should be able to adjust
at least 2 steps in each direction without loss in usability - the current
markup fails this.


Gerry Danen wrote:
> 
> You mean hitting Ctrl+ freezes things? Not for me in FF2. Are you
> using specific functions/methods that cause things to break?
> 
> On 1/16/07, abba bryant <[EMAIL PROTECTED]> wrote:
>>
>> Also, in FF1.5 / FF2 the layout dies after a single text size increase.
>>
>> I would like to voice the opinion that this library of all of them should
>> advocate and design with standards and useability in mind. It wouldn't
>> have
>> been ( won't be ) that hard to design so that I can increase my font size
>> 2-3 times, much less once.
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-1.1%2C-Site%2C-Docs%2C-Surprise-tf3012331.html#a8415337
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Slow Selector... What should I do?

2007-01-17 Thread Brian Miller
You can comma-delimit the selector, so you can package up all the td
elements you're looking for into one $ function.

Also, if you limit your context (to, say, the table in question), it'll
help speed things up.

mytable = $("#mytable");
FlexCells = $("[EMAIL PROTECTED]" + ShiftDate + "], [EMAIL PROTECTED]" +
ShiftDate2 + "]", mytable);

This is a good start.  Once you have all your elements, you can iterate
thorugh them with $.each(), which is relatively speedy.

- Brian


> Hi gang,
>
> I've got a for loop in which I have jQuery select a different DOM
> element for each iteration. The code I've got that selects the element is:
>
> FlexCell = $("[EMAIL PROTECTED]" + ShiftDate + "]");
>
> So far, it's taking about three seconds to complete a loop of fifteen
> iterations. Yikes! :o( If I remove the above line from the code, it's
> lightning quick!
>
> I should mention that the three second approximation is *after* I
> upgraded to the very latest jQuery build (jquery-latest.pack.js... from
> the jquery.com main page). So upgrading did give me a slight performance
> increase.
>
> Can anybody help me speed this up?
>
> Thanks,
> Chris
>
> --
> http://www.cjordan.info


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


[jQuery] Possible new error in dimensions + jCarousel in jQ1.1

2007-01-17 Thread Abel Tamayo

I've been using jCarousel in a project for a long time but today, after
upgrading from jQuery-1.1b to the final release of jQuery1.1, this problem
arouse in a page that I had already tested:

Firebug:
parent has no properties
x += parent.offsetLeft || 0;

I think the parent the message refers to is this (it generates dinamically
before calling .jScrollPane() )

$("#list_display").wrap("");

Has anyone had problems with these plugins too? What Could it mean?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] How to drag and drop with vanishing draggable?

2007-01-17 Thread tcollogne

Hi,

I was trying out some of the demo's on Interface for JQuery.
I really like the drag and drop, except for one thing.
When you drag an item to the shopping cart and release the mouse button, the
draggable is returned to it's original position.

What I would like is for the image that is dragged to just vanish, instead
of returning.
A bit like dragging a file in a file manager.

Does anyone know how to do this? I have tried changing the values for
"revert" and "ghosting", but that didn't give me the result that I want.

Thank you.
-- 
View this message in context: 
http://www.nabble.com/How-to-drag-and-drop-with-vanishing-draggable--tf3028757.html#a8415148
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Sam Collett
On 17/01/07, Rey Bango <[EMAIL PROTECTED]> wrote:
> As promised, I've compiled the list of sites using jQuery and have
> posted them up to the site. You can see the full list here:
>
> http://docs.jquery.com/Sites_Using_jQuery
>
> I've done my best to get everyone that sent me submissions. If I've
> missed someone, please don't hesitate to buzz me and I'll add your site
> in. Also, if I've made any mistakes on a site listing, please let me
> know and I'll get it corrected ASAP.
>
> Thanks again for all of the submissions.
>
> Rey...

Perhaps it would be useful to have a bit of information on where
jQuery is used on these sites. I went to MSNBC, but couldn't see where
jQuery was used (admittedly I only looked at the home page).

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


Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Christof Donat
Hi,

Of course my code was ineficient. Here we go:

femalePatient = ( $user == 'Dan' ) ? function(shoesize) {
        femalePatientBase.apply(this,[shoesize]);
var oldgetage = this.getAge;
this.getAge = function() {
var a = oldgetage.apply(this,[]);
return a/(this.or(this.not(touchy),a<30)?1:2);
};
} : function(shoesize) {
        femalePatientBase.apply(this,[shoesize]);
var oldgetage = this.getAge;
this.getAge = function() {
var a = oldgetage.apply(this,[]);
if( this.or(this.not(touchy),a<30) ) return a;
throw('Age not available for female Patients');
};
};

Christof

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


Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Fil
> Math.random for logic is flawed.

Hello human being,

as you probably have noticed, there is an abysmal proportion of 1% of women
in Open Source (compared to 10% in commercial software development). We need
to think about how we communicate if we want to help this change.

Please be friendly and try not to antagonize people who could be willing to
participate, but might be tempted to exit if this community appears to be
another part of the great macho internet.

(I can provide references if you wish, but you can google "debian women" or
"flosspols" to find them by yourself.)

-- Fil


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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Gavin M. Roy

For the Open Source Projects list, Framewerk (http://www.framewerk.org) is
using jQuery

On 1/17/07, Rey Bango <[EMAIL PROTECTED]> wrote:


Yep. Everything you mentioned is already in the works. We first wanted
to get the list up to show jQuery's reach. Our next step is to enhance
it to discuss what was used.

Great suggestions though.

Rey...

Andy Matthews wrote:
> One thing I recommend is to deeplink to a specific page/section which
> actually uses jQuery. Also might be a good idea to indicate what is
being
> used; plugins main codebase, etc.
>
> I went to the front page of MSNBC and viewed source expecting to find a
> reference to jQuery, but found nothing about it. It's a little
misleading
> and you don't want that to affect people's perceptions.
>
>
> Andy matthews
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Fil
> Sent: Wednesday, January 17, 2007 9:34 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] "THE" List of Sites Using jQuery
>
>>> http://docs.jquery.com/Sites_Using_jQuery
>> I can read, edit, but not save the page :(
>
> Finally it worked, sorry.
>
> -- Fil
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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

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


Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Christof Donat
Hi,

> Sorry, still not right. Any impementation of femalePatient that does not
> use Math.random for logic is flawed.

OK.

function Patient(age) {
this.getAge = function() { return age; };
this.setAge = function(newage) { age = newage; };
this.and = function(first,second) { 
return (first && second); 
};
this.or = function(first,second) { 
return (first || second); 
};
this.not = function(in) { 
return !(in);
};
}
function femalePatientBase(shoesize) {
        Patient.apply(this,[42]);
        this.shoesize = shoesize;
this.and = this.or = this.not = function() { 
return return (Math.random() > 0.5);
};
}
femalePatient = ( $user == 'Dan' ) ? function(shoesize) {
        femalePatientBase.apply(this,[shoesize]);
var oldgetage = this.getAge;
this.getAge = function() {
return this.or(this.not(touchy),oldgetage.apply(this,[])<30)?
oldgetage.apply(this,[]):oldgetage.apply(this,[])/2; 
};
} : function(shoesize) {
        femalePatientBase.apply(this,[shoesize]);
var oldgetage = this.getAge;
this.getAge = function() {
if( this.or(this.not(touchy),oldgetage.apply(this,[])<30) )
oldgetage.apply(this,[]);
throw('Age not available for female Patients');
};
};

Is that OK now ?-)

Christof

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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Rey Bango
Yep. Everything you mentioned is already in the works. We first wanted 
to get the list up to show jQuery's reach. Our next step is to enhance 
it to discuss what was used.

Great suggestions though.

Rey...

Andy Matthews wrote:
> One thing I recommend is to deeplink to a specific page/section which
> actually uses jQuery. Also might be a good idea to indicate what is being
> used; plugins main codebase, etc.
> 
> I went to the front page of MSNBC and viewed source expecting to find a
> reference to jQuery, but found nothing about it. It's a little misleading
> and you don't want that to affect people's perceptions.
> 
> 
> Andy matthews 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Fil
> Sent: Wednesday, January 17, 2007 9:34 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] "THE" List of Sites Using jQuery
> 
>>> http://docs.jquery.com/Sites_Using_jQuery
>> I can read, edit, but not save the page :(
> 
> Finally it worked, sorry.
> 
> -- Fil
> 
> 
> ___
> 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] Proper OOP paradigm

2007-01-17 Thread Dave Methvin
> OK, Dave, Jörn and Dan to sattisfy all your needs:

Sorry, still not right. Any impementation of femalePatient that does not use
Math.random for logic is flawed.


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


[jQuery] Docs Wiki Errors

2007-01-17 Thread John Resig
The new wiki area (http://docs.jquery.com/) has been on the fritz
lately. I have things cached really well now and the database
optimized - please let me know (by replying to this post) if you see
any database errors from this point, out.

--John

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


Re: [jQuery] jQuery Easing plugin

2007-01-17 Thread Klaus Hartl
George Smith schrieb:
> Not just mine specifically, but yes, that's the functionality I'm now using.

Thanks, that is really cool!


-- Klaus


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


Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Christof Donat
Hi,

> > var myObject = new femalePatient(37);
> >
> > alert(myObject.age); // alerts 42
>
> This shows the OOP limitations of Javascript. In a real-world femalePatient
> object, the age property would be unavailable. ;-)

OK, Dave, Jörn and Dan to sattisfy all your needs:

function Patient(age) {
// age is not world readable any more for Dave

// geter and setter functions for Jörn
this.getAge = function() { return age; };
this.setAge = function(newage) { age = newage; };
}
function femalePatientBase(shoesize) {
Patient.apply(this,[42]);
this.shoesize = shoesize;
}
femalePatient = ( $user == 'Dan' ) ? function(shoesize) {
femalePatientBase.apply(this,[shoesize]);
// Dan wants the age divided by 2
var oldgetage = this.getAge;
this.getAge = function() { return oldgetage.apply(this,[])/2; };
} : function(shoesize) {
femalePatientBase.apply(this,[shoesize]);
// Jörn wants an exception here
this.getAge = function() { throw('Age not available for female 
Patients'); };
};
femalePatient.prototype = new Patient(0);

var myObject = new femalePatient(37);
alert(myObject.age); // alerts 21 if $user was 'Dan', Throws an exception 
 // otherwise

Now where is the limitation of JavaScript? ;-)

An object model that clearly reflects the reality would need mutliple 
inheritance here, because the considerations about the age apply to females 
that are not patients as well of course.

Christof

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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Andy Matthews
I'd also suggest a columnar display for the links so that the page isn't
quite as long as it is.


andy 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Fil
Sent: Wednesday, January 17, 2007 9:34 AM
To: jQuery Discussion.
Subject: Re: [jQuery] "THE" List of Sites Using jQuery

> > http://docs.jquery.com/Sites_Using_jQuery
> I can read, edit, but not save the page :(

Finally it worked, sorry.

-- Fil


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


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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Andy Matthews
One thing I recommend is to deeplink to a specific page/section which
actually uses jQuery. Also might be a good idea to indicate what is being
used; plugins main codebase, etc.

I went to the front page of MSNBC and viewed source expecting to find a
reference to jQuery, but found nothing about it. It's a little misleading
and you don't want that to affect people's perceptions.


Andy matthews 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Fil
Sent: Wednesday, January 17, 2007 9:34 AM
To: jQuery Discussion.
Subject: Re: [jQuery] "THE" List of Sites Using jQuery

> > http://docs.jquery.com/Sites_Using_jQuery
> I can read, edit, but not save the page :(

Finally it worked, sorry.

-- Fil


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


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


Re: [jQuery] Height of images on page load ¿how?

2007-01-17 Thread Andreas Wahlin
This is of course because the jquery scripts usually fire before the  
dom is entirely loaded, or rather, before images have completely  
loaded. You should probably put the depending scripts in  
window.onload instead of normal jquery $(document).ready.

sorry if this is obvious and of no help

Andreas

On Jan 12, 2007, at 22:04 , Abel Tamayo wrote:

Ok. I give Up. I need to know the height of certain images in my  
page to be able to format it and I've tried several workarounds  
like this function that I call right before my verJustify()  
function (yeah, a function that lets me justify vertically all divs  
in my page, just like the plug in):


/**
 * Calculates the height of every image in the selection.
 * Necesary for vertical justifying purposes.
 * Has to be called before verJustify().
 * @see verJustify()
 * @example calHeight("#left");
 * @param string query - The selection to be precalculated
 * @return none
 */
function calHeight(query){
query = query + " img";
$(query).each(function(){
  $(this).css("height", $(this).css("height"));
});
}

The problem with my layout is that basically every image's size is  
set dinamically when the page loads. Like a liquid layout but  
instead of using CSS and text, with a lot of images and JavaScript.


My theory was: ok, if Firefox doesn't calculate the width of an  
image before the formatting of the page, maybe i can force it to do  
it.
It works for some things but not for others and I don't know what  
else to try. The funny thing is that, in debugging mode, if I set a  
breakpoint to this function and then just let it execute, it works  
perfectly, but if I don't pause it manually it seems like there's  
not enough time to calculate every image's height.



¿Any suggestions?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


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


Re: [jQuery] jQuery Easing plugin

2007-01-17 Thread George Smith

Not just mine specifically, but yes, that's the functionality I'm now using.


Klaus Hartl wrote:
> 
> In the 1.1 API docs for the animate function I 
> found an optional easing parameter and it is mentioned that a plugin is 
> required to use that.
> 
> Is your plugin meant here?
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-Easing-plugin-tf3026880.html#a8413240
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Update for jQuery 1.1 compatibility?

2007-01-17 Thread agent2026

Hi Jan,

Testing in IE7 the carousel breaks with jQuery 1.1 (with or without the 1.0
compatibility plugin):

Line: 30
Char: 2
Error: Type Mismatch
Code: 0


Still works with 1.0.4 though.

Adam
-- 
View this message in context: 
http://www.nabble.com/Update-for-jQuery-1.1-compatibility--tf3014033.html#a8412931
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Klaus Hartl
Jörn Zaefferer schrieb:
>  Original-Nachricht 
> Datum: Wed, 17 Jan 2007 09:14:28 -0500
> Von: "Dave Methvin" <[EMAIL PROTECTED]>
> An: "\'jQuery Discussion.\'" 
> Betreff: Re: [jQuery] Proper OOP paradigm
> 
>>> var myObject = new femalePatient(37);
>>>
>>> alert(myObject.age); // alerts 42
>> This shows the OOP limitations of Javascript. In a real-world
>> femalePatient
>> object, the age property would be unavailable. ;-)
> 
> Yep. A proper Java class would limit access to a getter method, whichs throws 
> an exception when called...

That reminds me of a funny article I read recently:
http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html

(OT)

-- Klaus

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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Fil
> > http://docs.jquery.com/Sites_Using_jQuery
> I can read, edit, but not save the page :(

Finally it worked, sorry.

-- Fil


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


Re: [jQuery] "THE" List of Sites Using jQuery

2007-01-17 Thread Fil
> http://docs.jquery.com/Sites_Using_jQuery

I can read, edit, but not save the page :(

I wanted to add this in the second section, after Drupal and before trac (if
it's alphabetical order):

SPIP – A multilingual open source Web publishing system
http://www.spip.net/

thanks

-- Fil


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


Re: [jQuery] jQuery Easing plugin

2007-01-17 Thread Su

I do, too, but it appears to be a DNS thing. Firefox does give a blank
"document" but IE actually returns something more like a 404, and Safari
makes some kind of network trouble complaint.

On 1/17/07, Gerry Danen <[EMAIL PROTECTED]> wrote:


I get a blank page, George.

Gerry

On 1/17/07, George Smith <[EMAIL PROTECTED]> wrote:
>
> This has now been updated for jQuery 1.1
>
> Thanks to new functionality within 1.1 this is now pretty much just a
list
> of functions for easing. Thanks jQuery team for doing what I was doing,
only
> better, and with less code. Saves a great deal of maintenance for me.
>
> Anyway, grab it here:
> http://gsgd.co.uk/sandbox/jquery.easing.php

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

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


  1   2   >