[Proto-Scripty] Jagged Text with setOpacity

2009-01-05 Thread bflanagan
Hey all- I know this has been covered before, but all of he fixes I've found don't seem to be working for me. OF course the issue is with IE... I'm implementing a simple fadeIn/fadeOut using prototype's setOpacity. In IE7, the text changes format during the fades. One fix I've seen is to appl

[Proto-Scripty] Re: onload not working properly

2009-01-08 Thread bflanagan
Try this: Replace this: window.onload = function(){ ... } with: Event.observe(window,"load",function(){ ... }); If the issue persists, then verify that the third form (I assume it's #form_comment) is rendered to the page during the load process and not loaded by some other post-l

[Proto-Scripty] Re: onload not working properly

2009-01-08 Thread bflanagan
You could just add a conditional to check for the object before you attempt to add the event: if($('form_tell')){ $('form_tell').onsubmit = function () { tellfriend(); return false; } } Brian --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: onload not working properly

2009-01-08 Thread bflanagan
You could just add a conditional to check for the object before you attempt to add the event: if($('form_tell')){ $('form_tell').onsubmit = function () { tellfriend(); return false; } } Brian --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: Stoping observing

2009-01-15 Thread bflanagan
Since your function is creating the div, you can put a conditional in it to check for the existence of the div before attempting to add it. Event.observe(document,'click', function() { if($('divYouJustAdded'){ removeTheElementIJustAdded(); } else { addTheElement(); } }

[Proto-Scripty] Re: Stoping observing

2009-01-15 Thread bflanagan
There's probably a correct event model way to do this, but, in the meantime, how about setting the 'removeErrorElement' equal to an empty function? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.