[jQuery] Re: [Validate plugin] Question about the 'remote' AJAX option

2009-07-09 Thread Guillaume Lecanu

On Jul 8, 6:31 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
 The JSON response can be true/false, or a String, handled as false
 (invalid), and the string will be used as the error message. You need
 the latest version (1.5.5) for that to work properly.

Perfect !
Thanks



[jQuery] Re: ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-09 Thread nico

Hi,

Thank you for your answer.

Yes, I also think it has nothing to do with Z-Index but with the
position: relative of the li elements and the absoulte position of the
submenu ul.

But I think my space is big enough my Problem is not the mainmenu but
the submenu it opens in a navbar (850px width) and when there are too
many items in it there are two rows of items. And when I then hover
over an item in the first row the submenu ul alyways apears behind the
li item in the second row.

So what I need is a Idea to bring the absoulte ul above the relative
li element.



On 8 Jul., 18:37, Charlie charlie...@gmail.com wrote:
 if your main menu items don't fit into space allowed and you force them into 
 wrapping to multiple levels, a different design approach migtht be in order?
 the position :rel has to be there for absolute position to use as reference 
 location
 problem has nothing to do with z-index in my opinion, you're expecting too 
 much in too little space.Seeing the live situation may help, can you post a 
 link?
 nico wrote:Hi, I have a problem with the superfish menu in navbar mode and 
 ie6/7. The first submenu items are in a full width row. If there are lots of 
 subitems i get two rows. If an item in the first row has a submenu it opens 
 as dropdown (200px width) right below the item. This works good in all 
 browser except in ie6/7. Here I have the problem that the li submenu navbar 
 item in the second row appears always above the dropdown if it opens from an 
 item in the first row. Thats because the li items in the navbar are 
 positition relative and the ul of the dropdown is absolute, so the li 
 pos.:rel. is always above ul pos. absol. no matter what z-indexes are given. 
 You can see the effect on the official demo 
 sitehttp://users.tpg.com.au/j_birch/plugins/superfish/#examplesJust bring the 
 Browser Window widht to 300px so that the demo menu has two menuitem in the 
 row and two rows, hover over the first mainmenu item and you see just 3 
 submenuitems instead of 4 (because the first submenu item is hidden behind 
 the second mainmenu row.) Do you know this issue and any workarounds? btw. 
 superfish is awsome!


[jQuery] [Validate] How to disable onkeyup checks on a specific field ?

2009-07-09 Thread Guillaume Lecanu

Hello,

I have a field that use the 'remote' option to call a server side
script to check the field value.

If the field value is wrong, after each new key pressed, the remote
server side is called.
This could be very ennoying and increase the load on our server.

There is a way to disable the onkeyup event only for a specific
field ?

I have tried :
jQuery.validator.setDefaults({
myField: {
 onkeyup: false,
 remote:   'myScript.php',
}
});
And also tried :
jQuery.validator.setDefaults({
myField: {
 remote:   'myScript.php',
},
onkeyup: {
  myField: false
}
});
but this doesn't works...


Thanks in advance for your advices.



[jQuery] Does jquery have a plugin to do this?

2009-07-09 Thread paulswansea

Hi, I'm looking for a jquery plugin that does the 'rays' effect on
http://scripty2.com/ i've had a look, but can't seem to find anything,
I was wondering if anyone had come across something like this before?


[jQuery] problem with removeClass() or live() event

2009-07-09 Thread Sanam

Hello,
  I have dynamically adding and removing element function within live
() event and used addClass() and removeClass() to update the classes
of the remaining elements. It works all fine and shows the updated
classes when checked in firebug. But when alerting the class it shows
both new and the old class.Can anyone help through this problem.

  $('a.remove').live(mouseover, function(){
   $('a.remove').each(function(i) {
remove(this, i);
});
 });


function remove(obj, i) {
//remove the clicked element and update the classes of the remaining
elements

.remoceClass().addClass(newclass)

}



[jQuery] Re: Does jquery have a plugin to do this?

2009-07-09 Thread Jonathan Vanherpe (T T NV)


paulswansea wrote:

Hi, I'm looking for a jquery plugin that does the 'rays' effect on
http://scripty2.com/ i've had a look, but can't seem to find anything,
I was wondering if anyone had come across something like this before?



Looking at the generated code, it's an svg which is being transformed by 
changing the values in rotate().


svg width=700 height=700defsradialgradient 
id=raphael-gradient-0stop offset=0% stop-color=#9ed356/stop 
offset=100% stop-color=#97be63 
stop-opacity=0//radialgradient/defspath 
fill=url(#raphael-gradient-0) stroke=none style=opacity: 1; 
opacity=1 fill-opacity=1 d=M350.000 350.000 L350.000 350.000 
L700.000 350.000 L694.683 289.223 L350.000 350.000 L678.892 230.293 
L653.109 175.000 L350.000 350.000 L618.116 125.024 L574.976 81.884 
L350.000 350.000 L525.000 46.891 L469.707 21.108 L350.000 350.000 
L410.777 5.317 L350.000 0.000 L350.000 350.000 L289.223 5.317 L230.293 
21.108 L350.000 350.000 L175.000 46.891 L125.024 81.884 L350.000 350.000 
L81.884 125.024 L46.891 175.000 L350.000 350.000 L21.108 230.293 L5.317 
289.223 L350.000 350.000 L0.000 350.000 L5.317 410.777 L350.000 350.000 
L21.108 469.707 L46.891 525.000 L350.000 350.000 L81.884 574.976 
L125.024 618.116 L350.000 350.000 L175.000 653.109 L230.293 678.892 
L350.000 350.000 L289.223 694.683 L350.000 700.000 L350.000 350.000 
L410.777 694.683 L469.707 678.892 L350.000 350.000 L525.000 653.109 
L574.976 618.116 L350.000 350.000 L618.116 574.976 L653.109 525.000 
L350.000 350.000 L678.892 469.707 L694.683 410.777 Z  
transform=rotate(499.793, 350, 350)//svg


So the only thing you really need js for is the animation, which you can 
easily do without even using a framework.


Keep in mind that this thing probably only works in the most recent 
versions of Safari , Chrome and Firefox


Jonathan

--
Jonathan Vanherpe - Tallieu  Tallieu NV - jonat...@tnt.be


[jQuery] Re: How to disable onkeyup checks on a specific field ?

2009-07-09 Thread Guillaume Lecanu

I have found the solution :

jQuery.validator.setDefaults({
onkeyup: function(element) {
if (element.name == 'myField') {
return true;
}
if ( element.name in this.submitted || element ==
this.lastElement ) {
this.element(element);
}
}
}

If this can help ;-)


[jQuery] Re: Does jquery have a plugin to do this?

2009-07-09 Thread Liam Potter


works in IE as well, using rvml instead of svg.

Jonathan Vanherpe (T  T NV) wrote:


paulswansea wrote:

Hi, I'm looking for a jquery plugin that does the 'rays' effect on
http://scripty2.com/ i've had a look, but can't seem to find anything,
I was wondering if anyone had come across something like this before?



Looking at the generated code, it's an svg which is being transformed 
by changing the values in rotate().


svg width=700 height=700defsradialgradient 
id=raphael-gradient-0stop offset=0% stop-color=#9ed356/stop 
offset=100% stop-color=#97be63 
stop-opacity=0//radialgradient/defspath 
fill=url(#raphael-gradient-0) stroke=none style=opacity: 1; 
opacity=1 fill-opacity=1 d=M350.000 350.000 L350.000 350.000 
L700.000 350.000 L694.683 289.223 L350.000 350.000 L678.892 230.293 
L653.109 175.000 L350.000 350.000 L618.116 125.024 L574.976 81.884 
L350.000 350.000 L525.000 46.891 L469.707 21.108 L350.000 350.000 
L410.777 5.317 L350.000 0.000 L350.000 350.000 L289.223 5.317 L230.293 
21.108 L350.000 350.000 L175.000 46.891 L125.024 81.884 L350.000 
350.000 L81.884 125.024 L46.891 175.000 L350.000 350.000 L21.108 
230.293 L5.317 289.223 L350.000 350.000 L0.000 350.000 L5.317 410.777 
L350.000 350.000 L21.108 469.707 L46.891 525.000 L350.000 350.000 
L81.884 574.976 L125.024 618.116 L350.000 350.000 L175.000 653.109 
L230.293 678.892 L350.000 350.000 L289.223 694.683 L350.000 700.000 
L350.000 350.000 L410.777 694.683 L469.707 678.892 L350.000 350.000 
L525.000 653.109 L574.976 618.116 L350.000 350.000 L618.116 574.976 
L653.109 525.000 L350.000 350.000 L678.892 469.707 L694.683 410.777 Z 
 transform=rotate(499.793, 350, 350)//svg


So the only thing you really need js for is the animation, which you 
can easily do without even using a framework.


Keep in mind that this thing probably only works in the most recent 
versions of Safari , Chrome and Firefox


Jonathan



[jQuery] Re: why is this href firing???

2009-07-09 Thread NickFitz

On Jul 9, 5:20 am, Karl Swedberg k...@englishrules.com wrote:
 On Jul 8, 2009, at 11:47 AM, MorningZ wrote:

  I see this (stopping links in their tracks) a lot and it's puzzling,
  so i think:

  *if you do not want an a to actually follow a link, then don't use
  an a, use a span or something instead and use CSS to make it look
  like a link to the user*

  That will 100% solve all issues with a hyperlink acting like, well, a
  hyperlink  :-)

 The problem with using a span in those cases is that it isn't  
 accessible. Links can be focused. You can tab to them and press Enter/
 Return, and the click event will fire. Not so with spans.


The HTML 4.01 button element with type=button (or input
type=button if you don't need anything more than basic text
content) is specifically intended for just this kind of thing:
http://www.w3.org/TR/html401/interact/forms.html#edef-BUTTON
http://www.w3.org/TR/html401/interact/forms.html#h-17.4.1

Focusable, accessible, and doesn't have any default behaviour which
has to be overridden. If you don't like the fact that it looks like a
button, just style it with CSS: all browsers that JQuery supports
allow this. (But remember to set overflow: visible; in the styling,
or IE6 (as usual) can make a mess of it if it under certain
circumstances: http://natbat.net/2009/Jun/10/styling-buttons-as-links/
.)

Regards,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/



[jQuery] Re: Does jquery have a plugin to do this?

2009-07-09 Thread Jonathan Vanherpe (T T NV)


Yeah, I noticed. pretty neat.

Liam Potter wrote:


works in IE as well, using rvml instead of svg.

Jonathan Vanherpe (T  T NV) wrote:


paulswansea wrote:

Hi, I'm looking for a jquery plugin that does the 'rays' effect on
http://scripty2.com/ i've had a look, but can't seem to find anything,
I was wondering if anyone had come across something like this before?



Looking at the generated code, it's an svg which is being transformed 
by changing the values in rotate().


svg width=700 height=700defsradialgradient 
id=raphael-gradient-0stop offset=0% stop-color=#9ed356/stop 
offset=100% stop-color=#97be63 
stop-opacity=0//radialgradient/defspath 
fill=url(#raphael-gradient-0) stroke=none style=opacity: 1; 
opacity=1 fill-opacity=1 d=M350.000 350.000 L350.000 350.000 
L700.000 350.000 L694.683 289.223 L350.000 350.000 L678.892 230.293 
L653.109 175.000 L350.000 350.000 L618.116 125.024 L574.976 81.884 
L350.000 350.000 L525.000 46.891 L469.707 21.108 L350.000 350.000 
L410.777 5.317 L350.000 0.000 L350.000 350.000 L289.223 5.317 L230.293 
21.108 L350.000 350.000 L175.000 46.891 L125.024 81.884 L350.000 
350.000 L81.884 125.024 L46.891 175.000 L350.000 350.000 L21.108 
230.293 L5.317 289.223 L350.000 350.000 L0.000 350.000 L5.317 410.777 
L350.000 350.000 L21.108 469.707 L46.891 525.000 L350.000 350.000 
L81.884 574.976 L125.024 618.116 L350.000 350.000 L175.000 653.109 
L230.293 678.892 L350.000 350.000 L289.223 694.683 L350.000 700.000 
L350.000 350.000 L410.777 694.683 L469.707 678.892 L350.000 350.000 
L525.000 653.109 L574.976 618.116 L350.000 350.000 L618.116 574.976 
L653.109 525.000 L350.000 350.000 L678.892 469.707 L694.683 410.777 Z 
 transform=rotate(499.793, 350, 350)//svg


So the only thing you really need js for is the animation, which you 
can easily do without even using a framework.


Keep in mind that this thing probably only works in the most recent 
versions of Safari , Chrome and Firefox


Jonathan






--
Jonathan Vanherpe - Tallieu  Tallieu NV - jonat...@tnt.be


[jQuery] (validate) submit using submithandler : how to post value of submit button

2009-07-09 Thread rekna

I'm using jquery validation to validate and submit all my forms.

The submitHandler of jquery validation uses jquery form plugin to
submit the form using $(form).ajaxSubmit()

Without validation, you can use $(form).ajaxForm(...) to submit your
form using ajax, and this will also send the value of the button which
caused the submit.

With validation, I have to use ajaxSubmit, instead of ajaxForm, but
ajaxSubmit can not automatically add the value of the submit button to
the POST values.

Is there a generic way, to find out in the submitHandler of jquery
validation, which button was pressed that caused the submit ?



[jQuery] Re: (validate) submit using submithandler : how to post value of submit button

2009-07-09 Thread Jörn Zaefferer

The latest version (1.5.5+) includes a feature that automatically
appends a hidden field to the form with the name/value pair of the
submit button, before calling submitHanlder (and removing it
afterwards). So you can just use ajaxSubmit.

Jörn

On Thu, Jul 9, 2009 at 11:43 AM, reknarek...@gmail.com wrote:

 I'm using jquery validation to validate and submit all my forms.

 The submitHandler of jquery validation uses jquery form plugin to
 submit the form using $(form).ajaxSubmit()

 Without validation, you can use $(form).ajaxForm(...) to submit your
 form using ajax, and this will also send the value of the button which
 caused the submit.

 With validation, I have to use ajaxSubmit, instead of ajaxForm, but
 ajaxSubmit can not automatically add the value of the submit button to
 the POST values.

 Is there a generic way, to find out in the submitHandler of jquery
 validation, which button was pressed that caused the submit ?




[jQuery] Re: ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-09 Thread Charlie





Following concept would allow the subs of second row to open below that
row. This is untested but should be relatively easy to implement

Add a class to the wrapped li's forming 2nd row then create a different
css position rule for sub ul of that class based on height of the
navbar li's. The offset would be double the value currently used for
the sub ul . Default is 2.5em, so try 5em or adjust accordingly based
on css you've modified

Again, posting a test case would be very helpful. Your original
suggestion of making browser go to 300px wide was very misleading as to
actual situation

nico wrote:

  Hi,

Thank you for your answer.

Yes, I also think it has nothing to do with Z-Index but with the
position: relative of the li elements and the absoulte position of the
submenu ul.

But I think my space is big enough my Problem is not the mainmenu but
the submenu it opens in a navbar (850px width) and when there are too
many items in it there are two rows of items. And when I then hover
over an item in the first row the submenu ul alyways apears behind the
li item in the second row.

So what I need is a Idea to bring the absoulte ul above the relative
li element.



On 8 Jul., 18:37, Charlie charlie...@gmail.com wrote:
  
  
if your main menu items don't fit into space allowed and you force them into wrapping to multiple levels, a different design approach migtht be in order?
the position :rel has to be there for absolute position to use as reference location
problem has nothing to do with z-index in my opinion, you're expecting too much in too little space.Seeing the live situation may help, can you post a link?
nico wrote:Hi, I have a problem with the superfish menu in navbar mode and ie6/7. The first submenu items are in a full width row. If there are lots of subitems i get two rows. If an item in the first row has a submenu it opens as dropdown (200px width) right below the item. This works good in all browser except in ie6/7. Here I have the problem that the li submenu navbar item in the second row appears always above the dropdown if it opens from an item in the first row. Thats because the li items in the navbar are positition relative and the ul of the dropdown is absolute, so the li pos.:rel. is always above ul pos. absol. no matter what z-indexes are given. You can see the effect on the official demo sitehttp://users.tpg.com.au/j_birch/plugins/superfish/#examplesJust bring the Browser Window widht to 300px so that the demo menu has two menuitem in the row and two rows, hover over the first mainmenu item and you see just 3 submenuitems instead of 4 (because the first submenu
 item is hidden behind the second mainmenu row.) Do you know this issue and any workarounds? btw. superfish is awsome!

  
  
  






[jQuery] Re: having a hard time finding the parent...

2009-07-09 Thread Vaskerville

$('#' + obj.id).parent().find('.section-secondary').length;

Yes...that is what basically ended up going the trick. I needed to be
a bit more specific. What I realized was that I didn't need the
entired of the particular ul group because each subgroup indicates the
'section-secondary'. Confusing...now it works perfectly.

Above, I'm just checking to see if the result (length) is more than
zero...

Many thanks!


On Jul 8, 3:16 pm, BaBna thomas.na...@gmail.com wrote:
 What about $('li.active').parents(ul).find(.whatever)?

 On Jul 8, 2:10 pm, vaaaska vask...@gmail.com wrote:



  Haha...nice title? ;)

  I have this list structure and when the page loads I reveal the active
  page...all the other pieces are revealed when you click. Everything
  works great except this one detail.

  I need to run a check (a filter?) to see if the active list element
  exists in a 'secondary' list (nested ul). If it does, I need to
  activate another piece of code to display the secondary list titles
  (and this is working as well). Just need to run a check so I know when
  to run this extra code.

  I can get the parent of the active list element and even the html
  within it no problem...but I actually need to go up an additional
  parent or two (ul's) so I can get the code for the entire section and
  then filter to see if it is in fact it has the secondary pieces. This
  is the list...

  ul id='section-id-16' class='section-menu'
  li class='section-title section-primary'span class='blank-title'
  id='t2'// Editorial/span

  ul
  li class='section-title section-tag section-secondary'span
  class='blank-tag'Secondary List Title/span
  ul
  li class='section-page active'a href='/newby-layout/'Newby Layout/
  a/li
  li class='section-page'a href='/notes/'Notes/a/li
  li class='section-page'a href='/qs-for-dan/'Q's for Dan/a/li
  li class='section-page'a href='/project/print/testing-
  formats/'Testing Formats/a/li
  /ul
  /li
  /ul

  ul
  li class='section-title section-tag section-secondary'span
  class='blank-tag' id='Herewerare'Herewerare/span
  ul
  li class='section-page'a href='/newest-year/'
  class='herewerare'Newest Year/a/li
  /ul
  /li
  /ul

  Etc...

  I've tried $('li.active').parent() and $('li.active').parents() (and
  tons of variations) but I just can not get the html beyond the first
  parent. I'm not showing the full index here...it's quite long...but it
  does validate and check out just fine.

  Any ideas?

  Thanks


