Re: [jQuery] Superfish - content out of position

2009-12-10 Thread Mauricio (Maujor) Samy Silva
This isn't a jQuery issue. This is a CSS issue. Add the following: table.blog {float:left;} #footer {clear:both;} Regards Maurício -Mensagem Original- De: luciano991 Para: jQuery (English) Enviada em: quinta-feira, 10 de dezembro de 2009 16:20 Assunto: [jQuery] Superfish -

Re: [jQuery] Re: Traversing Help

2009-12-10 Thread Mauricio (Maujor) Samy Silva
Firebug points out the following: 1-) There is a missing ( $("#test").click(function) { should be: $("#test").click(function () { 2-) and say more: $detais is not defined. Fix these issues Regards Maurício -Mensagem Original- De: T.J. Simmons Para: jQuery (English) Envi

Re: [jQuery] Filtering on hidden contents

2009-12-08 Thread Mauricio (Maujor) Samy Silva
Try this: ( $('.location div:visible').length == 0 ) ? $('.location').hide() : ''; Maurício De: wandrian Para: jQuery (English) Enviada em: segunda-feira, 7 de dezembro de 2009 23:21 Assunto: [jQuery] Filtering on hidden contents I am trying to figure out if all the child divs of

Re: [jQuery] Change opacity for all divs except one

2009-12-05 Thread Mauricio (Maujor) Samy Silva
Hi Jared The script is quite simply. Study it. jQuery: (document).ready(function(){ $('#thumbs div').click(function() { $(this).find('img').css('opacity', 1); $(this).siblings().find('img').css('opacity', 0.5); }); }); HTML: Hope this help you Maurício -Mensagem Orig

Re: [jQuery] Re: Ignoring click events in cells

2009-12-02 Thread Mauricio (Maujor) Samy Silva
Thank you Scott Maurício -Mensagem Original- De: Scott Sauyet Para: jQuery (English) Enviada em: quarta-feira, 2 de dezembro de 2009 20:28 Assunto: [jQuery] Re: Ignoring click events in cells On Dec 2, 5:20 pm, "Mauricio \(Maujor\) Samy Silva" wrote: >

Re: [jQuery] Ignoring click events in cells

2009-12-02 Thread Mauricio (Maujor) Samy Silva
Yes there is. Query the event.target and do an if conditional like so: $("tr").click(function(e) { // normalize e.target if (!e) var e = window.event; var tg = (window.event) ? e.srcElement : e.target; if ( tg.nodeName != "INPUT" ) { alert($(this).attr("id")); } else {

Re: [jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-29 Thread Mauricio (Maujor) Samy Silva
jQuery 1.3 version introduces an event method called live() that resolves this issue. Sice that version you don't need the *livequery plugin* never more. See: http://docs.jquery.com/Events/live Regards Maurício -Mensagem Original- De: Sala Para: jQuery (English) Enviada em: s

Re: [jQuery] Selector Help

2009-11-29 Thread Mauricio (Maujor) Samy Silva
Try this: $('a.filter').click(function(){ $(this).parent().siblings('li').removeClass('active'); $(this).parent('li').addClass('active'); }); Maurício -Mensagem Original- De: Charlie Para: jquery-en@googlegroups.com Enviada em: domingo, 29 de novembro de 2009 03:56 Assunt

[jQuery] Re: jQuery selector for style attribute

2009-08-25 Thread Mauricio (Maujor) Samy Silva
Sintax for the selector is: $('img[style="overflow: auto; width: 356px; height: 100px;"]') Maurício -Mensagem Original- De: John Para: jQuery (English) Enviada em: terça-feira, 25 de agosto de 2009 14:36 Assunto: [jQuery] jQuery selector for style attribute Hi, I want

[jQuery] Re: Converting rows into columns

2009-08-25 Thread Mauricio (Maujor) Samy Silva
I've provided a possible solution. It is hosted at: http://jsbin.com/avowa/ http://jsbin.com/avowa/edit Maurício -Mensagem Original- De: Anush Shetty Para: jquery-en@googlegroups.com Enviada em: terça-feira, 25 de agosto de 2009 08:39 Assunto: [jQuery] Converting rows into col

[jQuery] Re: hide divs with float:left and show them again

2009-08-20 Thread Mauricio (Maujor) Samy Silva
When you remove a floated element from the flow of a document its position is occupied by the next float and this causes the ruin! To preserve the space leaving by a removed div how about use: css('visibility', 'hidden'); istead of show() Maurício -Mensagem Original- De: simusch P

[jQuery] Re: Timeout

2009-08-15 Thread Mauricio (Maujor) Samy Silva
jQuery is JavaScript! Use the regular JavaScript sintax Maurício -Mensagem Original- De: shaf Para: jQuery (English) Enviada em: sábado, 15 de agosto de 2009 17:36 Assunto: [jQuery] Timeout Hi Guys How do I set a timeout in jquery ? E.g. if a page is inactive for 20

[jQuery] Re: Change the contents of a div after it has been created

2009-08-14 Thread Mauricio (Maujor) Samy Silva
var fAlt = $('.foo').attr('alt'); should be: var fAlt = $('.foo a img').attr('alt'); or better var fAlt = $(this).attr('alt'); Maurício -Mensagem Original- De: Benn Para: jQuery (English) Enviada em: sexta-feira, 14 de agosto de 2009 18:37 Assunto: [jQuery] Re: Change the

[jQuery] Re: Radio button checked status

2009-08-13 Thread Mauricio (Maujor) Samy Silva
There is nothing wrong with your code. Have a look at this testcase: http://jsbin.com/igubi http://jsbin.com/igubi/edit Maurício -Mensagem Original- De: littlerobothead Para: jQuery (English) Enviada em: quinta-feira, 13 de agosto de 2009 16:46 Assunto: [jQuery] Radio button

[jQuery] Re: table cells selector question

2009-07-13 Thread Mauricio (Maujor) Samy Silva
$('td').click(function() { context = $(this).parents('table')[0]; var cells = $('td.a', context); }) Maurício -Mensagem Original- De: Brad Para: jQuery (English) Enviada em: segunda-feira, 13 de julho de 2009 16:39 Assunto: [jQuery] table cells selector question I c

[jQuery] Re: Simple selector problem

2009-07-10 Thread Mauricio (Maujor) Samy Silva
Here it is returning 3 in IE and FireFox as expected. Maurício -Mensagem Original- De: Chris Para: jQuery (English) Enviada em: sexta-feira, 10 de julho de 2009 12:34 Assunto: [jQuery] Simple selector problem $(document).ready(function { alert($("div").length); }

[jQuery] Re: Is there a more efficent way to write this script?

2009-07-10 Thread Mauricio (Maujor) Samy Silva
$( 'h3 > a, > a', $(this) ).css('text-decoration', 'underline'); Maurício -Mensagem Original- De: Jacques Choquette - WhistlerGraphicDesign.com Para: jQuery (English) Enviada em: sexta-feira, 10 de julho de 2009 10:33 Assunto: [jQuery] Is there a more efficent way to write th

[jQuery] Re: next index in Jquery

2009-07-03 Thread Mauricio (Maujor) Samy Silva
>...selecting the next .slide after the one with .current in it? $('.current').next('.slide') -- > how can i get the div index of the .current class? var divIndex = $('#slideshow div').index( $('.current') ); Maurício

[jQuery] Re: Selector :eq(x) issuing warning in FF

2009-07-02 Thread Mauricio (Maujor) Samy Silva
I run a local test with your code here and it works fine! Maurício -Mensagem Original- De: Shane Riley Para: jQuery (English) Enviada em: quinta-feira, 2 de julho de 2009 13:12 Assunto: [jQuery] Selector :eq(x) issuing warning in FF When calling this jQuery: $("#homepag

[jQuery] Re: slideToggle jump issue

2009-06-26 Thread Mauricio (Maujor) Samy Silva
paddings or margins [1] http://jqueryfordesigners.com/animation-jump-quick-tip/ Regards Maurício -Mensagem Original- De: Alexandre Magno Para: jQuery (English) Enviada em: sexta-feira, 26 de junho de 2009 14:43 Assunto: [jQuery] Re: slideToggle jump issue Hello Mau

[jQuery] slideToggle jump issue

2009-06-26 Thread Maujor
I have the same slideToggle effect in two slightly differents scenarios. Scenario #1 - There is a CSS rule setting with:700px for the whole scenario. Scenario #2 - There isn't a CSS rule for the width, so it defaults to 100% width. Issue: In scenario #2 all works fine. But, in scenario #1 the an

[jQuery] Re: jquery adding and removing row

2009-06-25 Thread Mauricio (Maujor) Samy Silva
The following block of code isn't working: newo.find('.remove').click(function () { newo.remove(); alert('hel'); }); It should be: $('.remove').click(function () { $(this).parents('tr').remove(); }); Addicionaly check the sintaxe for: .item :last should be: .item:last (without a blank space

[jQuery] Re: Toggle Text

2009-06-25 Thread Mauricio (Maujor) Samy Silva
Add the following to your script: if ( $(this).is(':checked') ) { $('#CheckAll').html('Uncheck All'); } else { $('#CheckAll').html('Check All'); } Maurício -Mensagem Original- De: evanbu...@gmail.com Para: jQuery (English) Enviada em: quinta-feira, 2

[jQuery] Re: multiply 2 input fields on change

2009-06-24 Thread Mauricio (Maujor) Samy Silva
Live example at: http://jsbin.com/ahiyo/ Edit at: http://jsbin.com/ahiyo/edit Maurício -Mensagem Original- De: efet Para: jQuery (English) Enviada em: quarta-feira, 24 de junho de 2009 18:03 Assunto: [jQuery] multiply 2 input fields on change Hi, I have three input

[jQuery] Re: show/hide positioned to its trigger

2009-06-24 Thread Mauricio (Maujor) Samy Silva
$('tr td:first-child').attr('align', 'value_here'); Maurício -Mensagem Original- De: roxstyle Para: jQuery (English) Enviada em: quarta-feira, 24 de junho de 2009 14:17 Assunto: [jQuery] show/hide positioned to its trigger i am trying to learn how to position a show/hide m

[jQuery] Re: slide a div open and closed

2009-06-23 Thread Mauricio (Maujor) Samy Silva
I've hosted a live example for the effect at: http://jsbin.com/irera/ Edit it at: http://jsbin.com/irera/edit Maurício -Mensagem Original- De: webguy262 Para: jquery-en@googlegroups.com Enviada em: terça-feira, 23 de junho de 2009 09:37 Assunto: [jQuery] slide a div open an

[jQuery] Re: Removing an emptied paragraph from the DOM

2009-06-20 Thread Mauricio (Maujor) Samy Silva
How about? $('.buggybox').next('p').remove(); Maurício -Mensagem Original- De: Bruce MacKay Para: jquery-en@googlegroups.com Enviada em: sábado, 20 de junho de 2009 08:20 Assunto: [jQuery] Removing an emptied paragraph from the DOM Hello folks, I have an application wh

[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread Mauricio (Maujor) Samy Silva
Please: 1-) Wrap "Show" within a span element. 2-) Get rid of the style atributte for the ul. ul's are block level elements by default. Show ... 3-) And here goes the code; $(".showhide").click(function() { $(this).children(".clients").slideToggle('slow'); var currentText = $('span

[jQuery] Re: First Parent Siblings

2009-06-17 Thread Mauricio (Maujor) Samy Silva
Try: $(this).parent().next().toggle(); Maurício -Mensagem Original- De: FrenchiINLA Para: jQuery (English) Enviada em: quarta-feira, 17 de junho de 2009 18:16 Assunto: [jQuery] First Parent Siblings I have several following html code:

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread Mauricio (Maujor) Samy Silva
I am not sure on what are you trying to do, but alert($("#ulList .liEven:first").attr("class")); /* Returns Success*/ Maurício -Mensagem Original- De: Dave Para: jQuery (English) Enviada em: terça-feira, 16 de junho de 2009 09:57 Assunto: [jQuery] Get first element when the

[jQuery] Re: Find text (nodes) within an element?

2009-06-10 Thread Mauricio (Maujor) Samy Silva
$(document).ready(function(){ var string = $.trim( $('label').text() ) var lastIndex = string.length - 1 if ( string.charAt(lastIndex) == "F" ) { alert('BINGO!') } else { alert('FAIL!') } }); Maurício -Mensagem Original- De: ldexterldesign Para: jQuery (En

[jQuery] Re: :eq versus eq()

2009-06-10 Thread Mauricio (Maujor) Samy Silva
can match a set of elements then select, for example, the third one $('.myclass,#myid').eq(2) I didn't use the traversing method but i think that is one of possible usage Pierre 2009/6/10 Maujor According jQuery documentation [1][2] :eq returns Array and e

[jQuery] :eq versus eq()

2009-06-10 Thread Maujor
According jQuery documentation [1][2] :eq returns Array and eq() returns one jQuery object. What does means "Array "? It is a single element? By the other hand eq() => "Reduce the set of matched elements to a single element." So, both returns a single element and it seems to me that there isn't

[jQuery] Re: Remove links but not images

2009-06-09 Thread Mauricio (Maujor) Samy Silva
1-) The dirty way: $('ul li a').removeAttr('href') 2-) A standard way: image = []; $('ul li a img').each(function(i) { image[i] = $(this).clone(); $(this).parents('li').html(image[i]); }) Maurício On Tue, Jun 9, 2009 at 2:13 PM, alex wrote: Hi folks This has me stumped. I

[jQuery] Re: same effect on multiple objects with same id

2009-06-09 Thread Mauricio (Maujor) Samy Silva
Why not use a class instead of an id in order to target all buttons? Or alternatively something like: $('img[alt="button"]').hover( function () { $(this).fadeTo('fast', .10); }, function () { $(this).fadeTo('fast', 1.0); } ); Maurício -Mensagem Ori

[jQuery] Re: Selecting previous element

2009-06-08 Thread Mauricio (Maujor) Samy Silva
$('#mynav li.current').prev().css('blackground', 'black'); Maurício -Mensagem Original- De: Alex Para: jQuery (English) Enviada em: segunda-feira, 8 de junho de 2009 20:04 Assunto: [jQuery] Selecting previous element How do I apply a class to the previous element that's be

[jQuery] Re: JQuery DatePicker Plugin

2009-06-05 Thread Mauricio (Maujor) Samy Silva
Set in options: dateFormat: "mm dd yy" Maurício -Mensagem Original- De: Bluesapphire Para: jQuery (English) Enviada em: sexta-feira, 5 de junho de 2009 12:04 Assunto: [jQuery] JQuery DatePicker Plugin Hi! Iam using JQuery DatePicker Plugin , created by Kelvin Luck (

[jQuery] Re: Selector not question

2009-06-04 Thread Mauricio (Maujor) Samy Silva
$('a[class^="edit_"]:not(.' + e + ')').fadeTo('slow' , 0.25 , function() { ... } Maurício -Mensagem Original- De: Dave Maharaj :: WidePixels.com Para: jquery-en@googlegroups.com Enviada em: quinta-feira, 4 de junho de 2009 21:43 Assunto: [jQuery] Selector not question I am

[jQuery] Re: Selector not question

2009-06-04 Thread Mauricio (Maujor) Samy Silva
-Mensagem Original- De: Dave Maharaj :: WidePixels.com Para: jquery-en@googlegroups.com Enviada em: quinta-feira, 4 de junho de 2009 21:43 Assunto: [jQuery] Selector not question I am trying to disable all links except for the one clicked. $('a[class^="edit_"]').click(f

[jQuery] Re: Selectors only matching first element

2009-06-04 Thread Mauricio (Maujor) Samy Silva
x27;t seem to work either. The div example from the page should work as it was copied directly, but it doesn't. This is bizarre. If it helps, I have the tablesorter, validate and maybe even UI plugins set up here as well.. could one of them be interfering? On Jun 4, 6:26 pm, "Ma

[jQuery] Re: Selectors only matching first element

2009-06-04 Thread Mauricio (Maujor) Samy Silva
There isn't in HTML Specs a true value for checked attribute. Try: $("input:checkbox").attr("checked", "checked"); Maurício -Mensagem Original- De: matt Para: jQuery (English) Enviada em: quinta-feira, 4 de junho de 2009 18:12 Assunto: [jQuery] Selectors only matching first el

[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-03 Thread Mauricio (Maujor) Samy Silva
> On Wed, Jun 3, 2009 at 11:20 AM, BigAB wrote: > > > have you tried > > var myText = $('#knowndiv').parents('tr').find('td:first').text(); > > alert(myText); > > > The TR is really the parent of the TDs, not the table. For information only. I've used parents() not parent(). parents() means ances

[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-02 Thread Mauricio (Maujor) Samy Silva
var myText = $('#knowndiv').parents('table').find('td:first').text(); alert(myText); Maurício -Mensagem Original- De: con-man-jake Para: jQuery (English) Enviada em: terça-feira, 2 de junho de 2009 16:38 Assunto: [jQuery] text of first sibling of a parent...How do I get it

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Mauricio (Maujor) Samy Silva
It's hard to figure out what you are trying to do without a test case. Woulkd you please host a test case? Or, provide the relevant HTML markup and jQuery code? Maurício -Mensagem Original- De: Luch Univision Para: jQuery (English) Enviada em: terça-feira, 2 de junho de 2009 16

[jQuery] Re: tilde (~) selector

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Yes, it appear to be a 1.3.2 jQuery version bug. Take a look at test cases: Version 1.3.1 working: http://jsbin.com/usidi/edit Version 1.3.2 doesn't working: http://jsbin.com/upapu/edit Maurício -Mensagem Original- De: Jakub Suder Para: jQuery (English) Enviada em: terça-feira

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Sorry for the previous post.Hit send early :-( Reset the opacity to IE when fading in the element like so: $('elementToFade').css('filter','alpha(opacity=80)').fadeIn(); Maurício -Mensagem Original- De: Luch Univision Para: jQuery (English) Enviada em: terça-feira, 2 d

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Reset the opacity to IE when fading in the element like so: -Mensagem Original- De: Luch Univision Para: jQuery (English) Enviada em: terça-feira, 2 de junho de 2009 14:46 Assunto: [jQuery] fadeIn() on elements with alpha filter not working properly in IE I am running in

[jQuery] Re: LI:last of submenu's

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Use $('ul#sidebarmenu1 ul li:last-child a').css('background-image', 'none'); :last => Matches ONLY the last selected element. last-child => Matches ALL elements that are the last child of their parent. Maurício -Mensagem Original- De: josb...@gmail.com Para: jQuery (English)

[jQuery] Re: tilde (~) selector

2009-05-29 Thread Mauricio (Maujor) Samy Silva
y] Re: tilde (~) selector On 29 Maj, 16:10, "Mauricio \(Maujor\) Samy Silva" wrote: > It does. It returns b and d as expected! > > Try: > $('p ~ p').css('color', 'red') > and b and d will be red I've just noticed t

[jQuery] Re: tilde (~) selector

2009-05-29 Thread Mauricio (Maujor) Samy Silva
It does. It returns b and d as expected! Try: $('p ~ p').css('color', 'red') and b and d will be red Maurício -Mensagem Original- De: Jakub Suder Para: jQuery (English) Hi, I... http://code.jquery.com/jquery-latest.js";> a b c d

[jQuery] Re: $("#selectInput").val()

2009-05-28 Thread Mauricio (Maujor) Samy Silva
Try: ... var selector = $('#selectList'); selector.change(function() { var directory = $('option[selected]').text(); // if you want get the option text or var directory = $('option[selected]').attr('id'); // if you want get the option id ... -Mensagem Original- De: Y vd Bogert

[jQuery] Re: "not" Filter

2009-05-28 Thread Mauricio (Maujor) Samy Silva
And the complement to $('foo').is() is !$('foo').is() Maurício -Mensagem Original- De: Richard D. Worth .is() and .not() are not complementary. See: http://docs.jquery.com/Traversing/is#expr is( expr )Returns: Boolean Checks the current selection against an expression

[jQuery] Re: selecting next()'s until I reach a tag

2009-05-27 Thread Mauricio (Maujor) Samy Silva
a tag Thanks for the suggestion! That sort of works, but it's also getting the tags AFTER the next H5, and I don't want it to. On May 27, 1:24 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > Try: > $('h5').nextAll('p'); > > Maurício

[jQuery] Re: selecting next()'s until I reach a tag

2009-05-27 Thread Mauricio (Maujor) Samy Silva
Try: $('h5').nextAll('p'); Maurício -Mensagem Original- De: Andy Para: jQuery (English) Enviada em: quarta-feira, 27 de maio de 2009 14:11 Assunto: [jQuery] selecting next()'s until I reach a tag Is there a way for me to add the next several blocks until I get to a spec

[jQuery] Re: number of checked boxes

2009-05-26 Thread Mauricio (Maujor) Samy Silva
Or... you could use a shorter selector var checked = $(':checkbox:checked').length; -Mensagem Original- De: Macsig Para: jQuery (English) Thanks for your help. I appreciate it On May 26, 2:44 pm, James wrote: > var checked = $("input[type=checkbox]:checked").length;

[jQuery] Re: Apply or remove style - Not workingin IE versions

2009-05-24 Thread Mauricio (Maujor) Samy Silva
Would you please provide a sample for your HTML markup? Maurício -Mensagem Original- De: Dave Maharaj :: WidePixels.com Not working in IE at all. Works in FF but noting in IE 5.5 to 7 $('#resume_education dl:first').addClass('first_entry');

[jQuery] Re: AJAX issue

2009-05-09 Thread Mauricio (Maujor) Samy Silva
-Mensagem Original- De: "Connor" ... How would I go about targeting the p tag or the content inside? --- Try: $(xml).find('content:encoded').each(function(){ var text = $(this).text(); Maurício

[jQuery] Re: AJAX Problem

2009-05-08 Thread Mauricio (Maujor) Samy Silva
De: "Arak Tai'Roth" Okay, so correction, I got it, it was a dumb mistake, makes me thing I should go back to high school to learn how to spell. Anyways, while I'm here, is there anyway I can force the callback function beforeSend to run for a certain amount of seconds before to stops running? E

[jQuery] Re: AJAX Problem

2009-05-08 Thread Mauricio (Maujor) Samy Silva
Awesome, Mauricio had the right solution. I had figured that e was working on the link, but now that I think about it, that makes no sense. So that works, now I have to figure out how to inject the incoming html, because apparently that's not working, just not sure yet if it's my javascript or

[jQuery] Re: AJAX Problem

2009-05-07 Thread Mauricio (Maujor) Samy Silva
-Mensagem Original- De: "Arak Tai'Roth" ... Here is my code: $(document).ready(function(){ $('#events_box a.ajax_replace').click(function(e){ e.preventDefault(); $('.news_border').slideUp('slow'); $.ajax({ method: 'get', url: e.attr('href'), data: { 'do' : '1' }, ... -

[jQuery] Re: div contains -> select div but NOT li

2009-04-27 Thread Mauricio (Maujor) Samy Silva
De: "gostbuster" Assunto: [jQuery] Re: div contains -> select div but NOT li Hi, Yes of course I could do this, but Jquery selectors don't allow what I wish to do? Thanks. -- How about: $('#plan').not('ul').click(funct

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread Mauricio (Maujor) Samy Silva
>A timeout is not considered an error. No. It's an error. Do the following: "timeout": 1, "error": function(d,msg) { if (msg=="timeout") { alert("Ops! Could not load stuff - A timedout error occur"); } else { alert("Could not load stuff - Another errorType occur"

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread Mauricio (Maujor) Samy Silva
Hi! I'm trying to setup an ajax call which throws an error on timeout. ... "timeout": 1, "error": function(d,msg) { alert("Could not load stuff"); }, ... This works, but the error is never thrown. If I change the URL to something that's broken, I do get the error message, b

[jQuery] Overrridden $.ajaxSetup() options

2009-04-08 Thread Maujor
I have had setup the following: $.ajaxSetup({ dataType: 'xml', error: function(xhr) { $('#error_msg').html('Error ' + xhr.status + ' - ' + xhr.statusText + '') }) Now I want make one call to a HTML document. So I state: $.get('uzudo', function(data) { $('#inser

[jQuery] Re: Delay for $get.Script() callback function

2009-04-08 Thread Mauricio (Maujor) Samy Silva
Thanks Ken Now I get it! Maurício -Mensagem Original- De: "ken" Para: "jQuery (English)" Enviada em: quarta-feira, 8 de abril de 2009 18:10 Assunto: [jQuery] Re: Delay for $get.Script() callback function Might be a little late, but... you failed to include the full description for

[jQuery] Re: How to get the number of the selected element?

2009-04-08 Thread Mauricio (Maujor) Samy Silva
I got 10 links on a site, all with the class collapsible. jQuery: $(document).ready(function(){ $('.collapsible').click(function() { var indexLink = $('.collapsible').index(this); var nClicked = indexLink + 1; alert(nClicked); }); }); HTML 1 2 3 ... Maurício

[jQuery] Re: jQuery within Javascript?

2009-04-07 Thread Mauricio (Maujor) Samy Silva
Is there a missed closing braket and a double quotes after bgChangerAnchor? > $("*[id^='bgChangerAnchor').click(function () {

[jQuery] Re: first child

2009-04-07 Thread Mauricio (Maujor) Samy Silva
var $el = xx.is('h2'); //if it indeed matches a h2, returns true? var el = $('#continer *:first').is('h2'); alert(el); // returns true if first child is H2, false otherwise. Maurício

[jQuery] Re: Combining Selectors

2009-04-05 Thread Mauricio (Maujor) Samy Silva
De: "Nic Hubbard" I am confused why the following is returning undefined: alert($(this + " input[type='submit']").attr('id')); Try the following: Get rid of the blank space before input. from: ... " input[type='submit'] ... to: ... "input[type='submit'] ... Regards, Maurício

[jQuery] Re: Select Last

2009-04-02 Thread Mauricio (Maujor) Samy Silva
I want to get the last in the _sub_ list. Here is what I've tried with no success. Ideas? $('.list li li:last a').addClass('last-li'); $('.list li ul li:last a').addClass('last-li'); $('.list li:has(ul) li:last a').addClass('last-li'); - $(

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Mauricio (Maujor) Samy Silva
$("#world tr").click(function() { // do stuffs }); Is there a way to prevent the above event from triggering when the hello button is clicked? $("#world tr").click(function() { $('input[name="hello"]').attr('disabled', 'disa

[jQuery] Re: DOM manipulation

2009-04-01 Thread Mauricio (Maujor) Samy Silva
$('.wrapper').height = '1000px'; and that will not work, because we don't have $('.wrapper') in working what should I do, to accomplish the desirable result? $('.wrapper').css('height', '1000px'); Maurício

[jQuery] Re: A general Javascript question: duplicate IDs in a document?

2009-03-31 Thread Mauricio (Maujor) Samy Silva
Right, but the problems with that approach is inefficiency. It's more efficient to grab the entire set of elements via $('.event-phase') and comparing their "rel" attribute than it is to throw a loop around $ ('.event-phase-' + i); I think it depends upon the context. If the loop is needed fo

[jQuery] Re: A general Javascript question: duplicate IDs in a document?

2009-03-31 Thread Mauricio (Maujor) Samy Silva
Is there any major problems you're aware of with this kind of dom pollution that have a negative impact on ease or performance? My thoughts: Firstly: Validate! But I think that negative impact on whatever isn't the point. Suppose: Option 1 - Heading level 1 Option 2 - Heading level 1 What opt

[jQuery] Re: getJSON

2009-03-26 Thread Mauricio (Maujor) Samy Silva
De: "iceangel89" i still cant out put anything even with a simple alert(json); - You must loop through data in order to retrieve their values: $.getJSON("data.js", function (json) {var allItems = json.length;$.each(jso

[jQuery] Re: aborting a $.getScript() request

2009-03-26 Thread Mauricio (Maujor) Samy Silva
1-) For remote calls, even script exists, in case server is down the issue arises. 2-) It will be great some advise from a member of jQuery team. Maurício. - De: "Karl Rudd" Here's my thoughts: 1) It is reliable when dealing w

[jQuery] Re: aborting a $.getScript() request

2009-03-26 Thread Mauricio (Maujor) Samy Silva
You're right. A quick look in the bug tracker turns up this ticket: http://dev.jquery.com/ticket/1768 Karl Rudd Tks Karl, So, there are two questions I made to myself and I am unable to answer: 1-) Does $.getScript() is a re

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread Mauricio (Maujor) Samy Silva
However you could set a flag in the success/callback function. After the getScript() call you could use a setTimeout to test for that flag after a certain time. If the flag isn't set then the load didn't work or took too long. Karl Rudd -

[jQuery] aborting a $.getScript() request

2009-03-25 Thread Maujor
I have the following AJAX request. $(document).ready(function() { var iconLoading = $(' mini.gif '); var pluginLoaded = $('Plugin ready'); var requestScript = function() { $(iconLoading).insertAfter('#my_button'); $.getScri

[jQuery] Delay for $get.Script() callback function

2009-03-25 Thread Maujor
The documentation for $.getScript() function explicit says: *If you load functions via getScript, make sure to call them after a delay.* [1] It is suppose that callback functions are always called after a request. So, it is suppose too that this requeriment is valid for $.get(), $.post, $.getJS

[jQuery] Need public JavaScript resource for a $.getScript() request.

2009-03-24 Thread Maujor
I am experimenting $.getScript() jQuery function. There are tons of JSON public API's but I need find a public JavaScript script. I seached Google sure, but scripts found have their own request codes. I need see that function in action and I want developer my own jQuery request. Does anyone can p

[jQuery] unbind('focus')

2009-03-23 Thread Maujor
Scenario: My form have 3 controls filled with placeholders named *, * and Comente. If user give focus to controls the placeholders vanishes and background color changes. Suppose user make a mistake in filling a control and submit the form. AJAX return an error message and preserve the data filled

[jQuery] Re: tabs into tabs

2009-03-22 Thread Mauricio (Maujor) Samy Silva
Hi Davi, It is not allowed to have more than one div#tabs ID's values must be unique in a document. Regards, Maurício -Mensagem Original- De: "David" Para: "jQuery (English)" Enviada em: domingo, 22 de março de 2009 09:55 Assunto: [jQuery] tabs into tabs Hi, probably a simple

[jQuery] Re: getJSON() response into a table

2009-03-21 Thread Mauricio (Maujor) Samy Silva
Hi Josh and all Many thanks for the useful tips. I appreciate it a lot. As for Maruicio's question...Looks like you solved it. The link works fine in FF. Yes! I've solved it with a different aproach. I'll try yours ASAP. - 3) inst

[jQuery] Re: getJSON() response into a table

2009-03-21 Thread Mauricio (Maujor) Samy Silva
[SOLVED] Maurício -Mensagem Original- De: "Maujor" Para: Enviada em: sábado, 21 de março de 2009 13:09 Assunto: [jQuery] getJSON() response into a table I'm trying to display data from a json request into a table. Table heading disapear when the request finis

[jQuery] Re: getJSON() response into a table

2009-03-21 Thread Mauricio (Maujor) Samy Silva
Hi Joseph, Thanks, but this didn't solve. Any ideas? Maurício -Mensagem Original- De: Joseph Le Brech Para: jquery-en@googlegroups.com Enviada em: sábado, 21 de março de 2009 13:23 Assunto: [jQuery] Re: getJSON() response into a table $.getJSON("url", function(json){

[jQuery] getJSON() response into a table

2009-03-21 Thread Maujor
I'm trying to display data from a json request into a table. Table heading disapear when the request finishes and I can't figure out how to fix it. Test case is hosted at: http://tinyurl.com/couflx TIA Maurício -- View this message in context: http://www.nabble.com/getJSON%28%29-response-in

[jQuery] getJSON() response into a table

2009-03-21 Thread Mauricio (Maujor) Samy Silva
I'm trying to display data from a json request into a table. Table heading disapear when the request finishes and I can't figure out how to fix it. Test case is hosted at: http://tinyurl.com/couflx TIA Maurício

[jQuery] Re: How do I subtract 64 pixels from the value of a div's height?

2009-03-18 Thread Mauricio (Maujor) Samy Silva
Try: var contentDivHeight = parseInt($('#contentDiv').css('height')); var calculatedHeight = contentDivHeight - 64 + "px"; alert(contentDivHeight) alert(calculatedHeight) -Mensagem Original- De: "Jeremy Coulson" Para: "jQuery (English)" Enviada em: quarta-feira, 18 de março de 2009

[jQuery] Re: jquery website broken?

2009-03-18 Thread Mauricio (Maujor) Samy Silva
>...if it's only broken for some IE 7 users and not for others. And I am one of the "others users", since the site looks perfectly fine on my Brazilian-Portuguese version of IE7. Maurício -Mensagem Original- De: Karl Swedberg Para: jquery-en@googlegroups.com Enviada em: quarta

[jQuery] Re: How do I translate this in jQuery?

2009-03-03 Thread Mauricio (Maujor) Samy Silva
It seems that you are trying to insert the content of an existent iframe (name = iFrameName) into another empty iframe (id = myiFrame-content). Is it? If so, do the following: var content = $('iframe[name = "iFrameName"]').attr('src'); $('#myiFrame-content').attr('src', content); Excuse me

[jQuery] Re: Change CSS depending on page you're on

2009-03-01 Thread Mauricio (Maujor) Samy Silva
How about use the widely ways to achieve this? 1-) Via CSS Assign an ID to the body element for each page, like: , , and an ID for each menu item like: home about contact And CSS selector for current page is: body#home li#ho a:link, body#about li#ab a:link, bod

[jQuery] Re: :not selector

2009-02-27 Thread Mauricio (Maujor) Samy Silva
Hi Pedro, It is hard to figure out what you are trying to select without a look on the HTML markup. What does you mean with "half of the elements i get with"? It depends upon the markup! In nth-child(n) is n constant or inside a loop? How about a sample of your markup and information about wh

[jQuery] Re: Form inside Form value

2009-02-27 Thread Mauricio (Maujor) Samy Silva
What are the purpouses of nested forms? Nested forms aren't allowed in HTML markup. Maurício -Mensagem Original- De: "Gordon" Para: "jQuery (English)" Enviada em: sexta-feira, 27 de fevereiro de 2009 06:34 Assunto: [jQuery] Re: Form inside Form value You cannot have forms within f

[jQuery] Re: ~ selector is not selecting siblings

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Hi RadicalBender, How about use the $('tr td:empty') selector to target the empties rows? Not solve? So, need some more information to try figure out a solution. Are there tbody, tfoot and thead in your table? Where is located the tr#NoSongs? Would you please show a simplified sample of the ta

[jQuery] Re: Issue with addClass and removeClass

2009-02-25 Thread Mauricio (Maujor) Samy Silva
You must re-bind the click event to the classes every time you change it. Use the newest live () method added in 1.3 version of jQuery library [1]. $(document).ready(function() { $('.large').live("click", function(){ ... and $(document).ready(function() { $('.small').live("click", function

[jQuery] Re: tbody:first-child & thead

2009-02-25 Thread Mauricio (Maujor) Samy Silva
eb 25, 2009 at 11:29 PM, Mauricio (Maujor) Samy Silva wrote: Ops! my faul! sorry. Previous post errata. Read: ...BEFORE the F element ... instead of: ...BEFORE the E element... -Mensagem Original- De: Mauricio (Maujor) Samy Silva Para: jquery-en@g

[jQuery] Re: tbody:first-child & thead

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Ops! my faul! sorry. Previous post errata. Read: ...BEFORE the F element ... instead of: ...BEFORE the E element... -Mensagem Original- De: Mauricio (Maujor) Samy Silva Para: jquery-en@googlegroups.com Enviada em: quarta-feira, 25 de fevereiro de 2009 09:24 Assunto: Re

[jQuery] Re: tbody:first-child & thead

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Hi Alex, 1-) Doesn't work because * E F:first-child * pseudo-class selector matches the F element that is the first child of the E element ONLY if there isn't another element BEFORE the E element within the parent E. See specs at: http://www.w3.org/TR/CSS2/selector.html#first-child 2-) If you

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Mauricio (Maujor) Samy Silva
Try this: $(document).ready(function(){ var ok = ''; $('button').click(function() { $('#my_form input[type = "checkbox"]').each(function() { if ( $(this).attr('checked') ) {ok = true} }) ok ? alert('there is at least one checked') : alert('none checked'); }); }); Checked? Mauríci

  1   2   >