Javascript inside Colorbox window
Hi,
I need to load the following javascript inside a colorbox window with the onComplete callback but I dont know how as I am not that experienced with jQuery...
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
- <script type="text/javascript" src="http://www.bradlangdon.co.uk/wp-content/themes/Starter/js/jquery.jqtransform.js"></script>
- <script type="text/javascript">
- $(function() {
- //find all form with class jqtransform and apply the plugin
- $("form.jqtransform").jqTransform();
- });
- </script>
... and this is my call to the colorbox function...
- $("a[rel='contact']").colorbox({transition:"elastic", width:"800px", height:"460px", opacity:".96"});
Everything works fine until I load the content into a colorbox window at which point I cannot see any of the javascript code when viewed in firefox.
How would I use this code as I cannot use it inside the Colorbox window?
Any help is much much appreciated.
Cheers.