[jQuery] Change mask onclick, how do ?

2008-10-08 Thread Luciano Mazzetto
Hi guys

I have the problem when go change de mask, i`m using maskedinput
http://digitalbush.com/projects/masked-input-plugin/

my code:
Jurídica
Física

$("#tip_j").click(function(){
$("#masked").val("");
$("#masked").mask("999.999.999/-99");
});

$("#tip_f").click(function(){
$("#masked").val("");
$("#masked").mask("999.999.999-99");
});

the mask change, but not function and is a problem..


[jQuery] Re: how i can access classes in my div?

2008-05-14 Thread Luciano Mazzetto
all OK. thanks

On Wed, May 14, 2008 at 5:02 AM, andrea varnier <[EMAIL PROTECTED]>
wrote:

>
> On 13 Mag, 16:29, canadaduane <[EMAIL PROTECTED]> wrote:
> > I wonder if you're looking for 'filter' instead of 'next'?
> >
> > $('.bloc-top').click(function(){
> >   $(this).filter('.bloc-center').slideToggle('slow');
> > });
>
> well... first of all I'm not quite sure about the html Luciano posted.
> I supposed something like this:
>
> > 
> >  content top
> >  content slideToggle
> > 
>
> because the code he posted at the beginning contains the class
> selector $('.bloc-center'), but there is no class="bloc-center" in the
> sample html.
>
> anyway, filter() will not work in this case, because bloc-center is
> not inside bloc-top, but it's next to it.
> so I'm using next()
>
> but maybe I went too far.
> correct jQuery for an xml like this:
>
> 
> content top
> content slideToggle
> 
>
> would be:
>
> $('bloc-top').click(function(){
>$(this).next().slideToggle('slow');
> });
>



-- 
att.
Luciano M.
www.m2t.com.br


[jQuery] Re: how do it?

2008-05-07 Thread Luciano Mazzetto
I try do your example,  but no make upper-case,
so i try:

$(this).val($(this).val().toUpperCase());

and got success without problems, onkeyup all upunts make this value for
upper-case...

thank`s




On Tue, May 6, 2008 at 5:47 PM, Karl Swedberg <[EMAIL PROTECTED]> wrote:

> Luciano,
> If you're trying to get the value of an element with an ID of "search",
> and make it upper-case, do this:
>
> $('#search').val().toUpperCase();
>
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
> On May 6, 2008, at 3:10 PM, Luciano Mazzetto wrote:
>
> sure!, but i need do it ?
>
> $('input#search').toUpperCase();  // ???
>
>
> On Tue, May 6, 2008 at 12:27 PM, Alexandre Plennevaux <
> [EMAIL PROTECTED]> wrote:
>
> > first, get your markup correct: if you need to use several times the
> > same ID, then use a CLASS instead. ID are for UNIQUE entities.
> >
> > besides that, this
> >
> > $('input #search')
> >
> >
> > should be
> >
> > $('input#search')
> >
> >
> >
> > Hope this helps!
> >
> > alex
> >
> >
> >
> > On Tue, May 6, 2008 at 3:46 PM, Luciano <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > I have a input = search and a form = form-search,
> > > well i need create action keypress on input search i do this:
> > >
> > >$(document).ready(function() {
> > >$('input #search')
> > >.keypress(function(){
> > >$('#inf').fadeIn('normal');
> > >})
> > >});
> > >
> > > but no sucess,
> > >
> > > so i try it:
> > >
> > >$(document).ready(function() {
> > >$('#search')
> > >.keypress(function(){
> > >$('#inf').fadeIn('normal');
> > >})
> > >});
> > >
> > > it`s ok but i want especify input first, i have two more objects with
> > > this id, no inputs normal divs..
> > >
> > > exist ?
> > > $('input #search') or
> > > $('input > #search') or
> > > $('input search')
> > > ?
> > >
> > > tks
> > >
> > >
> >
> >
> > --
> > Alexandre Plennevaux
> > LAb[au]
> >
> > http://www.lab-au.com
>
>
>
>
> --
> att.
> Luciano M.
> www.m2t.com.br
>
>
>


-- 
att.
Luciano M.
www.m2t.com.br


[jQuery] Re: how do it?

2008-05-06 Thread Luciano Mazzetto
sure!, but i need do it ?

$('input#search').toUpperCase();  // ???


On Tue, May 6, 2008 at 12:27 PM, Alexandre Plennevaux <[EMAIL PROTECTED]>
wrote:

> first, get your markup correct: if you need to use several times the same
> ID, then use a CLASS instead. ID are for UNIQUE entities.
>
> besides that, this
>
> $('input #search')
>
>
> should be
>
> $('input#search')
>
>
>
> Hope this helps!
>
> alex
>
>
>
> On Tue, May 6, 2008 at 3:46 PM, Luciano <[EMAIL PROTECTED]> wrote:
>
> >
> > I have a input = search and a form = form-search,
> > well i need create action keypress on input search i do this:
> >
> >$(document).ready(function() {
> >$('input #search')
> >.keypress(function(){
> >$('#inf').fadeIn('normal');
> >})
> >});
> >
> > but no sucess,
> >
> > so i try it:
> >
> >$(document).ready(function() {
> >$('#search')
> >.keypress(function(){
> >$('#inf').fadeIn('normal');
> >})
> >});
> >
> > it`s ok but i want especify input first, i have two more objects with
> > this id, no inputs normal divs..
> >
> > exist ?
> > $('input #search') or
> > $('input > #search') or
> > $('input search')
> > ?
> >
> > tks
> >
> >
>
>
> --
> Alexandre Plennevaux
> LAb[au]
>
> http://www.lab-au.com




