I use igniter code and some of my views require jquery. Since they must be used in several places, they must call jquery in their file, however, since they refer to an external file, calls to $ (document.ready) are evaluated before loading jquery and therefore fail. Is it possible to put jquery in the body and still load it before javascript is processed. Or, alternatively, this is a way to convey the fact that jquery is required back through the code header to the headers that were programmed before this file.
In view:
echo $this->import->js('jquery.js','jquery'); echo '<script type="text/javascript"> $(document).ready(function(){$(\'div#login.rounded\').corner();}) </script>';
You can view the page at: http://formulator.codingproject.net/content/login/
NOTE This page is actually located on my home machine, so recaptcha is not expected to succeed.
source share