[jQuery] Re: why jquery not work together ?

2009-10-31 Thread mmc online
On Sat, Oct 31, 2009 at 12:06 AM, yashmistrey onl...@makemycreative.inwrote:

 Hello to All

 I have used different JavaScript on my website but only one script is
 working.

 This is the link
 http://makemycreative.in/30oct_09
 You will see these a button Name: Services = That is working
 But under “service button” there is another Javascript “Slidshow”

 Could you please look in my page, what is the problem with jquery.
 because all jquery works in separate page. but not work together, i
 tested

 See Screen:
 http://makemycreative.in/Untitled-1.png

 I will appreciate your comments

 Regard
 Yash



[jQuery] Emica is good

2009-10-31 Thread globosoft

Recently, I had a chance to use services of Emica Consulting, Uk. They
produce high quality work at a reasonable cost. If you are looking for the
services like bid writing, fundraising, educational consultancy, you should
definately check Emica Consulting first. Here is their website address 

http://www.emica.co.uk


-- 
View this message in context: 
http://old.nabble.com/Emica-is-good-tp26140174s27240p26140174.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Select the inverse of what you're looking for

2009-10-31 Thread Aaron Gusman
Thanks my friend, works fine..however i'm finding difficulty
understanding the code for next time...Couldn't imagine opening
brackets and writing a filter straight away :not(:contains

On Oct 31, 5:04 am, mkmanning michaell...@gmail.com wrote:
 Try this:

 $(tr:not(:contains(Brown))).css(background-color, Red);

 On Oct 30, 12:58 pm, Aaron Gusman ict.aarongus...@gmail.com wrote:



  I have a table with 2 columns and four rows.  I am currently able to
  highlight the row which contains a specific piece of text.  But what I
  want to do is to highlight the rows that DO NOT have that piece of
  text.  Here's the code:

  This line highlights the row that contains a cell with the text
  Brown:
          var found = 
  $(tr:has(td:contains('Brown'))).css(background-color,
  Red);

  However, I do not want to highlight the row with the text but all the
  others..so I tried this:
          var found = $(tr:has(td:contains('Brown')));
          $(tr:not(found)).css(background-color, Red).css(background-
  color, Red);
  I thought the :not filter was supposed to invert the selection however
  this does not work..all rows get highlighted.

  Were am I wrong??  And how can I do this?  Here's the HTML just in
  case you want to try it.

  table cellspacing=0 cellpadding=0
    tr
      thEnglish/th
      thItalian/th
    /tr
    tr
      tdWhite/td
      tdBianco/td
    /tr
    tr
      tdYellow/td
      tdGiallo/td
    /tr
    tr
      tdBrown/td
      tdMarrone/td
    /tr
    tr
      tdBlack/td
      tdNero/td
    /tr
  /table

  Thanks


Re: [jQuery] Re: why jquery not work together ?

2009-10-31 Thread jerome
to me it looks like you have both mootools framework and jquery scripts, but no 
jquery frameworks main script linked in your project.

Jerome
- Original Message - 
  From: mmc online 
  To: jQuery (English) 
  Sent: Saturday, October 31, 2009 2:07 AM
  Subject: [jQuery] Re: why jquery not work together ?





  On Sat, Oct 31, 2009 at 12:06 AM, yashmistrey onl...@makemycreative.in 
wrote:

Hello to All

I have used different JavaScript on my website but only one script is
working.

This is the link
http://makemycreative.in/30oct_09
You will see these a button Name: Services = That is working
But under “service button” there is another Javascript “Slidshow”

Could you please look in my page, what is the problem with jquery.
because all jquery works in separate page. but not work together, i
tested

See Screen:
http://makemycreative.in/Untitled-1.png

I will appreciate your comments

Regard
Yash




[jQuery] enabling instance manipulation on a jQuery plugin

2009-10-31 Thread Joonha
This topic is relevant because there are people asking how to enable
manipulation on a jQuery plugin instance for plugin authors. I could
not find a good answer to this. jQuery makes code simple and beautiful
but has the side effect of locking away the ability to manipulate a
plugin instance as far as I can tell unless you have a singleton
approach. I'm fairly new to jQuery so forgive my ignorance if I missed
this already being supported or documented. I have not found any
documentation on this however.

I would like to know the preferred way for enabling instance
manipulation on a jquery plugin. I have rolled my own way of doing
this by passing in an empty object as an option parameter, then the
plugin adds public methods onto the object so the object's creator can
call those methods outside of the plugin. I found this to be fairly
simple and intuitive once you got your object reference because it
bring it back to the familiar.

An example of what I'm talking about is this: I created a simple
plugin to transition images - 
http://storage.sebringcreative.com.s3.amazonaws.com/jquery/dumbCrossFade.htm
. A client later asked me to make them a slideshow with thumbnails
that had transitions. I decided to use my plugin but wanted to extend
it to allow for the capability of a consumer to be able to manipulate
the instance so they could write something easily that could use the
plugin only for what it needs to do but easily add functionality
around it to create something more. I ended up with this:
http://storage.sebringcreative.com.s3.amazonaws.com/jquery/slider.htm
. You can see the consumer code is just using the plugin for what it
does only and then adds its flavor on top to get the slideshow with
thumbs to work with very little code.

I would prefer to do it the correct way in the future since I have
plans on making a nice image slider with thumbnail capability and
thumbnail animation scroller as a full jquery plugin.


[jQuery] Focus event firing twice in Internet Explorer

2009-10-31 Thread Antonio del Olmo García
I'm building a form in which the specified values (the ones written in
the value attribute) for the inputs (types: text or password) are
saved as default values for that fields and when the user clicks on
them they disappear or appear again if the field has been left blank.
So, basically: the specified values are hints to the fields. With the
focus event, the hint disappears and with blur appears again if the
field is empty.

