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
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
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
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
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();
}
}
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.