Javascript inside Colorbox window

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...

  1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

  2. <script type="text/javascript" src="http://www.bradlangdon.co.uk/wp-content/themes/Starter/js/jquery.jqtransform.js"></script>

  3.  <script type="text/javascript">
  4.         $(function() {
  5.         //find all form with class jqtransform and apply the plugin
  6.         $("form.jqtransform").jqTransform();
  7.         });
  8.     </script>




... and this is my call to the colorbox function...



  1. $("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.