Each input has the following structure:

div class='txtbox'

div class='i1'/div
div class='input'input class=i2' type='{text or password}'
value=Default value for this field //div
div class='i3'/div

/div

The extra divs are there to make an input with round corners through
CSS. I'm also trying to outline the input when it is selected (with
the same focus and blur events, and preserving the round corners).

The problem comes with password inputs because the 'type' attributes
can't be changed in IE. The solution I came with was appending a text
input to each password input with the value specified for the password
input. Then I cleared the value for the password, hid the password
fields and showed the newly created one. This works like charm.

The thing is that, in IE, when I focus the password field, the focus
event is triggered twice. The outline effect appears and disappears.

There is a nasty workaround for this that I prefer not to use.

This is my code:

var TextBoxOutline=function(){
var a=$(this),b=a.parent();
b.prev().toggleClass(i1b);
a.toggleClass(i2b);
b.next().toggleClass(i3b);
}

/* The iXb classes are specified in the stylesheet and make the
outline effect in the input*/

$(.txtbox input.i2[type=text]).bind(focus blur,TextBoxOutline);
$(.txtbox input.i2[type=text]).each(function(){
var t=$(this),b=jQuery.data(t,defaultValue,t.val());
t.bind(focus blur,function(e){
var x=e.type,q=t.val();
if(x=='focus'q==b){t.val();}
else if(x=='blur'$.trim(q)==){t.val(b);}
})
});

$(.txtbox input.i2[type=password]).bind(focus
blur,TextBoxOutline);
$(.txtbox input.i2[type=password]).each(function(){
var t=$(this),newInput=$(input type='text' class='i2'
readonly).val(t.val()).css({cursor:'text'});
t.val('').after(newInput).css({display:'none'});
var fn=function(){newInput.toggle();t.toggle()}
newInput.focus(function(){
fn();
/*if(!ie)t.focus();else{t.select()}*/
/* This is the nasty workaround for IE */
t.focus();
})
t.blur(function(){
if($.trim(t.val())=='')fn()
});
});