-- 
att.
Luciano M.
www.m2t.com.br


[jQuery] Re: how do it?

2008-05-06 Thread Luciano Mazzetto
sorry, i do this it and return ERROR no function..
$('input#search').toUpperCase();




On Tue, May 6, 2008 at 4:10 PM, Luciano Mazzetto <[EMAIL PROTECTED]>
wrote:

> sure!, but i need do it ?
>
> $('input#search').toUpperCase();  // ???
>
>
>
> On Tue, May 6, 2008 at 12:27 PM, Alexandre Plennevaux <
> [EMAIL PROTECTED]> wrote:
>
> > first, get your markup correct: if you need to use several times the
> > same ID, then use a CLASS instead. ID are for UNIQUE entities.
> >
> > besides that, this
> >
> > $('input #search')
> >
> >
> > should be
> >
> > $('input#search')
> >
> >
> >
> > Hope this helps!
> >
> > alex
> >
> >
> >
> > On Tue, May 6, 2008 at 3:46 PM, Luciano <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > I have a input = search and a form = form-search,
> > > well i need create action keypress on input search i do this:
> > >
> > >$(document).ready(function() {
> > >$('input #search')
> > >.keypress(function(){
> > >$('#inf').fadeIn('normal');
> > >})
> > >});
> > >
> > > but no sucess,
> > >
> > > so i try it:
> > >
> > >$(document).ready(function() {
> > >$('#search')
> > >.keypress(function(){
> > >$('#inf').fadeIn('normal');
> > >})
> > >});
> > >
> > > it`s ok but i want especify input first, i have two more objects with
> > > this id, no inputs normal divs..
> > >
> > > exist ?
> > > $('input #search') or
> > > $('input > #search') or
> > > $('input search')
> > > ?
> > >
> > > tks
> > >
> > >
> >
> >
> > --
> > Alexandre Plennevaux
> > LAb[au]
> >
> > http://www.lab-au.com
>
>
>
>
> --
> att.
> Luciano M.
> www.m2t.com.br




-- 
att.
Luciano M.
www.m2t.com.br


[jQuery] post ajax jquery

2008-04-24 Thread Luciano Mazzetto
hi, i tryed do it
http://www.malsup.com/jquery/form/#getting-started

but my form do submit normal, and not in ajax...
so no return callback function

somebody can help-me ?

thanks


code






$(document).ready(function() {
$('#myForm').ajaxForm(function() {
alert("Thank you for your comment!");
var queryString = $('#myForm').formSerialize();

// the data could now be submitted using $.get, 
$.post, $.ajax, etc
$.post('teste.php', queryString);   

});
});







Name:  
Comment: 





[jQuery] $("#content").load('http://www.google.com.br') is a possible ?

2008-04-24 Thread Luciano Mazzetto

Hi,

I need loading http request inside my div content.

I do this it

$("#content").load("http://www.google.com.br";);

but i hadn't sucess

How i can load this page in my div ?

tks..


[jQuery] load http:// with load() ??

2008-04-24 Thread Luciano Mazzetto
Hi,

I need loading http request inside my div content.

I do this it

$("#content").load("http://www.google.com.br";);
but not OK ??

How i can load this page in my div ?

tks..

-- 
att.
Luciano M.
www.m2t.com.br