[jQuery] How open a painel in jQuery Accordion after a click event??

2009-02-26 Thread AndreMiranda

Hi everyone!

I have 2 painels in my Accordion. One has a form and the other has a
flexigrid showing me all data.

What I needed is when I save data to database via $ajax, I change the
form painel to the flexigrid painel, but so far I haven't been
successful.

this is what I'm doing:

$("#btnAdicionarParametro").click(function()
{
$.ajax({
type: 'POST',
data: $("#frm").serialize(),
url: '/SuperAdmin/SalvaParametro',
success: function()
{
gridParametros.flexReload();
$(function()
{
$("#accordion").accordion({
header: "h3",
alwaysOpen: false,
active: "#flexDiv",
autoHeight: false,
fillSpace: false
});
});

}
})
});

Thanks!!!


[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

But why (".detalhes") doesn't work and ("div .detalhes") works???
thanks!!



On 26 fev, 15:44, Eric Garside  wrote:
> Actually, the space is telling jquery that you want sub elements, not
> the actual elements.
>
> a .clickMe will match:
>
> 
>
> but not
>
> 
>
> If you want a tag with a class, you can't add a space.
>
> On Feb 26, 1:41 pm, brian  wrote:
>
> > Maybe it's just a typo (and unrelated) but you have spaces in both
> > "div .detalhes" & "a .clickMe".
>
> > On Thu, Feb 26, 2009 at 1:27 PM, AndreMiranda  wrote:
>
> > > $(document).ready(function() {
>
> > >        //chama a função de Tip
> > >        reiniciaTip();
>
> > >        //arredonda fundo cinza do DatePicker e da drop down list de
> > > agendas
> > >        $("#divCinza").corner();
>
> > >        //DatePicker
> > >        $("#divDatePicker").datepicker({
> > >            defaultDate: new Date($("#dataDatePicker").val()),
> > >            changeMonth: true,
> > >            changeYear: true,
> > >            onSelect: function(dataSelecionada){
> > >                        $.ajax({
> > >                                type: 'GET',
> > >                                data: dataSelecionada,
> > >                                url: '/Admin/Agenda/CompromissoAgenda/?
> > > dataSelecionada=' + dataSelecionada,
> > >                                success: function(conteudoAtualizado){
> > >                                            //atualiza os períodos e
> > > compromissos
> > >                                            $("#divPeriodos").empty
> > > ().html(conteudoAtualizado);
> > >                                            //reinicia a função de Tip
> > > devido ao callback do ajax
> > >                                            reiniciaTip();
> > >                                         }
> > >                              });
> > >                      }
> > >        });
>
> > >        //Adiciona a DDL codAgenda na divDDLAgendas da Master
> > >        $("#divDDLAgendas").append($("#codAgenda"));
> > >        $("#codAgenda").css({width: '170px'});
>
> > > });
>
> > > function reiniciaTip()
> > > {
> > >    $("div .detalhes").each(function(){
> > >        var compromissoId = $(this).attr("id").split("-")[1];
> > >        $(this).bt({
> > >                    ajaxPath: '/Admin/Agenda/DetalhesAgendamento',
> > >                    ajaxData: {data: "codAgendamento=" +
> > > compromissoId},
> > >                    ajaxOpts: { success: function (data) { return
> > > data.toString(); }},
> > >                    ajaxCache: false,
> > >                    cssStyles: {fontSize: '11px' },
> > >                    width: 220,
> > >                    centerPointX: .9,
> > >                    spikeLength: 35,
> > >                    spikeGirth: 25,
> > >                    padding: 10,
> > >                    cornerRadius: 25,
> > >                    strokeStyle: '#ABABAB',
> > >                    strokeWidth: 1
> > >                });
> > >    });
> > > }
>
> > > Take a look the function reiniciaTip and the "(div .detalhes)". In
> > > 1.2.6, I just had to write "(.detalhes)", but now i had to specify
> > > that this is from a div
>
> > > Thanks!!
>
> > > On 26 fev, 15:22, Eric Garside  wrote:
> > >> Can you share your code? The small snippets you've shared indicate no
> > >> problem. I threw up the jsbin test to confirm that it's not jquery 1.3
> > >> that's causing the error. We can't really help unless you post the
> > >> full sample of your code that's broken, or give us a url we can check
> > >> out and test.
>
> > >> On Feb 26, 1:18 pm, AndreMiranda  wrote:
>
> > >> > Man, I really don't know why my code is working this way... it's
> > >> > frustrating... I really don't wanna go back to 1.2.6...
>
> > >> > On 26 fev, 15:08, Eric Garside  wrote:
>
> > >> > > Do you have a demo page up somewhere that displays these errors? That
> > >> > &g

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

$(document).ready(function() {

//chama a função de Tip
reiniciaTip();

//arredonda fundo cinza do DatePicker e da drop down list de
agendas
$("#divCinza").corner();

//DatePicker
$("#divDatePicker").datepicker({
defaultDate: new Date($("#dataDatePicker").val()),
changeMonth: true,
changeYear: true,
onSelect: function(dataSelecionada){
$.ajax({
type: 'GET',
data: dataSelecionada,
url: '/Admin/Agenda/CompromissoAgenda/?
dataSelecionada=' + dataSelecionada,
success: function(conteudoAtualizado){
//atualiza os períodos e
compromissos
$("#divPeriodos").empty
().html(conteudoAtualizado);
//reinicia a função de Tip
devido ao callback do ajax
reiniciaTip();
 }
  });
  }
});

//Adiciona a DDL codAgenda na divDDLAgendas da Master
$("#divDDLAgendas").append($("#codAgenda"));
$("#codAgenda").css({width: '170px'});

});

function reiniciaTip()
{
$("div .detalhes").each(function(){
var compromissoId = $(this).attr("id").split("-")[1];
$(this).bt({
ajaxPath: '/Admin/Agenda/DetalhesAgendamento',
ajaxData: {data: "codAgendamento=" +
compromissoId},
ajaxOpts: { success: function (data) { return
data.toString(); }},
ajaxCache: false,
cssStyles: {fontSize: '11px' },
width: 220,
centerPointX: .9,
spikeLength: 35,
spikeGirth: 25,
padding: 10,
cornerRadius: 25,
strokeStyle: '#ABABAB',
strokeWidth: 1
});
});
}

Take a look the function reiniciaTip and the "(div .detalhes)". In
1.2.6, I just had to write "(.detalhes)", but now i had to specify
that this is from a div

Thanks!!




On 26 fev, 15:22, Eric Garside  wrote:
> Can you share your code? The small snippets you've shared indicate no
> problem. I threw up the jsbin test to confirm that it's not jquery 1.3
> that's causing the error. We can't really help unless you post the
> full sample of your code that's broken, or give us a url we can check
> out and test.
>
> On Feb 26, 1:18 pm, AndreMiranda  wrote:
>
> > Man, I really don't know why my code is working this way... it's
> > frustrating... I really don't wanna go back to 1.2.6...
>
> > On 26 fev, 15:08, Eric Garside  wrote:
>
> > > Do you have a demo page up somewhere that displays these errors? That
> > > code looks perfectly valid, and I've not noticed any errors in 1.3.1,
> > > so I'm not sure what could be causing it. I threw up a jsbin test on
> > > it, and it seems to work fine.
>
> > >http://jsbin.com/aputa/edit
>
> > > On Feb 26, 1:02 pm, AndreMiranda  wrote:
>
> > > > Hi Eric!
>
> > > > I showed this problem with Flexigrid selected rows, but the problem is
> > > > with a specific class attribute to several elements.
> > > > For example, If I have 2 links with class attribute "clickMe" and I
> > > > do:
>
> > > > $(".clickMe").click(function(){ alert("this is a test"); });
>
> > > > only the FIRST link works. In 1.2.6 this used to work just fine, but
> > > > in 1.3.1 don't.
>
> > > > The same code above, to work on 1.3.1 in my projects, I have to do
>
> > > > $("a .clickMe").click(function(){ alert("this is a test"); });    I
> > > > had to specify that "clickMe" is a link ("a") class attribute...
>
> > > > Thanks!!
>
> > > > On 26 fev, 14:50, Eric Garside  wrote:
>
> > > > > Can you provide some HTML to go along with this? There's not enough
> > > > > info present to properly determine the issue.
>
> > > > > On Feb 26, 12:47 pm, AndreMiranda  wrote:
>
> > > > > > Hi everyone!!
>
> > > > > > Well... for me it's just the same thing, but I don't know why this
> > > > > >

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

$(document).ready(function() {

//chama a função de Tip
reiniciaTip();

//arredonda fundo cinza do DatePicker e da drop down list de
agendas
$("#divCinza").corner();

//DatePicker
$("#divDatePicker").datepicker({
defaultDate: new Date($("#dataDatePicker").val()),
changeMonth: true,
changeYear: true,
onSelect: function(dataSelecionada){
$.ajax({
type: 'GET',
data: dataSelecionada,
url: '/Admin/Agenda/CompromissoAgenda/?
dataSelecionada=' + dataSelecionada,
success: function(conteudoAtualizado){
//atualiza os períodos e
compromissos
$("#divPeriodos").empty
().html(conteudoAtualizado);
//reinicia a função de Tip
devido ao callback do ajax
reiniciaTip();
 }
  });
  }
});

//Adiciona a DDL codAgenda na divDDLAgendas da Master
$("#divDDLAgendas").append($("#codAgenda"));
$("#codAgenda").css({width: '170px'});

});

function reiniciaTip()
{
$("div .detalhes").each(function(){
var compromissoId = $(this).attr("id").split("-")[1];
$(this).bt({
ajaxPath: '/Admin/Agenda/DetalhesAgendamento',
ajaxData: {data: "codAgendamento=" +
compromissoId},
ajaxOpts: { success: function (data) { return
data.toString(); }},
ajaxCache: false,
cssStyles: {fontSize: '11px' },
width: 220,
centerPointX: .9,
spikeLength: 35,
spikeGirth: 25,
padding: 10,
cornerRadius: 25,
strokeStyle: '#ABABAB',
strokeWidth: 1
});
});
}

Take a look the function reiniciaTip and the "(div .detalhes)". In
1.2.6, I just had to write "(.detalhes)", but now i had to specify
that this is from a div

Thanks!!




On 26 fev, 15:22, Eric Garside  wrote:
> Can you share your code? The small snippets you've shared indicate no
> problem. I threw up the jsbin test to confirm that it's not jquery 1.3
> that's causing the error. We can't really help unless you post the
> full sample of your code that's broken, or give us a url we can check
> out and test.
>
> On Feb 26, 1:18 pm, AndreMiranda  wrote:
>
> > Man, I really don't know why my code is working this way... it's
> > frustrating... I really don't wanna go back to 1.2.6...
>
> > On 26 fev, 15:08, Eric Garside  wrote:
>
> > > Do you have a demo page up somewhere that displays these errors? That
> > > code looks perfectly valid, and I've not noticed any errors in 1.3.1,
> > > so I'm not sure what could be causing it. I threw up a jsbin test on
> > > it, and it seems to work fine.
>
> > >http://jsbin.com/aputa/edit
>
> > > On Feb 26, 1:02 pm, AndreMiranda  wrote:
>
> > > > Hi Eric!
>
> > > > I showed this problem with Flexigrid selected rows, but the problem is
> > > > with a specific class attribute to several elements.
> > > > For example, If I have 2 links with class attribute "clickMe" and I
> > > > do:
>
> > > > $(".clickMe").click(function(){ alert("this is a test"); });
>
> > > > only the FIRST link works. In 1.2.6 this used to work just fine, but
> > > > in 1.3.1 don't.
>
> > > > The same code above, to work on 1.3.1 in my projects, I have to do
>
> > > > $("a .clickMe").click(function(){ alert("this is a test"); });    I
> > > > had to specify that "clickMe" is a link ("a") class attribute...
>
> > > > Thanks!!
>
> > > > On 26 fev, 14:50, Eric Garside  wrote:
>
> > > > > Can you provide some HTML to go along with this? There's not enough
> > > > > info present to properly determine the issue.
>
> > > > > On Feb 26, 12:47 pm, AndreMiranda  wrote:
>
> > > > > > Hi everyone!!
>
> > > > > > Well... for me it's just the same thing, but I don't know why this
> > > > > >

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

$(document).ready(function() {

//chama a função de Tip
reiniciaTip();

//arredonda fundo cinza do DatePicker e da drop down list de
agendas
$("#divCinza").corner();

//DatePicker
$("#divDatePicker").datepicker({
defaultDate: new Date($("#dataDatePicker").val()),
changeMonth: true,
changeYear: true,
onSelect: function(dataSelecionada){
$.ajax({
type: 'GET',
data: dataSelecionada,
url: '/Admin/Agenda/CompromissoAgenda/?
dataSelecionada=' + dataSelecionada,
success: function(conteudoAtualizado){
//atualiza os períodos e
compromissos
$("#divPeriodos").empty
().html(conteudoAtualizado);
//reinicia a função de Tip
devido ao callback do ajax
reiniciaTip();
 }
  });
  }
});

//Adiciona a DDL codAgenda na divDDLAgendas da Master
$("#divDDLAgendas").append($("#codAgenda"));
$("#codAgenda").css({width: '170px'});

});

function reiniciaTip()
{
$("div .detalhes").each(function(){
var compromissoId = $(this).attr("id").split("-")[1];
$(this).bt({
ajaxPath: '/Admin/Agenda/DetalhesAgendamento',
ajaxData: {data: "codAgendamento=" +
compromissoId},
ajaxOpts: { success: function (data) { return
data.toString(); }},
ajaxCache: false,
cssStyles: {fontSize: '11px' },
width: 220,
centerPointX: .9,
spikeLength: 35,
spikeGirth: 25,
padding: 10,
cornerRadius: 25,
strokeStyle: '#ABABAB',
strokeWidth: 1
});
});
}

Take a look the function reiniciaTip and the "(div .detalhes)". In
1.2.6, I just had to write "(.detalhes)", but now i had to specify
that this is from a div

Thanks!!




On 26 fev, 15:22, Eric Garside  wrote:
> Can you share your code? The small snippets you've shared indicate no
> problem. I threw up the jsbin test to confirm that it's not jquery 1.3
> that's causing the error. We can't really help unless you post the
> full sample of your code that's broken, or give us a url we can check
> out and test.
>
> On Feb 26, 1:18 pm, AndreMiranda  wrote:
>
> > Man, I really don't know why my code is working this way... it's
> > frustrating... I really don't wanna go back to 1.2.6...
>
> > On 26 fev, 15:08, Eric Garside  wrote:
>
> > > Do you have a demo page up somewhere that displays these errors? That
> > > code looks perfectly valid, and I've not noticed any errors in 1.3.1,
> > > so I'm not sure what could be causing it. I threw up a jsbin test on
> > > it, and it seems to work fine.
>
> > >http://jsbin.com/aputa/edit
>
> > > On Feb 26, 1:02 pm, AndreMiranda  wrote:
>
> > > > Hi Eric!
>
> > > > I showed this problem with Flexigrid selected rows, but the problem is
> > > > with a specific class attribute to several elements.
> > > > For example, If I have 2 links with class attribute "clickMe" and I
> > > > do:
>
> > > > $(".clickMe").click(function(){ alert("this is a test"); });
>
> > > > only the FIRST link works. In 1.2.6 this used to work just fine, but
> > > > in 1.3.1 don't.
>
> > > > The same code above, to work on 1.3.1 in my projects, I have to do
>
> > > > $("a .clickMe").click(function(){ alert("this is a test"); });    I
> > > > had to specify that "clickMe" is a link ("a") class attribute...
>
> > > > Thanks!!
>
> > > > On 26 fev, 14:50, Eric Garside  wrote:
>
> > > > > Can you provide some HTML to go along with this? There's not enough
> > > > > info present to properly determine the issue.
>
> > > > > On Feb 26, 12:47 pm, AndreMiranda  wrote:
>
> > > > > > Hi everyone!!
>
> > > > > > Well... for me it's just the same thing, but I don't know why this
> > > > > >

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

Man, I really don't know why my code is working this way... it's
frustrating... I really don't wanna go back to 1.2.6...



On 26 fev, 15:08, Eric Garside  wrote:
> Do you have a demo page up somewhere that displays these errors? That
> code looks perfectly valid, and I've not noticed any errors in 1.3.1,
> so I'm not sure what could be causing it. I threw up a jsbin test on
> it, and it seems to work fine.
>
> http://jsbin.com/aputa/edit
>
> On Feb 26, 1:02 pm, AndreMiranda  wrote:
>
> > Hi Eric!
>
> > I showed this problem with Flexigrid selected rows, but the problem is
> > with a specific class attribute to several elements.
> > For example, If I have 2 links with class attribute "clickMe" and I
> > do:
>
> > $(".clickMe").click(function(){ alert("this is a test"); });
>
> > only the FIRST link works. In 1.2.6 this used to work just fine, but
> > in 1.3.1 don't.
>
> > The same code above, to work on 1.3.1 in my projects, I have to do
>
> > $("a .clickMe").click(function(){ alert("this is a test"); });    I
> > had to specify that "clickMe" is a link ("a") class attribute...
>
> > Thanks!!
>
> > On 26 fev, 14:50, Eric Garside  wrote:
>
> > > Can you provide some HTML to go along with this? There's not enough
> > > info present to properly determine the issue.
>
> > > On Feb 26, 12:47 pm, AndreMiranda  wrote:
>
> > > > Hi everyone!!
>
> > > > Well... for me it's just the same thing, but I don't know why this
> > > > works in 1.2.6 and doesn't in 1.3.1:
>
> > > > if ($('.trSelected').length == 2)
> > > > {
> > > >         alert("hello");
>
> > > > }
>
> > > > In this case, I'm selecting rows on flexigrid and used to work just
> > > > fine in 1.2.6.
>
> > > > To work in 1.3.1, I had to do this:
>
> > > > if ($('#flexDiv .trSelected').length == 2)
> > > > {
> > > >            alert("hello");
>
> > > > }
>
> > > > I had to specify the table from where the trSelected are... why does
> > > > this happens??
> > > > I'm having too many problems with class attibutes. For example: If I
> > > > have 3 input text with class "test", only the first input text is
> > > > functional... the other ones no.
> > > > Why?
> > > > thanks!!!


[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

Hi James! Where can I set up a test page?

Thanks!!

On 26 fev, 15:06, James  wrote:
> Could you set up a test page for us that demonstrates this issue?
>
> On Feb 26, 8:02 am, AndreMiranda  wrote:
>
> > Hi Eric!
>
> > I showed this problem with Flexigrid selected rows, but the problem is
> > with a specific class attribute to several elements.
> > For example, If I have 2 links with class attribute "clickMe" and I
> > do:
>
> > $(".clickMe").click(function(){ alert("this is a test"); });
>
> > only the FIRST link works. In 1.2.6 this used to work just fine, but
> > in 1.3.1 don't.
>
> > The same code above, to work on 1.3.1 in my projects, I have to do
>
> > $("a .clickMe").click(function(){ alert("this is a test"); });    I
> > had to specify that "clickMe" is a link ("a") class attribute...
>
> > Thanks!!
>
> > On 26 fev, 14:50, Eric Garside  wrote:
>
> > > Can you provide some HTML to go along with this? There's not enough
> > > info present to properly determine the issue.
>
> > > On Feb 26, 12:47 pm, AndreMiranda  wrote:
>
> > > > Hi everyone!!
>
> > > > Well... for me it's just the same thing, but I don't know why this
> > > > works in 1.2.6 and doesn't in 1.3.1:
>
> > > > if ($('.trSelected').length == 2)
> > > > {
> > > >         alert("hello");
>
> > > > }
>
> > > > In this case, I'm selecting rows on flexigrid and used to work just
> > > > fine in 1.2.6.
>
> > > > To work in 1.3.1, I had to do this:
>
> > > > if ($('#flexDiv .trSelected').length == 2)
> > > > {
> > > >            alert("hello");
>
> > > > }
>
> > > > I had to specify the table from where the trSelected are... why does
> > > > this happens??
> > > > I'm having too many problems with class attibutes. For example: If I
> > > > have 3 input text with class "test", only the first input text is
> > > > functional... the other ones no.
> > > > Why?
> > > > thanks!!!


[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

Hi Eric!

I showed this problem with Flexigrid selected rows, but the problem is
with a specific class attribute to several elements.
For example, If I have 2 links with class attribute "clickMe" and I
do:

$(".clickMe").click(function(){ alert("this is a test"); });

only the FIRST link works. In 1.2.6 this used to work just fine, but
in 1.3.1 don't.

The same code above, to work on 1.3.1 in my projects, I have to do

$("a .clickMe").click(function(){ alert("this is a test"); });I
had to specify that "clickMe" is a link ("a") class attribute...

Thanks!!




On 26 fev, 14:50, Eric Garside  wrote:
> Can you provide some HTML to go along with this? There's not enough
> info present to properly determine the issue.
>
> On Feb 26, 12:47 pm, AndreMiranda  wrote:
>
> > Hi everyone!!
>
> > Well... for me it's just the same thing, but I don't know why this
> > works in 1.2.6 and doesn't in 1.3.1:
>
> > if ($('.trSelected').length == 2)
> > {
> >         alert("hello");
>
> > }
>
> > In this case, I'm selecting rows on flexigrid and used to work just
> > fine in 1.2.6.
>
> > To work in 1.3.1, I had to do this:
>
> > if ($('#flexDiv .trSelected').length == 2)
> > {
> >            alert("hello");
>
> > }
>
> > I had to specify the table from where the trSelected are... why does
> > this happens??
> > I'm having too many problems with class attibutes. For example: If I
> > have 3 input text with class "test", only the first input text is
> > functional... the other ones no.
> > Why?
> > thanks!!!


[jQuery] Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread AndreMiranda

Hi everyone!!

Well... for me it's just the same thing, but I don't know why this
works in 1.2.6 and doesn't in 1.3.1:

if ($('.trSelected').length == 2)
{
alert("hello");
}

In this case, I'm selecting rows on flexigrid and used to work just
fine in 1.2.6.

To work in 1.3.1, I had to do this:

if ($('#flexDiv .trSelected').length == 2)
{
   alert("hello");
}

I had to specify the table from where the trSelected are... why does
this happens??
I'm having too many problems with class attibutes. For example: If I
have 3 input text with class "test", only the first input text is
functional... the other ones no.
Why?
thanks!!!


[jQuery] How can I rebind this event after a ajax callback?

2009-02-25 Thread AndreMiranda

Hi everyone!

I'm trying to create a text edit in place myself just by manipulating
jQuery selectors. But, after the first ajax callback, the others
callback for the same input text doesn't work anymore...

I've tried to use livequery plugin but it didn't work...

function editaVal(celDiv, id)
{
var novoConteudo = $("");
$(celDiv).dblclick(function()
{
$(this).html(novoConteudo);
});

$(novoConteudo).blur(function()
{
$(novoConteudo).parents("tr").removeClass('trSelected');
$.ajax({
type: 'POST',
url: '/SuperAdmin/SalvaValor/?busca=' + $
(novoConteudo).val() + '&codValor=' + id,
beforeSend: function()
{
$(celDiv).html($("#loading").show());
},
success: function()
{
$(celDiv).html($("#loading").hide());
$(celDiv).html(novoConteudo.val());
}
});
});
}

My question is: how can i rebind this??? Rebind the blur event... When
I blur the input text, nothing happens on the second ajax callback.
Thanks!!
Andre Miranda



[jQuery] Re: How do I update this with ajax??

2009-02-10 Thread AndreMiranda

Hi!!

I don't have my exactly code here because it's at work. I'll see it
just tomorrow. But I remember quite good what I've done.

It's something like this my jQuery:

$("#myDatePicker").datepicker({ onSelect: function(date) { return
window.location.href("/Admin/Schedule/?date=" + date; }

And I have my C# method that takes this "date", treats it and returns
all events that happens in this "date". And, this way, the page
refreshes (because of the window.location.href) and my list of events
is shown.

But, like I've said, the page is refreshing and I didn't want that!!
So, I was thinking on a Ajax solution to pass the selected date and
returns me the events, without refreshing.

Thanks!!!

André




On 10 fev, 23:41, pedalpete  wrote:
> without seeing your jquery, it's tough to say exactly what is going
> on,
> but have you got 'return false;' at the end of your select function?
> That stops the page from submitting (refreshing).
>
> On Feb 10, 5:32 pm, AndreMiranda  wrote:
>
> > Hi!!
>
> > I have a page with DatePicker and a list of events that occur in some
> > respective date. So, when a person selects a date in DatePicker, this
> > date is passed as an argument to a method (I'm using asp.net mvc) and
> > this method returns me all the events of the chosen date.
>
> > The problem is the page refreshes every time this process is done.
>
> > So, what's the best way to make this via Ajax?? $.ajax.get??
> > $.ajax.post?? What do you recommend?
>
> > And how can I when update this list events of my page??
>
> > Thanks in advance!!
>
> > André


[jQuery] How do I update this with ajax??

2009-02-10 Thread AndreMiranda

Hi!!

I have a page with DatePicker and a list of events that occur in some
respective date. So, when a person selects a date in DatePicker, this
date is passed as an argument to a method (I'm using asp.net mvc) and
this method returns me all the events of the chosen date.

The problem is the page refreshes every time this process is done.

So, what's the best way to make this via Ajax?? $.ajax.get??
$.ajax.post?? What do you recommend?

And how can I when update this list events of my page??

Thanks in advance!!

André


[jQuery] How to pass a date to DatePicker??

2009-02-10 Thread AndreMiranda

Hi everyone!!

How can I pass a date to DatePicker and it shows this date selected,
highlighted etc?

Thanks!!

André


[jQuery] Re: What is the best option to make this modal???

2009-02-06 Thread AndreMiranda

Hi Stephan!!

But, can jQuery Dialog interact dynamically like I need in my
project??

Thanks!!

André




On 6 fev, 11:28, Stephan Veigl  wrote:
> Hi André,
>
> have you tried the jQuery UI Dialog widget?
>
> by(e)
> Stephan
>
> 2009/2/6 AndreMiranda :
>
>
>
> > Hi everyone!!
>
> > Can you guys tell me the best way to do this? I have a page which
> > lists several tasks of a person. And when you roll over one task, a
> > popup/modal/tip will appear and dynamically will get all information
> > about this task.
>
> > What are the best plugins to make this? The best way...
>
> > Thanks in advance!!
>
> > André


[jQuery] What is the best option to make this modal???

2009-02-06 Thread AndreMiranda

Hi everyone!!

Can you guys tell me the best way to do this? I have a page which
lists several tasks of a person. And when you roll over one task, a
popup/modal/tip will appear and dynamically will get all information
about this task.

What are the best plugins to make this? The best way...

Thanks in advance!!

André


[jQuery] Re: Calendar with jQuery or pure JavaScript??

2009-01-30 Thread AndreMiranda

Hi James!!

I already use DatePicker in my project and it will be associated with
my Schedule. I will have to make a daily schedule, for example, with
hour starting at 00:00h and ending at 23:00h and associate events with
it, like "lunch with Paulo at 14:30h" and so on...

It will be a hge challenge!!




On Jan 30, 6:53 am, "James Hughes"  wrote:
> I guess if you are competent in both it's doesn't really matter though I'd 
> think jQuery would be better as you'd have less cross browser 
> incompatabilites to deal with etc.  Also I'd look at the Date Picker in 
> jQuery UI (http://jqueryui.com/demos/datepicker/inline.html).  I have 
> played/hacked about with it in the past and manged to get the inline version 
> to span an entire screen.  With a bit more work you could extend it.
>
> ____
>
> From: jquery-en@googlegroups.com on behalf of AndreMiranda
> Sent: Fri 30/01/2009 01:40
> To: jQuery (English)
> Subject: [jQuery] Calendar with jQuery or pure JavaScript??
>
> Hi everyone!
>
> I need to make a Schedule/Calendar just like Google Calendar, but with
> some customizations...
>
> Do you guys think it is better to make it with jQuery or straight
> JavaScript??
>
> Thanks!!!
>
> 
> This e-mail is intended solely for the addressee and is strictly 
> confidential; if you are not the addressee please destroy the message and all 
> copies. Any opinion or information contained in this email or its attachments 
> that does not relate to the business of Kainos
> is personal to the sender and is not given by or endorsed by Kainos. Kainos 
> is the trading name of Kainos Software Limited, registered in Northern 
> Ireland under company number: NI19370, having its registered offices at: 
> Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT,
> Northern Ireland. Registered in the UK for VAT under number: 454598802 and 
> registered in Ireland for VAT under number: 9950340E. This email has been 
> scanned for all known viruses by MessageLabs but is not guaranteed to be 
> virus free; further terms and conditions may be
> found on our website -www.kainos.com


[jQuery] Calendar with jQuery or pure JavaScript??

2009-01-29 Thread AndreMiranda

Hi everyone!

I need to make a Schedule/Calendar just like Google Calendar, but with
some customizations...

Do you guys think it is better to make it with jQuery or straight
JavaScript??

Thanks!!!


[jQuery] Problema with class attribute in jQuery 1.3.1

2009-01-28 Thread AndreMiranda

Hi everyone!!

I have one checkbox named 'selectAll' that when it's clicked, it
checks all checkbox below it. And these checkboxes have the same class
attribute. Like this:

$("#selectAll").click(function() {
if ($(this).is(":checked"))
$(".chkConv").each(function() { this.checked =
true; });
else
$(".chkConv").each(function() { this.checked =
false; });
});

This used to work just fine in 1.2.6. I've tried run it in 1.3.1, but
it doesn't work... just the FIRST checkbox with class attribute
"chkConv" is checked and the other ones remain unchecked.

Does anyone know why this is happening in this new version of jQuery??

Thanks in advance!!