Do you have any ideas?


[jQuery] getting code from/between

2009-10-31 Thread kicaj
Hi,

I would like get get/copy code between html tags, like this:
fieldset
legendsome.../legend
label id=n1some input/label
label id=n2some next input/label
label id=n3next input/label
/fieldset

I want set to variable code from /legend to label id=n3
(between)
How do this?


[jQuery] Some problems with (maybe) caching

2009-10-31 Thread Trencavel
Hi,

I'm running in a problem, which I can't solve alone and I need some
hints of experts.

I'm using $.getJSON() to populate a list with images (image src are
external too) and then I try to build a gallery from this list with
the JQuery plugin galleryview.

The problem I'm running in is, that the described construction works
not in IEs and Safari4, when the images (or the AJAX result) are in
the browser cache. All other browsers works fine here.

I tried to set the AJAX caching to false and disabled the sending of
the las-modified header, but nothing seems to work. :(
Unfortunately my knowledge about the different caching mechanisms of
the browsers are very limited - if this problem is a caching problem
at all.

The galleryview plugin works as expected when the list is populated
manually and not via JSON.

An example you can see here: 
http://www.nrw-tourismusmagazin.de/regionen/1/bergisches-land

It would be nice if someone can give me some hints!

Best regards and thanks in advance,

trenc

P.S.: It would be nice to become CCed by an answer, I don't regulary
read this mailing list.


[jQuery] Superfish jquery menu plugin - how to disable menu items

2009-10-31 Thread Mike Dwyer
I'm thinking of using this plugin for my menus. Is there an easy way
to display a menu item in a disabled state?


[jQuery] mouse control issue within nested tags

2009-10-31 Thread jmatthews
This is related to an earlier post, but rather than address it is a
selecting issue, I am thinking it is an append issue.  I'd like
others' thoughts on this.

If you have:

div id=mymouseHello/div

You can control the innerHTML through Jquery mouseover(), etc.  Simple
enough.

If you have:

div id=mymouseHellodivGoodbye/div/div

The mouseover, I believe, still on effects the Hello, recognizing it
is the innerHTML of the tag with the id=mymouse.

However, using the original example, if you APPEND like this:

div id=mymouseHello/div

  and somewhere in your script, you append by:  $(#mymouse).append
(divGoodbye/div)

The mouseover() to mymouse now controls the next div.

I think the append assumes all appended material is more innerHTML and
not necessarily new sections of a document.

Does anybody else agree and see this as a not so proper working of
the append() method?

(I have not tested the example I just wrote, but it is my observation
based on my application, which uses append() to add new document
sections.  In my application, I have been struggling with mouseover
being inherited by the appended sections.  I have tried to modify the
program to set particular mouseovers in the new HTML tags that are
part of the appended materials - like appending div
onmouseover=mymouse2Goodbye/div - all to no avail.)





[jQuery]

2009-10-31 Thread hno
Hi

I'm novice in jquety. I want to retrieve different properties like src ,
height and other from the elements in the page or set the value for them .
can you help me to do this work ? 

 

thanks 

 

 

image002

 HNO

 

image001.gif

Re: [jQuery] Superfish jquery menu plugin - how to disable menu items

2009-10-31 Thread Charlie




what do you consider disabled? No link? Don't use link tag 

Mike Dwyer wrote:

  I'm thinking of using this plugin for my menus. Is there an easy way
to display a menu item in a disabled state?

  





Re: [jQuery]

2009-10-31 Thread Charlie Griefer
On Sat, Oct 31, 2009 at 8:43 AM, hno hno2...@gmail.com wrote:

  Hi

 I’m novice in jquety. I want to retrieve different properties like src ,
 height and other from the elements in the page or set the value for them .
 can you help me to do this work


Have you read the docs?  http://docs.jquery.com

Is there a specific piece that you're having trouble with?  What have you
tried so far and what obstacles are you encountering?

-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


[jQuery] Re: missing ) after argument list SOLVED

2009-10-31 Thread webmas...@terradon.nl
I do not know why,
but using single quotes instead of doubles did solve my problem!

See the difference:



$testReplace2 = div id='pos1-0'img name='pos1-0' src='test.gif'
height='50' width='50' border='0' alt='white_pawn'/img/div;

$testReplace2 = 'div id=pos1-0img name=pos1-0 src=test.gif
height=50 width=50 border=0 alt=white_pawn/img/div';


[jQuery] Re: Dynamic img not getting events

2009-10-31 Thread JT
To bind events, such as 'click', to elements that are added to the
page dynamically, as with AJAX, you can use a plugin like livequery.
You can read some more here http://docs.jquery.com/Plugins/livequery
and get the plugin.


[jQuery] Async problem using basic $() and a slideshow

2009-10-31 Thread n4rc1ssus
Sorry if this is just weird but I have this working fine on my dev
server on IE8, Firefox 3.5.3, and Safari (windows), but online (and
here's the WEIRD part) it only works on IE.

http://www.jrbentleys.com

The menu works fine, but if you click on events-upcoming or specials-
lunch/drinks in firefox it simply doesn't load correctly.  All it is
doing is calling ajax to grab code chunks and display them.  It all
works fine until it tries to load the slideshow, or on the specials it
doesn't work on the change event for the selector to fill a div below
it in fact this should init load the div with the monday special and
it doesn't do that.

I would say more but I'm completely at a loss.  I can send files to
anyone who can help.  I know using ajax noone can see the code that
comes back.


[jQuery] Re: Async problem using basic $() and a slideshow

2009-10-31 Thread n4rc1ssus
Sorry, finally figured this out.  I can't believe I made the same
error again.

On Oct 31, 12:03 pm, n4rc1ssus 5n4rc1s...@gmail.com wrote:
 Sorry if this is just weird but I have this working fine on my dev
 server on IE8, Firefox 3.5.3, and Safari (windows), but online (and
 here's the WEIRD part) it only works on IE.

 http://www.jrbentleys.com

 The menu works fine, but if you click on events-upcoming or 
 specials-lunch/drinks in firefox it simply doesn't load correctly.  All it is

 doing is calling ajax to grab code chunks and display them.  It all
 works fine until it tries to load the slideshow, or on the specials it
 doesn't work on the change event for the selector to fill a div below
 it in fact this should init load the div with the monday special and
 it doesn't do that.

 I would say more but I'm completely at a loss.  I can send files to
 anyone who can help.  I know using ajax noone can see the code that
 comes back.


RE: [jQuery] Re: missing ) after argument list SOLVED

2009-10-31 Thread Steve Staples
Not really saying it's a problem, but all attributes SHOULD be in double
quotes, and also, the img tag, doesn't use the /img closure, and should
be opened and closed in on statement, like img /

Again, not saying that what you've done is wrong, nor does switching the
single to double, and double to single quotes really make much of a
difference, unless your doctype is strict (I think).

The Stapler.

-Original Message-
From: webmas...@terradon.nl [mailto:webmas...@terradon.nl] 
Sent: Saturday, October 31, 2009 12:09 PM
To: jQuery (English)
Subject: [jQuery] Re: missing ) after argument list SOLVED

I do not know why,
but using single quotes instead of doubles did solve my problem!

See the difference:



$testReplace2 = div id='pos1-0'img name='pos1-0' src='test.gif'
height='50' width='50' border='0' alt='white_pawn'/img/div;

$testReplace2 = 'div id=pos1-0img name=pos1-0 src=test.gif
height=50 width=50 border=0 alt=white_pawn/img/div';



Re: [jQuery] how to multiple images slideshow with jquery cycle plugin

2009-10-31 Thread DaniNy

I cannot get this working with the jquery cycle plugin. Can any show a full
example of how to get multiple images to show in a row? IE: first 3 images
--pause-- next 3 images

I really don't want to load another plugin like Carousel.

Thanks so much to anyone that can help :)

