[jQuery] Re: Problem with change()

2007-08-28 Thread atomicnuke

Yeah, guess autocomplete will work, to lazy to write a timer function,
lol. Quick unrelated question, I ran across a plugin for jQuery that
if you inserted content in with Ajax the links won't be recognized by
jQuery, but the plugin helps to fix that.



[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Juha Suni SC
Very nice work Benjamin!

An excellent plugin. Extremely easy to use, logical and provides a polished, 
high quality, professional looking result.

I'm amazed if we don't start seeing this in use around the web. A lot :)

A spectacular showcase for jQuery and it's plugins also. We'd really just need 
a great showcase site that would group all these polished effects, plugins and 
code in one place. 

-- 
Suni
  - Original Message - 
  From: Benjamin Sterling 
  To: jquery-en 
  Sent: Tuesday, August 28, 2007 7:12 AM
  Subject: [jQuery] [UPDATE] jqGalView (yet another image gallery)


  After taking a good bit of advice, I made changes to the jqGalView plugin and 
I think I have it at a very good place now.

  Special thanks to those that gave great feedback, I took what you had to say 
and think I have a winner now.  This community breads greatness :) 

  http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery

  By all means, please let me know if there is anything that can make it 
better. 

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

[jQuery] Re: Problem with change()

2007-08-28 Thread Karl Rudd

Is that a question? If, yes, then what you want is LiveQuery
http://jquery.com/plugins/project/livequery

Karl Rudd

On 8/28/07, atomicnuke [EMAIL PROTECTED] wrote:

 Yeah, guess autocomplete will work, to lazy to write a timer function,
 lol. Quick unrelated question, I ran across a plugin for jQuery that
 if you inserted content in with Ajax the links won't be recognized by
 jQuery, but the plugin helps to fix that.




[jQuery] Re: Performance from 1.1.2 to 1.1.4

2007-08-28 Thread oscar esp

Hi Jeffry ,

I am agree about VS.

When I execute without VS I get better performance obiuslly however
1.1.2/1.1.3  is faster thatn 1.1.4:

-1.1.4 : 2 seconds (from select an item in client after the second
combo is load in client)
-1.1.2  1.1.3:  less thant 1 second (from select an item in client
after the second combo is load in client) .








On 27 ago, 19:46, Jeffrey Kretz [EMAIL PROTECTED] wrote:
 As a note, any tests I have done in Visual Studio in ANY javascript (not
 just jQuery) are significantly slower in debug mode with VS attached than if
 just running it normally.

 This is due to the work the debugger is doing while the code executes.

 I would suggest testing your app on your intranet, but not in debug mode,
 with the script itself calculating the time it takes to execute.

 This would be a more accurate way to see if 1.1.4 is actually slower than
 1.1.2 in your project.

 JK



 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of oscar esp
 Sent: Monday, August 27, 2007 9:35 AM
 To: jQuery (English)
 Subject: [jQuery] Re: Performance from 1.1.2 to 1.1.4

 I am in debug mode  (visual studio) in execution the diferences are:

 -1.1.4 : 2 seconds (from select an item in client after the second
 combo is load in client)
 -1.1.2  1.1.3:  less thant 1 second (from select an item in client
 after the second combo is load in client)

 Seems that 1.1.2  1.1.3 is faster than 1.1.4

 On 27 ago, 18:09, John Resig [EMAIL PROTECTED] wrote:
  Slow server?

  There's on reason for a 7 second delay of any sort in jQuery.

  Do you have a demo of  this online?

  --John

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

   I am doing some test in order to migrate from 1.1.2 to 1.1.4... and I
   got some strange result.

   I have two combo, when you chose an item in the first I load the
   related items in the second one using an ajax call.

   With 1.1.2 I spend  1 second to load the second combo...

   With 1.1.4 I spend 8 seconds

   Any explanation?- Ocultar texto de la cita -

  - Mostrar texto de la cita -- Ocultar texto de la cita -

 - Mostrar texto de la cita -



[jQuery] Re: Problem with change()

2007-08-28 Thread atomicnuke

Yeah, guess I kind of didn't put that in a question format, again,
thanks for the help.



[jQuery] Re: Help serializing form to array

2007-08-28 Thread Wizzud


Use...

$.extend( parms, {this.id : this.value } ); // extends parms with the
subsequent objects

The merge() method is for arrays, whereas parms and {this.id : this.value}
are both objects, which is why you are getting the error.


bweaverusenet wrote:
 
 
 Hi. What is the voodoo to build an array for a JSON submit from a
 bunch of form fields?
 
 Okay, I'm building the form dynamically from the fields in a mysql DB,
 with input/@id set to the field name.
 
 The following naive approach doesn't work, but will give you an idea
 of how I'm grabbing what I want to do. It definitely doesn't like the
 $.merge( parms, {this.id : this.value }) The error is missing : after
 property id...
 
   $(form#additem).submit(function(){
   var parms = { cmd:ADD };
   $(form#additem//[EMAIL PROTECTED]).each(function(){
   parms = $.merge( parms, {this.id : this.value } );
   });
   $.getJSON(thiscode.php,parms,function(data){});
 return false;
   });
 
 So, basically I am fishing for the best way to build or add to an
 array from an arbitrary form and send into getJSON.
 
 Thanks,
 bill
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Help-serializing-form-to-array-tf4339452s15494.html#a12363421
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Help serializing form to array

2007-08-28 Thread Erik Beeson

I think you could replace the parms = ... line with:

parms[this.id] = this.value;

But I suggest you check out the awesome form plugin:

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

--Erik

On 8/27/07, bweaverusenet [EMAIL PROTECTED] wrote:

 Hi. What is the voodoo to build an array for a JSON submit from a
 bunch of form fields?

 Okay, I'm building the form dynamically from the fields in a mysql DB,
 with input/@id set to the field name.

 The following naive approach doesn't work, but will give you an idea
 of how I'm grabbing what I want to do. It definitely doesn't like the
 $.merge( parms, {this.id : this.value }) The error is missing : after
 property id...

   $(form#additem).submit(function(){
 var parms = { cmd:ADD };
 $(form#additem//[EMAIL PROTECTED]).each(function(){
 parms = $.merge( parms, {this.id : this.value } );
 });
 $.getJSON(thiscode.php,parms,function(data){});
 return false;
   });

 So, basically I am fishing for the best way to build or add to an
 array from an arbitrary form and send into getJSON.

 Thanks,
 bill




[jQuery] Re: Performance from 1.1.2 to 1.1.4

2007-08-28 Thread Renato Formato


oscar esp ha scritto:

Hi Jeffry ,

I am agree about VS.

When I execute without VS I get better performance obiuslly however
1.1.2/1.1.3  is faster thatn 1.1.4:

-1.1.4 : 2 seconds (from select an item in client after the second
combo is load in client)
-1.1.2  1.1.3:  less thant 1 second (from select an item in client
after the second combo is load in client) .



Are you calling the clone function inside your code?

in 1.1.4 clone is much slower.

Renato