[jQuery] Re: ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-09 Thread Charlie





another thought, can also do this programatically using the
onBeforeShow option. Same idea, add a class to the wrapped ul's . 

onBeforeShow: function(){ 
 if ($(this).hasClass("secondRowClass")) {
$(this).css("top","5em");
}

Again, untested but I have used this method to do realignments and
animations before. Either of these solutions is workable





Charlie wrote:
Following concept
would allow the subs of second row to open below that
row. This is untested but should be relatively easy to implement
  
Add a class to the wrapped li's forming 2nd row then create a different
css position rule for sub ul of that class based on height of the
navbar li's. The offset would be double the value currently used for
the sub ul . Default is 2.5em, so try 5em or adjust accordingly based
on css you've modified
  
Again, posting a test case would be very helpful. Your original
suggestion of making browser go to 300px wide was very misleading as to
actual situation
  
nico wrote:
  
Hi,

Thank you for your answer.

Yes, I also think it has nothing to do with Z-Index but with the
position: relative of the li elements and the absoulte position of the
submenu ul.

But I think my space is big enough my Problem is not the mainmenu but
the submenu it opens in a navbar (850px width) and when there are too
many items in it there are two rows of items. And when I then hover
over an item in the first row the submenu ul alyways apears behind the
li item in the second row.

So what I need is a Idea to bring the absoulte ul above the relative
li element.



On 8 Jul., 18:37, Charlie charlie...@gmail.com wrote:
  

  if your main menu items don't fit into space allowed and you force them into wrapping to multiple levels, a different design approach migtht be in order?
the position :rel has to be there for absolute position to use as reference location
problem has nothing to do with z-index in my opinion, you're expecting too much in too little space.Seeing the live situation may help, can you post a link?
nico wrote:Hi, I have a problem with the superfish menu in navbar mode and ie6/7. The first submenu items are in a full width row. If there are lots of subitems i get two rows. If an item in the first row has a submenu it opens as dropdown (200px width) right below the item. This works good in all browser except in ie6/7. Here I have the problem that the li submenu navbar item in the second row appears always above the dropdown if it opens from an item in the first row. Thats because the li items in the navbar are positition relative and the ul of the dropdown is absolute, so the li pos.:rel. is always above ul pos. absol. no matter what z-indexes are given. You can see the effect on the official demo sitehttp://users.tpg.com.au/j_birch/plugins/superfish/#examplesJust bring the Browser Window widht to 300px so that the demo menu has two menuitem in the row and two rows, hover over the first mainmenu item and you see just 3 submenuitems instead of 4 (because the first submenu

 item is hidden behind the second mainmenu row.) Do you know this issue and any workarounds? btw. superfish is awsome!



  
  
  





[jQuery] Autocomplete selection Issue

2009-07-09 Thread jazz

Hi
Can any body suggest me how to do this by jquery..i have seen some
autocomplete examples but i am not getting the correct application
like this:
first we type a letter,then it will show a list from that we scroll
down the mouse(either mouse or keypad) the highlighted value should be
placed in the textbox..which is similar to the link:
http://www.hscripts.com/scripts/JavaScript/autocomplete-form.php?text=arrangement

please give me idea

Regards,
Bhatath


[jQuery] Re: Remove margin in last li in Unordered List

2009-07-09 Thread Charlie





of course it won't work, is improper use of index(), 

replace index() with eq()

Suggestion: 
instead of posting each and every thought and failed function you have
every 2 minutes, this example could have been created in a very simple
test page to get the methods and syntax sorted out. Would have saved us
watch the floundering on each and every step of your grief. Other
example you tried $("#mycarousel  li[" + i + "]") is syntax problem
with several workarounds including :eq()

Building simple test pages is one of the best ways to learn jquery IMO.
Keeping a simple template including link to jquery google source, and a
$(document)ready built in you can build a test page in any directory in
almost no time and debug in Firebug


expresso wrote:

  tried this but doesn't look like you can do this