malsup wrote:
 
 
 I'm looking for a same kind of solution.
 Sliding rows of 3 images at the same time.
 9 visible images in 3 rows (1-3) (4-6) (7-9).
 Next slide will hide (1-3) and who (10-12).

 Anyone know how to do that?

 
 
 The way to do that with Cycle is to group the sets of images inside
 divs and treat the divs as slides.  For example:
 
 div id=slideshow
 div
  
  
  
 /div
 div
  
  
  
 /div
 div
  
  
  
 /div
 /div
 
 

-- 
View this message in context: 
http://old.nabble.com/how-to-multiple-images-slideshow-with-jquery-cycle-plugin-tp24540029s27240p26144933.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: IE7 bugs

2009-10-31 Thread jmunning
found the issue here was that after a jquery call I was making to pass
keywords to adsense the autocomplete would stop working in IE6 until I
blurred and then refocused on the text area.  Seemed to need a very
small delay between the events.  HEre is the code I used:

code
$('#suggest').blur(function() {
window.setTimeout(
function() { $(#suggest).focus(); },
2 // length of delay in milliseconds
);

});
/code
On Oct 29, 3:31 pm, jmunning jasonmunn...@gmail.com wrote:
 These two bugs were fixed by rolling back to the 1.1pre version which
 is linked to here

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

 I am still dealing with a couple IE issues:

 1.  In IE6 my autocomplete field will work for a few selections and
 then just stop sending the ajax request altogether until the page is
 reloaded.

 you can see it here:http://www.xyggy.com/patent.php

 2.  In IE7 and IE6, when using the multiple separator '\n', sometimes
 the new line does not get added after selecting an autocomplete
 suggestion.

 On Oct 27, 3:10 pm, jmunning jasonmunn...@gmail.com wrote:

  I've noticed some strange behavior in IE7 for the bassistance
  autocomplete plugin.

  1.  This bug can be seen on the demo page here:

  Type something into the Multiple Birds (remote) field and select one
  of the autocomplete choices.  Type a couple more letters so the drop
  down appears again. Hold shift while selecting a second option from
  the autocomplete drop down and everything below that input box
  disappears.  I've noticed this behavior on my site also.

  Can someone verify that this is happening for them also?

  2.  Even though I have the option multiple set to true, it is
  replacing my first selection every time I select an additional item
  from the autocomplete drop down.  It also will not add a return as a
  line separator even though I have the option:

  multipleSeparator: \n

  You can see the behavior here:  http://www.xyggy.com

  Again these bugs are only in IE7

  Any help would be appreciated.  Thanks.


[jQuery] Re: missing ) after argument list SOLVED

2009-10-31 Thread risteli
That's because your php string contained double quotes, and your
javascript string was delimited by ... double quotes. When this
happens, you need to escape your php string, like this:

$(#?php echo $div; ?).replaceWith(?php echo addslashes
($testReplace2); ?));