[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Emil Ivanov

This is more a smarty issue, than jquery/js.
There is a smarty tag {ldelim} for { and {rdelim} for }.
Also wrapping a piece of code with {literal}function() { code; }  {/
literal} tells the parser to ignore the text between the tags.

Regards,
Emil Ivanov

On 28 Авг, 11:05, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:
 Hi

 I'm having an issue with the validation plugin. It conflicts with a
 smarty-based php class named formsess.
 It does not allow signs such as { in form tags.
 Sounds like hell to go modify formsess, so I hope to find a way to change
 that in the validation plugin.
 Could it be possible to replace class={required: true} with
 class=[required: true] ?

 thanks

 -Olivier



[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Sam Collett

You could try adding this in $(document).ready, before calling the
validate plugin:

$.meta.cre = /(\[.*\])/;
$(#foo).validate();

Although that is not documented in the meta data plugin (maybe there
should be an option in it to do that).

On Aug 28, 9:05 am, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:
 Hi

 I'm having an issue with the validation plugin. It conflicts with a
 smarty-based php class named formsess.
 It does not allow signs such as { in form tags.
 Sounds like hell to go modify formsess, so I hope to find a way to change
 that in the validation plugin.
 Could it be possible to replace class={required: true} with
 class=[required: true] ?

 thanks

 -Olivier



[jQuery] How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Nico

Hello,

I'm trying to optimize this selector:

$(this).children(span).children(a).html(it works);

Because I think that these 2 .children are not light javascript

My HTML:
div id=container
   span
a href=#My link/a
   /span
/div

I try something like $(this  span  a).html(it works);

But it doesn't work.

I'm sure that it's a dummy question but i doesn't find by myself...
thanks for your help.



[jQuery] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Erik Beeson

Your last guess is the right idea, but not valid javascript syntax. Maybe try:

$(this).find(spana).html(it works);

If you just want all of the anchors under 'this', you can do:

$(this).find('a').html(...);

If you know the ID of the element you're looking under, you can do:

$('#container  span  a').html('it works');

Or:

$('#container a').html('it works');

Depending on what anchors you want.

--Erik


On 8/28/07, Nico [EMAIL PROTECTED] wrote:

 Hello,

 I'm trying to optimize this selector:

 $(this).children(span).children(a).html(it works);

 Because I think that these 2 .children are not light javascript

 My HTML:
 div id=container
span
 a href=#My link/a
/span
 /div

 I try something like $(this  span  a).html(it works);

 But it doesn't work.

 I'm sure that it's a dummy question but i doesn't find by myself...
 thanks for your help.




[jQuery] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Erik Beeson

Also, you could do it XPath style (untested):

$(this).find('/span/a').html('it works');

For more info, check out:

http://docs.jquery.com/DOM/Traversing/Selectors

--Erik


On 8/28/07, Erik Beeson [EMAIL PROTECTED] wrote:
 Your last guess is the right idea, but not valid javascript syntax. Maybe try:

 $(this).find(spana).html(it works);

 If you just want all of the anchors under 'this', you can do:

 $(this).find('a').html(...);

 If you know the ID of the element you're looking under, you can do:

 $('#container  span  a').html('it works');

 Or:

 $('#container a').html('it works');

 Depending on what anchors you want.

 --Erik


 On 8/28/07, Nico [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I'm trying to optimize this selector:
 
  $(this).children(span).children(a).html(it works);
 
  Because I think that these 2 .children are not light javascript
 
  My HTML:
  div id=container
 span
  a href=#My link/a
 /span
  /div
 
  I try something like $(this  span  a).html(it works);
 
  But it doesn't work.
 
  I'm sure that it's a dummy question but i doesn't find by myself...
  thanks for your help.
 
 



[jQuery] Re: Sortable List Problems (Interface plugin)

2007-08-28 Thread Richard D. Worth
Interface sortables has a couple of little quirks like this. It is still an
official plugin, meaning major bugs (regression issues) are fixed, but no
new features are being added. The focus of development is on the next
version, a rewrite (which should more easily support updates for issues like
this) as part of a new plugin library called jQuery UI. It is being prepared
for release on Sep. 3. See:

http://docs.jquery.com/UI

for more info. It looks like the docs for sortables are not done yet, but
will be over the next few days. Stay tuned.

- Richard

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


 Hi All,

 I'm trying to create asortable list of categories. The file that
 generates the list will be loaded into a div using $
 ('#content').load('cateList.php').

 The sortable works fine the first time the file is loaded, however, if
 I move to a different set of content in the same div (called in the
 same way) and then back again, when I try to sort the elements again
 they are removed from the ul and placed at the end of the code.
 Therefore being displayed in a somewhat bizarre location... :o)

 I'm sure that this is just something simple I'm missing in the
 initialisation...

 Has anyone else, more experienced, come across the same problem? I've
 only ben experimenting with JQuery for a few days, moving across from
 scriptaculous / prototype. Any guidance would be gratefully received.

 Thanks in advnace

 Keith




[jQuery] Re: Sortable List Problems (Interface plugin)

2007-08-28 Thread quayfee


Hi Richard,

Thanks for letting me know about the update. I've got plenty to be learning
in the mean time so I'll have a look at the new release.

Cheers

Keith



Richard D. Worth-2 wrote:
 
 Interface sortables has a couple of little quirks like this. It is still
 an
 official plugin, meaning major bugs (regression issues) are fixed, but no
 new features are being added. The focus of development is on the next
 version, a rewrite (which should more easily support updates for issues
 like
 this) as part of a new plugin library called jQuery UI. It is being
 prepared
 for release on Sep. 3. See:
 
 http://docs.jquery.com/UI
 
 for more info. It looks like the docs for sortables are not done yet, but
 will be over the next few days. Stay tuned.
 
 - Richard
 
 On 8/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi All,

 I'm trying to create asortable list of categories. The file that
 generates the list will be loaded into a div using $
 ('#content').load('cateList.php').

 The sortable works fine the first time the file is loaded, however, if
 I move to a different set of content in the same div (called in the
 same way) and then back again, when I try to sort the elements again
 they are removed from the ul and placed at the end of the code.
 Therefore being displayed in a somewhat bizarre location... :o)

 I'm sure that this is just something simple I'm missing in the
 initialisation...

 Has anyone else, more experienced, come across the same problem? I've
 only ben experimenting with JQuery for a few days, moving across from
 scriptaculous / prototype. Any guidance would be gratefully received.

 Thanks in advnace

 Keith


 
 
:working:
-- 
View this message in context: 
http://www.nabble.com/Sortable-List-Problems-%28Interface-plugin%29-tf4334503s15494.html#a12366295
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Performance from 1.1.2 to 1.1.4

2007-08-28 Thread oscar esp

No. I just call an ajax method with asycn=false
--
divTarget = component1
jQuery.ajax({
type: post,
url: url,
data: pars,
async: false,
dataType: html,
success: function(data){

jQuery(#divPoblacion_+divTarget).get()[0].innerHTML=data;
}
});
-

On 28 ago, 11:16, Renato Formato [EMAIL PROTECTED] wrote:
 oscar esp ha scritto:

  Hi Jeffry ,

  I am agree about VS.

  When I execute without VS I get better performance obiuslly however
  1.1.2/1.1.3  is faster thatn 1.1.4:

  -1.1.4 : 2 seconds (from select an item in client after the second
  combo is load in client)
  -1.1.2  1.1.3:  less thant 1 second (from select an item in client
  after the second combo is load in client) .

 Are you calling the clone function inside your code?

 in 1.1.4 clone is much slower.

 Renato



[jQuery] [Resolved] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Nico

Wonderfull! :-) It works with this one:

 $(this).find('/span/a').html('it works');

Thanks a lot for your help

On 28 août, 12:48, Erik Beeson [EMAIL PROTECTED] wrote:
 Also, you could do it XPath style (untested):

 $(this).find('/span/a').html('it works');

 For more info, check out:

 http://docs.jquery.com/DOM/Traversing/Selectors

 --Erik

 On 8/28/07, Erik Beeson [EMAIL PROTECTED] wrote:

  Your last guess is the right idea, but not valid javascript syntax. Maybe 
  try:

  $(this).find(spana).html(it works);

  If you just want all of the anchors under 'this', you can do:

  $(this).find('a').html(...);

  If you know the ID of the element you're looking under, you can do:

  $('#container  span  a').html('it works');

  Or:

  $('#container a').html('it works');

  Depending on what anchors you want.

  --Erik

  On 8/28/07, Nico [EMAIL PROTECTED] wrote:

   Hello,

   I'm trying to optimize this selector:

   $(this).children(span).children(a).html(it works);

   Because I think that these 2 .children are not light javascript

   My HTML:
   div id=container
  span
   a href=#My link/a
  /span
   /div

   I try something like $(this  span  a).html(it works);

   But it doesn't work.

   I'm sure that it's a dummy question but i doesn't find by myself...
   thanks for your help.



[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Benjamin Sterling
Suni,
You words are too kind, I appreciate it.


A spectacular showcase for jQuery and it's plugins also. We'd really just
 need a great showcase site that would group all these polished effects,
 plugins and code in one place.


I believe if we using the plugin page correctly we will have just that (
http://jquery.com/plugins/).  There is a rating system and all.  You can
actually rate this plugin at http://jquery.com/plugins/project/jqGalView.

Once again, thank you for the kind words.


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


[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Benjamin Sterling
  - i find it disturbing that clicking on open does not actually work _
 you can click on the whole thumbnail area but the open word.


I thought I fixed that, will do asap.

 - i find the launch in a  separate window for the full image quite
 disappointing, given what was shown before :). Maybe shoot in modal?
 other than that, it is fine to me, i really like the way it squares out
 image viewing area on the page, allowing for very precise layouts!


That is actually a great idea!  I am going to have to make that an option.
Look for that in the next couple of hours.




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


[jQuery] Why isn't there top() and left() methods in the dimension plugin ?

2007-08-28 Thread Olivier Percebois-Garve
Okay, I'm doing a lot of jQuery today so please pardon me if I'm sending too
much emails here.

I'm annoyed with the (otherwise great) dimension plugin because there is no
direct way to get the top
and left position of an element.
So all over my code I have things such as :

  $errorBoxOffset = {};
  element.offset({scroll: false}, $errorBoxOffset);
  $left = $errorBoxOffset.left;
  $top = $errorBoxOffset.top;


Have I missed something in the dimension doc ?
Do you think it would make sense to add such functions to the dimensions
plugin ?

-Olivier


[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Olivier Percebois-Garve
I'll do that as a workaround if there is no nice solution.
Its just that inline validation seems easier to maintain in the futur in the
app I have because it is made of a lot of templates
and a maintainer that dont know the app well maybe lost at finding where the
validation come from.

On 8/28/07, David Duymelinck [EMAIL PROTECTED] wrote:


 Is it an option for you to not use the meta data plugin? The rules can
 be set without it too.

 $(#Form).validate({rules: {inputname: required}});


 --David


 Olivier Percebois-Garve schreef:
  Hi
 
  I'm having an issue with the validation plugin. It conflicts with a
  smarty-based php class named formsess.
  It does not allow signs such as { in form tags.
  Sounds like hell to go modify formsess, so I hope to find a way to
  change that in the validation plugin.
  Could it be possible to replace class={required: true} with
  class=[required: true] ?
 
  thanks
 
  -Olivier
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.484 / Virus Database: 269.12.10/976 - Release Date:
 27/08/2007 18:20
 


 --
 David Duymelinck
 
 [EMAIL PROTECTED]




[jQuery] Re: Why isn't there top() and left() methods in the dimension plugin ?

2007-08-28 Thread Brandon Aaron
You can very easily add these helper methods to your own app like this:

jQuery.fn.left = function() {
return this.offset({scroll:false}).left;
};

jQuery.fn.top = function() {
return this.offset({scroll:false}).top;
};

--
Brandon Aaron

On 8/28/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote:

 Okay, I'm doing a lot of jQuery today so please pardon me if I'm sending
 too much emails here.

 I'm annoyed with the (otherwise great) dimension plugin because there is
 no direct way to get the top
 and left position of an element.
 So all over my code I have things such as :

   $errorBoxOffset = {};
   element.offset({scroll: false}, $errorBoxOffset);
   $left = $errorBoxOffset.left;
   $top = $errorBoxOffset.top;


 Have I missed something in the dimension doc ?
 Do you think it would make sense to add such functions to the dimensions
 plugin ?

 -Olivier




[jQuery] Re: Why isn't there top() and left() methods in the dimension plugin ?

2007-08-28 Thread Karl Swedberg

Hi Olivier,

The Dimensions plugin has a very powerful .offset() method. Perhaps  
that is what you're looking for?


For a demo of Dimemsions methods, check out this companion page to  
the Dimensions chapter in jQuery Reference Guide:


http://book.learningjquery.com/3810_10_code/dimplugin.html


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



On Aug 28, 2007, at 8:39 AM, Olivier Percebois-Garve wrote:

Okay, I'm doing a lot of jQuery today so please pardon me if I'm  
sending too much emails here.


I'm annoyed with the (otherwise great) dimension plugin because  
there is no direct way to get the top

and left position of an element.
So all over my code I have things such as :

  $errorBoxOffset = {};
  element.offset({scroll: false}, $errorBoxOffset);
  $left = $errorBoxOffset.left;
  $top = $errorBoxOffset.top;


Have I missed something in the dimension doc ?
Do you think it would make sense to add such functions to the  
dimensions plugin ?


-Olivier





[jQuery] [NEWS] YUI Compressor 2 out now - Now with CSS Compression

2007-08-28 Thread Tane Piper

http://www.julienlecomte.net/blog/2007/08/27/yui-compressor-version-20-now-available/

Version 2.0 of the YUI Compressor is out, fixing several bugs and
implementing a few enhancements suggested by the community, including
integrating Isaac Schlueter's regular expression based CSS minifier.
Therefore, the YUI Compressor is now able to compress both JavaScript
and CSS files.

Just keeps getting better and better!

-- 
Tane Piper
http://digitalspaghetti.me.uk

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


[jQuery] jquery accordion

2007-08-28 Thread squitta

Hi people,

it took me a while to figure out, how to get an accordion interface
running. Now I started to use it nearby everywhere.

I really love that kind of navigation. But now I headed into some
troubles.

I implemented the accordion by use of div layers. I did find a demo
somewhere on how to do that. The accordion works finde when I load the
page. I can click the first menu element, the accordion opens, but
after i clicked another one which appears a little later, because
inbetween are a couple of empty elements

like:

nav1 - working
nav2 - no entries
nav3 - no entries
nav4 - working
nav4 - working
nav5 - working

but as a matter of fact, if I click the nav1 element it opens if i
click after that the nav4 element it opens nav1 closes, after that no
other element opens anymore. If I reload the page and click directly
on nav 4 it opens, but no other element is able to open afterwards.

The main problem in my case is, that the $
(items).children(titles).click(function(e){ ... } is not callled
anymore
after the first or the second click. I cant see why this is happening,
but I am sure, that one of your jquery guru
fellows, will be able to do it.

Thank you very much. Best Regards, Sascha

The code goes like this here:
script language=javascript type=text/javascript!--
$.accordian = function(items, first, options) {

var active = first;
var running = 0;
var titles = options  options.titles || '.title';
var contents = options  options.contents || '.content';
var onClick = options  options.onClick || function(){};
var onShow = options  options.onShow || function(){};
var onHide = options  options.onHide || function(){};
var showSpeed = options  options.showSpeed || 'slow';
var hideSpeed = options  options.hideSpeed || 'fast';

$(items).not(active).children(contents).hide();
$(items).not(active).each(onHide);
$(active).each(onShow);

$(items).children(titles).click(function(e){

var p = $(contents, this.parentNode);
$(this.parentNode).each(onClick);

if (running || !p.is(':hidden')) return false;
running = 2;
$(active).children(contents).not(':hidden').slideUp(hideSpeed,
function(){--running;});
p.slideDown(showSpeed, function(){--running;});

$(active).each(onHide);
active = '#' + $(this.parentNode)[0].id;
$(active).each(onShow);

return false;
});

};
$(function(){
$.accordian('#nav  div', '#nav1');
$.accordian('#nav  div', '#nav1, {
titles:'.nav_main',
contents:'.nav_sub',
onClick:function(){},
onShow:function(){$(this).removeClass('off').addClass('on');},
onHide:function(){$(this).removeClass('on').addClass('off');},
showSpeed:250,
hideSpeed:550
});
});
//--/script

The needed stylesheets are these here:
style type=text/css
#nav { width:200px; }
.nav_main {
cursor:pointer;
}
.on  .nav_main {}
.off .nav_main {}
.nav_sub {
}
/style

The needed html code looks like this here:
div id=nav
div id=nav0
div class=nav_mainTest1/div
div class=nav_subentryt1/div
div class=nav_subentryt2/div
div class=nav_subentryt3/div
/div
div id=nav1
div class=nav_mainTest1/div
div class=nav_subentryt1/div
div class=nav_subentryt2/div
div class=nav_subentryt3/div
/div
div id=nav2
div class=nav_mainTest1/div
div class=nav_subentryt1/div
div class=nav_subentryt2/div
div class=nav_subentryt3/div
/div
/div



[jQuery] Recursive setting of names in jquery

2007-08-28 Thread Brett

Hello there, I've been loving jQuery so far - so efficient, and a
great piece of code to work with.

I was wondering if it is possible to use jQuery in a loop where I need
to set a row of values in.
For example if there was a set of input boxes named totalA - totalE.
To change the first,  I would use:
$([EMAIL PROTECTED]'totalA']).val(the value I want to put on this
form);

But is there a way I can make @name a variable, or a combination of
strings?
@name='total' + currentLetter  Does not work like I thought it
would have..
I think there is something fundamentally wrong that I'm doing...



[jQuery] Re: Why isn't there top() and left() methods in the dimension plugin ?

2007-08-28 Thread Olivier Percebois-Garve
Wow your too fast guys.
It seems that I was using offset() the wrong way.

  $left = element.offset().left;
  $top = element.offset().top;

is fine for me in replacement of :

  $errorBoxOffset = {};
  element.offset({scroll: false}, $errorBoxOffset);
  $left = $errorBoxOffset.left;
  $top = $errorBoxOffset.top;

Thanks a lot guys!


On 8/28/07, Brandon Aaron [EMAIL PROTECTED] wrote:

 You can very easily add these helper methods to your own app like this:

 jQuery.fn.left = function() {
 return this.offset({scroll:false}).left;
 };

 jQuery.fn.top = function() {
 return this.offset ({scroll:false}).top;
 };

 --
 Brandon Aaron

 On 8/28/07, Olivier Percebois-Garve [EMAIL PROTECTED]  wrote:
 
  Okay, I'm doing a lot of jQuery today so please pardon me if I'm sending
  too much emails here.
 
  I'm annoyed with the (otherwise great) dimension plugin because there is
  no direct way to get the top
  and left position of an element.
  So all over my code I have things such as :
 
$errorBoxOffset = {};
element.offset({scroll: false}, $errorBoxOffset);
$left = $errorBoxOffset.left;
$top = $errorBoxOffset.top;
 
 
  Have I missed something in the dimension doc ?
  Do you think it would make sense to add such functions to the dimensions
  plugin ?
 
  -Olivier
 
 



[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread David Duymelinck


Is it an option for you to not use the meta data plugin? The rules can 
be set without it too.


$(#Form).validate({rules: {inputname: required}});


--David


Olivier Percebois-Garve schreef:

Hi

I'm having an issue with the validation plugin. It conflicts with a 
smarty-based php class named formsess.

It does not allow signs such as { in form tags.
Sounds like hell to go modify formsess, so I hope to find a way to 
change that in the validation plugin.
Could it be possible to replace class={required: true} with 
class=[required: true] ?


thanks

-Olivier


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.10/976 - Release Date: 27/08/2007 18:20
  



--
David Duymelinck

[EMAIL PROTECTED]



[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Rick Faircloth
Hi, Ben.

 

In IE7, I still can't click on the Open graphic, and when I do click on
the

thumbnail, the loading bar just keeps rotating, but the larger image

never loads.

 

I also get an error from IE7 stating, Line: 157, Char 4, Error: Invalid
Argument, Code 0.

 

Rick

 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: Tuesday, August 28, 2007 12:13 AM
To: jquery-en
Subject: [jQuery] [UPDATE] jqGalView (yet another image gallery)

 

After taking a good bit of advice, I made changes to the jqGalView plugin
and I think I have it at a very good place now.

Special thanks to those that gave great feedback, I took what you had to say
and think I have a winner now.  This community breads greatness :) 

http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery

By all means, please let me know if there is anything that can make it
better. 

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



[jQuery] Re: A Quick Thank You to the jQuery UI team

2007-08-28 Thread Andy Matthews

Whose morale? 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Erik Beeson
Sent: Monday, August 27, 2007 6:47 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: A Quick Thank You to the jQuery UI team


Floggings will continue until morale improves.


On 8/27/07, Smith, Allex [EMAIL PROTECTED] wrote:

 Wait till he is finished working on UI before you beat him... Then 
 proceed.

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Rey Bango
 Sent: Monday, August 27, 2007 3:18 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: A Quick Thank You to the jQuery UI team



 That's a tentative date but its not set in stone. :)

 We're still working on some things. Sean will receive his beatings 
 shortly! (whack)

 Rey



 Smith, Allex wrote:
  Doh...
 
  Cat's out of the bag.
 
  The project is set to release on September the 3rd.
 
  Thanks much for all the info.
 
  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Rey Bango
  Sent: Monday, August 27, 2007 3:03 PM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: A Quick Thank You to the jQuery UI team
 
 
 
  Yep, you haven't been watching the list closely enough...that is, 
  the jQuery UI list.
 
  Hop on over to http://groups.google.com/group/jquery-ui and sign up 
  and make sure to take a peak at the roadmap: 
  http://docs.jquery.com/UI/
 
  As for a release date, I've been sworn to secrecy but I can say that 
  things are looking good. :)
 
  Rey...
 
  Smith, Allex wrote:
  Rey,
 
  This may be a dumb question... But is there any release info about 
  jQuery UI out yet? Screen shots or otherwise?
 
  Have I just not been watching the list closely enough?
 
  Thanks,
  Allex
 
  -Original Message-
  From: jquery-en@googlegroups.com 
  [mailto:[EMAIL PROTECTED]
  On Behalf Of Rey Bango
  Sent: Monday, August 27, 2007 1:59 PM
  To: jQuery Discussion
  Subject: [jQuery] A Quick Thank You to the jQuery UI team
 
 
 
  Guys,
 
  I know you guys have been busting your tails on getting everything 
  ready
 
  for jQuery UI and I wanted to tell you how thankful and 
  appreciative I am for all of the hard work you've done to date. 
  Getting a complete

  UI
 
  library developed is no easy task. I'm proud to be associated with
  such
  talented and committed developers.
 
  Keep up the great work.
 
  Rey...
 
 





[jQuery] Re: Recursive setting of names in jquery

2007-08-28 Thread Erik Beeson

This should do what you want:

var letter = 'A';
$([EMAIL PROTECTED]'total + letter + ']).val(...);

--Erik


On 8/27/07, Brett [EMAIL PROTECTED] wrote:

 Hello there, I've been loving jQuery so far - so efficient, and a
 great piece of code to work with.

 I was wondering if it is possible to use jQuery in a loop where I need
 to set a row of values in.
 For example if there was a set of input boxes named totalA - totalE.
 To change the first,  I would use:
 $([EMAIL PROTECTED]'totalA']).val(the value I want to put on this
 form);

 But is there a way I can make @name a variable, or a combination of
 strings?
 @name='total' + currentLetter  Does not work like I thought it
 would have..
 I think there is something fundamentally wrong that I'm doing...




[jQuery] Re: Recursive setting of names in jquery

2007-08-28 Thread Karl Swedberg

Hi Brett,

I'm pretty sure this should work:

$([EMAIL PROTECTED] + currentLetter + ])

Forgive me if this is what you've already tried. It was hard to tell  
because you only included part of the selector in your second example.


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



On Aug 28, 2007, at 12:00 AM, Brett wrote:



Hello there, I've been loving jQuery so far - so efficient, and a
great piece of code to work with.

I was wondering if it is possible to use jQuery in a loop where I need
to set a row of values in.
For example if there was a set of input boxes named totalA - totalE.
To change the first,  I would use:
$([EMAIL PROTECTED]'totalA']).val(the value I want to put on this
form);

But is there a way I can make @name a variable, or a combination of
strings?
@name='total' + currentLetter  Does not work like I thought it
would have..
I think there is something fundamentally wrong that I'm doing...





[jQuery] Re: A Quick Thank You to the jQuery UI team

2007-08-28 Thread Richard D. Worth
Who's Morale?

On 8/28/07, Andy Matthews [EMAIL PROTECTED] wrote:


 Whose morale?

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Erik Beeson
 Sent: Monday, August 27, 2007 6:47 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: A Quick Thank You to the jQuery UI team


 Floggings will continue until morale improves.


 On 8/27/07, Smith, Allex [EMAIL PROTECTED] wrote:
 
  Wait till he is finished working on UI before you beat him... Then
  proceed.
 
  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Rey Bango
  Sent: Monday, August 27, 2007 3:18 PM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: A Quick Thank You to the jQuery UI team
 
 
 
  That's a tentative date but its not set in stone. :)
 
  We're still working on some things. Sean will receive his beatings
  shortly! (whack)
 
  Rey
 
 
 
  Smith, Allex wrote:
   Doh...
  
   Cat's out of the bag.
  
   The project is set to release on September the 3rd.
  
   Thanks much for all the info.
  
   -Original Message-
   From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
   On Behalf Of Rey Bango
   Sent: Monday, August 27, 2007 3:03 PM
   To: jquery-en@googlegroups.com
   Subject: [jQuery] Re: A Quick Thank You to the jQuery UI team
  
  
  
   Yep, you haven't been watching the list closely enough...that is,
   the jQuery UI list.
  
   Hop on over to http://groups.google.com/group/jquery-ui and sign up
   and make sure to take a peak at the roadmap:
   http://docs.jquery.com/UI/
  
   As for a release date, I've been sworn to secrecy but I can say that
   things are looking good. :)
  
   Rey...
  
   Smith, Allex wrote:
   Rey,
  
   This may be a dumb question... But is there any release info about
   jQuery UI out yet? Screen shots or otherwise?
  
   Have I just not been watching the list closely enough?
  
   Thanks,
   Allex
  
   -Original Message-
   From: jquery-en@googlegroups.com
   [mailto:[EMAIL PROTECTED]
   On Behalf Of Rey Bango
   Sent: Monday, August 27, 2007 1:59 PM
   To: jQuery Discussion
   Subject: [jQuery] A Quick Thank You to the jQuery UI team
  
  
  
   Guys,
  
   I know you guys have been busting your tails on getting everything
   ready
  
   for jQuery UI and I wanted to tell you how thankful and
   appreciative I am for all of the hard work you've done to date.
   Getting a complete
 
   UI
  
   library developed is no easy task. I'm proud to be associated with
   such
   talented and committed developers.
  
   Keep up the great work.
  
   Rey...
  
  
 





[jQuery] Re: Not Blowing My Own Horn jQuery Super GUI Example

2007-08-28 Thread Rey Bango


Weirdo!!! ;)

Rey,,

Priest, James (NIH/NIEHS) [C] wrote:

My co-workers are probably wondering what in the heck I'm doing in here
with all these bird sounds!! :)


[jQuery] Re: Not Blowing My Own Horn jQuery Super GUI Example

2007-08-28 Thread Priest, James (NIH/NIEHS) [C]

 -Original Message-
 From: Mitchell Waite [mailto:[EMAIL PROTECTED] 

 This interface is an example of what a novice non programmer 
 can do using jQuery and a number of its best plugins. The 

Wow - that's really slick for a not-too-long-ago jQuery dummy! :)

Keep us posted as you complete it!  

My co-workers are probably wondering what in the heck I'm doing in here
with all these bird sounds!! :)

Jim


[jQuery] Re: Why isn't there top() and left() methods in the dimension plugin ?

2007-08-28 Thread Sam Collett

On Aug 28, 1:59 pm, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:
 Wow your too fast guys.
 It seems that I was using offset() the wrong way.

   $left = element.offset().left;
   $top = element.offset().top;

The only problem with that is you are calling offset twice (which may
impact performance). I would do:

$offset = element.offset();
$left = $offset.left; $top = $offset.top;



[jQuery] Re: Keeping a mouseover-triggered animation from running

2007-08-28 Thread Gordon

Has nobody else run into problems with events firing in unexpected
ways or in apparently the wrong order or too quickly?  This problem is
proving a real frustration and i can't find any way around it.  I
thought the flag setting approach was a sensible one to prevent
unwanted functioning of the event handlers but it doesn't work
properly.

Please please please, if anyone has any ideas, let me know because
this is proving a major frustration.

On Aug 25, 4:12 pm, Gordon [EMAIL PROTECTED] wrote:
 Anyone?

 On Aug 24, 3:40 pm, Gordon [EMAIL PROTECTED] wrote:

  I had a look at hoverIntent, but while it does seem to make the
  problem occur less often it doesn't prevent it entirely.

  Here's an example that illustrates the problem I'm having (using hover
  instead of hoverIntent so that the problem is more obvious)

  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
  head
  meta http-equiv=Content-Type content=text/html; charset=utf-8 /
  titleHovering test/title
  style type=text/css
  #cgtrGrid {
  position: relative;
  z-index: 1;
  width: 769px;
  height: 370px;
  margin: 0px;
  padding: 2px;
  overflow: hidden;
  border: solid 1px;}

  #cgtrGrid li.product {
  display: block;
  position: absolute;
  background: #E8E8E8;
  padding: 0px;
  border: solid 1px #00;
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  list-style: none outside;
  margin: 3px;

  }

  /style
  script type=text/javascript src=/js/jquery/jquery.js/script
  script type=text/javascript

  var zoomed  = false;
  var domCache= new Object ();
  var normalWidth = 146;
  var normalHeight= 66;

  function zoom ()
  {
  console.log (this);
  if (!zoomed)
  {
  zoomed = true;
  thisElem= $(this);
  var thisCol = Math.floor (domCache [this.id].left / 
  normalWidth);
  thisElem.css ('zIndex', 100).animate ({
  width   : (763) * 0.6,
  height  : 362,
  top : 2,
  left: (763 * 0.4) * (thisCol / 4)
  }, 'normal');
  }
  return (false);

  }

  function unzoom ()
  {
  var thisElem= $(this);
  thisElem.animate ({
  width   : normalWidth,
  height  : normalHeight,
  top : domCache [this.id].top,
  left: domCache [this.id].left
  }, 'normal', function ()
  {
  zoomed  = false;
  thisElem.css ('zIndex', 0);
  });
  return (false);

  }

  $(document).ready (function ()
  {
  $('.product').each (function ()
  {
  var thisElem = $(this);
  domCache [this.id] = new Object ({
  top : parseInt (thisElem.css ('top')),
  left: parseInt (thisElem.css ('left'))
  });
  });
  $('.product').hover (zoom, unzoom);});

  /script
  /head
  body
  ol id=cgtrGrid
li class=product id=list_HPN0115 style=top: 2px; left: 2px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_TOSAT352 style=top: 2px; left: 156px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_LENNB064 style=top: 2px; left: 310px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_ACNB8064 style=top: 2px; left: 464px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_ACNB0573 style=top: 2px; left: 618px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_ACNB8060 style=top: 76px; left: 2px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_ACNB0572 style=top: 76px; left:
  156px; width: 146px; height: 66px;This is a test/li
li class=product id=list_SONB0205 style=top: 76px; left:
  310px; width: 146px; height: 66px;This is a test/li
li class=product id=list_HPN0103 style=top: 76px; left: 464px;
  width: 146px; height: 66px;This is a test/li
li class=product id=list_TOSAT355 style=top: 76px; left:
  618px; width: 146px; height: 66px;This is a test/li
li class=product id=list_SONB0182 style=top: 150px; left: 2px;
  width: 146px; height: 66px; This is a test/li
li class=product id=list_SONB0202 style=top: 150px; left:
  156px; width: 146px; height: 66px;This is a test/li
li class=product id=list_ACNB8055 style=top: 150px; left:
  310px; width: 146px; height: 66px;This is a test/li
li class=product id=list_SONB0187 style=top: 150px; left:
  

[jQuery] Re: jQuery Interface Highlight Bug?

2007-08-28 Thread Priest, James (NIH/NIEHS) [C]

I think they are working on a replacement for Interface so I imagine
they are concentrating efforts on that vs. fixing old bugs...

Jim 

 -Original Message-
 From: Brandon! [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 27, 2007 3:30 PM
 To: jQuery (English)
 Subject: [jQuery] Re: jQuery Interface Highlight Bug?
 
 
 Ouch, a 6 month old bug?  I guess I'll have to just leave my callback
 function in for now, unless someone knows a better work around?
 


[jQuery] Re: Memory leak in 1.1.4?

2007-08-28 Thread John Resig

In what browser are you seeing this?

--John

On 8/28/07, CM-Z [EMAIL PROTECTED] wrote:

 Hello! I use utility Drip (http://www.outofhanwell.com/ieleak/
 index.php?title=Main_Page) for the control of memory-leak.
 The Drip shows memory-leak even in such simple case:

 html
 head
 script type=text/javascript src=jquery-1.1.4.js
 /script
 script type=text/javascript
 $(document).ready(function() {
 $('.hover').click(
 function() { $(this).text('clicked'); }
 );
 });
 /script
 /head
 body
 div class=hoverclick me/div
 /body
 /html

 It is a bug in Drip or in jQuery?

 Sorry for my bad English.




[jQuery] Re: Recursive setting of names in jquery

2007-08-28 Thread Sam Collett

The way I would do this is get all inputs with a name beginning with
'total' then use .each:

// save jQuery object for later use
$totals = $([EMAIL PROTECTED]);
$totals.each( function() {
  // get letter
  var letter = this.name.substr(5);
  if(letter == A) this.value = Total A;
});

On Aug 28, 5:00 am, Brett [EMAIL PROTECTED] wrote:
 Hello there, I've been loving jQuery so far - so efficient, and a
 great piece of code to work with.

 I was wondering if it is possible to use jQuery in a loop where I need
 to set a row of values in.
 For example if there was a set of input boxes named totalA - totalE.
 To change the first,  I would use:
 $([EMAIL PROTECTED]'totalA']).val(the value I want to put on this
 form);

 But is there a way I can make @name a variable, or a combination of
 strings?
 @name='total' + currentLetter  Does not work like I thought it
 would have..
 I think there is something fundamentally wrong that I'm doing...



[jQuery] Re: jQuery beginer in search of magic...

2007-08-28 Thread Glen Lipka
So you are all set?
If possible, post your final code to share. :)
I usually find that jQuery solutions are much simpler than you imagine at
first.  Glad we could help.

Glen

On 8/27/07, zapatino [EMAIL PROTECTED] wrote:


 Ok, now it work in safari as well.

 had to close the image tag in your script.

 target.empty().append(img src=' + bigImage + '  /); ( missing),
 don't bother try to find out anymore about this.

 thanks again.

 On Aug 27, 4:59 pm, Glen Lipka [EMAIL PROTECTED] wrote:
  Something like this?http://www.commadot.com/jquery/easebox/imageRows.php
 
  You can add in the easing plugin to get fancier effects.
  Maybe even the pause plugin to control the timing super specifically.
 
  Glen
 
  On 8/27/07, Glen Lipka [EMAIL PROTECTED] wrote:
 
 
 
   Its a little hard to follow exactly what you want, but nothing in it
   sounds problematic.
 
   Ok, so to mirror back to you the requirements.
 
  1. Several rows of thumbnails, Each row is a group.
  2. Click on a thumbnail and it shows that large image underneath,
  and hides any other image that was open.
  3. Two images can be open, but only in different rows (groups).
 
   Is this right?
 
   Glen
 
   On 8/27/07, zapatino [EMAIL PROTECTED] wrote:
 
Hi everybody...
 
Let me introduce myself, i'm a web designer and i'm learning
javascript to extend my set of skills.
i developed the javascript image gallery on my web site:
 
   http://kosmonot.bl1nd.com
 
i work on a mac and on mac browser it work almost all right. I do
 have
an issue when you click to fast on the same button, then everything
goes wild.
 
On pc, well I'm afraid it does not work.
 
I did all this gallery in plain old javascript, learning fron
different sources, but let me tell you it's hard work.
 
I then read about jquery and decided to redo everything with it,
 even
if i prefer to do it in plain old javascript to learn javascript
first. But i need this thing working and i've been seduced by jQuery
and its selector access.
 
Now it's a different approach and it's a bit confusing for me.
 
but anyway here comes the point.
 
I have different series of thumbnails and i want to load and expand
the full images, one by one like on my current page.
As well i want to manage the which image is selected, apply a class
 to
the thumbnail and remove it when deselected.
 
my first try was fun with the toggleClass() function. but when i
 click
on a different image i need to deselect the previous one. I tried to
keep the toggleClass() as a base and check if the image selected is
different, then toggle the class on the new one and remove it on the
previous one.
 
But i couldn't manage it.
 
So i decided to use an array to store the value like in this:
 
   http://kosmonot.bl1nd.com/gal_5.html
 
   http://kosmonot.bl1nd.com/j/jq001.js
 
so far it works but i'm not sure there is not a more jQuery way to
 do
it.
 
anyway with the script remember which is the current picture and
 which
is the previous one for every thumbnails in the page. However what i
want to do is to di the same for each sections and have a local
history for each one of those.
 
that's where i start to have brain problem.
 
in my plain old javascript thinking i woudl probably do a
multidimentional array to stock each gallery and the history within
each gallery. but when i think about it , create an object and let
javascript do the work seems like a better idea, if ever it's
possible.
 
But Object Oriented javascript is not yet my cup  of tea and the
 logic
behind jQuery for this kind of work is a bit out of my grasp for
 now.
 
i spent a couple of sleepless nights trying to find out how to do
that, but i'm stuck.
and now my javascript look like an empty page as i got mental with
 it.
 
   http://kosmonot.bl1nd.com/gal_6.html
   http://kosmonot.bl1nd.com/j/jq002.js
 
i would be happy to spend a few more sleepless nights on this but at
this moment i don't have a clue.
could somebody enlighten me a bit on what to do, just point me in
 the
right direction.
 
like how do you create in the initialisation script something to
remember each galleries and their stack history array or whatsoever.
 
thank you very  much People from the world for reading.




[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Rey Bango


Hi Ben,

First let me say that its a night and day difference!! Great job man and 
awesome turnaround! :D


Now, I'm also having some trouble with it in IE7 with the large pic not 
loading. As someone else mentioned, all I see is the Ajax indicator 
running but the image doesn't load.


Rey...

Benjamin Sterling wrote:
After taking a good bit of advice, I made changes to the jqGalView 
plugin and I think I have it at a very good place now.


Special thanks to those that gave great feedback, I took what you had to 
say and think I have a winner now.  This community breads greatness :)


http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery

By all means, please let me know if there is anything that can make it 
better.


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


[jQuery] Re: Tweaking the BlockUI Plugin

2007-08-28 Thread seedy


Post runs asynchronously, so the code does not wait for it to finish to
execute the $.unblockUI(priceElement);.  The set timeout won't be too
helpful because you dont know how long the request will take until it has
already happened.

What you likely want to do is to use $.ajax rather than $.post.  That will
let you have an event when your ajax call finishes(success, error), and turn
off blockui at that point

something like this

$('#priceupdate').click(function() { 
$.blockUI(priceElement, { width: '300px' });
$.ajax({
url :someurl.php,
data: 'data=somedata',
success: function(response){ alert('success');
$.unblockUI(); },
error: function(){ alert('oh crap'); $.unblockUI(); }
  })

});



enchen wrote:
 
 Hi is it possible to have the overlay stay visible all through the process
 while doing a $.post request?
 
 Mine disappears almost immediately...
 
 Code looks like: 
 
 script type=text/javascript!--
 jQuery.noConflict();
 $(document).ready(function() {
  
   var priceElement = $('#domCheckPrices'); 
   $('#priceupdate').click(function() { 
   $.blockUI(priceElement, { width: '300px' });
   $.post(#spRequest);
   //setTimeout('5000'); ?? or similar
   $.unblockUI(priceElement);
   });
 });
 
 // --
 /script
 
 
 I've tried with various implementations of setTimeout and a jQuery pause
 function I found, but it seams I'm not getting where I want whatever I
 try...
 
 Basically all I need is a overlay that blocks user input when the submit
 button is pressed, which also displays some useful information about
 what's being done. E.g. the prices are being updated or the form is
 submitted... The overlay would then disappear when the page is completely
 reloaded.
 
 Any help would be greatly appreciated.
 
 

-- 
View this message in context: 
http://www.nabble.com/Tweaking-the-BlockUI-Plugin-tf4341787s15494.html#a12368633
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Tweaking the BlockUI Plugin

2007-08-28 Thread Mike Alsup

Or to simply it further:

$.blockUI(priceElement, { width: '300px' });
$.post(#spRequest, $.unblockUI);

That should be all you need.

Mike

 Post runs asynchronously, so the code does not wait for it to finish to
 execute the $.unblockUI(priceElement);.  The set timeout won't be too


[jQuery] Re: Tweaking the BlockUI Plugin

2007-08-28 Thread Jiming

I use a different method to resolve this problem.

$.blockUI();

setTimeout(funtciont(){...whatever you need to do ... }, 10);


So far, it works fine.


On Aug 28, 10:09 pm, seedy [EMAIL PROTECTED] wrote:
 Post runs asynchronously, so the code does not wait for it to finish to
 execute the $.unblockUI(priceElement);.  The set timeout won't be too
 helpful because you dont know how long the request will take until it has
 already happened.

 What you likely want to do is to use $.ajax rather than $.post.  That will
 let you have an event when your ajax call finishes(success, error), and turn
 off blockui at that point

 something like this

 $('#priceupdate').click(function() {
 $.blockUI(priceElement, { width: '300px' });
 $.ajax({
 url :someurl.php,
 data: 'data=somedata',
 success: function(response){ alert('success');
 $.unblockUI(); },
 error: function(){ alert('oh crap'); $.unblockUI(); }
   })



 });
 enchen wrote:

  Hi is it possible to have the overlay stay visible all through the process
  while doing a $.post request?

  Mine disappears almost immediately...

  Code looks like:

  script type=text/javascript!--
  jQuery.noConflict();
  $(document).ready(function() {

 var priceElement = $('#domCheckPrices');
 $('#priceupdate').click(function() {
 $.blockUI(priceElement, { width: '300px' });
 $.post(#spRequest);
 //setTimeout('5000'); ?? or similar
 $.unblockUI(priceElement);
 });
  });

  // --
  /script

  I've tried with various implementations of setTimeout and a jQuery pause
  function I found, but it seams I'm not getting where I want whatever I
  try...

  Basically all I need is a overlay that blocks user input when the submit
  button is pressed, which also displays some useful information about
  what's being done. E.g. the prices are being updated or the form is
  submitted... The overlay would then disappear when the page is completely
  reloaded.

  Any help would be greatly appreciated.

 --
 View this message in 
 context:http://www.nabble.com/Tweaking-the-BlockUI-Plugin-tf4341787s15494.htm...
 Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Help serializing form to array

2007-08-28 Thread Mike Alsup

Take a look at Eric's response.  Except I think it should use name
instead of id:

parms[this.name] = this.value;



On 8/28/07, bweaverusenet [EMAIL PROTECTED] wrote:

 Okay, thanks.

 But I get the same error with $.extend( parms, {this.id :
 this.value } );

missing : after property id

 Hmmm...

 On Aug 28, 3:30 am, Wizzud [EMAIL PROTECTED] wrote:
  Use...
 
  $.extend( parms, {this.id : this.value } ); // extends parms with the
  subsequent objects
 
  The merge() method is for arrays, whereas parms and {this.id : this.value}
  are both objects, which is why you are getting the error.
 
 
 
  bweaverusenet wrote:
 
   Hi. What is the voodoo to build an array for a JSON submit from a
   bunch of form fields?
 
   Okay, I'm building the form dynamically from the fields in a mysql DB,
   with input/@id set to the field name.
 
   The following naive approach doesn't work, but will give you an idea
   of how I'm grabbing what I want to do. It definitely doesn't like the
   $.merge( parms, {this.id : this.value }) The error is missing : after
   property id...
 
 $(form#additem).submit(function(){
  var parms = { cmd:ADD };
  $(form#additem//[EMAIL PROTECTED]).each(function(){
  parms = $.merge( parms, {this.id : this.value } );
  });
  $.getJSON(thiscode.php,parms,function(data){});
   return false;
 });
 
   So, basically I am fishing for the best way to build or add to an
   array from an arbitrary form and send into getJSON.
 
   Thanks,
   bill
 
  --
  View this message in 
  context:http://www.nabble.com/Help-serializing-form-to-array-tf4339452s15494
  Sent from the JQuery mailing list archive at Nabble.com.




[jQuery] trouble with textarea values

2007-08-28 Thread Mike Miller

Hi,

I am trying to do the following:

I have a textarea on a page.  I want to preserve the text that has
been previously entered in the text box.  My solution has been to do
the following:

function commentHistory() {

var originalText = $j(#act_progress).text();
$j(#act_progress).parent().append(p /bHistory/bp /div
id='originalText'pre style='font-size:10pt;font-family: verdana,
arial, helvetica, serif'+originalText+/pre/div);
$j(#act_progress).text();
}

The above function displays the original value of the text box in its
own div.  When a user goes to submit the form the following function
is called:

function saveComments(){
curVal = $j(#act_progress).val();
origVal = $j(#originalText).text();

newVal = curVal + \n\n + origVal;

$j(#act_progress).val(newVal);

}

In Firefox this behaves as expected in that the original value is
appended to the new value and both old and new are saved.  However in
IE...only the new value is saved.  Not sure why this is happening and
need to find a way around it.

M



[jQuery] Re: Help serializing form to array

2007-08-28 Thread bweaverusenet

That worked, thanks!

I'll check out the form plugin... just wanted to figure out what I was
doing wrong first. :-)


On Aug 28, 3:36 am, Erik Beeson [EMAIL PROTECTED] wrote:
 I think you could replace the parms = ... line with:

 parms[this.id] = this.value;

 But I suggest you check out the awesome form plugin:

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

 --Erik

 On 8/27/07, bweaverusenet [EMAIL PROTECTED] wrote:



  Hi. What is the voodoo to build an array for a JSON submit from a
  bunch of form fields?

  Okay, I'm building the form dynamically from the fields in a mysql DB,
  with input/@id set to the field name.

  The following naive approach doesn't work, but will give you an idea
  of how I'm grabbing what I want to do. It definitely doesn't like the
  $.merge( parms, {this.id : this.value }) The error is missing : after
  property id...

$(form#additem).submit(function(){
  var parms = { cmd:ADD };
  $(form#additem//[EMAIL PROTECTED]).each(function(){
  parms = $.merge( parms, {this.id : this.value } );
  });
  $.getJSON(thiscode.php,parms,function(data){});
  return false;
});

  So, basically I am fishing for the best way to build or add to an
  array from an arbitrary form and send into getJSON.

  Thanks,
  bill



[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Sam Collett

How about:

$.meta.cre = /((?!\[)(.*)(?=\]))/;

This will fail if you use class=foo [required: true] but should be
fine with class=[required: true] foo

For it to work like it does with {} (class names before and after are
ignored), the meta data plugin would probably be have to be modified.

On Aug 28, 1:25 pm, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:
 Thanks for your answers.

 Emil you are right at saying that it is not a jquery issue.
 Its even more a formsess issue than a smarty issue, and thats why your
 solution
 wont work.Because of the formsess filters it produces something like:

 ##FS_SMARTY_LDELIM##ldelim##FS_SMARTY_RDELIM##required:
 true##FS_SMARTY_LDELIM##rdelim##FS_SMARTY_RDELIM##

 So I'm looking more for a jquery solution.
 Sam your solution goes in the direction I'm looking for, but it
 produces an error:

 I tried with class=[required: true]
 and added $.meta.cre = /(\[.*\])/; in the jQuery(document).ready(

 Firebug says :  invalid property id

 https://xxx.nondisclosabledomainname.com/subscription_new/js/jquery.m...
 Line 98

 in green: data = {[required: true]}

 -Olivier

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



  You could try adding this in $(document).ready, before calling the
  validate plugin:

  $.meta.cre = /(\[.*\])/;
  $(#foo).validate();

  Although that is not documented in the meta data plugin (maybe there
  should be an option in it to do that).

  On Aug 28, 9:05 am, Olivier Percebois-Garve [EMAIL PROTECTED]
  wrote:
   Hi

   I'm having an issue with the validation plugin. It conflicts with a
   smarty-based php class named formsess.
   It does not allow signs such as { in form tags.
   Sounds like hell to go modify formsess, so I hope to find a way to
  change
   that in the validation plugin.
   Could it be possible to replace class={required: true} with
   class=[required: true] ?

   thanks

   -Olivier



[jQuery] Re: trouble with textarea values

2007-08-28 Thread Mike Miller

One more thing.  I found that if I include an alert function at the
end of the saveComments function, the value is saved correctly in IE
and FF...however I don't want to have an alert and need to understand
why this happens:

unction saveComments(){
curVal = $j(#act_progress).val();
origVal = $j(#originalText).text();


newVal = curVal + \n\n + origVal;


$j(#act_progress).val(newVal);

alert(newVal);


}

On Aug 28, 8:41 am, Mike Miller [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to do the following:

 I have a textarea on a page.  I want to preserve the text that has
 been previously entered in the text box.  My solution has been to do
 the following:

 function commentHistory() {

 var originalText = $j(#act_progress).text();
 $j(#act_progress).parent().append(p /bHistory/bp /div
 id='originalText'pre style='font-size:10pt;font-family: verdana,
 arial, helvetica, serif'+originalText+/pre/div);
 $j(#act_progress).text();

 }

 The above function displays the original value of the text box in its
 own div.  When a user goes to submit the form the following function
 is called:

 function saveComments(){
 curVal = $j(#act_progress).val();
 origVal = $j(#originalText).text();

 newVal = curVal + \n\n + origVal;

 $j(#act_progress).val(newVal);

 }

 In Firefox this behaves as expected in that the original value is
 appended to the new value and both old and new are saved.  However in
 IE...only the new value is saved.  Not sure why this is happening and
 need to find a way around it.

 M



[jQuery] cluetip positioning

2007-08-28 Thread Eridius


Is there a way for me to set the position of the tooltip manually, say for
instance i want this tooltip to dipslay near the top and in the middle so
matter where the tooltip link is?
-- 
View this message in context: 
http://www.nabble.com/cluetip-positioning-tf4342335s15494.html#a12369913
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread Olivier Percebois-Garve
Great ! Thanks a lot.
It just work like you said. foo [required: true] breaks, but [required:
true] foo works like a charm.

PS: I'm amazed by the jquery mailing. Coolness and quality people.
Quite different to a php-pastry related I'm used too, where you never now
when and why it starts flaming all around 

-Olivier

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


 How about:

 $.meta.cre = /((?!\[)(.*)(?=\]))/;

 This will fail if you use class=foo [required: true] but should be
 fine with class=[required: true] foo

 For it to work like it does with {} (class names before and after are
 ignored), the meta data plugin would probably be have to be modified.

 On Aug 28, 1:25 pm, Olivier Percebois-Garve [EMAIL PROTECTED]
 wrote:
  Thanks for your answers.
 
  Emil you are right at saying that it is not a jquery issue.
  Its even more a formsess issue than a smarty issue, and thats why your
  solution
  wont work.Because of the formsess filters it produces something like:
 
  ##FS_SMARTY_LDELIM##ldelim##FS_SMARTY_RDELIM##required:
  true##FS_SMARTY_LDELIM##rdelim##FS_SMARTY_RDELIM##
 
  So I'm looking more for a jquery solution.
  Sam your solution goes in the direction I'm looking for, but it
  produces an error:
 
  I tried with class=[required: true]
  and added $.meta.cre = /(\[.*\])/; in the jQuery(document).ready(
 
  Firebug says :  invalid property id
 
  https://xxx.nondisclosabledomainname.com/subscription_new/js/jquery.m...
  Line 98
 
  in green: data = {[required: true]}
 
  -Olivier
 
  On 8/28/07, Sam Collett [EMAIL PROTECTED] wrote:
 
 
 
   You could try adding this in $(document).ready, before calling the
   validate plugin:
 
   $.meta.cre = /(\[.*\])/;
   $(#foo).validate();
 
   Although that is not documented in the meta data plugin (maybe there
   should be an option in it to do that).
 
   On Aug 28, 9:05 am, Olivier Percebois-Garve [EMAIL PROTECTED]
   wrote:
Hi
 
I'm having an issue with the validation plugin. It conflicts with a
smarty-based php class named formsess.
It does not allow signs such as { in form tags.
Sounds like hell to go modify formsess, so I hope to find a way to
   change
that in the validation plugin.
Could it be possible to replace class={required: true} with
class=[required: true] ?
 
thanks
 
-Olivier




[jQuery] Re: Memory leak in 1.1.4?

2007-08-28 Thread bweaverusenet

I can duplicate memory leakage in 1.1.4 with Firefox 2.0.0.6, but have
seen it in 1.1.3 and probably before. IE gobbles more memory but
eventually releases it. This could be a FF bug, but I haven't had the
chance to try duplicating with non-jquery javascript yet.

The following has a click that will slideToggle a div 1000 times on a
click. I lose about 10MB across the 1000 iterations. Seems to happen
for hide/show/toggle/etc.

html
head
script type=text/javascript src=http://code.jquery.com/jquery-
latest.pack.js/script
/head
body
a href=# id=clicktestToggle/a
div id=testpLorem ipsum dolor sit./p/div
/body
script language=javascript
$(document).ready(function(){
$(#clicktest).click( function(){
for(i=0;i1000;i++)
$(#test).slideToggle(10,function()
{setTimeout(';',50)});
});

});
/script
/html



On Aug 28, 10:23 am, John Resig [EMAIL PROTECTED] wrote:
 In what browser are you seeing this?

 --John

 On 8/28/07, CM-Z [EMAIL PROTECTED] wrote:



  Hello! I use utility Drip (http://www.outofhanwell.com/ieleak/
  index.php?title=Main_Page) for the control of memory-leak.
  The Drip shows memory-leak even in such simple case:

  html
  head
  script type=text/javascript src=jquery-1.1.4.js
  /script
  script type=text/javascript
  $(document).ready(function() {
  $('.hover').click(
  function() { $(this).text('clicked'); }
  );
  });
  /script
  /head
  body
  div class=hoverclick me/div
  /body
  /html

  It is a bug in Drip or in jQuery?

  Sorry for my bad English.



[jQuery] Re: [Resolved] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Klaus Hartl


Nico wrote:

Wonderfull! :-) It works with this one:

 $(this).find('/span/a').html('it works');

Thanks a lot for your help



You could write that even shorter:

$('/span/a', this).html('it works');


--Klaus


[jQuery] Re: cluetip positioning

2007-08-28 Thread Karl Swedberg


On Aug 28, 2007, at 11:19 AM, Eridius wrote:




Is there a way for me to set the position of the tooltip manually,  
say for
instance i want this tooltip to dipslay near the top and in the  
middle so

matter where the tooltip link is?


I don't think so. When you say, near the top, I'm not sure what  
you're referring to. Near the top of what? The window? If so, you  
don't really need the plugin. Just use Dimensions and the .scrollTop 
() method. If I'm misunderstanding your question, please set me  
straight.


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




[jQuery] Re: img src problem in IE6

2007-08-28 Thread Richard D. Worth
On 8/28/07, mohsin [EMAIL PROTECTED] wrote:


 $('#fp_menu a').each(function()
 {
 dev_id = querySt(dev_id);
 $(this).click(function()
 {
 new_src =
 http://+this_domain+/development/images/+dev_id+/
 floorplan/+this.id;
 $('#fp_img').attr({ src: new_src });
 });

 });

 in IE6 src is not changing.its work well in firefox and IE7


If the src attribute value isn't changing, then I don't know what the
problem may be. However if the src attribute value *is* changing, yet the
image doesn't seem to update, you may want to take a look at this thread:

Swapping img src in IE shows blank
http://groups.google.com/group/jquery-en/browse_thread/thread/f67fe1972c3b022f

- Richard


[jQuery] Re: [NEWS] YUI Compressor 2 out now - Now with CSS Compression

2007-08-28 Thread Benjamin Sterling
That is cool, I will have a look.  Thanks Tane.

On 8/28/07, Tane Piper [EMAIL PROTECTED] wrote:



 http://www.julienlecomte.net/blog/2007/08/27/yui-compressor-version-20-now-available/

 Version 2.0 of the YUI Compressor is out, fixing several bugs and
 implementing a few enhancements suggested by the community, including
 integrating Isaac Schlueter's regular expression based CSS minifier.
 Therefore, the YUI Compressor is now able to compress both JavaScript
 and CSS files.

 Just keeps getting better and better!

 --
 Tane Piper
 http://digitalspaghetti.me.uk

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




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


[jQuery] Click event not working...

2007-08-28 Thread Andy Matthews
Does anyone have any idea why the click event on my blog isn't working in
IE7?
 
http://www.andyandjaime.com/
 
Clicking on the words 
 
Comments :X: - View comments
or
Comments :X: - Be the first to add a comment
 
should fire this code:
 
$('.openComments b').click(function(){
 
$(this).parents('.openComments').next('.comments').slideDown().parent('.comm
entShell').ScrollTo(800);
return false;
});
 
it works just fine in FF, but not in IE.
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com http://www.dealerskins.com/ 
 
dealerskinslogo.bmp

[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Benjamin Sterling
First off, sorry about the IE issues, I made some changes and skipped the
process where you test in all browsers.  I fixed those issues and they
should be working now.  If there are still issues with it please let me
know.

Ok, to the good news:  following Alexandre's suggestion, I added the ability
to execute the jqModal plugin when you click the Full size link.  It does
a little bit what thickbox does in that instance.  It checks for the size of
the modal box and adjusts the image to fit that size.


 Also, you have the message which slides down reading open and while it
 doesn't go away when you mouse over it, you also can't click on it to
 trigger the large size. Nothing happens. I'd suggest trying an alternate
 means of indicating mouse over. Maybe a border which fades in around the
 image? Or shrink the image slightly in proportion?


Those are some excellent ideas; I am trying to make this as flexible as
possible so that the developer can style it in any way they want, so with
that said, I will experiment with an option that will be check against for a
custom function so that your idea would be possible.

ie:
customMouseOver: null // stick with default animation

customMouseOver : function(){ //run this custom function against the
thumbnail group instead}

I will work on this as the week progresses and see what I can come up with.



Even aside from these few minor critiques I have to agree with Rey that this
 is an EXCELLENT plugin. It's nice and compact and works very well. You
 should be very proud of yourself.


 andy

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rey Bango
 Sent: Tuesday, August 28, 2007 9:00 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: [UPDATE] jqGalView (yet another image gallery)


 Hi Ben,

 First let me say that its a night and day difference!! Great job man and
 awesome turnaround! :D

 Now, I'm also having some trouble with it in IE7 with the large pic not
 loading. As someone else mentioned, all I see is the Ajax indicator
 running
 but the image doesn't load.

 Rey...

 Benjamin Sterling wrote:
  After taking a good bit of advice, I made changes to the jqGalView
  plugin and I think I have it at a very good place now.
 
  Special thanks to those that gave great feedback, I took what you had
  to say and think I have a winner now.  This community breads greatness
  :)
 
  http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery
 
  By all means, please let me know if there is anything that can make it
  better.
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com





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


[jQuery] Re: [UPDATE] jqGalView (yet another image gallery)

2007-08-28 Thread Benjamin Sterling
btw, feel free to rate this plugin at
http://jquery.com/plugins/project/jqGalView :)



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


[jQuery] Superfish menu plugin v1.2.3 ...with explanation

2007-08-28 Thread Joel Birch
Hi everyone,

I've been debugging the Superfish menu plugin all day. Back when jQuery
1.1.3 was released, I had to change Superfish to make the submenus show due
to the way jQuery would no longer animate objects that were hidden by being
positioned off-screen - they needed to be explicitly hidden. This made
Superfish a touch less elegant than it was originally, but not too bad.

Then jQuery 1.1.4 came out and just today Richard Worth alerted me to the
fact that the keyboard accessibility feature was broken. I have fixed this
now and released Superfish 1.2.3. I have learnt that I can no longer just
call the same function for the blur event as for mouseout event, which made
things so elegant before. I think the reason this happened was due to a
cumulative effect of the various changes from both jQuery 1.1.3 and 1.1.4 -
and I don't fully understand what is happening as well as I would like.

Due to the growing complexity of each version of jQuery needing a particular
version of Superfish (and it's CSS file which may also have needed to be
changed), I will only be supporting this latest version - and probably not
as confidently as I could before, unfortunately. If you really need to use
an earlier version of jQuery, then please contact me through this list and I
will work out a bunch of packaged downloads of earlier versions. Superfish
is kind of outgrowing me...

Wow, what a depressing post huh? Maybe I just need a good rest and things
will seem better in the morning ;)

http://users.tpg.com.au/j_birch/plugins/superfish/

Joel Birch.


[jQuery] Re: [Resolved] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Karl Swedberg




On Aug 28, 2007, at 11:07 AM, Klaus Hartl wrote:



Nico wrote:

Wonderfull! :-) It works with this one:
 $(this).find('/span/a').html('it works');
Thanks a lot for your help



You could write that even shorter:

$('/span/a', this).html('it works');


--Klaus


Also, remember that beginning with version 1.2, these XPath selectors  
will be available only with a plugin. :(


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




[jQuery] Re: Click event not working...

2007-08-28 Thread seedy


This was a known issue for IE in 1.1.3
It has been fixed in 1.1.4


Andy Matthews-3 wrote:
 
 Does anyone have any idea why the click event on my blog isn't working in
 IE7?
  
 http://www.andyandjaime.com/
  
 Clicking on the words 
  
 Comments :X: - View comments
 or
 Comments :X: - Be the first to add a comment
  
 should fire this code:
  
 $('.openComments b').click(function(){
  
 $(this).parents('.openComments').next('.comments').slideDown().parent('.comm
 entShell').ScrollTo(800);
 return false;
 });
  
 it works just fine in FF, but not in IE.
  
 
  
 Andy Matthews
 Senior ColdFusion Developer
 
 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED]
 www.dealerskins.com http://www.dealerskins.com/ 
  
 
  
 

-- 
View this message in context: 
http://www.nabble.com/Click-event-not-working...-tf4342561s15494.html#a12371188
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Tweaking the BlockUI Plugin

2007-08-28 Thread seedy



enchen wrote:
 
 
 It looks like it could be done, but I can't seem to get the page reloaded
 this way, which means all my server-side verifications are left unnoticed.
 As this is rather new to me I think I need the info fed with a teaspoon in
 order to get it working. So the questions are a) can an AJAX call reload
 the page in order to reflect changes in my PHP script and b) how do I use
 the AJAX url:  to submit a form including all fields ?
 
 

a) An ajax call has a response from the page it calls, and you can then do
what you need with that response (replace some html on the page, or append
it).  
b) If you want to submit the entire form I reccomend taking a look at
malsups   http://www.malsup.com/jquery/form/ Form Plugin 

In addition, if you are already comfortable using $.post, you can try out
what Mike has suggested


malsup wrote:
 
 
 $.blockUI(priceElement, { width: '300px' });
 $.post(#spRequest, $.unblockUI); 
 
 

The second parameter of the $.post is the callback, which basically means
when the post is done, run this function.
-- 
View this message in context: 
http://www.nabble.com/Tweaking-the-BlockUI-Plugin-tf4341787s15494.html#a12371166
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Sean Catchpole
On 8/28/07, Nico [EMAIL PROTECTED] wrote:

 $(this).children(span).children(a).html(it works);


I would have chosen the following
$(span a,this).html(it works);

~Sean


[jQuery] Re: Memory leak in 1.1.4?

2007-08-28 Thread CM-Z

Screenshots:
http://wand.ru/leak1.PNG
http://wand.ru/leak2.PNG
http://wand.ru/leak3.PNG



[jQuery] Re: Effect - Slide Up/Down

2007-08-28 Thread [EMAIL PROTECTED]

Hi, i've been reading here and there and so far the best solution to
slide a table is to wrap the table in a div and slide the div.
That works on IE7 (in firefox there was no problem and still works
good, in IE6 I haven't tried)

I hate to add unecessary markup like the wrapping div, but so far is
the best solution(, if you don't need row by row sliding).

I you find a better alternative, I'm would like to hear about it.
Another way I tried, but gave up was to convert the table into a list
whith spans (costumized with css) all of the same size, but I didn't
got the spans to align correctly.



[jQuery] Live Query with Draggables

2007-08-28 Thread Theodore Ni

Hey guys,

I'm having a spot of trouble combining live query with interface
draggables, and I'm afraid I don't have the time to study the
internals of both plugins (I'm in midst of trying to meet a deadline),
so I hope you guys can briefly explain how both work.

When I am dragging something, does it move the original element or
does it clone it and then move it? For Live Query, how does it
determine when something new is added to the DOM?

I ask because I have been having trouble using live query with forms
in draggable DHTML windows. I attach functions to the forms on submit
using live query (because I put the name of the callback function in a
hidden field inside the form), and the forms don't always work after
they are dragged.

Thanks,
Ted



[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-28 Thread Pops



On Aug 27, 11:31 am, John Resig [EMAIL PROTECTED] wrote:

 YUI, Dojo, and jQuery all use this technique to avoid these leaks.
 It's unavoidable otherwise.


John,

I'm curious.  Been catching up of the technical issues and JS/DOM
framework, and it seems to me that a basic part of the issues is
related to closures and anonymous functions and how the JS user agents
deals with it.

I'm curious if you tried/explored initialize the  XHR.readystatechange
handler? How about XHR worker thread pools?  or not using a anonymous
function for the handler but a external function?

I tried all this for IE and FF and under Windows, I don't see any more
leaks.

I used this suggestion for initializing the hander:

http://www.volkanozcelik.com/cre8/blog/2006/04/another-way-to-prevent-memory-leak-in.html

var Constants = {
 NULL:function() {}
};

usage  xml.onreadystatechange = Constants.NULL;

--
HLS



[jQuery] xml and xlst and ajax

2007-08-28 Thread [EMAIL PROTECTED]

hi everyone!
first, im apologyze for my bad english, because my mother language is
spanish :), but i try to improve my english :)

im newbie on jquery and i have a lot of questions about ajax.

i wanna use ajax with xml documents and xslt to format the content of
the xml documents.
see this picture to understand 
http://upload.wikimedia.org/wikipedia/commons/e/e6/XSLT_en.svg

i have an application that serves xml documents and a xml document in
the client side processed with xslt
 i wanna make a petition to my server, retrieve an xml document and
load into the existing xml document.

i hope: change the existing xml document containing the served xml
document and the most important thing.

the html document displayed in the browser (result document) change
its content whit the new content of the xml document.

BUT, ( :-( always exist a but), when i try to load a xml served
document into the xml document on the client, dont work, beacuse  the
load method. work whit the result document, not whit the xml in the
client.

somebody know where i can see or search...?
or somebody wanna insult to me for my bad english :-)
thanks ;)



[jQuery] Re: xml and xlst and ajax

2007-08-28 Thread Sean Catchpole
This plugin may be of assistance:
http://jquery.com/plugins/project/XSLT

~Sean


[jQuery] Re: Problem with validate plugin in IE6?

2007-08-28 Thread Jean

Thank Youuu a lot!

On 8/27/07, SeViR [EMAIL PROTECTED] wrote:

 Jean escribió:
  I dont know why but with validate code my js dont run anything =/
  even though a simple alert
  I´m trying with IE6, FF works fine!
 
  Is somebody with the same problem??
 
  $(document).ready(
  function()
  {
$(#validando).hide();
$(#Responder).bind('click', function(){
var old_title = document.title;
document.title = Validando...;
mostraMSG(validando);
 
$(#envia_quest).validate({
errorClass: error_valida,
errorElement: em,
errorPlacement: function(error, element) {
   error.appendTo( 
  element.parents(ul).find(li.aki_erro) );
}, - THIS IS THE ERROR
 
 I marked above the error. You have a list of object element with a final
 comma. This simple error
 was my nightmare one month ago :-P. Be careful.
});//fim validate
escondeMSG(validando);
document.title = old_title;
});
 
escondeMSG(carregando);
  });
  function mostraMSG(container) {
$(#total).hide();
$(#+container).show();
  }
  function escondeMSG(container) {
$(#+container).hide();
$(#total).show();
  }
 
 


 --
 Best Regards,
  José Francisco Rives Lirola sevir1ATgmail.com

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

  Murcia - Spain




-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com

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



[jQuery] Re: How do you test if an object exists?

2007-08-28 Thread Benjamin Sterling
$(#myID').size() != 0 or

$(*).index( $('#myID')[0] ) // returns -1 if not there.


On 8/28/07, Frank Peterson [EMAIL PROTECTED] wrote:


 I'm getting weird bugs when using setTimeouts and/or setIntervals
 after I hit the back button in Firefox to come back to the page.

 I need to do a check at the top of any setTimeout to make sure that
 the object I need still exists.

 But I dont know how :(




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


[jQuery] tablesorter 2.0: problems with multiple rows in thead

2007-08-28 Thread tlphipps

Tablesorter 2.0 rocks!  But I think I've uncovered a bug.

I have a table with two rows in the thead section, but the
tablesorter doesn't work on this table.  I've narrowed the issue down
to the checkCellColSpan() function.  If I bypass that function, then
everything works correctly.  I've discovered that the arr.push (line
302) command is never executed if there is more than one tr in the
thead of the table.  Also, I can't figure out why the call to this
function at line 268 includes 4 parameters when the function only uses/
needs 3.  I'm definitely not a javascript guru, so any help or insight
that you all can provide would be greatly appreciated.

FWIW, my table does NOT use colspans in the thead, so I don't need
that function, but if there's an official fix for this I would prefer
that instead of creating a customized version of the tablesorter for
my needs.



[jQuery] Anyone see anything wrong with this validation code from Jorn's plug-in?

2007-08-28 Thread Rick Faircloth
I'm not getting any reponse from the validatin plug-in at all. 

 

One specific question is whether or not the plug-in can validate time.

Couldn't find a definite no on the plug-in website.

 

Thanks for the extra eyes!

 

Rick

 

script type=text/javascript
src=../js/jquery.js/script

script type=text/javascript
src=../js/jquery.metadata.js/script

script type=text/javascript
src=../js/jquery.validate.js/script

 

script type=text/javascript

 

//$.validator.defaults.debug = true;

 

$().ready(function() {

 

// validate Property Search form fields on
keyup

$(#calendar_add_form).validate({



errorPlacement: function(error, element) {

error.appendTo(# + element.attr('id') +
_error);

  },

 

focusInvalid: false,

event: keyup,



rules: {

 
event_name:{ required: true },

 
event_description:{ required: true },

 
event_date: { required: true, date: true },

 
event_time:   { time: true },

 
event_location: { required: true },

 
contact_person:   { required: true },

 
entered_by:  { required: true }

 
},

 

messages: {

 
event_name:{ required: Please enter a name for the
event.},

 
event_description:{ required: Please enter a description of the
event. },

 
event_date:   { required: Please enter the date of the
event. (Format: Feb 12, 2007),

 
date: This entry must be a valid date. (Format: Feb 12, 2007) },

 
event_time:   { required: Please enter a valid time.
(Format: 10:00 am) },

 
event_location:{ required: Please enter the event location.
},

 
contact_person:   { required: Please enter the contact person's
name. },

 
entered_by:  { required: Please enter your name. }

 
}

})

});



/script


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



[jQuery] How do you test if an object exists?

2007-08-28 Thread Frank Peterson

I'm getting weird bugs when using setTimeouts and/or setIntervals
after I hit the back button in Firefox to come back to the page.

I need to do a check at the top of any setTimeout to make sure that
the object I need still exists.

But I dont know how :(



[jQuery] Re: How do you test if an object exists?

2007-08-28 Thread Mike Alsup

If it's a global var you'd do this:

if (!window.video_ajax_timer_id) {
// do stuff
}

On 8/28/07, Frank Peterson [EMAIL PROTECTED] wrote:

 I'm not test for an ID or a HTML element but a variable.

 video_ajax_timer_id = setTimeout('prevnext(1, '+next_image_num+')',
 5000);

 Basically I need to know if I need to call that setTimeout or not.




[jQuery] Re: How do you test if an object exists?

2007-08-28 Thread Benjamin Sterling
Andy, I find that doing video_ajax_timer_id != undefined does not always
for, so I would suggest typeof video_ajax_timer_id != 'undefined', but
that is just my preference.

On 8/28/07, Andy Matthews [EMAIL PROTECTED] wrote:


 if (video_ajax_timer_id != '' || video_ajax_timer_id != undefined)

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Frank Peterson
 Sent: Tuesday, August 28, 2007 1:05 PM
 To: jQuery (English)
 Subject: [jQuery] Re: How do you test if an object exists?


 I'm not test for an ID or a HTML element but a variable.

 video_ajax_timer_id = setTimeout('prevnext(1, '+next_image_num+')', 5000);

 Basically I need to know if I need to call that setTimeout or not.





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


[jQuery] Re: Live Query with Draggables

2007-08-28 Thread Brandon Aaron
I'm not very familiar with the Interface library but it looks like the
Draggable code clones the element using native DOM methods. Try registering
the Draggable plugin via the registerPlugin method (
http://brandonaaron.net/docs/livequery/#plugin-developers) like this:

$.livequery.registerPlugin(Draggable);

Now Live Query will know to watch for changes created by the Draggable code.

--
Brandon Aaron

On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote:


 Hey guys,

 I'm having a spot of trouble combining live query with interface
 draggables, and I'm afraid I don't have the time to study the
 internals of both plugins (I'm in midst of trying to meet a deadline),
 so I hope you guys can briefly explain how both work.

 When I am dragging something, does it move the original element or
 does it clone it and then move it? For Live Query, how does it
 determine when something new is added to the DOM?

 I ask because I have been having trouble using live query with forms
 in draggable DHTML windows. I attach functions to the forms on submit
 using live query (because I put the name of the callback function in a
 hidden field inside the form), and the forms don't always work after
 they are dragged.

 Thanks,
 Ted




[jQuery] Re: How do you test if an object exists?

2007-08-28 Thread Benjamin Sterling
Sorry, misread your question.

On 8/28/07, Mike Alsup [EMAIL PROTECTED] wrote:


 If it's a global var you'd do this:

 if (!window.video_ajax_timer_id) {
 // do stuff
 }

 On 8/28/07, Frank Peterson [EMAIL PROTECTED] wrote:
 
  I'm not test for an ID or a HTML element but a variable.
 
  video_ajax_timer_id = setTimeout('prevnext(1, '+next_image_num+')',
  5000);
 
  Basically I need to know if I need to call that setTimeout or not.
 
 




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


[jQuery] Re: How do you test if an object exists?

2007-08-28 Thread Andy Matthews

 if (video_ajax_timer_id != '' || video_ajax_timer_id != undefined)

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Frank Peterson
Sent: Tuesday, August 28, 2007 1:05 PM
To: jQuery (English)
Subject: [jQuery] Re: How do you test if an object exists?


I'm not test for an ID or a HTML element but a variable.

video_ajax_timer_id = setTimeout('prevnext(1, '+next_image_num+')', 5000);

Basically I need to know if I need to call that setTimeout or not.




[jQuery] Re: Not Blowing My Own Horn jQuery Super GUI Example

2007-08-28 Thread Mitch

Thanks for the complicment James. It might look good but its held
together with tape and paperclips :)

Its interesting how focused this group is on the plugins and the
visual capability of jQuery but there are so few examples of using
that power.

Why is that?

I hope more people step up to the plate and show how they use jQuery
to raise the bar on GUIs.

On Aug 28, 6:43 am, Priest, James (NIH/NIEHS) [C]
[EMAIL PROTECTED] wrote:
  -Original Message-
  From: Mitchell Waite [mailto:[EMAIL PROTECTED]
  This interface is an example of what a novice non programmer
  can do using jQuery and a number of its best plugins. The

 Wow - that's really slick for a not-too-long-ago jQuery dummy! :)

 Keep us posted as you complete it!  

 My co-workers are probably wondering what in the heck I'm doing in here
 with all these bird sounds!! :)

 Jim



[jQuery] Re: Anyone see anything wrong with this validation code from Jorn's plug-in?

2007-08-28 Thread Jörn Zaefferer


Rick Faircloth schrieb:


I’m not getting any reponse from the validatin plug-in at all…

One specific question is whether or not the plug-in can validate time.

Couldn’t find a definite “no” on the plug-in website.



There isn't a time-method yet. Its easy to write your own though.

-- Jörn


[jQuery] Re: pnGFix Plugin with Jquery 1.1.4

2007-08-28 Thread polyrhythmic

Goodness yes, looking at the sources, iepnghack will be the best
option.  It will also be the most compatible with future jQuery
versions.  The pngFix plugin uses a cloning hack I've never seen
before!  I am using internally a pngFix function based off the same
code as iepnghack, and it's been working from 1.1.1 to 1.1.4 without
issues.

Charles
doublerebel.com

On Aug 27, 2:31 pm, voltron [EMAIL PROTECTED] wrote:
 Thanks Sam, I´ll try the other one out.

 On Aug 27, 11:14 pm, Sam Sherlock [EMAIL PROTECTED] wrote:

  AFAIK there are two pngFix plugins for jquery.

   http://khurshid.com/jquery/iepnghack/

  Is the one I am using, it works (as far as I have tested) with latest
  jQuery, you can't repeat the image using background repeat.

  On 27/08/2007, voltron [EMAIL PROTECTED] wrote:

   Hi all,

   has anyone gotten the pngFix plugin to work with Jquery 1.1.4?

   Thanks



[jQuery] Re: Memory leak in 1.1.4?

2007-08-28 Thread CM-Z

In IE7 as well as in IE6 there is an memory leak.



[jQuery] DIV clipping or autofit question

2007-08-28 Thread Pops

I have a div  id=wcResult container.

Via $.ajax() the success and failure call back do this:

$(#wcResult).text(xml.responseText);

to display the result.

If success, the server sends JSON formatted data.
If failure, like uthentication required, HTML is sent.

For the JSON data,  the div will not clip or autofit the content. It
runs off the div border.

For the HTML, the div will autofit the content very nicely.

I am not completely sure the reason for this, but I believe its
related to HTML :-)

Comments?

PS: This is only under FireFox.  IE fits them both.

--
HLS



[jQuery] Re: SITE SUBMISSION: scarlet.be

2007-08-28 Thread polyrhythmic

Those are awesome prices!  Over here in Seattle, WA, US I would do
anything to drop Comcast Cable (who is now blocking torrent seeds) and
get a dedicated 20Mbps/1kbps ADSL line - it would be less than I'm
paying now!!!  Is Europe like this everywhere?  Pity our exchange rate
right now :-/ .  I guess y'all have a more competitive broadband
market?

Charles
doublerebel.com

On Aug 27, 11:04 am, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 just found out my ISP is using jquery on its main website: HYPERLINK 
 http://www.scarlet.be/fr/http://www.scarlet.be/fr/

 Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
 Lakensestraat/Rue de Laeken 104
 B-1000 Brussel-Bruxelles-Brussels
 Belgie-Belgique-Belgium

 Tel:+32(0)2.219.65.55
 Fax:+32(0)2.426.69.86
 Mobile:+32(0)476.23.21.42
 HYPERLINK blocked::http://www.lab-au.com/http://www.lab-au.com
 HYPERLINK blocked::http://www.mediaruimte.be/http://www.mediaruimte.be

 HYPERLINK 
 blocked::http://www.mediaruimte.be/__

 The information in this e-mail is intended only for the addressee named 
 above.  If you are not that addressee, please note that any disclosure, 
 distribution or copying of this e-mail is prohibited.
 Because e-mail can be electronically altered, the integrity of this 
 communication cannot be guaranteed.

 __

 Ce message Envoi est certifié sans virus connu.
 Analyse effectuée par AVG.
 Version: 7.5.484 / Base de données virus: 269.12.9/975 - Date: 26/08/2007 
 21:34


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



[jQuery] Re: DIV clipping or autofit question

2007-08-28 Thread seedy


Is the text you are trying to display
onereallylongstringthatdoesnotcontainanyspaces???

I believe Firefox has a bug that prevents it from wrapping text that does
not have a space in it, I often run into that problem when trying to display
URL's in firefox.


Pops wrote:
 
 
 I have a div  id=wcResult container.
 
 Via $.ajax() the success and failure call back do this:
 
 $(#wcResult).text(xml.responseText);
 
 to display the result.
 
 If success, the server sends JSON formatted data.
 If failure, like uthentication required, HTML is sent.
 
 For the JSON data,  the div will not clip or autofit the content. It
 runs off the div border.
 
 For the HTML, the div will autofit the content very nicely.
 
 I am not completely sure the reason for this, but I believe its
 related to HTML :-)
 
 Comments?
 
 PS: This is only under FireFox.  IE fits them both.
 
 --
 HLS
 
 
 

-- 
View this message in context: 
http://www.nabble.com/DIV-clipping-or-autofit--question-tf4343725s15494.html#a12375323
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Text node selector?

2007-08-28 Thread willi

It would be realy, realy great if free text nodes would also be
matched in the core jQuery functionality.

eg.
form
here is some text
input ... / some more text
hr /
and more text
/form

$('form').children() does not select the free text nodes within
the form. Without the plugin there is no simple solution to modify
this text.

Thx  regards, Willi



[jQuery] Re: jQuery beginer in search of magic...

2007-08-28 Thread zapatino

no i'm not.

i'm stil trying to do my history thing to style the selected
thumnail in each section.
As i wrote before i have a working version of this feature on all the
thumbnails, but i want to specify for each section.

what i want to do is:

-open (slide down) the gallery when an image is selected and apply a
selected style to the thumbnail.
-if i select the same image again, the row close (slide up)
- if i select an other image, the image change without slide. apply
selected style to new thumbnail and remove  it from the previous one
-you can have more than one row open.

i try to do thing in order, and i can't get around this history
management, I don't understand how to define an array to stock the
value of the images viewed for each section like i did for all of
them.

$(document).ready(function() {

//build list of the thumbnails link
var pic_link_list = $(.image-gallery li a);

//init history stack
var stack = [];

//init thumbnails click events
pic_link_list.click(function(event){

//handle selected pic history
stack.push(this);
var newpic = stack[stack.length - 1];
$(newpic).addClass(selected);

if (stack.length  1)
{
var oldpic = stack[stack.length - 2];
$(oldpic).removeClass(selected);
}

//limit history to 2 elems
if (stack.length  2)
{
stack.shift();
}

if(oldpic == newpic)
{
stack.splice(0, stack.length);
}

//create pic holder


//prevent default link action
event.preventDefault();

});

});

or there:

http://kosmonot.bl1nd.com/j/jq001.js
http://kosmonot.bl1nd.com/gal_5.html

cheers

On Aug 28, 3:18 pm, Glen Lipka [EMAIL PROTECTED] wrote:
 So you are all set?
 If possible, post your final code to share. :)
 I usually find that jQuery solutions are much simpler than you imagine at
 first.  Glad we could help.

 Glen

 On 8/27/07, zapatino [EMAIL PROTECTED] wrote:



  Ok, now it work in safari as well.

  had to close the image tag in your script.

  target.empty().append(img src=' + bigImage + '  /); ( missing),
  don't bother try to find out anymore about this.

  thanks again.

  On Aug 27, 4:59 pm, Glen Lipka [EMAIL PROTECTED] wrote:
   Something like this?http://www.commadot.com/jquery/easebox/imageRows.php

   You can add in the easing plugin to get fancier effects.
   Maybe even the pause plugin to control the timing super specifically.

   Glen

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

Its a little hard to follow exactly what you want, but nothing in it
sounds problematic.

Ok, so to mirror back to you the requirements.

   1. Several rows of thumbnails, Each row is a group.
   2. Click on a thumbnail and it shows that large image underneath,
   and hides any other image that was open.
   3. Two images can be open, but only in different rows (groups).

Is this right?

Glen

On 8/27/07, zapatino [EMAIL PROTECTED] wrote:

 Hi everybody...

 Let me introduce myself, i'm a web designer and i'm learning
 javascript to extend my set of skills.
 i developed the javascript image gallery on my web site:

http://kosmonot.bl1nd.com

 i work on a mac and on mac browser it work almost all right. I do
  have
 an issue when you click to fast on the same button, then everything
 goes wild.

 On pc, well I'm afraid it does not work.

 I did all this gallery in plain old javascript, learning fron
 different sources, but let me tell you it's hard work.

 I then read about jquery and decided to redo everything with it,
  even
 if i prefer to do it in plain old javascript to learn javascript
 first. But i need this thing working and i've been seduced by jQuery
 and its selector access.

 Now it's a different approach and it's a bit confusing for me.

 but anyway here comes the point.

 I have different series of thumbnails and i want to load and expand
 the full images, one by one like on my current page.
 As well i want to manage the which image is selected, apply a class
  to
 the thumbnail and remove it when deselected.

 my first try was fun with the toggleClass() function. but when i
  click
 on a different image i need to deselect the previous one. I tried to
 keep the toggleClass() as a base and check if the image selected is
 different, then toggle the class on the new one and remove it on the
 previous one.

 But i couldn't manage it.

 So i decided to use an array to store the value like in this:

http://kosmonot.bl1nd.com/gal_5.html

http://kosmonot.bl1nd.com/j/jq001.js

 so far it works but i'm not 

[jQuery] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Erik Beeson

  $(this).children(span).children(a).html(it works);
 I would have chosen the following
 $(span a,this).html(it works);

I think that isn't quite the same thing. In the following, your
suggestion would match 3 anchors, and the OP's would just match the
first one:

div id=container
  spana href=../a/span
  divspana href=../a/span/div
  spandiva href=../a/div/span
/div

--Erik


[jQuery] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Brandon Aaron
This should work then:

$(' span  a', this).html('it works');

--
Brandon Aaron

On 8/28/07, Erik Beeson [EMAIL PROTECTED] wrote:


   $(this).children(span).children(a).html(it works);
  I would have chosen the following
  $(span a,this).html(it works);

 I think that isn't quite the same thing. In the following, your
 suggestion would match 3 anchors, and the OP's would just match the
 first one:

 div id=container
   spana href=../a/span
   divspana href=../a/span/div
   spandiva href=../a/div/span
 /div

 --Erik



[jQuery] Re: Live Query with Draggables

2007-08-28 Thread Brandon Aaron
Just use Live Query to bind the submit handler. It will only bind it once
per a new form element.

$('form.client').livequery('submit', function() { alert('boo'); return
false; });

Also, try to give the selector more scope, like a parent element with an ID.

$('#containerID form.client').livequery(...);

Could you upload an example somewhere that we could see?

--
Brandon Aaron

On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote:


 That sounds like it should work, but it isn't doing anything. I think
 there must be something wrong with my fundamental understanding of how
 jQuery or the plugins work.

 Suppose I try this:

 $('form.client').livequery(function() {
 //alert('new: ' + $(this).parent().attr('id'));
 $(this).unbind('submit');
 $(this).submit(function() { alert('boo'); return false; });
 }, function() { alert('removed'); });

 After dragging, I get no alerts on form submission, and the return
 false is not working either. Oddly, if I comment out the unbind()
 statement, then the functions layer on top of one another, so I get
 progressively more and more alerts after every drag operation.

 I was able to directly work with the form's onsubmit, which doesn't
 layer, so this isn't a problem, but I am using the AJAX form plugin as
 well, and that doesn't work very well.

 It is worth nothing that the new and remove alerts show up once at the
 beginning of a drag and at the end of one, as you would expect.

 Unfortunately, I just don't know enough about either plugin to figure
 out what is going wrong, and I'm not very familiar with Firebug :-(

 I'm grateful for any help you guys can give me.

 On 8/28/07, Brandon Aaron [EMAIL PROTECTED] wrote:
  I'm not very familiar with the Interface library but it looks like the
  Draggable code clones the element using native DOM methods. Try
 registering
  the Draggable plugin via the registerPlugin method (
  http://brandonaaron.net/docs/livequery/#plugin-developers) like this:
 
  $.livequery.registerPlugin(Draggable);
 
  Now Live Query will know to watch for changes created by the Draggable
 code.
 
  --
  Brandon Aaron
 
  On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote:
  
  
   Hey guys,
  
   I'm having a spot of trouble combining live query with interface
   draggables, and I'm afraid I don't have the time to study the
   internals of both plugins (I'm in midst of trying to meet a deadline),
   so I hope you guys can briefly explain how both work.
  
   When I am dragging something, does it move the original element or
   does it clone it and then move it? For Live Query, how does it
   determine when something new is added to the DOM?
  
   I ask because I have been having trouble using live query with forms
   in draggable DHTML windows. I attach functions to the forms on submit
   using live query (because I put the name of the callback function in a
   hidden field inside the form), and the forms don't always work after
   they are dragged.
  
   Thanks,
   Ted
  
  
 


 --
 Ted



[jQuery] Re: [Resolved] Re: How optimize $(this).children(span).children(a).html(it works);

2007-08-28 Thread Erik Beeson

 Wonderfull! :-) It works with this one:
  $(this).find('/span/a').html('it works');
 Also, remember that beginning with version 1.2, these XPath selectors will
 be available only with a plugin. :(

Oh yeah, in light of that, the recommended way is spana instead of
/span/a.

It irritates me a little bit because I prefer to use the XPath version
and don't want to have to deal with another plugin, but I always found
it a little odd that there was more than one way to do the same thing,
so I guess I appreciate the change.

--Erik


[jQuery] Re: removeClass from *any* element

2007-08-28 Thread Glen Lipka
try $(*).removeClass(redText);
or $(* *).removeClass(redText);

Glen

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


 I apply a class called RedText to items I need to make stand out to
 the user.  I want to be able to globally remove the class from any
 and all elements on my page within a specific div tag.  Is there a
 wildcard selector or some other way to do this:

 $(wildcard, '#mydiv').removeClass('RedText');




[jQuery] Re: removeClass from *any* element

2007-08-28 Thread Erik Beeson

$('#mydiv *').removeClass('RedText');

See:
http://docs.jquery.com/DOM/Traversing/Selectors

--Erik


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

 I apply a class called RedText to items I need to make stand out to
 the user.  I want to be able to globally remove the class from any
 and all elements on my page within a specific div tag.  Is there a
 wildcard selector or some other way to do this:

 $(wildcard, '#mydiv').removeClass('RedText');




[jQuery] removeClass from *any* element

2007-08-28 Thread Shelane

I apply a class called RedText to items I need to make stand out to
the user.  I want to be able to globally remove the class from any
and all elements on my page within a specific div tag.  Is there a
wildcard selector or some other way to do this:

$(wildcard, '#mydiv').removeClass('RedText');



[jQuery] compare two arrays

2007-08-28 Thread Potluri


Is there a jquery way to compare two arrays without looping.

like I have an array1 [a,b,1,2,3]
and array2 [b,c,d,11 ].

Is there a way like array1.compare(array2). which returns true if atleast
one element among the 2 arrays matches.

Straight answers are appreciated.

Regards,
Vijay Potluri  
-- 
View this message in context: 
http://www.nabble.com/compare-two-arrays-tf4344387s15494.html#a12376633
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: tablesorter 2.0: problems with multiple rows in thead

2007-08-28 Thread Christian Bach
Hi Travis,

Would it be possible to send me a test-case of your table, off-list?

Makes spotting the bug easier for me.

Regards
Christian



2007/8/28, tlphipps [EMAIL PROTECTED]:


 Tablesorter 2.0 rocks!  But I think I've uncovered a bug.

 I have a table with two rows in the thead section, but the
 tablesorter doesn't work on this table.  I've narrowed the issue down
 to the checkCellColSpan() function.  If I bypass that function, then
 everything works correctly.  I've discovered that the arr.push (line
 302) command is never executed if there is more than one tr in the
 thead of the table.  Also, I can't figure out why the call to this
 function at line 268 includes 4 parameters when the function only uses/
 needs 3.  I'm definitely not a javascript guru, so any help or insight
 that you all can provide would be greatly appreciated.

 FWIW, my table does NOT use colspans in the thead, so I don't need
 that function, but if there's an official fix for this I would prefer
 that instead of creating a customized version of the tablesorter for
 my needs.




[jQuery] Re: Anyone see anything wrong with this validation code from Jorn's plug-in?

2007-08-28 Thread Jörn Zaefferer


Rick Faircloth schrieb:

Hi, Jorn...

For now I just made the time field required to have *any* entry,
without validating the entry as time.

However, I'm still getting no response from the form.  My server-side
validation is working perfectly, but I'm still getting no response
from the plug-in.

Here's the url:  http://www.RickFaircloth.com/cfm/calendar_add.cfm
  


That works fine for me. What exactly is the issue?

-- Jörn


  1   2   >