I'm using Effect.Opacity so I thought there should be no problem. Here is my code:
var charts = $$('.chartlink'); var lastClicked; $('<%= lblChangingChart.ClientID %>').hide(); charts.each( function(chart) { chart.onclick = function() { var questionid = 0; if (typeof(lastClicked) != 'undefined') new Effect.Opacity(lastClicked, { from: 1.0, to: 0.5, duration: 0.5 }); lastClicked = this; $('<%= lblChangingChart.ClientID %>').show(); if ($('questionid')) { questionid = $F('questionid'); }; new Effect.Opacity(this, { from: 0.5, to: 1.0, duration: 0.5 }); new Ajax.Request('/Handlers/ChartHandler.ashx', { method: 'get', onSuccess: function(resp) { Effect.Fade($('<%= lblChangingChart.ClientID %>').id, { duration: 0.5 }); $($F('previewid')).src = chart.childElements() [0].src; }, onFailure: function(resp) { }, parameters: { selectedchartid : this.id, questionid : questionid } }); } new Effect.Opacity(chart, { from: 1.0, to: 0.5, duration: 0.5 }); }); Well, there is no errors in firefox so I wonder where my problem is? On Jun 23, 2:47 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote: > You mean other than the fact that IE doesn't support the opacity style at > all? ;-) > > If you're using Effect.Opacity, scriptaculous should take care of the issue, > but if you're using style.opacity on DOM elements, it won't work in IE. > Beyond that, hard to say without being able to see your code. > > -Fred > > On Mon, Jun 23, 2008 at 7:36 AM, Franke <[EMAIL PROTECTED]> wrote: > > > I have a div and I want all childrens to have the same opacity as the > > div. When I try my code in Firefox everything works out well but in ie > > nothing gets the new opacity. (my onclick event is not fired on the > > div in ie... don't know why...) > > Is there something I need to do that only applies to ie or something? > > -- > Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---