On Oct 31, 7:03 pm, Steve Staples thestapler...@gmail.com wrote:
 Not really saying it's a problem, but all attributes SHOULD be in double
 quotes, and also, the img tag, doesn't use the /img closure, and should
 be opened and closed in on statement, like img /

 Again, not saying that what you've done is wrong, nor does switching the
 single to double, and double to single quotes really make much of a
 difference, unless your doctype is strict (I think).

 The Stapler.

 -Original Message-
 From: webmas...@terradon.nl [mailto:webmas...@terradon.nl]
 Sent: Saturday, October 31, 2009 12:09 PM
 To: jQuery (English)
 Subject: [jQuery] Re: missing ) after argument list SOLVED

 I do not know why,
 but using single quotes instead of doubles did solve my problem!

 See the difference:

 $testReplace2 = div id='pos1-0'img name='pos1-0' src='test.gif'
 height='50' width='50' border='0' alt='white_pawn'/img/div;

 $testReplace2 = 'div id=pos1-0img name=pos1-0 src=test.gif
 height=50 width=50 border=0 alt=white_pawn/img/div';




Re: [jQuery] Jquery Cookies Or Sessions

2009-10-31 Thread numerical25

In other words, is it possible to determine when a user has left the site or
his session has ended ??



numerical25 wrote:
 
 I know I will more then likely have to download the plugin for cookies but
 I been doing research on how to listen for when the session expires but
 cant seem to find the issue.
 
 Ive seen some examples where they set how long the cookie will last until
 it expires. But I would like to fire an event that will happen when the
 user leaves the site or when the session expires but I dont know where to
 start. anyone have any ideas.
 
 Either for the plugin or anything at that.
 

