whoops, sorry <script language="javascript"> function displayPreviewIcon(){ inputs = getInputsByAttribute('fldtype','filelocation'); for(i=0; i < inputs.length; i++){ //Testing inputs[i].style.backgroundColor = '#ff00ff'; } } </script>
which is called onLoad > On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: >> the file is being included, it is in the top of my common.js >> >> i am getting the error before it does anything. could it be that my >> common.js is not written in the OO style of js? >> >> here is the code; > > And ... how are you calling it? > > Todd > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs