View Single Post
Old 03-08-2011, 06:08 PM   #6 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

I would suggest separate the javascript and the html:
javascript Code:
<script>
document.getElementsByName("addimage").onSubmit = function (e) {
    document.getElementsByClassName("pleasewait")
        .setAttribute("style","display: block;");
};
</script>

that is a very crude javascript example (not even tested). It does not takes into consideration other factors. I would suggest to use a framework like jQuery.
tony is offline  
Reply With Quote