-- 
View this message in context: 
http://old.nabble.com/Jquery-Cookies-Or-Sessions-tp26140017s27240p26146198.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Fix: Superfish Cufon in IE8

2009-10-31 Thread Erik Boeters
Submenu items aren't visible when they are Cufonized. To fix this
change superfish.js
line 105 to: .find('ul').hide().css('display','none'); and line 113
to .find('ul:hidden').css
('display','block');



[jQuery] what does options mean ???

2009-10-31 Thread numerical25

I am looking through some previous made code and I notice a special varible
called options. I suppose it special because my html editor gives it a
purple color that stands out as if its a predefined varible. the code looks
like something below

  $('#begin').click(function(){
$('#log').val('')
$('#display').val('')
log('Started recording: ' + duration + 'ms')

$.Events({ duration: duration }, function(){
  $('#display').val(this.exportJSON())
  log('Finished recording')
})
  })


// Then the plugin recieves it like this

  $.Events = function(options, callback) {
if (callback) options.finished = callback
return (new Eventer(options)).start()
  }

// I understand that you can pass variables in a parameter through an array.
is this options keyword a way to present the values in the the array ??? 

If so then where did this finished varible come from. can you add more
varibles to the keyword 'options' ???
-- 
View this message in context: 
http://old.nabble.com/what-does-options-mean-tp26146827s27240p26146827.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] My jQuery Pumpkin... Jealous?

2009-10-31 Thread Matt Kruse
Just a little fun for Halloween 2009.

I carved my pumpkin this year as the jQuery logo. I hope some in this
group can appreciate it! :)

http://mattkruse.com/2009/10/31/jquery-pumpkin/

Matt Kruse


Re: [jQuery] Re: How to Select element with class, but EXCLUDE its children?

2009-10-31 Thread Karl Swedberg
I'd stick with what Scott said. Use mouseenter/mouseleave. But instead  
of setting the style with .css(), just add and remove a class. Here is  
a demo:


http://jsbin.com/enero/edit

--Karl


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




On Oct 30, 2009, at 4:26 PM, jmatthews wrote:


I tried them as the description in the reference was not clear as to
why it would be useful.

It doesn't solve the problem.  That it does is make sure that if you
reached the child by entering over the parent, the child event will be
released only by exiting back over the parent.

Kind of odd.

On Oct 30, 2:16 pm, Scott Sauyet scott.sau...@gmail.com wrote:

On Oct 30, 9:30 am, jmatthews jmatth...@xexam.net wrote:


When I mouseover a child, it is thinking it is just the contents of
parent.  I need to restrict mouseover to children only, regardless  
of

the fact that they are encapsulated by parent.


You might want to look at the mouseenter and mouseleave events.

   http://docs.jquery.com/Events/mouseenter

-- Scott




Re: [jQuery] Hide a nested UL, but show children