$("#mycarousel  li").index(i).css("margin-right", "0px").css("padding-
right", "6px");

On Jul 8, 9:48pm, expresso dschin...@gmail.com wrote:
  
  
Like something like this

$("#mycarousel  li[" + i + "]").css("margin-right", "0px").css
("padding-right", "6px");

On Jul 8, 9:46pm, expresso dschin...@gmail.com wrote:



  Thanks. I wonder if you can even access an li by index?
  


  On Jul 8, 9:35pm, MorningZ morni...@gmail.com wrote:
  


  
Why wouldn't you just use:

  


  
http://docs.jquery.com/Selectors/last

  


  
$("#mycarousel  li:last").css("property", "value");

  


  
On Jul 8, 10:17pm, expresso dschin...@gmail.com wrote:

  


  

  If I have the following:
  

  


  

  div class="jcarousel-clip jcarousel-clip-horizontal" style="width:
459px; height: 220px;"
  ul id="mycarousel" class="jcarousel-list jcarousel-list-
horizontal" style="height: 220px; width: 918px; left: 0px;"
li class="jcarousel-item jcarousel-item-horizontal jcarousel-
item-1 jcarousel-item-1-horizontal" jcarouselindex="1"
/li
li class="jcarousel-item jcarousel-item-horizontal jcarousel-
item-2 jcarousel-item-2-horizontal" jcarouselindex="2"
/li
li class="jcarousel-item jcarousel-item-horizontal jcarousel-
item-3 jcarousel-item-3-horizontal" jcarouselindex="3"
/li
/ul
/div
  

  


  

  Trying to figure out how I can do a .each on each li and then add an
additional style to the last li in the list.
  

  

  
  
  






[jQuery] jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

Hello

I have a problem with hoverIntent function. For some reason i get
error mentioned in subject. I know jquery conflicts with prototype in
this case so i used jquery noconflict. For some reason hoverIntent
function still does not work.
I changed hoverintent.js to have jQuery instead of $ in it - still no
luck.

My file has such scripts:
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery-1.3.2.js/script
{literal}
script type=text/javascript
jQuery.noConflict();
/script
{/literal}
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.easing.min.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.hoverIntent.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.localscroll-1.2.7-min.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.scrollTo-1.4.2-min.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/init.js/script

Somewhere down the line CMS inserts prototype.js but i dont think it
is important atm.

Hoverintent is beeing used like this in init.js :
jQuery(ul.lavaLamp).hoverIntent(function(){
jQuery(this).children(li).hoverIntent(function(){
jQuery(this).children(ul.levTwo).slideToggle('fast');
var el = jQuery(this);
movehere(el);
}, function(){
jQuery(this).children(ul.levTwo).slideToggle('fast');
}, 3, 100, 1000);
},function(){
var el = jQuery(li.active);
movehere(el);
}, 1, 1, 10);



Alan


[jQuery] Re: ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-09 Thread nico

Hi Charlie,

Thanks again for your ideas, if theres no other way I maybe let the
subsubmenu ul obens also in a navbar 850px widht right under the first
navbar.

ok, here is an example of the superfish menu.
http://www.premioweb.eu/jobs/

hover over mainmenu item01 - submenuitem01
you see in ie6/7 this leads to my problem.



On 9 Jul., 13:43, Charlie charlie...@gmail.com wrote:
 another thought, can also do this programatically using the onBeforeShow 
 option. Same idea, add a class to the wrapped ul's .
 onBeforeShow:  function(){
                     if ($(this).hasClass(secondRowClass)) {
                               $(this).css(top,5em);
 }
 Again, untested but I have used this method to do realignments and animations 
 before. Either of these solutions is workable
 Charlie wrote:Following concept would allow the subs of second row to open 
 below that row. This is untested but should be relatively easy to implement
 Add a class to the wrapped li's forming 2nd row then create a different css 
 position rule for sub ul of that class based on height of the navbar li's. 
 The offset would be double the value currently used for the sub ul .  Default 
 is 2.5em, so try 5em or adjust accordingly based on css you've modified
 Again, posting a test case would be very helpful. Your original suggestion of 
 making browser go to 300px wide was very misleading as to actual situation
 nico wrote:Hi, Thank you for your answer. Yes, I also think it has nothing to 
 do with Z-Index but with the position: relative of the li elements and the 
 absoulte position of the submenu ul. But I think my space is big enough my 
 Problem is not the mainmenu but the submenu it opens in a navbar (850px 
 width) and when there are too many items in it there are two rows of items. 
 And when I then hover over an item in the first row the submenu ul alyways 
 apears behind the li item in the second row. So what I need is a Idea to 
 bring the absoulte ul above the relative li element. On 8 Jul., 18:37, 
 Charliecharlie...@gmail.comwrote:if your main menu items don't fit into 
 space allowed and you force them into wrapping to multiple levels, a 
 different design approach migtht be in order? the position :rel has to be 
 there for absolute position to use as reference location problem has nothing 
 to do with z-index in my opinion, you're expecting too much in too little 
 space.Seeing the live situation may help, can you post a link? nico wrote:Hi, 
 I have a problem with the superfish menu in navbar mode and ie6/7. The first 
 submenu items are in a full width row. If there are lots of subitems i get 
 two rows. If an item in the first row has a submenu it opens as dropdown 
 (200px width) right below the item. This works good in all browser except in 
 ie6/7. Here I have the problem that the li submenu navbar item in the second 
 row appears always above the dropdown if it opens from an item in the first 
 row. Thats because the li items in the navbar are positition relative and the 
 ul of the dropdown is absolute, so the li pos.:rel. is always above ul pos. 
 absol. no matter what z-indexes are given. You can see the effect on the 
 official demo 
 sitehttp://users.tpg.com.au/j_birch/plugins/superfish/#examplesJust bring the 
 Browser Window widht to 300px so that the demo menu has two menuitem in the 
 row and two rows, hover over the first mainmenu item and you see just 3 
 submenuitems instead of 4 (because the first submenu item is hidden behind 
 the second mainmenu row.) Do you know this issue and any workarounds? btw. 
 superfish is awsome!


[jQuery] malsup's jcorners script leaves artifacts in Safari/Chrome

2009-07-09 Thread OldGuy

I'm using the script from http://www.malsup.com/jquery/corner/ to
round corners. Works fine in IE, FF and Opera. But it leaves artifacts
at the corners when displayed in Safari and Google Chrome.

You can see what I mean by browsing to http://www.scripts.oldguy.us/v3/
using either Safari or Chrome.

It puzzles me because it there is no black background styles anywhere
in my css so it can't be as simple as the color being a leftover of an
inheritance.

If I play around a bit in my css I can get some of them to disappear
by assigning background: #FFF !important to certain classes/ID's. But,
without changing the tempates, not all.

My app has many users (most with little tech knowledge) who would have
a hellofa time trying to get rid of the artifacts. I can't do it for
them because they can customize the templates/css and it would be a
nightmare trying to hellp them through each of their unique
situations.

Anyone have a good solution? Using css or images to do the rounding is
not an option (too easy to break as users customize the templates. And
I don't have enough js experience to look at the malsup script and
make it work in Safari and Chrome.



[jQuery] Suckerfish and template conflict

2009-07-09 Thread tacotac


All of the templates I've tried the menu works fine and shows up (as a
problem solver), but when I use the template I need, the drop down
menu is hidden. I have even played around with z-index, and no luck no
matter what I do. I just don't know where i should be fixing things in
the template I guess. What could I possibly do to fix this? I've been
at this most of the day and I am just about burned out.  I can even
get the template css on here if you wish to look at it. Thanks.


[jQuery] cluetip onMouseOut Stick problem

2009-07-09 Thread Randy

When sticky: true and mouseOutClose: true are set the cluetip doesn't
always close when you mouse out.

Look at the example on the JQUERY DEMO PAGE:
http://plugins.learningjquery.com/cluetip/demo/

Look at jTip Theme,
1.jTip Style clueTip, with slideDown effect and an image placed in
the title for closing it, because it's sticky.
New: The clueTip will close if you mouse out of it.

The only way I can get the cluetip to close is moving the mouse on top
of the cluetip.

Anyone else have this issue and how to resolve it?


[jQuery] 508 accessibility

2009-07-09 Thread fachhoch


I created expand collapse behavior using jquery , please suggest me is there
any thing in jquery api which adds necessary attributes to make it 508
accessible ?  
-- 
View this message in context: 
http://www.nabble.com/508-accessibility-tp24356957s27240p24356957.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Automated Functional Testing

2009-07-09 Thread Software Testing Training

Automated Functional Testing

By Bhrigu Malhotra ( http://www.qacampus.com )

First of all let me make you all aware that I’m a developer and what
you are going to read further is a developer’s account, so it may
sound to you like a layman tester. But what I’m going to share is
something which has been very helpful to me to ‘functionally’ test the
web application our team has been building and I thought this may help
you as well. So even if you are a tester, try to think the way
developer’s think for some time, I’m sure this would be useful to you
too.

Before I go ahead, I think we all understand that Functional Testing
is testing the functionality of our application which means you’d
probably be going through a login using some credentials, clicking
some links, verifying some outputs - in simplest terms. Now just give
it a thought that if you can automate these i.e. invest some time for
once and then while you are sipping a cup of coffee, someone is
testing what you coded. Change your code 10 times and run your test 10
times to ensure nothing breaks, so easy. Not just this if you have
continuous integration server setup which runs your tests, you’d come
to know immediately if and when someone else broke your code. Believe
me ones who have used it, feel it is fantastic.

There are a variety of tools available for this over internet each
with pros/cons but I’m going to share some info here about one which I
liked very much and have been using for a while now. I’d also share
why I preferred it over others.

Ok, no longer prolonging the suspense the tool I’m talking about is
called Canoo WebTest (webtest.canoo.com) which is a free Open Source
tool for automated testing of web applications in a very effective
way. The primary reason why I liked it is that it is FAST; very fast …
most of the test cases that I’ve written are executed in less than a
minute and that too over remote applications deployed on servers on
the other side of globe. Second reason for liking it so much is the
ease of writing; very quickly you can build up your tests. Though they
have released a WebTest recorder plug-in which when installed in
Mozilla Firefox can record the script for you, but believe me the more
you start writing there test cases, the less reliant you will become
on the recorder. Third thing is these tests do not use a browser so
that completely eliminated browser-specific issues which some tools
are plagued with.

Now some things about WebTest which some people don’t like is you
actually do not see the tests being executed i.e. loading of a browser
window, automatic clicking on buttons and errors on the screen (if
any). But that I feel that it is so by design …. Doing all this takes
time and then browser issues too creep in, so I’m happy like this way
only. I agree they can improve on reporting of errors but again the
objective of this tool is to test and just to test, if you want to
report issues manual intervention is needed.

At last I’ll just say go give it a try, I’m sure once past initial
hiccups, you’ll start liking it the way I am.


[jQuery] jquery append

2009-07-09 Thread darkshadow

hi guys!!

i want to add some checkbox on a div container dinamically; i do it on
another part of my page and it works. Now i want to do the same on
another side but the append method doesn't work. It just add on the
container string text but not the checkboxs.

This is the function that i'm use to do that:

containerToFill is the div container that i want to append all the
checkbox dinamically

function createSearchObjects (operationType, containerToFill,
searchText)
{
var newCheckBoxPrefix, searchCheckBoxPrefix, c,
valueOfMatchCheckBox;

if (operationType == 'A'){
newCheckBoxPrefix = AddCheck;
searchCheckBoxPrefix = #Acheck;
}
else{
newCheckBoxPrefix = EditCheck;
searchCheckBoxPrefix = #ECheckbox;
}

containerToFill.append(divpSearch Results/p/div);
containerToFill.append(div);
for (i = 0, c = 0; i  num_application; i++)
{
valueOfMatchCheckBox = $(searchCheckBoxPrefix + i).val();
//test if the application at position i contains the search
text
if( valueOfMatchCheckBox.toLowerCase().match
(searchText.toLowerCase()) != null)
{
if (c  0)  containerToFill.append (br/);

 bThis is the append that doesn't work and i don't know why!!
/b
containertoFill.append(input type='checkbox' name=' +
newCheckBoxPrefix + ' id=' + newCheckBoxPrefix + c + ' value=' +
valueOfMatchCheckBox + ' );

 binstead this text is append on the div container./b
containerToFill.append(b + valueOfMatchCheckBox + /
b);

c++;
}
}

bThis is the same of above and it works, the only difference is
that here i don't use parameters/b
containerToFill.append(input type='checkbox' name='AddCheck'
id='AddCheck0' value='XXX - test' );

num_applicationSearch = c;
containerToFill.append(/div);
$('#contentApplicationList').fadeOut(450);
containerToFill.fadeIn(450);
}

thanks for answers!!

ds


[jQuery] Accessible News Slider Help (Pretty Please!)

2009-07-09 Thread ctzn_erased

Hello everyone.

I am working on a large project which is using Wordpress and jQuery,
both things I'm new to and learning on the spot. I have already
implemented jFlow for some navigation, and now want to display some
Wordpress posts using the Accessible News Slider.
Found here: http://www.reindel.com/accessible_news_slider/

I have downloaded the slider, and run the default index.html to check
everything was working. Which it was.

So I copy and pasted all the relevant details across, copied the
relevant .css styles over and linked to the .js file.
And altered the code to stick the li/li tags within the Wordpress
loop.

Now when i run the page, it gives me a Javascript error, saying
Please Note: You may have disabled JavaScript and/or CSS. Although
this news content will be accessible, certain functionality is
unavailable.
But Javascript isn't disabled. If it was, I wouldn't have been able to
run the default index.html properly.

I am running the site using MAMP, would that make any difference?

Massively confused, I was wondering whether anyone had any insight
into why this isn't working...
Thanks.


[jQuery] Re: jQuery with HTML radio button forms

2009-07-09 Thread bobbykjack

I've identified the exact same problem today. Although this could, in
theory, be moved to a click event, this will reduce accessibility
support - e.g. keyboard users will no longer see the same behaviour.

- Bobby

On Jul 3, 12:42 am, James james.gp@gmail.com wrote:
 What if you change the whole thing to:

 $(#almond_cake).click(function() {
     if ($(this).is(':checked'))
         // do something
     else
         // do something else

 });

 On Jul 2, 10:00 am, Shiro nimro...@gmail.com wrote:

  Hi James,
  I changed the code from:

  $(#almond_cake:checked).val() == 'on')

  to:

  if ($(#almond_cake).is(':checked'))

  to check to see if the radio button is checked. This works in firefox
  but in IE it takes a second click for it to work for some reason.

  Thanks!

  On Jul 2, 12:49 pm, James james.gp@gmail.com wrote:

   Here:
   $(#almond_cake:checked).val() == 'on')

   You're checking for the value 'on', but you're setting value=x?

   If you're using that condition, your HTML should look like this:
   input type=radio id=almond_cake name=cakes value=on /

   See if that works.

   (And you don't need a closing /input tag. It's not valid HTML.)

   On Jul 2, 7:45 am, Shiro nimro...@gmail.com wrote:

Hi,
I changed it to the following:

$(#flavors input[name=cakes]).change(function(){

                if ($(#almond_cake).is(':checked')) {

                        $(#wrapper_almond).show();
                        $(#pic_almond).show();
                } else {
                        $(#wrapper_almond).hide();
                        $(#pic_almond).hide();
                };

There are more types of 'cakes' listed besides that the one there and
this works perfectly fine in Mozilla firefox. However, the ever nasty
Internet explorer gave me some problems. Clicking on almond cake radio
button is supposed to show the wrapper_almond div, chocolate cake
radio button shows wrapper_chocolate div, etc. But in IE, whenever I
click on almond cake, nothing happens, and I click on chocolate cake,
it shows almond cake instead! There seems to be a delay in clicks
somehow. I either have to double click the radio button, or right
click after selecting the radio button. Is there a way around this?
Any help greatly appreciated!

Sincerely,
Westley

On Jul 2, 6:00 am, Bharat bcrupa...@yahoo.com wrote:

 Can you try the change event instead of click?
 Bharat


[jQuery] Is it possible to change the URL of a jQuery tab?

2009-07-09 Thread Daniel

So far I have tried:

$('a.classname').attr('href','/some_page')

and

$('#li_id').html('a class=tab_dk_blue href=/some_page
title=detailsDetails/a')


Thanks in advance.


[jQuery] datepicker help and utilizing other code

2009-07-09 Thread labbit

Hey everyone.  I'm new to jQuery development and I'm trying to do
something with the date picker.

See, I wanted to use this particular date picker on this site :
http://razum.si/jQuery-calendar/TimeCalendar.html
because it also implements time.

When viewing his page source, and then viewing the js files, I noticed
that his calender script is different from that of the datepicker
script given when downloading the jQuery files on this website.  If I
wanted to use his code, what would I do, and how would I do it?  Is
replacing the datepicker code with his code the thing to do?  Also, I
noticed that his jQuery.js file is supposedly running on 1.1.2,
according to the comments.  Does this affect anything?

Much appreciated.


[jQuery] Cloning and wrapping question

2009-07-09 Thread SigoTratando

Due to the constraints of the Shopping Cart system I'm working within,
I am trying to
# In one cell within a row, create a new Paragraph object with class
p_options.
# In the next row, there are two dropdown lists.  I want to clone them
and put them in the p.p_options.

* Imagine a table that list items (shirts) in your shopping cart.  The
first row contains the img, name, price, total.
* The next row contains two dropdown lists: one, say, for color and
the other for size.  That cell is directly below the Name cell (so
they correspond).
* I'm trying to move the dd lists into the Name cell.

I  have succeeded in cloning the dd lists and placing in the correct
cell, but I cannot get them contained correctly.

Here is the code that almost works:
blockquotepre
var aNames = $(td.cart_name);
//For each aNames
for(var i = 0; iaNames.length; i++){
//Get the text, add a P (container for options).
var oText = aNames[i];
$(oText).html(vText);

//Rewrite item Name content
var vId = p_options_ + i;
var vText = oText.innerHTML + p id=' + vId + '
class='p_options';

//Get corresponding options
//Add them to the container
var vOptStr = select[name^=' + vIdPrefix + '];
$(vOptStr).clone().appendTo(aNames[i]);
$(aNames[i]).append(/p);
}
/pre/blockquote
This almost works in that the dd list are correctly placed, but the
looping produces more /ps than there should be.

I also tried this:
blockquotepre
var aNames = $(td.cart_name);

//Insert a new object.
$(td.cart_name).append(p class='p_options'!--  --/p) ;

//Find the elements. Select = dd lists.
var vOptStr = select[name*='finopt'];
//Find the p.p_options that I want to put the dd list into.
var vPoptions = p[id^='p_options_'];
var oPoptions = $(vPoptions);
var oOptStr = $(vOptStr);

//Put the dd lists into the p.p_options containers.
//  $(vOptStr).clone().appendTo($(vPoptions));
//  $(vPoptions).append($(vOptStr).clone());
oPoptions.html(oOptStr).clone();
/pre/blockquote
This one does not work at all.  As you can see, I've tried several
variations (and what you see here are only a few!).

Any ideas!

Thanks tons in advance!


[jQuery] noob question, computability issues with a different date picker

2009-07-09 Thread labbit

Hello everyone, I tried posting a message before, but it didn't get
posted, so here's another go.

I'm completely new to jquery development and I wanted to use this date
picker, since it also uses time as well

http://razum.si/jQuery-calendar/TimeCalendar.html

However, it did not say what to do, how, or where to change or add the
code of his particular date picker with the standard one given in the
UI code provided (his code is given through page source, then at top,
the jquery.js and jquery-calendar.js files) .  Is there a viable
solution to getting his code working to get the calendar and time
picker?  Also, does the fact that his jquery.js file is running 1.1.2
make a difference.  If my last message got posted, I apologize for
double posting


[jQuery] Generating path

2009-07-09 Thread Shashank

Hello,

I have an HTML page where when user clicks on a paragraph I want to
find out its path. I have written a jquery script for it:

jQuery.fn.extend({
getPath: function( path ) {
// The first time this function is called, path won't be
defined.
if ( typeof path == 'undefined' ) path = '';
if ( this.is('html') )
return '/html' + path;
// Add the element name.
var cur = this.get(0).nodeName.toLowerCase();
var index = this.prevAll().length;
// Recurse up the DOM.
return this.parent().getPath( '/' + cur + '[' + index + ']' +
path );
}
});

On an html page like this
body
h1 Testing /h1
ul
li
p Except when the winds rise to a high speed, we seem to
live in a very tranquil world./p
p In addition to this the earth revolves round the sun
at a speed of more than a thousand miles a minute./p
/li
li
p Circling round the earth, in the same way as the earth
circles round the sun, is our moon. /p
/li
/ul
/body

Clicking on the second paragraph Except when the winds... generates /
html/body[1]/ul[1]/li[0]/p[1]. I am not getting why body and ul have
index 1. Please help. Sorry for the long mail.


[jQuery] jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

Hello

I have a problem with hoverIntent function. For some reason i get
error mentioned in subject. I know jquery conflicts with prototype in
this case so i used jquery noconflict. For some reason hoverIntent
function still does not work.
I changed hoverintent.js to have jQuery instead of $ in it - still no
luck.

My file has such scripts:
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery-1.3.2.js/script
{literal}
script type=text/javascript
jQuery.noConflict();
/script
{/literal}
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.easing.min.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.hoverIntent.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.localscroll-1.2.7-min.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/jquery.scrollTo-1.4.2-min.js/script
script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
js/init.js/script

Somewhere down the line CMS inserts prototype.js but i dont think it
is important atm.

Hoverintent is beeing used like this in init.js :
jQuery(ul.lavaLamp).hoverIntent(function(){
jQuery(this).children(li).hoverIntent(function(){
jQuery(this).children(ul.levTwo).slideToggle('fast');
var el = jQuery(this);
movehere(el);
}, function(){
jQuery(this).children(ul.levTwo).slideToggle('fast');
}, 3, 100, 1000);
},function(){
var el = jQuery(li.active);
movehere(el);
}, 1, 1, 10);



Alan


[jQuery] Re: ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-09 Thread Charlie





situation is not unexpected. Subs of navbar have no way to know the
navbar subs are wrapping so the position they take is based on height
of one li , which is really height of a since it is block and
typically fills the whole li

so long as you can find way to add a class to wrapped row li's you
should be able to apply what I suggested. 

nico wrote:

  Hi Charlie,

Thanks again for your ideas, if theres no other way I maybe let the
subsubmenu ul obens also in a navbar 850px widht right under the first
navbar.

ok, here is an example of the superfish menu.
http://www.premioweb.eu/jobs/

hover over mainmenu item01 - submenuitem01
you see in ie6/7 this leads to my problem.



On 9 Jul., 13:43, Charlie charlie...@gmail.com wrote:
  
  
another thought, can also do this programatically using the onBeforeShow option. Same idea, add a class to the wrapped ul's .
onBeforeShow: function(){
 if ($(this).hasClass("secondRowClass")) {
$(this).css("top","5em");
}
Again, untested but I have used this method to do realignments and animations before. Either of these solutions is workable
Charlie wrote:Following concept would allow the subs of second row to open below that row. This is untested but should be relatively easy to implement
Add a class to the wrapped li's forming 2nd row then create a different css position rule for sub ul of that class based on height of the navbar li's. The offset would be double the value currently used for the sub ul . Default is 2.5em, so try 5em or adjust accordingly based on css you've modified
Again, posting a test case would be very helpful. Your original suggestion of making browser go to 300px wide was very misleading as to actual situation
nico wrote:Hi, Thank you for your answer. Yes, I also think it has nothing to do with Z-Index but with the position: relative of the li elements and the absoulte position of the submenu ul. But I think my space is big enough my Problem is not the mainmenu but the submenu it opens in a navbar (850px width) and when there are too many items in it there are two rows of items. And when I then hover over an item in the first row the submenu ul alyways apears behind the li item in the second row. So what I need is a Idea to bring the absoulte ul above the relative li element. On 8 Jul., 18:37, Charliecharlie...@gmail.comwrote:if your main menu items don't fit into space allowed and you force them into wrapping to multiple levels, a different design approach migtht be in order? the position :rel has to be there for absolute position to use as reference location problem has nothing to do with z-index in 
my opinion, you're expecting too much in too little space.Seeing the live situation may help, can you post a link? nico wrote:Hi, I have a problem with the superfish menu in navbar mode and ie6/7. The first submenu items are in a full width row. If there are lots of subitems i get two rows. If an item in the first row has a submenu it opens as dropdown (200px width) right below the item. This works good in all browser except in ie6/7. Here I have the problem that the li submenu navbar item in the second row appears always above the dropdown if it opens from an item in the first row. Thats because the li items in the navbar are positition relative and the ul of the dropdown is absolute, so the li pos.:rel. is always above ul pos. absol. no matter what z-indexes are given. You can see the effect on the official demo sitehttp://users.tpg.com.au/j_birch/plugins/superfish/#examplesJust bring the Browser Window widht to 300px so that the demo menu has two menuitem in the row and tw
o rows, hover over the first mainmenu item and you see just 3 submenuitems instead of 4 (because the first submenu item is hidden behind the second mainmenu row.) Do you know this issue and any workarounds? btw. superfish is awsome!

  
  
  






[jQuery] Re: ie6/Z superfish navbar li submenu always above ul subsubmenu

2009-07-09 Thread Charlie





looked closer in IE,,,see problem closer now, where 2nd row shows
through subs of 1st row. Yup, you got a problem. Not sure how to
resolve that part, I was only thinking originally of the subs of 2nd row

nico wrote:

  Hi Charlie,

Thanks again for your ideas, if theres no other way I maybe let the
subsubmenu ul obens also in a navbar 850px widht right under the first
navbar.

ok, here is an example of the superfish menu.
http://www.premioweb.eu/jobs/

hover over mainmenu item01 - submenuitem01
you see in ie6/7 this leads to my problem.



On 9 Jul., 13:43, Charlie charlie...@gmail.com wrote:
  
  
another thought, can also do this programatically using the onBeforeShow option. Same idea, add a class to the wrapped ul's .
onBeforeShow: function(){
 if ($(this).hasClass("secondRowClass")) {
$(this).css("top","5em");
}
Again, untested but I have used this method to do realignments and animations before. Either of these solutions is workable
Charlie wrote:Following concept would allow the subs of second row to open below that row. This is untested but should be relatively easy to implement
Add a class to the wrapped li's forming 2nd row then create a different css position rule for sub ul of that class based on height of the navbar li's. The offset would be double the value currently used for the sub ul . Default is 2.5em, so try 5em or adjust accordingly based on css you've modified
Again, posting a test case would be very helpful. Your original suggestion of making browser go to 300px wide was very misleading as to actual situation
nico wrote:Hi, Thank you for your answer. Yes, I also think it has nothing to do with Z-Index but with the position: relative of the li elements and the absoulte position of the submenu ul. But I think my space is big enough my Problem is not the mainmenu but the submenu it opens in a navbar (850px width) and when there are too many items in it there are two rows of items. And when I then hover over an item in the first row the submenu ul alyways apears behind the li item in the second row. So what I need is a Idea to bring the absoulte ul above the relative li element. On 8 Jul., 18:37, Charliecharlie...@gmail.comwrote:if your main menu items don't fit into space allowed and you force them into wrapping to multiple levels, a different design approach migtht be in order? the position :rel has to be there for absolute position to use as reference location problem has nothing to do with z-index in 
my opinion, you're expecting too much in too little space.Seeing the live situation may help, can you post a link? nico wrote:Hi, I have a problem with the superfish menu in navbar mode and ie6/7. The first submenu items are in a full width row. If there are lots of subitems i get two rows. If an item in the first row has a submenu it opens as dropdown (200px width) right below the item. This works good in all browser except in ie6/7. Here I have the problem that the li submenu navbar item in the second row appears always above the dropdown if it opens from an item in the first row. Thats because the li items in the navbar are positition relative and the ul of the dropdown is absolute, so the li pos.:rel. is always above ul pos. absol. no matter what z-indexes are given. You can see the effect on the official demo sitehttp://users.tpg.com.au/j_birch/plugins/superfish/#examplesJust bring the Browser Window widht to 300px so that the demo menu has two menuitem in the row and tw
o rows, hover over the first mainmenu item and you see just 3 submenuitems instead of 4 (because the first submenu item is hidden behind the second mainmenu row.) Do you know this issue and any workarounds? btw. superfish is awsome!

  
  
  






[jQuery] Re: New Plugin: loopedCarousel

2009-07-09 Thread Charlie





Nathan, 

I've used loopedslider and it works great! When run in continuous loop
it doesn't seem to be a memory hog like some other carousels/sliders
with continuous option. I implemented it with images in pagination non
related to images used in the slider. Went together very easily

Will definitely bookmark this carousel version, starting project right
away that like to test it on

Nathan wrote:

  
I'd love to hear any feedback on my latest project loopedCarousel.

loopedCarousel is a plugin made for jQuery that is not only a looping
carousel, its main goal is to be extremely easy to implement. No more
messing around with CSS to get your carousel to look and function
properly. You want to show 5 items? Tell it "items: 5". You want some
spacing in between those items? Just tell it "spacing: 15". You want
it to be vertical? Tell it "vertical: true". Damn thing even auto
generates pagination for you based on how many total items you have
and how many items you're showing. Keep it simple!

http://github.com/nathansearles/loopedCarousel

  






[jQuery] Re: Superfish : Slide doesn't work

2009-07-09 Thread Fabinou

Hello Charly,

Thanks for your help, i had a few mistake in my code, i fixed all, and
now the page is well validated. Btw, i have page with no errors, fully
validated, that doesnt work either, so i think it's not the problem :(

Fab

On 8 juil, 17:49, Charlie charlie...@gmail.com wrote:
 probably good idea to validate page, see if that helps. Page flickers on 
 initial load in FF also, you have a few markup problems including divs inside 
 a tags, extra  in some places and some unclosed 
 tagshttp://validator.w3.org/check?verbose=1uri=http%3A%2F%2Fwww.pms-clan.org%2F
 Fabinou wrote:Hello, I use superfish plugin on my website 
 (http://www.pms-clan.org) for the menu. The fade method for showing works ok 
 (but it's sometime flickers, a little bit annoying but it's ok), but i 
 can't make it slide, using height or width method. I use for example this to 
 show up : $(document).ready(function(){ $(ul.sf-menu).superfish({ animate : 
 {opacity: 'show', width: 'show' }, speed: 'slow', autoArrows: true, 
 dropShadows: true }); Opacity will work, but not width, and it's the same for 
 height. Any help is welcome :) Thanks a lot Fab


[jQuery] Cycle Plugin Typewriter effect

2009-07-09 Thread davebowker

Hey,

The cycle plugin is fantastic. I love using it, but would like to know
if there's a typewriter effect for the transitions in order to build a
news ticker using it.

See here for typewriter effect: 
http://www.hungry-media.com/code/jQuery/tickerType/

Or, would anyone know how to create an effect like this for use with
the cycle plugin?

Thanks,
Dave


[jQuery] Re: Superfish : Slide doesn't work

2009-07-09 Thread Charlie





have you tried setting speed to a value? generally works when speed is
set this way

something like speed: 500

Fabinou wrote:

  Hello Charly,

Thanks for your help, i had a few mistake in my code, i fixed all, and
now the page is well validated. Btw, i have page with no errors, fully
validated, that doesnt work either, so i think it's not the problem :(

Fab

On 8 juil, 17:49, Charlie charlie...@gmail.com wrote:
  
  
probably good idea to validate page, see if that helps. Page flickers on initial load in FF also, you have a few markup problems including divs inside a tags, extra "" in some places and some unclosed tagshttp://validator.w3.org/check?verbose=1uri=http%3A%2F%2Fwww.pms-clan.org%2F
Fabinou wrote:Hello, I use superfish plugin on my website (http://www.pms-clan.org) for the menu. The fade method for showing works ok (but it's sometime "flickers", a little bit annoying but it's ok), but i can't make it slide, using height or width method. I use for example this to show up : $(document).ready(function(){ $("ul.sf-menu").superfish({ animate : {opacity: 'show', width: 'show' }, speed: 'slow', autoArrows: true, dropShadows: true }); Opacity will work, but not width, and it's the same for height. Any help is welcome :) Thanks a lot Fab

  
  
  






[jQuery] Re: Superfish : Slide doesn't work

2009-07-09 Thread Fabinou

Yes, i tried to put an absolue value, or 'slow' for example, still
doesnt work.

On 9 juil, 14:57, Charlie charlie...@gmail.com wrote:
 have you tried setting speed to a value? generally works when speed is set 
 this way
 something like speed: 500
 Fabinou wrote:Hello Charly, Thanks for your help, i had a few mistake in my 
 code, i fixed all, and now the page is well validated. Btw, i have page with 
 no errors, fully validated, that doesnt work either, so i think it's not the 
 problem :( Fab On 8 juil, 17:49, Charliecharlie...@gmail.comwrote:probably 
 good idea to validate page, see if that helps. Page flickers on initial load 
 in FF also, you have a few markup problems including divs inside a tags, 
 extra  in some places and some unclosed 
 tagshttp://validator.w3.org/check?verbose=1uri=http%3A%2F%2Fwww.pms-clan.org%2F
  Fabinou wrote:Hello, I use superfish plugin on my website 
 (http://www.pms-clan.org) for the menu. The fade method for showing works ok 
 (but it's sometime flickers, a little bit annoying but it's ok), but i 
 can't make it slide, using height or width method. I use for example this to 
 show up : $(document).ready(function(){ $(ul.sf-menu).superfish({ animate : 
 {opacity: 'show', width: 'show' }, speed: 'slow', autoArrows: true, 
 dropShadows: true }); Opacity will work, but not width, and it's the same for 
 height. Any help is welcome :) Thanks a lot Fab


[jQuery] Re: Suckerfish and template conflict

2009-07-09 Thread Charlie





good chance there is an overflow: hidden in css related to original
menu css in template. 

Can you post a link, it is far easier and faster to troubleshoot in
browser Wading through a bunch of css for elements that can't see html
is very non productive.

tacotac wrote:

  
All of the templates I've tried the menu works fine and shows up (as a
problem solver), but when I use the template I need, the drop down
menu is hidden. I have even played around with z-index, and no luck no
matter what I do. I just don't know where i should be fixing things in
the template I guess. What could I possibly do to fix this? I've been
at this most of the day and I am just about burned out.  I can even
get the template css on here if you wish to look at it. Thanks.

  






[jQuery] Access li by item in the array

2009-07-09 Thread expresso

Is it possible to target certain li in an unordered list by index
with jQuery?  I thought maybe I could use .index but was not able to
get the syntax right.

I thought maybe something like this would work but is has not:

$(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: [ANNOUNCE] New plugin: Loading

2009-07-09 Thread Nathan Bubna

Glad you approve!  Let me know if you encounter any hiccups while using it. :)

On Wed, Jul 8, 2009 at 9:00 PM, brianbally.z...@gmail.com wrote:

 Very nice! I'd been playing with something along these lines but it's
 really buggy (and I'm lazy). Kudos for the 'classname' option. I much
 prefer to specify a 'loading' image with CSS than to pass the filename
 to a JS object. And it doesn't require dimensions (mine does). I'll
 quietly retire my little experiment now.

 On Wed, Jul 8, 2009 at 11:39 PM, Nathan Bubnanbu...@gmail.com wrote:

 http://plugins.jquery.com/project/loading

 If you need to let the user know something is happening in the
 background, this is the easiest way.  It handles creation,
 positioning, masking/blocking stuff behind, and even pulsing the
 loading message with a few simple options.  Of course, there's more
 than a few options.  Everything is configurable and extensible.  It's
 even easy to create your own pulsing/spinning/throbbing effects, and
 it can display text (default), images or any element you like with
 ease and simplicity.  It works page-wide with a static call:

 $.loading(true, {mask:true})

 or per-element, with chaining and all:

 $('#foo').loading({ align:'center' })

 The best way to start seeing what can be done and how to use it is to
 play with the demo:

 http://jquery-values.googlecode.com/svn/other/loading/jquery.loading.htm

 Enjoy.  And if you find bugs or have more clever ideas for it, let me
 know.  I like feedback of all kinds.




[jQuery] Display subnav through external action

2009-07-09 Thread greggo

I have a navigational element that is distinct from the rest of my
navigation and is a graphical icon. Therefore, I'm not using the
standard li elements to display it. I'm simply using an img tag.
The li tag for that nav element is not being displayed. I do however
want the subnav to display when you mouse over the image. You can view
it here: www.gingerninjas.com

Question: How would I activate the display of the subnav (and hide the
current subnav) using an object outside of the navigational list? I
know I need to somehow trigger superfish with a mouseover event, but
I'm not sure how to do that.

Any help on this would be appreciated.


[jQuery] Re: (validate) submit using submithandler : how to post value of submit button

2009-07-09 Thread rekna

Ok, thanks, it works know... also, don't forget (like me) to give a
name (name=...) to your submit button, or else it won't work.

On Jul 9, 12:40 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
 The latest version (1.5.5+) includes a feature that automatically
 appends a hidden field to the form with the name/value pair of the
 submit button, before calling submitHanlder (and removing it
 afterwards). So you can just use ajaxSubmit.

 Jörn

 On Thu, Jul 9, 2009 at 11:43 AM, reknarek...@gmail.com wrote:

  I'm using jquery validation to validate and submit all my forms.

  The submitHandler of jquery validation uses jquery form plugin to
  submit the form using $(form).ajaxSubmit()

  Without validation, you can use $(form).ajaxForm(...) to submit your
  form using ajax, and this will also send the value of the button which
  caused the submit.

  With validation, I have to use ajaxSubmit, instead of ajaxForm, but
  ajaxSubmit can not automatically add the value of the submit button to
  the POST values.

  Is there a generic way, to find out in the submitHandler of jquery
  validation, which button was pressed that caused the submit ?


[jQuery] Re: Autocomplete selection Issue

2009-07-09 Thread 刘永杰
is this ad?

2009/7/9 jazz bharathbhooshan.amb...@gmail.com


 Hi
 Can any body suggest me how to do this by jquery..i have seen some
 autocomplete examples but i am not getting the correct application
 like this:
 first we type a letter,then it will show a list from that we scroll
 down the mouse(either mouse or keypad) the highlighted value should be
 placed in the textbox..which is similar to the link:

 http://www.hscripts.com/scripts/JavaScript/autocomplete-form.php?text=arrangement

 please give me idea

 Regards,
 Bhatath


[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

Ok... i tried all kinds of ways how to include init js on domready
with noconflict and none of them helped. Plus noconflict docs say that
if jquery is included before other libraries then there should be no
need for noconflict anyway... so where is the problem?

This is how init.js is beeing used:

script type=text/javascript
//![CDATA[
jQuery.noConflict();
jQuery(document).ready(function($){
init();
});
//]]
/script

Alan.

On Jul 9, 3:27 pm, zayatzz alan.kesselm...@gmail.com wrote:
 Hello

 I have a problem with hoverIntent function. For some reason i get
 error mentioned in subject. I know jquery conflicts with prototype in
 this case so i used jquery noconflict. For some reason hoverIntent
 function still does not work.
 I changed hoverintent.js to have jQuery instead of $ in it - still no
 luck.

 My file has such scripts:
         script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
 js/jquery-1.3.2.js/script
 {literal}
         script type=text/javascript
                 jQuery.noConflict();
         /script
 {/literal}
         script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
 js/jquery.easing.min.js/script
         script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
 js/jquery.hoverIntent.js/script
         script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
 js/jquery.localscroll-1.2.7-min.js/script
         script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
 js/jquery.scrollTo-1.4.2-min.js/script
         script type=text/javascript src={$wwwroot}/extensions/ext_sanlab/
 js/init.js/script

 Somewhere down the line CMS inserts prototype.js but i dont think it
 is important atm.

 Hoverintent is beeing used like this in init.js :
         jQuery(ul.lavaLamp).hoverIntent(function(){
                 jQuery(this).children(li).hoverIntent(function(){
                         
 jQuery(this).children(ul.levTwo).slideToggle('fast');
                         var el = jQuery(this);
                         movehere(el);
                 }, function(){
                         
 jQuery(this).children(ul.levTwo).slideToggle('fast');
                 }, 3, 100, 1000);
         },function(){
                 var el = jQuery(li.active);
                 movehere(el);
         }, 1, 1, 10);

 Alan


[jQuery] Re: Access li by item in the array

2009-07-09 Thread Michael Lawson

If i'm reading your code right, you may want to try eq(i) instead of index
(i).  index is used to return the index of the match element, its not used
to retrieve that element.

cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone:  1-276-206-8393
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


   
  From:   expresso dschin...@gmail.com   
   
  To: jQuery (English) jquery-en@googlegroups.com  
   
  Date:   07/09/2009 09:55 AM  
   
  Subject:[jQuery] Access li by item in the array
   






Is it possible to target certain li in an unordered list by index
with jQuery?  I thought maybe I could use .index but was not able to
get the syntax right.

I thought maybe something like this would work but is has not:

$(#mycarousel  li).index(i).css(margin-right, 5px);

inline: graycol.gifinline: ecblank.gif

[jQuery] Re: Display subnav through external action

2009-07-09 Thread 刘永杰
artiest! very good!

2009/7/9 greggo gosof...@gmail.com


 I have a navigational element that is distinct from the rest of my
 navigation and is a graphical icon. Therefore, I'm not using the
 standard li elements to display it. I'm simply using an img tag.
 The li tag for that nav element is not being displayed. I do however
 want the subnav to display when you mouse over the image. You can view
 it here: www.gingerninjas.com

 Question: How would I activate the display of the subnav (and hide the
 current subnav) using an object outside of the navigational list? I
 know I need to somehow trigger superfish with a mouseover event, but
 I'm not sure how to do that.

 Any help on this would be appreciated.


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

thanks will try that out.

On Jul 9, 9:15 am, Michael Lawson mjlaw...@us.ibm.com wrote:
 If i'm reading your code right, you may want to try eq(i) instead of index
 (i).  index is used to return the index of the match element, its not used
 to retrieve that element.

 cheers

 Michael Lawson
 Development Lead, Global Solutions, ibm.com
 Phone:  1-276-206-8393
 E-mail:  mjlaw...@us.ibm.com

 'Examine my teachings critically, as a gold assayer would test gold. If you
 find they make sense, conform to your experience, and don't harm yourself
 or others, only then should you accept them.'

   From:       expresso dschin...@gmail.com                                  
                                                   

   To:         jQuery (English) jquery-en@googlegroups.com                 
                                                    

   Date:       07/09/2009 09:55 AM                                             
                                                    

   Subject:    [jQuery] Access li by item in the array                       
                                                    

 Is it possible to target certain li in an unordered list by index
 with jQuery?  I thought maybe I could use .index but was not able to
 get the syntax right.

 I thought maybe something like this would work but is has not:

 $(#mycarousel  li).index(i).css(margin-right, 5px);

  graycol.gif
  1KViewDownload

  ecblank.gif
  1KViewDownload


[jQuery] Re: Access li by item in the array

2009-07-09 Thread Liam Potter


how about reading all the replies to your other thread about this?

$(#mycarousel  li:eq(10)).css(margin-right, 5px);


expresso wrote:

Is it possible to target certain li in an unordered list by index
with jQuery?  I thought maybe I could use .index but was not able to
get the syntax right.

I thought maybe something like this would work but is has not:

$(#mycarousel  li).index(i).css(margin-right, 5px);
  


[jQuery] Re: noob question, computability issues with a different date picker

2009-07-09 Thread 刘永杰
can't understand what you say.sorry.

2009/7/9 labbit nick@gmail.com


 Hello everyone, I tried posting a message before, but it didn't get
 posted, so here's another go.

 I'm completely new to jquery development and I wanted to use this date
 picker, since it also uses time as well

 http://razum.si/jQuery-calendar/TimeCalendar.html

 However, it did not say what to do, how, or where to change or add the
 code of his particular date picker with the standard one given in the
 UI code provided (his code is given through page source, then at top,
 the jquery.js and jquery-calendar.js files) .  Is there a viable
 solution to getting his code working to get the calendar and time
 picker?  Also, does the fact that his jquery.js file is running 1.1.2
 make a difference.  If my last message got posted, I apologize for
 double posting



[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-09 Thread Bill

Any ideas on this one? I've struggled with this for hours now.

On Jul 8, 8:43 am, Bill bllfr...@gmail.com wrote:
 OK, I gave it a try but the problem persists.

 The animation works perfectly on all other browsers and I'd really
 like to keep it because it provides important (maybe essential)
 feedback to the user. However, since (inexplicably) most of our
 clients use IE only, this animation problem is a deal breaker. Any
 other tips/tricks/magic spells out there?

 On Jul 8, 8:17 am, Bill bllfr...@gmail.com wrote:



  Thanks Leonardo, I'll try that now.

  On Jul 8, 5:52 am, Leonardo K leo...@gmail.com wrote:

   I'm trying to guess here. I believe the problem is the padding of the
   element you are sliding. Try to remove the padding from li and add to the
   div inside.

   I know jQuery animate padding as well but in the IE is not smooth enough.

   On Tue, Jul 7, 2009 at 19:52, Bill bllfr...@gmail.com wrote:

I'm seeing some weird behavior with the slideUp() and slideDown()
functions in IE 6, 7, and 8.

First, open the following URL in Firefox, Chrome, or Safari:

   http://69.59.182.148:4080/test/07072009/html-scaffolding/advanced-sea...

Click on one of the checkboxes under the first grouping with the
heading, Multi-Select Filter Name 1. A control appears at left. If
you continue clicking on and off checkboxes, you will continue to add/
subtract elements from the control appearing at left. Additionally you
can subtract elements from the control by clicking on the little x
icons. Whenever addition/subtraction occurs, jQuery first calls the
slideDown()/slideUp() function, and then deletes the actual HTML that
was just shown/hidden. This animation is very smooth in all browsers
that play according to the rules, but IE 6, 7, and 8 introduce some
unique detritus into the animation that makes it appear jumpy.

1. The solid blue border at left turns white during the animation
2. A small white gap at the bottom of each added li element appears
during the animation
3. The animation stops when it appears to be only half-way through,
meaning it doesn't change the height from 32px to 0px continuously.
Instead, it goes from 32 px to about 16px, and then straight to 0.
4. #3 seems to be worse when the x icon is clicked rather than
unchecking the checkbox.

I'm using jQuery v. 1.3.2. All my code is in the file
jquery.smartfilter.js.

I've read about issues like these in earlier versions of jQuery, but
applying fixes similar to the ones described in those articles bore no
fruit, which leads me to believe there's something wrong with my code.
Any insight into what's happening here would be greatly, greatly
appreciated.

Regards,

--Bill


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

thanks will try that out.

On Jul 9, 9:15 am, Michael Lawson mjlaw...@us.ibm.com wrote:
 If i'm reading your code right, you may want to try eq(i) instead of index
 (i).  index is used to return the index of the match element, its not used
 to retrieve that element.

 cheers

 Michael Lawson
 Development Lead, Global Solutions, ibm.com
 Phone:  1-276-206-8393
 E-mail:  mjlaw...@us.ibm.com

 'Examine my teachings critically, as a gold assayer would test gold. If you
 find they make sense, conform to your experience, and don't harm yourself
 or others, only then should you accept them.'

   From:       expresso dschin...@gmail.com                                  
                                                   

   To:         jQuery (English) jquery-en@googlegroups.com                 
                                                    

   Date:       07/09/2009 09:55 AM                                             
                                                    

   Subject:    [jQuery] Access li by item in the array                       
                                                    

 Is it possible to target certain li in an unordered list by index
 with jQuery?  I thought maybe I could use .index but was not able to
 get the syntax right.

 I thought maybe something like this would work but is has not:

 $(#mycarousel  li).index(i).css(margin-right, 5px);

  graycol.gif
  1KViewDownload

  ecblank.gif
  1KViewDownload


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

Because sometimes I get into other topics not related to my original
posts in those other thread so it's only respectful on my part to
start a new thread on a different topic that's veering off in the same
thread.  Not cool.

On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:
 how about reading all the replies to your other thread about this?

 $(#mycarousel  li:eq(10)).css(margin-right, 5px);

 expresso wrote:
  Is it possible to target certain li in an unordered list by index
  with jQuery?  I thought maybe I could use .index but was not able to
  get the syntax right.

  I thought maybe something like this would work but is has not:

  $(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Display subnav through external action

2009-07-09 Thread Charlie





not sure what to look at. Can put an image in li and class it to have
different display css than other li's. Menu items need to stay in li
for script

also options like onBeForeShow can be helpful to script for different
parts of menu. There's likely a solution that will work in list
structure, can you be more specific about what you are trying to
accomplish 

greggo wrote:

  I have a navigational element that is distinct from the rest of my
navigation and is a graphical icon. Therefore, I'm not using the
standard li elements to display it. I'm simply using an img tag.
The li tag for that nav element is not being displayed. I do however
want the subnav to display when you mouse over the image. You can view
it here: www.gingerninjas.com

Question: How would I activate the display of the subnav (and hide the
current subnav) using an object outside of the navigational list? I
know I need to somehow trigger superfish with a mouseover event, but
I'm not sure how to do that.

Any help on this would be appreciated.

  






[jQuery] Live on load

2009-07-09 Thread BaBna

Does anyone know if a plugin exists, which could detect any new node
in the DOM?
Something like live, but where the trigger would be the creation of
the element.
If it was possible with live, I guess that would be something like
that:
live(load,.myClass,function(){
  alert(A new element with the class myClass has been loaded in the
DOM);
});


[jQuery] Re: why is this href firing???

2009-07-09 Thread Jan Limpens
in fact, it was a button at first, but it always submitted :)
I ought to switch that back :)

2009/7/9 NickFitz n...@nickfitz.co.uk


 On Jul 9, 5:20 am, Karl Swedberg k...@englishrules.com wrote:
  On Jul 8, 2009, at 11:47 AM, MorningZ wrote:
 
   I see this (stopping links in their tracks) a lot and it's puzzling,
   so i think:
 
   *if you do not want an a to actually follow a link, then don't use
   an a, use a span or something instead and use CSS to make it look
   like a link to the user*
 
   That will 100% solve all issues with a hyperlink acting like, well, a
   hyperlink  :-)
 
  The problem with using a span in those cases is that it isn't
  accessible. Links can be focused. You can tab to them and press Enter/
  Return, and the click event will fire. Not so with spans.
 

 The HTML 4.01 button element with type=button (or input
 type=button if you don't need anything more than basic text
 content) is specifically intended for just this kind of thing:
 http://www.w3.org/TR/html401/interact/forms.html#edef-BUTTON
 http://www.w3.org/TR/html401/interact/forms.html#h-17.4.1

 Focusable, accessible, and doesn't have any default behaviour which
 has to be overridden. If you don't like the fact that it looks like a
 button, just style it with CSS: all browsers that JQuery supports
 allow this. (But remember to set overflow: visible; in the styling,
 or IE6 (as usual) can make a mess of it if it under certain
 circumstances: http://natbat.net/2009/Jun/10/styling-buttons-as-links/
 .)

 Regards,

 Nick.
 --
 Nick Fitzsimons
 http://www.nickfitz.co.uk/




-- 
Jan


[jQuery] Re: cluetip onMouseOut Stick problem

2009-07-09 Thread Karl Swedberg

Hi Randy,

If I understand your problem correctly, I fixed this last week. The  
updated version can be found on Github:


http://github.com/kswedberg/jquery-cluetip/tree/master

I also just now updated the demo.

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jul 8, 2009, at 4:46 PM, Randy wrote:



When sticky: true and mouseOutClose: true are set the cluetip doesn't
always close when you mouse out.

Look at the example on the JQUERY DEMO PAGE:
http://plugins.learningjquery.com/cluetip/demo/

Look at jTip Theme,
1.jTip Style clueTip, with slideDown effect and an image placed in
the title for closing it, because it's sticky.
New: The clueTip will close if you mouse out of it.

The only way I can get the cluetip to close is moving the mouse on top
of the cluetip.

Anyone else have this issue and how to resolve it?




[jQuery] Re: why is this href firing???

2009-07-09 Thread Nick Fitzsimons

2009/7/9 Jan Limpens jan.limp...@gmail.com:
 in fact, it was a button at first, but it always submitted :)
 I ought to switch that back :)


As long as you specify the type, it should be fine. If you don't, the
default type is submit, so you must explicitly use:
button type=buttonbutton content/button

IE gets this wrong and has a default type of button, just to confuse
matters ;-)

HTH,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/


[jQuery] Re: Access li by item in the array

2009-07-09 Thread MorningZ

so it's only respectful on my part to
start a new thread on a different topic that's veering off in the same
thread.  Not cool. 

You've got it backwards it makes more sense and keeps the clutter
out if you stay in the same topic.

As Liam points out you already asked the index question, AND it
was answered by Charlie, in the topic you created just 13 hours ago

http://groups.google.com/group/jquery-en/browse_thread/thread/88329168e57e952d/957b76fc83f1f967?hl=en

and yet, here's an identical topic asking the identical question with
2 min apart two sentence ramblings on them all

Realize what this list for what it is:   a mailing list where lots of
us provide free help out of our own time

making it difficult to understand what you are asking, being rude to
people trying to show you the way, rambling on and on with the same
stuff  all that doesn't lend itself very well to make your issues
worth other peoples time and effort

.


On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:
 Because sometimes I get into other topics not related to my original
 posts in those other thread so it's only respectful on my part to
 start a new thread on a different topic that's veering off in the same
 thread.  Not cool.

 On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

  how about reading all the replies to your other thread about this?

  $(#mycarousel  li:eq(10)).css(margin-right, 5px);

  expresso wrote:
   Is it possible to target certain li in an unordered list by index
   with jQuery?  I thought maybe I could use .index but was not able to
   get the syntax right.

   I thought maybe something like this would work but is has not:

   $(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: [ANNOUNCE] New plugin: Loading

2009-07-09 Thread Penner, Matthew

Great job!  Just a comment on the demo page.  When I set the mask to
true I lose the ability to interact with the page, as designed of
course! :)  Maybe you could make a timeout of like 5 seconds.  Otherwise
I have to refresh the page just to test out some other things.

A suggestion I have for the plug-in itself would be the option to use
both an image and text.  I personally like the spinning gif with the
text Loading... below it.

Great job!

Matt Penner


-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Nathan Bubna
Sent: Wednesday, July 08, 2009 8:40 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] [ANNOUNCE] New plugin: Loading


http://plugins.jquery.com/project/loading

If you need to let the user know something is happening in the
background, this is the easiest way.  It handles creation,
positioning, masking/blocking stuff behind, and even pulsing the
loading message with a few simple options.  Of course, there's more
than a few options.  Everything is configurable and extensible.  It's
even easy to create your own pulsing/spinning/throbbing effects, and
it can display text (default), images or any element you like with
ease and simplicity.  It works page-wide with a static call:

$.loading(true, {mask:true})

or per-element, with chaining and all:

$('#foo').loading({ align:'center' })

The best way to start seeing what can be done and how to use it is to
play with the demo:

http://jquery-values.googlecode.com/svn/other/loading/jquery.loading.htm

Enjoy.  And if you find bugs or have more clever ideas for it, let me
know.  I like feedback of all kinds.


[jQuery] Re: Generating path

2009-07-09 Thread mkmanning

ul has a previous sibling (the h1); I suspect there's a head tag
that's the body's previous sibling. In both cases then, prevAll()
would result in a length of 1.
Also I assume you meant the second paragraph, which starts with In
addition to this the earth.

On Jul 9, 12:27 am, Shashank sayhitoshash...@gmail.com wrote:
 Hello,

 I have an HTML page where when user clicks on a paragraph I want to
 find out its path. I have written a jquery script for it:

 jQuery.fn.extend({
     getPath: function( path ) {
         // The first time this function is called, path won't be
 defined.
         if ( typeof path == 'undefined' ) path = '';
         if ( this.is('html') )
             return '/html' + path;
         // Add the element name.
         var cur = this.get(0).nodeName.toLowerCase();
         var index = this.prevAll().length;
         // Recurse up the DOM.
         return this.parent().getPath( '/' + cur + '[' + index + ']' +
 path );
     }

 });

 On an html page like this
 body
         h1 Testing /h1
         ul
             li
             p Except when the winds rise to a high speed, we seem to
 live in a very tranquil world./p
             p In addition to this the earth revolves round the sun
 at a speed of more than a thousand miles a minute./p
             /li
             li
             p Circling round the earth, in the same way as the earth
 circles round the sun, is our moon. /p
             /li
         /ul
 /body

 Clicking on the second paragraph Except when the winds... generates /
 html/body[1]/ul[1]/li[0]/p[1]. I am not getting why body and ul have
 index 1. Please help. Sorry for the long mail.


[jQuery] remove and opera 9.6.4

2009-07-09 Thread Liam Potter


Having a strange bug in opera 9.6.4.

When removing objects from the dom, opera leaves a ghost image of the 
removed object, till you scroll away.
.hide() works fine, so tried hiding before removing, but the ghost is 
still there, tried running the remove in the hide callback, no luck, 
tried hiding with .css and still no luck.


Has anyone come across this bug and found a workaround?

- Liam


[jQuery] Re: why is this href firing???

2009-07-09 Thread Jan Limpens
I was not aware of that - I wonder if there are other types of buttons,
then :)

2009/7/9 Nick Fitzsimons n...@nickfitz.co.uk


 2009/7/9 Jan Limpens jan.limp...@gmail.com:
  in fact, it was a button at first, but it always submitted :)
  I ought to switch that back :)
 

 As long as you specify the type, it should be fine. If you don't, the
 default type is submit, so you must explicitly use:
 button type=buttonbutton content/button

 IE gets this wrong and has a default type of button, just to confuse
 matters ;-)

 HTH,

 Nick.
 --
 Nick Fitzsimons
 http://www.nickfitz.co.uk/




-- 
Jan


[jQuery] Re: [validation] how to return for jquery.Format

2009-07-09 Thread Manolet Gmail

how i can use variables to build the url?

On Sat, Jul 4, 2009 at 12:08 PM, Jörn
Zaeffererjoern.zaeffe...@googlemail.com wrote:

 Use the remote method:
 http://docs.jquery.com/Plugins/Validation/Methods/remote#url

 Jörn

 On Sat, Jul 4, 2009 at 6:30 PM, Manolet Gmailmano...@gmail.com wrote:

 Hi, im adding a method. i want to display a message like:
 THECONTENTOFMYINPUT is already user. this is what im doing.

          jQuery.validator.addMethod(checkname, function(value, element) {
                  var name = $('#PromotionName').val();
                  var promotion_id = $('#PromotionId').val();

                  text = $.ajax({ url:
 /promotions/checkName/+name+'/'+promotion_id, type:'post',
 async:false }).responseText;
                  return eval(text);
                }, jQuery.format({0} is already used, 
 $('#PromotionName').val() ));

 but dont works




[jQuery] Re: [ANNOUNCE] New plugin: Loading

2009-07-09 Thread Nathan Bubna

On Thu, Jul 9, 2009 at 9:10 AM, Penner, Matthewmpen...@valverde.edu wrote:

 Great job!  Just a comment on the demo page.  When I set the mask to
 true I lose the ability to interact with the page, as designed of
 course! :)  Maybe you could make a timeout of like 5 seconds.  Otherwise
 I have to refresh the page just to test out some other things.

Great idea!

 A suggestion I have for the plug-in itself would be the option to use
 both an image and text.  I personally like the spinning gif with the
 text Loading... below it.

Hmm.  That would look nice.  You can already do this with the 'element' option:

$.loading({element: 'img src=loading.gifdivLoading.../div'})

or even css:

$.loading({css:{paddingTop:15, background:'url(loading.gif) no-repeat'}});

that could be done in your stylesheet rules as well, of course.  As i
think about it, this css-based approach seems most sensible, as it
allows the text-based pulse effects (working, ellipsis and type) to
work.  Adding the ability to combine text and img options like so:

$.loading({img:'loading.gif', text:'Loading...'})

would break with those pulse effects and could also lead to
implementation complication, as not everyone is likely to prefer the
img above the text; some might want it below or beside.  Given these
downsides, i'm not sure it's worth adding, especially since there are
other relatively simple ways to do it.  :)

 Great job!

Thanks for the feedback!  It's great to have other eyes/apps/browsers
trying this out.

 Matt Penner


 -Original Message-
 From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
 Behalf Of Nathan Bubna
 Sent: Wednesday, July 08, 2009 8:40 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] [ANNOUNCE] New plugin: Loading


 http://plugins.jquery.com/project/loading

 If you need to let the user know something is happening in the
 background, this is the easiest way.  It handles creation,
 positioning, masking/blocking stuff behind, and even pulsing the
 loading message with a few simple options.  Of course, there's more
 than a few options.  Everything is configurable and extensible.  It's
 even easy to create your own pulsing/spinning/throbbing effects, and
 it can display text (default), images or any element you like with
 ease and simplicity.  It works page-wide with a static call:

 $.loading(true, {mask:true})

 or per-element, with chaining and all:

 $('#foo').loading({ align:'center' })

 The best way to start seeing what can be done and how to use it is to
 play with the demo:

 http://jquery-values.googlecode.com/svn/other/loading/jquery.loading.htm

 Enjoy.  And if you find bugs or have more clever ideas for it, let me
 know.  I like feedback of all kinds.



[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

Any ideas why im getting this error?

Alan


[jQuery] autocomplete plugin error callback?

2009-07-09 Thread Jan

Hi,

i'm currently using the autocomplete plugin in my project and it works
great.
However I would like to be able to specify an error callback (probably
just forwarding the error callback from the ajaxrequest would
suffice)..
Is it possible to get this implemented in the official version?

If i'm not mistaken adding , error : options.errorCallback inside
the $.ajax(...) somewhere in the middle of jquery.autocomplete.js
would suffice to achieve this behavior...

Plz consider,
thx, regards,

Jan


[jQuery] Scroll Event on iframe in IE

2009-07-09 Thread erik.madsen

My event listener for iframe scrolling works fine for FF and Safari
but doesn't work for IE7 at all.

$($('#myIframeId').contents()).scroll(onFrameScroll);

Does anyone have any experience getting this to work?


[jQuery] Scroll Event on iframe in IE

2009-07-09 Thread erik.madsen

My code for adding an event listener for scrolling on an iframe works
fine for FF and Safari but not IE7.  I haven't tested IE6 or 8.

$($('#MyIFrameId').contents()).scroll(onFrameScroll);

Does anyone have any experience getting the scroll event to fire on an
iframe in IE?


[jQuery] save ajax query to global variable

2009-07-09 Thread Vaidotas Zemlys

Hi,

When trying out jquery, I ran into seemingly very simple problem. I
did a search on internet and did not get any satisfactory result. I am
suspecting that the mistake is very simple, so anyone more experienced
can help me.

What I am trying to do is load data from server, then present it in
the table, and plot it later. Since I am intending to use flot plugin,
and it accepts arrays as an argument, I thought that I load the file,
save it to some array, and then plot it when time comes (when user
presses something, etc.) So my javascript code goes like this:

script type=text/javascript src=js/jquery-1.3.2.js/
script
 script type=text/
javascript
 var tb1=[];
 $(document).ready(function() {
 $.post(data/echocsv.php, function(text) {
 tb1=text.split(\n);
 })
alert(tb1);
});
 /script

echocsv.php is very simple, it just grabs csv file (text file) and
returns it:
?
$ff=file_get_contents(data.csv);
echo $ff;
?

Yet when I run this script, nothing happens. If I move the alert into
callback function, then everything is alright. I understand that it is
possible that ajax query is not performed before the alert. But I did
not find out how to know when the query is succesfull. From examples
in the web I saw, that .ajax call is more frequently used, maybe I
should use it also?

Thanks for any help,

Vaidotas





[jQuery] Check if jQuery is disabled on a browser

2009-07-09 Thread shehan

Hi,

I'm using JQuery in site I'm building and I can see that it works on
my browser and a majority of other peoples browsers. However, there
are a couple of users for whom the features that make use of jQuery
don't work. Unfortunately, these users are remote so it makes
troubleshooting difficult.

Is there a quick way to check if the browser (Internet Explorer)
disables jQuery?

Thanks,
Shehan


[jQuery] Decrement on click?

2009-07-09 Thread littlerobothead

I'm sure this is going to be an easy one. I'm just not seeing a
solution in any of the usual places.

I'm getting the number of elements in a table like so:

var count = $(#dataset-b tr).length;

Then appending that number to a span, like so:

$(.count).html(( + count + ));

What I want to do is subtract one from that number every time a user
clicks a row in the table I'm generating, like so:

$(#dataset-b tr).click(function(){
$(this).fadeOut(300);
var int = 1;
var prod = count - int;
$(.count).html(( + prod + ));
});

The problem is that it works on the first click (9 changes to 8), but
nothing happens on subsequent clicks. Again, I'm sure this is
something simple I'm missing. Thanks for any help.


[jQuery] [autocomplete] Turn off cachi ng (still caches) för queries with charaters 'å', 'ä' and 'ö'

2009-07-09 Thread cl2csand

When I use the autocomplete plugin with cacheLength set to 1 it still
seems to caches som queries. Although I have only seen the problem
with queries containing the characters (swedish) å, ä or ö.

Maybe the problem lies there. To solve this I have to call the
flushCache function first in the formatTerm function which seems a bit
unnecessary.

Eg:

If I start to write fö it makes an ajax request and return say 25
rows. If I then continue and write an r I only get a list of 3 terms
although about 10 items (of the first 25) contains för. This time no
ajax request was made which makes me believe that it is a problem with
the caching.

If I call flushCache in formatItem it always makes a new ajax request
with each modification of the search term and the correct results are
displayed.



[jQuery] jquery widget like bbc.co.uk

2009-07-09 Thread k1d

dear friends,

I'm trying to make menus like bbc.co.uk where users can add their
customize menus and theme. I'm looking for script but I can't find it.
Do you have any suggestions how to make that?? do I have to use widget
library or something??


thanks b4


[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread Charlie





"is not a function" means script you are referncing , in this case
hoverintent, isn't accesible when you call the function. It shows you
have it in page, but is path vaild? Is same file being inserted again
after the call ( seen that cause function to fail too)

can you post link?


zayatzz wrote:

  Any ideas why im getting this error?

Alan

  






[jQuery] Re: Check if jQuery is disabled on a browser

2009-07-09 Thread BaBna

http://www.sitepoint.com/blogs/2007/02/23/handling-javascript-disabled-browsers/
http://roshanbh.com.np/2008/04/how-to-know-handle-disabled-javascript.html

On Jul 9, 4:57 pm, shehan digitalshe...@gmail.com wrote:
 Hi,

 I'm using JQuery in site I'm building and I can see that it works on
 my browser and a majority of other peoples browsers. However, there
 are a couple of users for whom the features that make use of jQuery
 don't work. Unfortunately, these users are remote so it makes
 troubleshooting difficult.

 Is there a quick way to check if the browser (Internet Explorer)
 disables jQuery?

 Thanks,
 Shehan


[jQuery] Re: Decrement on click?

2009-07-09 Thread BaBna

It's beacuse you call your count var, which is always 8.
Either you redefine count in your function or you decrement it:
$(#dataset-b tr).click(function(){
   count = $(.count).html();
   ...
OR
$(#dataset-b tr).click(function(){
   count--;
   

On Jul 9, 3:46 pm, littlerobothead nickmjo...@gmail.com wrote:
 I'm sure this is going to be an easy one. I'm just not seeing a
 solution in any of the usual places.

 I'm getting the number of elements in a table like so:

 var count = $(#dataset-b tr).length;

 Then appending that number to a span, like so:

 $(.count).html(( + count + ));

 What I want to do is subtract one from that number every time a user
 clicks a row in the table I'm generating, like so:

 $(#dataset-b tr).click(function(){
                 $(this).fadeOut(300);
                 var int = 1;
                 var prod = count - int;
                 $(.count).html(( + prod + ));
         });

 The problem is that it works on the first click (9 changes to 8), but
 nothing happens on subsequent clicks. Again, I'm sure this is
 something simple I'm missing. Thanks for any help.


[jQuery] Re: Decrement on click?

2009-07-09 Thread BaBna

I meant:
It's because you call your var count, which is always 8...

On Jul 9, 6:34 pm, BaBna thomas.na...@gmail.com wrote:
 It's beacuse you call your count var, which is always 8.
 Either you redefine count in your function or you decrement it:
 $(#dataset-b tr).click(function(){
                count = $(.count).html();
                ...
 OR
 $(#dataset-b tr).click(function(){
                count--;
                

 On Jul 9, 3:46 pm, littlerobothead nickmjo...@gmail.com wrote:

  I'm sure this is going to be an easy one. I'm just not seeing a
  solution in any of the usual places.

  I'm getting the number of elements in a table like so:

  var count = $(#dataset-b tr).length;

  Then appending that number to a span, like so:

  $(.count).html(( + count + ));

  What I want to do is subtract one from that number every time a user
  clicks a row in the table I'm generating, like so:

  $(#dataset-b tr).click(function(){
                  $(this).fadeOut(300);
                  var int = 1;
                  var prod = count - int;
                  $(.count).html(( + prod + ));
          });

  The problem is that it works on the first click (9 changes to 8), but
  nothing happens on subsequent clicks. Again, I'm sure this is
  something simple I'm missing. Thanks for any help.


[jQuery] Re: Decrement on click?

2009-07-09 Thread Massimo Lombardo

Here's a simple pattern:

var counter = $('element0').length;
$('element1').text(counter);
$('element2').click(function () {
$('element1').text(counter--);
});

Live example: open a live JavaScript console (like Firebug if you're
using Firefox), then paste the following

$('body').append('div id=test/div');
$('#test').css({
position: 'absolute',
top: '200px',
right: '0px',
width: '80px',
padding: '10px',
backgroundColor:  '#f00',
color:  '#fff'
});
var count = 25;
$('#test').text(count);
$('body').click(function () {
$('#test').text(--count);
});

Launch it, then click on the body: you'll see the number decrease :)

On Thu, Jul 9, 2009 at 16:46, littlerobotheadnickmjo...@gmail.com wrote:

 I'm sure this is going to be an easy one. I'm just not seeing a
 solution in any of the usual places.

 I'm getting the number of elements in a table like so:

 var count = $(#dataset-b tr).length;

 Then appending that number to a span, like so:

 $(.count).html(( + count + ));

 What I want to do is subtract one from that number every time a user
 clicks a row in the table I'm generating, like so:

 $(#dataset-b tr).click(function(){
                $(this).fadeOut(300);
                var int = 1;
                var prod = count - int;
                $(.count).html(( + prod + ));
        });

 The problem is that it works on the first click (9 changes to 8), but
 nothing happens on subsequent clicks. Again, I'm sure this is
 something simple I'm missing. Thanks for any help.




-- 
Linux user #437712


[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

The path is valid definately. I checked it with firebug plus it all
works when im logged out of the CMS - you can see it working at
http://www.sanlab.ee when you move your cursor into the menu. When i
log in editor environment then the cms adds bunch of scripts to the
page and then it stops working and web developer toolbar shows
forementioned error.

The same file is not beeing inserted after the call, but the jquery.js
itself is beeing inserted by the CMS. I do not know why this would
cause and error, because many other functions work just fine. Several
other functions stop working too though, like colourpicker that is
visible on the same page.

Alan

On Jul 9, 8:27 pm, Charlie charlie...@gmail.com wrote:
 is not a function means script you are referncing , in this case 
 hoverintent, isn't accesible when you call the function. It shows you have it 
 in page, but is path vaild? Is same file being inserted again after the call 
 ( seen that cause function to fail too)
 can you post link?
 zayatzz wrote:Any ideas why im getting this error? Alan


[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread Charlie





no idea. WOrked fine for me, no hoverintent error

zayatzz wrote:

  The path is valid definately. I checked it with firebug plus it all
works when im logged out of the CMS - you can see it working at
http://www.sanlab.ee when you move your cursor into the menu. When i
log in editor environment then the cms adds bunch of scripts to the
page and then it stops working and web developer toolbar shows
forementioned error.

The same file is not beeing inserted after the call, but the jquery.js
itself is beeing inserted by the CMS. I do not know why this would
cause and error, because many other functions work just fine. Several
other functions stop working too though, like colourpicker that is
visible on the same page.

Alan

On Jul 9, 8:27pm, Charlie charlie...@gmail.com wrote:
  
  
"is not a function" means script you are referncing , in this case hoverintent, isn't accesible when you call the function. It shows you have it in page, but is path vaild? Is same file being inserted again after the call ( seen that cause function to fail too)
can you post link?
zayatzz wrote:Any ideas why im getting this error? Alan

  
  
  






[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

Yes that is what i've been saying. you get the error when you are
logged in otherwise it works just fine. Unfortunately i cannot give
you access to editor/admin environment.

quoting my own words - it all works whem im logged out of CMS -

Alan.

On Jul 9, 9:06 pm, Charlie charlie...@gmail.com wrote:
 no idea. WOrked fine for me, no hoverintent error
 zayatzz wrote:The path is valid definately. I checked it with firebug plus it 
 all works when im logged out of the CMS - you can see it working 
 athttp://www.sanlab.eewhen you move your cursor into the menu. When i log in 
 editor environment then the cms adds bunch of scripts to the page and then it 
 stops working and web developer toolbar shows forementioned error. The same 
 file is not beeing inserted after the call, but the jquery.js itself is 
 beeing inserted by the CMS. I do not know why this would cause and error, 
 because many other functions work just fine. Several other functions stop 
 working too though, like colourpicker that is visible on the same page. Alan 
 On Jul 9, 8:27 pm, Charliecharlie...@gmail.comwrote:is not a function 
 means script you are referncing , in this case hoverintent, isn't accesible 
 when you call the function. It shows you have it in page, but is path vaild? 
 Is same file being inserted again after the call ( seen that cause function 
 to fail too) can you post link? zayatzz wrote:Any ideas why im getting this 
 error? Alan


[jQuery] Re: [ANNOUNCE] New plugin: Loading

2009-07-09 Thread Nathan Bubna

On Thu, Jul 9, 2009 at 10:06 AM, Nathan Bubnanbu...@gmail.com wrote:
 On Thu, Jul 9, 2009 at 9:10 AM, Penner, Matthewmpen...@valverde.edu wrote:

 Great job!  Just a comment on the demo page.  When I set the mask to
 true I lose the ability to interact with the page, as designed of
 course! :)  Maybe you could make a timeout of like 5 seconds.  Otherwise
 I have to refresh the page just to test out some other things.

 Great idea!

Ok, demo is updated.  This also led to a new release (1.3.2), as i
realized it would be easy to do this if there were a loadingStart
event to listen for.  I added a loadingEnd as well.  Currently these
are just notifications.  I may later run the on/off behaviors off of
these events to allow for more complex event handling.

 A suggestion I have for the plug-in itself would be the option to use
 both an image and text.  I personally like the spinning gif with the
 text Loading... below it.

 Hmm.  That would look nice.  You can already do this with the 'element' 
 option:

 $.loading({element: 'img src=loading.gifdivLoading.../div'})

 or even css:

 $.loading({css:{paddingTop:15, background:'url(loading.gif) no-repeat'}});

 that could be done in your stylesheet rules as well, of course.  As i
 think about it, this css-based approach seems most sensible, as it
 allows the text-based pulse effects (working, ellipsis and type) to
 work.  Adding the ability to combine text and img options like so:

 $.loading({img:'loading.gif', text:'Loading...'})

 would break with those pulse effects and could also lead to
 implementation complication, as not everyone is likely to prefer the
 img above the text; some might want it below or beside.  Given these
 downsides, i'm not sure it's worth adding, especially since there are
 other relatively simple ways to do it.  :)

 Great job!

 Thanks for the feedback!  It's great to have other eyes/apps/browsers
 trying this out.

 Matt Penner


 -Original Message-
 From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
 Behalf Of Nathan Bubna
 Sent: Wednesday, July 08, 2009 8:40 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] [ANNOUNCE] New plugin: Loading


 http://plugins.jquery.com/project/loading

 If you need to let the user know something is happening in the
 background, this is the easiest way.  It handles creation,
 positioning, masking/blocking stuff behind, and even pulsing the
 loading message with a few simple options.  Of course, there's more
 than a few options.  Everything is configurable and extensible.  It's
 even easy to create your own pulsing/spinning/throbbing effects, and
 it can display text (default), images or any element you like with
 ease and simplicity.  It works page-wide with a static call:

 $.loading(true, {mask:true})

 or per-element, with chaining and all:

 $('#foo').loading({ align:'center' })

 The best way to start seeing what can be done and how to use it is to
 play with the demo:

 http://jquery-values.googlecode.com/svn/other/loading/jquery.loading.htm

 Enjoy.  And if you find bugs or have more clever ideas for it, let me
 know.  I like feedback of all kinds.




[jQuery] Re: Decrement on click?

2009-07-09 Thread littlerobothead

Thanks everyone for clearing this up. I told you it was simple :) I
learned something today!


On Jul 9, 1:46 pm, Massimo Lombardo unwiredbr...@gmail.com wrote:
 Here's a simple pattern:

 var counter = $('element0').length;
 $('element1').text(counter);
 $('element2').click(function () {
         $('element1').text(counter--);

 });

 Live example: open a live JavaScript console (like Firebug if you're
 using Firefox), then paste the following

 $('body').append('div id=test/div');
 $('#test').css({
         position: 'absolute',
         top: '200px',
         right: '0px',
         width: '80px',
         padding: '10px',
         backgroundColor:  '#f00',
         color:  '#fff'});

 var count = 25;
 $('#test').text(count);
 $('body').click(function () {
         $('#test').text(--count);

 });

 Launch it, then click on the body: you'll see the number decrease :)





 On Thu, Jul 9, 2009 at 16:46, littlerobotheadnickmjo...@gmail.com wrote:

  I'm sure this is going to be an easy one. I'm just not seeing a
  solution in any of the usual places.

  I'm getting the number of elements in a table like so:

  var count = $(#dataset-b tr).length;

  Then appending that number to a span, like so:

  $(.count).html(( + count + ));

  What I want to do is subtract one from that number every time a user
  clicks a row in the table I'm generating, like so:

  $(#dataset-b tr).click(function(){
                 $(this).fadeOut(300);
                 var int = 1;
                 var prod = count - int;
                 $(.count).html(( + prod + ));
         });

  The problem is that it works on the first click (9 changes to 8), but
  nothing happens on subsequent clicks. Again, I'm sure this is
  something simple I'm missing. Thanks for any help.

 --
 Linux user #437712


[jQuery] Re: jQuery(ul.lavaLamp).hoverIntent is not a function

2009-07-09 Thread zayatzz

Ah hell... if you think it would be useful, then i can give you an
account for testing too - not here though, via email, skype or msn.

Alan.

On Jul 9, 9:23 pm, zayatzz alan.kesselm...@gmail.com wrote:
 Yes that is what i've been saying. you get the error when you are
 logged in otherwise it works just fine. Unfortunately i cannot give
 you access to editor/admin environment.

 quoting my own words - it all works whem im logged out of CMS -

 Alan.

 On Jul 9, 9:06 pm, Charlie charlie...@gmail.com wrote:

  no idea. WOrked fine for me, no hoverintent error
  zayatzz wrote:The path is valid definately. I checked it with firebug plus 
  it all works when im logged out of the CMS - you can see it working 
  athttp://www.sanlab.eewhenyou move your cursor into the menu. When i log in 
  editor environment then the cms adds bunch of scripts to the page and then 
  it stops working and web developer toolbar shows forementioned error. The 
  same file is not beeing inserted after the call, but the jquery.js itself 
  is beeing inserted by the CMS. I do not know why this would cause and 
  error, because many other functions work just fine. Several other functions 
  stop working too though, like colourpicker that is visible on the same 
  page. Alan On Jul 9, 8:27 pm, Charliecharlie...@gmail.comwrote:is not a 
  function means script you are referncing , in this case hoverintent, isn't 
  accesible when you call the function. It shows you have it in page, but is 
  path vaild? Is same file being inserted again after the call ( seen that 
  cause function to fail too) can you post link? zayatzz wrote:Any ideas why 
  im getting this error? Alan


[jQuery] Re: remove and opera 9.6.4

2009-07-09 Thread Charlie





not suggesting this works or aware of problem but ideas that came to my
mind to test:

replaceWith(""); // or replaceWith() some empty element and remove that
element?

Liam Potter wrote:

Having a strange bug in opera 9.6.4.
  
  
When removing objects from the dom, opera leaves a "ghost image" of the
removed object, till you scroll away.
  
.hide() works fine, so tried hiding before removing, but the ghost is
still there, tried running the remove in the hide callback, no luck,
tried hiding with .css and still no luck.
  
  
Has anyone come across this bug and found a workaround?
  
  
- Liam
  
  






[jQuery] Re: Remove margin in last li in Unordered List

2009-07-09 Thread expresso

I did not know about eq and I don't have all fing day to figure this
out as I am very new to jQuery.  I do my dilligence and read the
books, try some stuff out and then when I am not sure of another way
to do this I post.  It's not like I am posting every step of the way
although it msut appear that to you.  I tried a few things before I
posted.

On Jul 9, 7:04 am, Charlie charlie...@gmail.com wrote:
 of course it won't work, is improper use of index(),
 replace index() with eq()
 Suggestion:
 instead of posting each and every thought and failed function you have every 
 2 minutes, this example could have been created in a very simple test page to 
 get the methods and syntax sorted out. Would have saved us watch the 
 floundering on each and every step of your grief. Other example you tried 
 $(#mycarousel  li[ + i + ]) is syntax problem with several workarounds 
 including :eq()
 Building simple test pages is one of the best ways to learn jquery IMO. 
 Keeping a simple template including link to jquery google source, and a 
 $(document)ready built in you can build a test page in any directory in 
 almost no time and debug in Firebug
 expresso wrote:tried this but doesn't look like you can do this 
 $(#mycarousel  li).index(i).css(margin-right, 0px).css(padding- 
 right, 6px); On Jul 8, 9:48 pm, expressodschin...@gmail.comwrote:Like 
 something like this $(#mycarousel  li[ + i + ]).css(margin-right, 
 0px).css (padding-right, 6px); On Jul 8, 9:46 pm, 
 expressodschin...@gmail.comwrote:Thanks.  I wonder if you can even access 
 an li by index?On Jul 8, 9:35 pm, MorningZmorni...@gmail.comwrote:Why 
 wouldn't you just use:http://docs.jquery.com/Selectors/last$(#mycarousel  
 li:last).css(property, value);On Jul 8, 10:17 pm, 
 expressodschin...@gmail.comwrote:If I have the following:div 
 class=jcarousel-clip jcarousel-clip-horizontal style=width: 459px; height: 
 220px;     ul id=mycarousel class=jcarousel-list jcarousel-list- 
 horizontal style=height: 220px; width: 918px; left: 0px;         li 
 class=jcarousel-item jcarousel-item-horizontal jcarousel- item-1 
 jcarousel-item-1-horizontal jcarouselindex=1         /li         li 
 class=jcarousel-item jcarousel-item-horizontal jcarousel- item-2 
 jcarousel-item-2-horizontal jcarouselindex=2         /li         li 
 class=jcarousel-item jcarousel-item-horizontal jcarousel- item-3 
 jcarousel-item-3-horizontal jcarouselindex=3         /li /ul 
 /divTrying to figure out how I can do a .each on each li and then add an 
 additional style to the last li in the list.


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

how the hell am I being rude?

And second, I am giving information to help you help me.  Again I try
all sorts of shit before I post stuff.  I don't just post on every
step of the way.  I am showing you what I have tried.  So you either
get called out for not giving enough information or giving too
little.

Chill

On Jul 9, 11:04 am, MorningZ morni...@gmail.com wrote:
 so it's only respectful on my part to
 start a new thread on a different topic that's veering off in the same
 thread.  Not cool. 

 You've got it backwards it makes more sense and keeps the clutter
 out if you stay in the same topic.

 As Liam points out you already asked the index question, AND it
 was answered by Charlie, in the topic you created just 13 hours ago

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

 and yet, here's an identical topic asking the identical question with
 2 min apart two sentence ramblings on them all

 Realize what this list for what it is:   a mailing list where lots of
 us provide free help out of our own time

 making it difficult to understand what you are asking, being rude to
 people trying to show you the way, rambling on and on with the same
 stuff  all that doesn't lend itself very well to make your issues
 worth other peoples time and effort

 .

 On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:

  Because sometimes I get into other topics not related to my original
  posts in those other thread so it's only respectful on my part to
  start a new thread on a different topic that's veering off in the same
  thread.  Not cool.

  On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

   how about reading all the replies to your other thread about this?

   $(#mycarousel  li:eq(10)).css(margin-right, 5px);

   expresso wrote:
Is it possible to target certain li in an unordered list by index
with jQuery?  I thought maybe I could use .index but was not able to
get the syntax right.

I thought maybe something like this would work but is has not:

$(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

You've got it backwards it makes more sense and keeps the clutter
out if you stay in the same topic.

I did not say not to stay on the same topic.  I said if I start
veering off into anther discussion that's talking about a different
approach (in this case in that previous thread I started with a
question about obtaining the LAST li).  Then I wondering maybe
instead I can just iterate through the list of li and grab some by
index.  At that point, that's a whole different issue or scope.  Yea,
that time I should have stuck with the thread because I already
committed to the question on the index.

Anyway I get it.  But I should not be posting 2 different questions on
the same thread which is what I try to avoid

On Jul 9, 1:54 pm, expresso dschin...@gmail.com wrote:
 how the hell am I being rude?

 And second, I am giving information to help you help me.  Again I try
 all sorts of shit before I post stuff.  I don't just post on every
 step of the way.  I am showing you what I have tried.  So you either
 get called out for not giving enough information or giving too
 little.

 Chill

 On Jul 9, 11:04 am, MorningZ morni...@gmail.com wrote:

  so it's only respectful on my part to
  start a new thread on a different topic that's veering off in the same
  thread.  Not cool. 

  You've got it backwards it makes more sense and keeps the clutter
  out if you stay in the same topic.

  As Liam points out you already asked the index question, AND it
  was answered by Charlie, in the topic you created just 13 hours ago

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

  and yet, here's an identical topic asking the identical question with
  2 min apart two sentence ramblings on them all

  Realize what this list for what it is:   a mailing list where lots of
  us provide free help out of our own time

  making it difficult to understand what you are asking, being rude to
  people trying to show you the way, rambling on and on with the same
  stuff  all that doesn't lend itself very well to make your issues
  worth other peoples time and effort

  .

  On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:

   Because sometimes I get into other topics not related to my original
   posts in those other thread so it's only respectful on my part to
   start a new thread on a different topic that's veering off in the same
   thread.  Not cool.

   On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

how about reading all the replies to your other thread about this?

$(#mycarousel  li:eq(10)).css(margin-right, 5px);

expresso wrote:
 Is it possible to target certain li in an unordered list by index
 with jQuery?  I thought maybe I could use .index but was not able to
 get the syntax right.

 I thought maybe something like this would work but is has not:

 $(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

making it difficult to understand what you are asking
tell me how it's difficult, I am very thorough in explaining the
situation and things tried.

On Jul 9, 1:57 pm, expresso dschin...@gmail.com wrote:
 You've got it backwards it makes more sense and keeps the clutter
 out if you stay in the same topic.

 I did not say not to stay on the same topic.  I said if I start
 veering off into anther discussion that's talking about a different
 approach (in this case in that previous thread I started with a
 question about obtaining the LAST li).  Then I wondering maybe
 instead I can just iterate through the list of li and grab some by
 index.  At that point, that's a whole different issue or scope.  Yea,
 that time I should have stuck with the thread because I already
 committed to the question on the index.

 Anyway I get it.  But I should not be posting 2 different questions on
 the same thread which is what I try to avoid

 On Jul 9, 1:54 pm, expresso dschin...@gmail.com wrote:

  how the hell am I being rude?

  And second, I am giving information to help you help me.  Again I try
  all sorts of shit before I post stuff.  I don't just post on every
  step of the way.  I am showing you what I have tried.  So you either
  get called out for not giving enough information or giving too
  little.

  Chill

  On Jul 9, 11:04 am, MorningZ morni...@gmail.com wrote:

   so it's only respectful on my part to
   start a new thread on a different topic that's veering off in the same
   thread.  Not cool. 

   You've got it backwards it makes more sense and keeps the clutter
   out if you stay in the same topic.

   As Liam points out you already asked the index question, AND it
   was answered by Charlie, in the topic you created just 13 hours ago

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

   and yet, here's an identical topic asking the identical question with
   2 min apart two sentence ramblings on them all

   Realize what this list for what it is:   a mailing list where lots of
   us provide free help out of our own time

   making it difficult to understand what you are asking, being rude to
   people trying to show you the way, rambling on and on with the same
   stuff  all that doesn't lend itself very well to make your issues
   worth other peoples time and effort

   .

   On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:

Because sometimes I get into other topics not related to my original
posts in those other thread so it's only respectful on my part to
start a new thread on a different topic that's veering off in the same
thread.  Not cool.

On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

 how about reading all the replies to your other thread about this?

 $(#mycarousel  li:eq(10)).css(margin-right, 5px);

 expresso wrote:
  Is it possible to target certain li in an unordered list by index
  with jQuery?  I thought maybe I could use .index but was not able to
  get the syntax right.

  I thought maybe something like this would work but is has not:

  $(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

making it difficult to understand what you are asking
tell me how it's difficult, I am very thorough in explaining the
situation and things tried.

On Jul 9, 1:57 pm, expresso dschin...@gmail.com wrote:
 You've got it backwards it makes more sense and keeps the clutter
 out if you stay in the same topic.

 I did not say not to stay on the same topic.  I said if I start
 veering off into anther discussion that's talking about a different
 approach (in this case in that previous thread I started with a
 question about obtaining the LAST li).  Then I wondering maybe
 instead I can just iterate through the list of li and grab some by
 index.  At that point, that's a whole different issue or scope.  Yea,
 that time I should have stuck with the thread because I already
 committed to the question on the index.

 Anyway I get it.  But I should not be posting 2 different questions on
 the same thread which is what I try to avoid

 On Jul 9, 1:54 pm, expresso dschin...@gmail.com wrote:

  how the hell am I being rude?

  And second, I am giving information to help you help me.  Again I try
  all sorts of shit before I post stuff.  I don't just post on every
  step of the way.  I am showing you what I have tried.  So you either
  get called out for not giving enough information or giving too
  little.

  Chill

  On Jul 9, 11:04 am, MorningZ morni...@gmail.com wrote:

   so it's only respectful on my part to
   start a new thread on a different topic that's veering off in the same
   thread.  Not cool. 

   You've got it backwards it makes more sense and keeps the clutter
   out if you stay in the same topic.

   As Liam points out you already asked the index question, AND it
   was answered by Charlie, in the topic you created just 13 hours ago

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

   and yet, here's an identical topic asking the identical question with
   2 min apart two sentence ramblings on them all

   Realize what this list for what it is:   a mailing list where lots of
   us provide free help out of our own time

   making it difficult to understand what you are asking, being rude to
   people trying to show you the way, rambling on and on with the same
   stuff  all that doesn't lend itself very well to make your issues
   worth other peoples time and effort

   .

   On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:

Because sometimes I get into other topics not related to my original
posts in those other thread so it's only respectful on my part to
start a new thread on a different topic that's veering off in the same
thread.  Not cool.

On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

 how about reading all the replies to your other thread about this?

 $(#mycarousel  li:eq(10)).css(margin-right, 5px);

 expresso wrote:
  Is it possible to target certain li in an unordered list by index
  with jQuery?  I thought maybe I could use .index but was not able to
  get the syntax right.

  I thought maybe something like this would work but is has not:

  $(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread MorningZ

hahah, I double posted.  OH boy, bend me over and slap me. 

I don't think you get the point of the double post thing... you said
in another post that i hit refresh... in other words, your feeling
is the mailing list is operators are standing by to take your call
in that you should sit there and hit F5 and F5 and F5 and F5, when
some patience shown might be in order...

As for being rude, you posting (in disabled div topic)

Morning, then tell my why the code is putting that in there straight
from the JCarousel plug-in? 

is *you* being rude to *me*, acting like:
1) I wrote it and could (or want) to explain it to you
2) I owed you an explanation or something

I pointed out that there is no disabled state for a div in the W3C
specs, and you blow up at my wondering why the author of that plugin
put it on there... how the @#$% am i supposed to know?

and don't take my previous post as mean or rude or mad or anything, i
was simply pointing out things you have been doing (all this double
posting crap, rudeness, frustration, confusion, etc) for the past few
days that, put simply, are super annoying...  and that doesn't make it
very appealing for others to help you out I've been patient on all
your posts trying my best to help you figure out your issue, Charlie
has been, Liam has been.. and all we get in return from you is pretty
much a big fuck you...   really classy

.


On Jul 9, 3:08 pm, expresso dschin...@gmail.com wrote:
 hahah, I double posted.  OH boy, bend me over and slap me.

 On Jul 9, 2:03 pm, expresso dschin...@gmail.com wrote:

  making it difficult to understand what you are asking

  tell me how it's difficult, I am very thorough in explaining the
  situation and things tried.

  On Jul 9, 1:57 pm, expresso dschin...@gmail.com wrote:

   You've got it backwards it makes more sense and keeps the clutter
   out if you stay in the same topic.

   I did not say not to stay on the same topic.  I said if I start
   veering off into anther discussion that's talking about a different
   approach (in this case in that previous thread I started with a
   question about obtaining the LAST li).  Then I wondering maybe
   instead I can just iterate through the list of li and grab some by
   index.  At that point, that's a whole different issue or scope.  Yea,
   that time I should have stuck with the thread because I already
   committed to the question on the index.

   Anyway I get it.  But I should not be posting 2 different questions on
   the same thread which is what I try to avoid

   On Jul 9, 1:54 pm, expresso dschin...@gmail.com wrote:

how the hell am I being rude?

And second, I am giving information to help you help me.  Again I try
all sorts of shit before I post stuff.  I don't just post on every
step of the way.  I am showing you what I have tried.  So you either
get called out for not giving enough information or giving too
little.

Chill

On Jul 9, 11:04 am, MorningZ morni...@gmail.com wrote:

 so it's only respectful on my part to
 start a new thread on a different topic that's veering off in the same
 thread.  Not cool. 

 You've got it backwards it makes more sense and keeps the clutter
 out if you stay in the same topic.

 As Liam points out you already asked the index question, AND it
 was answered by Charlie, in the topic you created just 13 hours ago

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

 and yet, here's an identical topic asking the identical question with
 2 min apart two sentence ramblings on them all

 Realize what this list for what it is:   a mailing list where lots of
 us provide free help out of our own time

 making it difficult to understand what you are asking, being rude to
 people trying to show you the way, rambling on and on with the same
 stuff  all that doesn't lend itself very well to make your issues
 worth other peoples time and effort

 .

 On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:

  Because sometimes I get into other topics not related to my original
  posts in those other thread so it's only respectful on my part to
  start a new thread on a different topic that's veering off in the 
  same
  thread.  Not cool.

  On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

   how about reading all the replies to your other thread about this?

   $(#mycarousel  li:eq(10)).css(margin-right, 5px);

   expresso wrote:
Is it possible to target certain li in an unordered list by 
index
with jQuery?  I thought maybe I could use .index but was not 
able to
get the syntax right.

I thought maybe something like this would work but is has not:

$(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

Charlie, I have said thanks in a lot of my posts.

Second, I am customizing this control way beyond what most people
have.  And yes, it's pretty frustrating to say the least when you
create a plugin and then disappear after 2 years.  While it's open
source, still.  When you email the creator nicely asking him if he's
still contributing and you get no response, and then the forums the
pages for that Carousel are abandoned, one's got to wonder wtf.

My tone?  Look at the kind of responses I get from people like you.
Stuff like Of Course that won't work.  Your tone is just as cocky as
you think mine is.

a number of the last posts directed back to you have been trying to give you 
a clue that everyone is getting really tired of all the frantic posts

I don't see how they are frantic, just separated out. And I don't see
all the people here who are getting fed up.

I want you and Morning to know that some of the responses are
definitely passive aggressive on your side to even start with.  Do you
need examples?

I'm not here to argue.  I'll do my best to consolidate my replies.
And understand that people are human, sure I'm frustrated with the
fact that the author is no longer to be found.  Don't take someone's
frustration to the point of saying I'm being negative when I was not
THAT negative.  What a way to blow this entire thing out of the water.

On Jul 9, 2:08 pm, Charlie charlie...@gmail.com wrote:
 you sir are a complete ingrate! 
 You have had endless help from numerous people for 2 weeks on a simple 
 carousel. I don't think you understand the tone of a number of the last posts 
 directed back to you have been trying to give you a clue that everyone is 
 getting really tired of all the frantic posts, condemning someone's code ( on 
 a plugin that 100's of people have used I might add), not reading replies 
 with solutions..and to top it off this post makes it sound like others 
 with busy lives are just sitting around waiting to help you!
 This post is rude! Wake up! Any reply to MorningZ's post I would have been 
 expecting to see some thanks, rather than being a pompous A**. My bet is you 
 just burned a big bridge to any further assistance with an attitude like the 
 one displayed here
 I'm betting I speak for many others who are tired of the inbox clutter from 
 your carousel problems
 expresso wrote:how the hell am I being rude? And second, I am giving 
 information to help you help me. Again I try all sorts of shit before I post 
 stuff. I don't just post on every step of the way. I am showing you what I 
 have tried. So you either get called out for not giving enough information or 
 giving too little. Chill On Jul 9, 11:04 am, 
 MorningZmorni...@gmail.comwrote:so it's only respectful on my part to 
 start a new thread on a different topic that's veering off in the same 
 thread.  Not cool.  You've got it backwards it makes more sense and 
 keeps the clutter out if you stay in the same topic. As Liam points 
 out you already asked the index question, AND it was answered by Charlie, 
 in the topic you created just 13 hours 
 agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916... 
 and yet, here's an identical topic asking the identical question with 2 min 
 apart two sentence ramblings on them all Realize what this list for what 
 it is:   a mailing list where lots of us provide free help out of our own 
 time making it difficult to understand what you are asking, being rude to 
 people trying to show you the way, rambling on and on with the same stuff 
  all that doesn't lend itself very well to make your issues worth other 
 peoples time and effort . On Jul 9, 11:12 am, 
 expressodschin...@gmail.comwrote:Because sometimes I get into other topics 
 not related to my original posts in those other thread so it's only 
 respectful on my part to start a new thread on a different topic that's 
 veering off in the same thread.  Not cool.On Jul 9, 9:30 am, Liam 
 Potterradioactiv...@gmail.comwrote:how about reading all the replies to 
 your other thread about this?$(#mycarousel  li:eq(10)).css(margin-right, 
 5px);expresso wrote:Is it possible to target certain li in an unordered 
 list by index with jQuery?  I thought maybe I could use .index but was not 
 able to get the syntax right.I thought maybe something like this would work 
 but is has not:$(#mycarousel  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

Morning, then tell my why the code is putting that in there straight
from the JCarousel plug-in

Because previous to that, you were pretty cocky about the way you said
that disabled is not part of a div  Read the post.

YOu have to take that response above in context. I was in no way
trying to be cocky, just making a point that hey, it's in there so I
don't get why then.

On Jul 9, 2:22 pm, expresso dschin...@gmail.com wrote:
 Charlie, I have said thanks in a lot of my posts.

 Second, I am customizing this control way beyond what most people
 have.  And yes, it's pretty frustrating to say the least when you
 create a plugin and then disappear after 2 years.  While it's open
 source, still.  When you email the creator nicely asking him if he's
 still contributing and you get no response, and then the forums the
 pages for that Carousel are abandoned, one's got to wonder wtf.

 My tone?  Look at the kind of responses I get from people like you.
 Stuff like Of Course that won't work.  Your tone is just as cocky as
 you think mine is.

 a number of the last posts directed back to you have been trying to give 
 you a clue that everyone is getting really tired of all the frantic posts

 I don't see how they are frantic, just separated out. And I don't see
 all the people here who are getting fed up.

 I want you and Morning to know that some of the responses are
 definitely passive aggressive on your side to even start with.  Do you
 need examples?

 I'm not here to argue.  I'll do my best to consolidate my replies.
 And understand that people are human, sure I'm frustrated with the
 fact that the author is no longer to be found.  Don't take someone's
 frustration to the point of saying I'm being negative when I was not
 THAT negative.  What a way to blow this entire thing out of the water.

 On Jul 9, 2:08 pm, Charlie charlie...@gmail.com wrote:

  you sir are a complete ingrate! 
  You have had endless help from numerous people for 2 weeks on a simple 
  carousel. I don't think you understand the tone of a number of the last 
  posts directed back to you have been trying to give you a clue that 
  everyone is getting really tired of all the frantic posts, condemning 
  someone's code ( on a plugin that 100's of people have used I might add), 
  not reading replies with solutions..and to top it off this post makes 
  it sound like others with busy lives are just sitting around waiting to 
  help you!
  This post is rude! Wake up! Any reply to MorningZ's post I would have been 
  expecting to see some thanks, rather than being a pompous A**. My bet is 
  you just burned a big bridge to any further assistance with an attitude 
  like the one displayed here
  I'm betting I speak for many others who are tired of the inbox clutter from 
  your carousel problems
  expresso wrote:how the hell am I being rude? And second, I am giving 
  information to help you help me. Again I try all sorts of shit before I 
  post stuff. I don't just post on every step of the way. I am showing you 
  what I have tried. So you either get called out for not giving enough 
  information or giving too little. Chill On Jul 9, 11:04 am, 
  MorningZmorni...@gmail.comwrote:so it's only respectful on my part to 
  start a new thread on a different topic that's veering off in the same 
  thread.  Not cool.  You've got it backwards it makes more sense and 
  keeps the clutter out if you stay in the same topic. As Liam points 
  out you already asked the index question, AND it was answered by 
  Charlie, in the topic you created just 13 hours 
  agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916... 
  and yet, here's an identical topic asking the identical question with 2 min 
  apart two sentence ramblings on them all Realize what this list for 
  what it is:   a mailing list where lots of us provide free help out of our 
  own time making it difficult to understand what you are asking, being 
  rude to people trying to show you the way, rambling on and on with the same 
  stuff  all that doesn't lend itself very well to make your issues worth 
  other peoples time and effort . On Jul 9, 11:12 am, 
  expressodschin...@gmail.comwrote:Because sometimes I get into other 
  topics not related to my original posts in those other thread so it's only 
  respectful on my part to start a new thread on a different topic that's 
  veering off in the same thread.  Not cool.On Jul 9, 9:30 am, Liam 
  Potterradioactiv...@gmail.comwrote:how about reading all the replies to 
  your other thread about this?$(#mycarousel  
  li:eq(10)).css(margin-right, 5px);expresso wrote:Is it possible to 
  target certain li in an unordered list by index with jQuery?  I thought 
  maybe I could use .index but was not able to get the syntax right.I thought 
  maybe something like this would work but is has not:$(#mycarousel  
  li).index(i).css(margin-right, 5px);


[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

and you blow up at my wondering why the author of that plugin
put it on there... how the @#$% am i supposed to know?

if that's blowing up then you need to relax when you read replies.
That in no way was blowing up.

On Jul 9, 2:24 pm, expresso dschin...@gmail.com wrote:
 Morning, then tell my why the code is putting that in there straight

 from the JCarousel plug-in

 Because previous to that, you were pretty cocky about the way you said
 that disabled is not part of a div  Read the post.

 YOu have to take that response above in context. I was in no way
 trying to be cocky, just making a point that hey, it's in there so I
 don't get why then.

 On Jul 9, 2:22 pm, expresso dschin...@gmail.com wrote:

  Charlie, I have said thanks in a lot of my posts.

  Second, I am customizing this control way beyond what most people
  have.  And yes, it's pretty frustrating to say the least when you
  create a plugin and then disappear after 2 years.  While it's open
  source, still.  When you email the creator nicely asking him if he's
  still contributing and you get no response, and then the forums the
  pages for that Carousel are abandoned, one's got to wonder wtf.

  My tone?  Look at the kind of responses I get from people like you.
  Stuff like Of Course that won't work.  Your tone is just as cocky as
  you think mine is.

  a number of the last posts directed back to you have been trying to give 
  you a clue that everyone is getting really tired of all the frantic posts

  I don't see how they are frantic, just separated out. And I don't see
  all the people here who are getting fed up.

  I want you and Morning to know that some of the responses are
  definitely passive aggressive on your side to even start with.  Do you
  need examples?

  I'm not here to argue.  I'll do my best to consolidate my replies.
  And understand that people are human, sure I'm frustrated with the
  fact that the author is no longer to be found.  Don't take someone's
  frustration to the point of saying I'm being negative when I was not
  THAT negative.  What a way to blow this entire thing out of the water.

  On Jul 9, 2:08 pm, Charlie charlie...@gmail.com wrote:

   you sir are a complete ingrate! 
   You have had endless help from numerous people for 2 weeks on a simple 
   carousel. I don't think you understand the tone of a number of the last 
   posts directed back to you have been trying to give you a clue that 
   everyone is getting really tired of all the frantic posts, condemning 
   someone's code ( on a plugin that 100's of people have used I might add), 
   not reading replies with solutions..and to top it off this post makes 
   it sound like others with busy lives are just sitting around waiting to 
   help you!
   This post is rude! Wake up! Any reply to MorningZ's post I would have 
   been expecting to see some thanks, rather than being a pompous A**. My 
   bet is you just burned a big bridge to any further assistance with an 
   attitude like the one displayed here
   I'm betting I speak for many others who are tired of the inbox clutter 
   from your carousel problems
   expresso wrote:how the hell am I being rude? And second, I am giving 
   information to help you help me. Again I try all sorts of shit before I 
   post stuff. I don't just post on every step of the way. I am showing you 
   what I have tried. So you either get called out for not giving enough 
   information or giving too little. Chill On Jul 9, 11:04 am, 
   MorningZmorni...@gmail.comwrote:so it's only respectful on my part to 
   start a new thread on a different topic that's veering off in the same 
   thread.  Not cool.  You've got it backwards it makes more sense and 
   keeps the clutter out if you stay in the same topic. As Liam points 
   out you already asked the index question, AND it was answered by 
   Charlie, in the topic you created just 13 hours 
   agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916...
and yet, here's an identical topic asking the identical question with 2 
   min apart two sentence ramblings on them all Realize what this list 
   for what it is:   a mailing list where lots of us provide free help out 
   of our own time making it difficult to understand what you are 
   asking, being rude to people trying to show you the way, rambling on and 
   on with the same stuff  all that doesn't lend itself very well to 
   make your issues worth other peoples time and effort . On Jul 9, 
   11:12 am, expressodschin...@gmail.comwrote:Because sometimes I get into 
   other topics not related to my original posts in those other thread so 
   it's only respectful on my part to start a new thread on a different 
   topic that's veering off in the same thread.  Not cool.On Jul 9, 9:30 am, 
   Liam Potterradioactiv...@gmail.comwrote:how about reading all the 
   replies to your other thread about this?$(#mycarousel  
   li:eq(10)).css(margin-right, 5px);expresso 

[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

Charlie and this is what pisses me off about you, statements like
this:

You have had endless help from numerous people for 2 weeks on a
simple carousel

so you're saying basically you're an idiot, this shit is simple.

wtf man, and you find me cocky?  I hate developers like you who think
that they are God's gift to mankind and you come at people with things
like what you can't figure that out, it's simple kind of cocky
attitude like I'm some kind of dumbass.

On Jul 9, 2:24 pm, expresso dschin...@gmail.com wrote:
 Morning, then tell my why the code is putting that in there straight

 from the JCarousel plug-in

 Because previous to that, you were pretty cocky about the way you said
 that disabled is not part of a div  Read the post.

 YOu have to take that response above in context. I was in no way
 trying to be cocky, just making a point that hey, it's in there so I
 don't get why then.

 On Jul 9, 2:22 pm, expresso dschin...@gmail.com wrote:

  Charlie, I have said thanks in a lot of my posts.

  Second, I am customizing this control way beyond what most people
  have.  And yes, it's pretty frustrating to say the least when you
  create a plugin and then disappear after 2 years.  While it's open
  source, still.  When you email the creator nicely asking him if he's
  still contributing and you get no response, and then the forums the
  pages for that Carousel are abandoned, one's got to wonder wtf.

  My tone?  Look at the kind of responses I get from people like you.
  Stuff like Of Course that won't work.  Your tone is just as cocky as
  you think mine is.

  a number of the last posts directed back to you have been trying to give 
  you a clue that everyone is getting really tired of all the frantic posts

  I don't see how they are frantic, just separated out. And I don't see
  all the people here who are getting fed up.

  I want you and Morning to know that some of the responses are
  definitely passive aggressive on your side to even start with.  Do you
  need examples?

  I'm not here to argue.  I'll do my best to consolidate my replies.
  And understand that people are human, sure I'm frustrated with the
  fact that the author is no longer to be found.  Don't take someone's
  frustration to the point of saying I'm being negative when I was not
  THAT negative.  What a way to blow this entire thing out of the water.

  On Jul 9, 2:08 pm, Charlie charlie...@gmail.com wrote:

   you sir are a complete ingrate! 
   You have had endless help from numerous people for 2 weeks on a simple 
   carousel. I don't think you understand the tone of a number of the last 
   posts directed back to you have been trying to give you a clue that 
   everyone is getting really tired of all the frantic posts, condemning 
   someone's code ( on a plugin that 100's of people have used I might add), 
   not reading replies with solutions..and to top it off this post makes 
   it sound like others with busy lives are just sitting around waiting to 
   help you!
   This post is rude! Wake up! Any reply to MorningZ's post I would have 
   been expecting to see some thanks, rather than being a pompous A**. My 
   bet is you just burned a big bridge to any further assistance with an 
   attitude like the one displayed here
   I'm betting I speak for many others who are tired of the inbox clutter 
   from your carousel problems
   expresso wrote:how the hell am I being rude? And second, I am giving 
   information to help you help me. Again I try all sorts of shit before I 
   post stuff. I don't just post on every step of the way. I am showing you 
   what I have tried. So you either get called out for not giving enough 
   information or giving too little. Chill On Jul 9, 11:04 am, 
   MorningZmorni...@gmail.comwrote:so it's only respectful on my part to 
   start a new thread on a different topic that's veering off in the same 
   thread.  Not cool.  You've got it backwards it makes more sense and 
   keeps the clutter out if you stay in the same topic. As Liam points 
   out you already asked the index question, AND it was answered by 
   Charlie, in the topic you created just 13 hours 
   agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916...
and yet, here's an identical topic asking the identical question with 2 
   min apart two sentence ramblings on them all Realize what this list 
   for what it is:   a mailing list where lots of us provide free help out 
   of our own time making it difficult to understand what you are 
   asking, being rude to people trying to show you the way, rambling on and 
   on with the same stuff  all that doesn't lend itself very well to 
   make your issues worth other peoples time and effort . On Jul 9, 
   11:12 am, expressodschin...@gmail.comwrote:Because sometimes I get into 
   other topics not related to my original posts in those other thread so 
   it's only respectful on my part to start a new thread on a different 
   topic 

[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

While I certainly have gotten all pissed off in this thread now...I
think both sides need to re-evaluate.

On your side, you need to both stop with your little hints of you're
an idiot in your responses.  Key words like these from developers who
think they are above others is what I'm talking about:

Of Course
Why would you do that
Obviously

key words like this are unneccessary when you are trying to help out a
fellow.  So please, this is not a one way highway here for bashing
today.

On Jul 9, 2:24 pm, expresso dschin...@gmail.com wrote:
 Morning, then tell my why the code is putting that in there straight

 from the JCarousel plug-in

 Because previous to that, you were pretty cocky about the way you said
 that disabled is not part of a div  Read the post.

 YOu have to take that response above in context. I was in no way
 trying to be cocky, just making a point that hey, it's in there so I
 don't get why then.

 On Jul 9, 2:22 pm, expresso dschin...@gmail.com wrote:

  Charlie, I have said thanks in a lot of my posts.

  Second, I am customizing this control way beyond what most people
  have.  And yes, it's pretty frustrating to say the least when you
  create a plugin and then disappear after 2 years.  While it's open
  source, still.  When you email the creator nicely asking him if he's
  still contributing and you get no response, and then the forums the
  pages for that Carousel are abandoned, one's got to wonder wtf.

  My tone?  Look at the kind of responses I get from people like you.
  Stuff like Of Course that won't work.  Your tone is just as cocky as
  you think mine is.

  a number of the last posts directed back to you have been trying to give 
  you a clue that everyone is getting really tired of all the frantic posts

  I don't see how they are frantic, just separated out. And I don't see
  all the people here who are getting fed up.

  I want you and Morning to know that some of the responses are
  definitely passive aggressive on your side to even start with.  Do you
  need examples?

  I'm not here to argue.  I'll do my best to consolidate my replies.
  And understand that people are human, sure I'm frustrated with the
  fact that the author is no longer to be found.  Don't take someone's
  frustration to the point of saying I'm being negative when I was not
  THAT negative.  What a way to blow this entire thing out of the water.

  On Jul 9, 2:08 pm, Charlie charlie...@gmail.com wrote:

   you sir are a complete ingrate! 
   You have had endless help from numerous people for 2 weeks on a simple 
   carousel. I don't think you understand the tone of a number of the last 
   posts directed back to you have been trying to give you a clue that 
   everyone is getting really tired of all the frantic posts, condemning 
   someone's code ( on a plugin that 100's of people have used I might add), 
   not reading replies with solutions..and to top it off this post makes 
   it sound like others with busy lives are just sitting around waiting to 
   help you!
   This post is rude! Wake up! Any reply to MorningZ's post I would have 
   been expecting to see some thanks, rather than being a pompous A**. My 
   bet is you just burned a big bridge to any further assistance with an 
   attitude like the one displayed here
   I'm betting I speak for many others who are tired of the inbox clutter 
   from your carousel problems
   expresso wrote:how the hell am I being rude? And second, I am giving 
   information to help you help me. Again I try all sorts of shit before I 
   post stuff. I don't just post on every step of the way. I am showing you 
   what I have tried. So you either get called out for not giving enough 
   information or giving too little. Chill On Jul 9, 11:04 am, 
   MorningZmorni...@gmail.comwrote:so it's only respectful on my part to 
   start a new thread on a different topic that's veering off in the same 
   thread.  Not cool.  You've got it backwards it makes more sense and 
   keeps the clutter out if you stay in the same topic. As Liam points 
   out you already asked the index question, AND it was answered by 
   Charlie, in the topic you created just 13 hours 
   agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916...
and yet, here's an identical topic asking the identical question with 2 
   min apart two sentence ramblings on them all Realize what this list 
   for what it is:   a mailing list where lots of us provide free help out 
   of our own time making it difficult to understand what you are 
   asking, being rude to people trying to show you the way, rambling on and 
   on with the same stuff  all that doesn't lend itself very well to 
   make your issues worth other peoples time and effort . On Jul 9, 
   11:12 am, expressodschin...@gmail.comwrote:Because sometimes I get into 
   other topics not related to my original posts in those other thread so 
   it's only respectful on my part to start a new thread 

[jQuery] Re: Access li by item in the array

2009-07-09 Thread expresso

Funny thing is, I'll be blogging about this carousel.  And you may
find my implementation to be pretty complex but you would not know
about the entire implementation and you assume that what we are doing
is simple

On Jul 9, 2:03 pm, expresso dschin...@gmail.com wrote:
 making it difficult to understand what you are asking

 tell me how it's difficult, I am very thorough in explaining the
 situation and things tried.

 On Jul 9, 1:57 pm, expresso dschin...@gmail.com wrote:

  You've got it backwards it makes more sense and keeps the clutter
  out if you stay in the same topic.

  I did not say not to stay on the same topic.  I said if I start
  veering off into anther discussion that's talking about a different
  approach (in this case in that previous thread I started with a
  question about obtaining the LAST li).  Then I wondering maybe
  instead I can just iterate through the list of li and grab some by
  index.  At that point, that's a whole different issue or scope.  Yea,
  that time I should have stuck with the thread because I already
  committed to the question on the index.

  Anyway I get it.  But I should not be posting 2 different questions on
  the same thread which is what I try to avoid

  On Jul 9, 1:54 pm, expresso dschin...@gmail.com wrote:

   how the hell am I being rude?

   And second, I am giving information to help you help me.  Again I try
   all sorts of shit before I post stuff.  I don't just post on every
   step of the way.  I am showing you what I have tried.  So you either
   get called out for not giving enough information or giving too
   little.

   Chill

   On Jul 9, 11:04 am, MorningZ morni...@gmail.com wrote:

so it's only respectful on my part to
start a new thread on a different topic that's veering off in the same
thread.  Not cool. 

You've got it backwards it makes more sense and keeps the clutter
out if you stay in the same topic.

As Liam points out you already asked the index question, AND it
was answered by Charlie, in the topic you created just 13 hours ago

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

and yet, here's an identical topic asking the identical question with
2 min apart two sentence ramblings on them all

Realize what this list for what it is:   a mailing list where lots of
us provide free help out of our own time

making it difficult to understand what you are asking, being rude to
people trying to show you the way, rambling on and on with the same
stuff  all that doesn't lend itself very well to make your issues
worth other peoples time and effort

.

On Jul 9, 11:12 am, expresso dschin...@gmail.com wrote:

 Because sometimes I get into other topics not related to my original
 posts in those other thread so it's only respectful on my part to
 start a new thread on a different topic that's veering off in the same
 thread.  Not cool.

 On Jul 9, 9:30 am, Liam Potter radioactiv...@gmail.com wrote:

  how about reading all the replies to your other thread about this?

  $(#mycarousel  li:eq(10)).css(margin-right, 5px);

  expresso wrote:
   Is it possible to target certain li in an unordered list by 
   index
   with jQuery?  I thought maybe I could use .index but was not able 
   to
   get the syntax right.

   I thought maybe something like this would work but is has not:

   $(#mycarousel  li).index(i).css(margin-right, 5px);


  1   2   >