2009-10-31 Thread Karl Swedberg
If you don't mind removing them, as opposed to just hiding them, you  
could do this:


$('.topMenu  li  ul  li').each(function() {
  this.removeChild(this.firstChild);
});

--Karl


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




On Oct 30, 2009, at 12:23 PM, hroyale wrote:


Hi,
I have a set of nested ULs that is generated for me. I want to use it
to create a drop-down navigation menu, however I don't want to use the
values in the second level of ULs in the navigation.

It looks something like this:

ul class=topMenu
   lihome/li
   licommunity
   ul
   liawards (not a link)
   ul
   liaward type 1/li
   liaward type 2/li
   /ul
   lidiscussions (not a link)
   ul
   lidiscussion 1
  ul
   limore info/li
   /ul
   /li
   /ul
   /li
   /ul
/li
   linews and events
   ul
   linews (not a link)
   ul
   lipress coverage/li
   lipress releases/li
   liannouncements/li
   /ul
   /li
   lievents (not a link)
   ul
   liconferences/li
   /ul
   /li
   /ul
 /li
/ul

Level one is visible as sort of tabs, and then mousing over should
reveal a list of the next level of links. However, I would like to use
the above list and mouse over  community and see a list of links
award type 1
award type 2
discussion 1

rather than

awards
discussions

Or another option would be to combine levels 2 and 3 so I would see

awards
award type 1
award type 2
discussions
discussion1

and then mousing over discussion 1 would reveal the more info link.

Please don't send me code to do the drop-down menus. I have a ton of
those. I'm only looking for help dealing with the nested UL that I
want to skip over.

Thanks,
Heather




Re: [jQuery] Re: keyup on textfields

2009-10-31 Thread Karl Swedberg
Or, if the OP really wants all text fields to trigger it, he could  
just use $(':text').keyup( ... )


--Karl


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




On Oct 30, 2009, at 3:20 PM, James wrote:


There are a few simple ways to do this.
Here are probably the most common:

You can assign all the relevant textfields with the same class name:
input type=text name=text1 class=specialFields /
input type=text name=text2 class=specialFields /

$(.specialFields).keyup(...);


Or you can list all the IDs in the selector:
$(#id_emp, #id_bol, #ema_pes, #nom_emp).keyup(...);

On Oct 30, 7:12 am, onaiggac denisribe...@gmail.com wrote:

Hi,
Im new in jQuery, so...

I need the textfields triggers the same function and I have a lot of
them, Im doing this way:

$('#id_emp').keyup(function(e) {
if (e.keyCode == 13) {
$('#busca').click();
}
});

$('#id_bol').keyup(function(e) {
if (e.keyCode == 13) {
   $('#busca').click();
}
});

$('#ema_pes').keyup(function(e) {
if (e.keyCode == 13) {
   $('#busca').click();
}
});

$('#nom_emp').keyup(function(e) {
if (e.keyCode == 13) {
$('#busca').click();
}
});

But Im think that have a better way to do this, like:

$('ALL_TEXTFIELDS').keyup(function(e) {
if (e.keyCode == 13) {
$('#busca').click();
}
});

There's something like this?

tks




Re: [jQuery] mouse control issue within nested tags

2009-10-31 Thread Karl Swedberg

It sounds like you want to use the .after() method rather than .append()

--Karl


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




On Oct 31, 2009, at 11:06 AM, jmatthews wrote:


This is related to an earlier post, but rather than address it is a
selecting issue, I am thinking it is an append issue.  I'd like
others' thoughts on this.

If you have:

div id=mymouseHello/div

You can control the innerHTML through Jquery mouseover(), etc.  Simple
enough.

If you have:

div id=mymouseHellodivGoodbye/div/div

The mouseover, I believe, still on effects the Hello, recognizing it
is the innerHTML of the tag with the id=mymouse.

However, using the original example, if you APPEND like this:

div id=mymouseHello/div

  and somewhere in your script, you append by:  $ 
(#mymouse).append

(divGoodbye/div)

The mouseover() to mymouse now controls the next div.

I think the append assumes all appended material is more innerHTML and
not necessarily new sections of a document.

Does anybody else agree and see this as a not so proper working of
the append() method?

(I have not tested the example I just wrote, but it is my observation
based on my application, which uses append() to add new document
sections.  In my application, I have been struggling with mouseover
being inherited by the appended sections.  I have tried to modify the
program to set particular mouseovers in the new HTML tags that are
part of the appended materials - like appending div
onmouseover=mymouse2Goodbye/div - all to no avail.)







Re: [jQuery] Re: How to Select element with class, but EXCLUDE its children?

2009-10-31 Thread Marcos Javier Riganti
HOW DO I GET OUT OF THIS LIST? !

2009/11/1 Karl Swedberg k...@englishrules.com

 I'd stick with what Scott said. Use mouseenter/mouseleave. But instead of
 setting the style with .css(), just add and remove a class. Here is a demo:

 http://jsbin.com/enero/edit


 --Karl

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




 On Oct 30, 2009, at 4:26 PM, jmatthews wrote:

 I tried them as the description in the reference was not clear as to
 why it would be useful.

 It doesn't solve the problem.  That it does is make sure that if you
 reached the child by entering over the parent, the child event will be
 released only by exiting back over the parent.

 Kind of odd.

 On Oct 30, 2:16 pm, Scott Sauyet scott.sau...@gmail.com wrote:

 On Oct 30, 9:30 am, jmatthews jmatth...@xexam.net wrote:


 When I mouseover a child, it is thinking it is just the contents of

 parent.  I need to restrict mouseover to children only, regardless of

 the fact that they are encapsulated by parent.


 You might want to look at the mouseenter and mouseleave events.


http://docs.jquery.com/Events/mouseenter


 -- Scott





-- 
Un Abrazo
Marcos J. Riganti
+549 341 54996612
webmas...@nefertiter.com


[jQuery] SerialScroll with LocalScroll

2009-10-31 Thread dacoder
I am working on a project where I have a navigation menu with
categories and then a list of items broken into those categories with
a header above each one. With the navigation I want to scroll to the
begining of each group of items. so l I have an unordered list that in
each list item has a header and then another unordored list of
products. Since there are to many products that can be in a given
category, I can not scroll with the previous and next buttons base on
the main li item, I have to do it based on the li's that contain the
products because the viewable area only holds about 5 products.

So I thought that I would use the localscroll for the navigation so
that I can scroll to each main li from there and then use the previous
and next buttons to scroll the products. The issue I am having is when
you click on the category link in the navigation and scroll to a
certain point, if you click next or previous it starts from the
begining. I looked at how they had the coda slider example but I think
my situation is different because I am actually using the local scroll
on the navigation.

Basically my javascript just has a variable for the scroll options and
then i pass that through to both the serialScroll and localScroll. Of
course I have been trying lots of things on the onAfter to try and
tell the serialScroll part what position to be at but nothing works. I
think how he is doing it in the coda slider example is the fact he can
tie in the navigation and set have that activate it. My problem is
that my navigation is what I am using to do the local scroll.


[jQuery] Re: mouse control issue within nested tags

2009-10-31 Thread jmatthews
I tried that, but successive appends wind up happening in reverse
order (i.e. ABCDE winds up EDCBA).  Plus, it makes my html tag listing
in firebug look like it has poor structure.  I want to see everything
I add as being children, and not siblings, of the innerHTML that
precedes it.

What I want is to make mouseover honor n instruction to exclude
children of selected elements.

Instead of $(#parent).mouseover(function()

I need.

$(#parent {and not children of parent}).mouseover(function()

I don't know how to do this, but I think a filter might do it.  Going
to check on filter now.

If anyone knows the syntax, please post in case I can't find it.

Thanks.