Issue with form in a modal box

Issue with form in a modal box

I'm not sure where the problem lies so any help regarding this problem would be great. Firstly the plugins I'm using are...

jquery 1.3.2
jquery Form Plugin 2.36
Colorbox 1.3.5

I've built a login/registration script via a popup modal box and not using the iframe option on colorbox. You can login fine and when you click on register its fine, however when the registration form loads up it doesn't load the ajax document. This is the jquery code from the register.php page
         
  1. $(document).ready(function(){
    $('#register_verify_image').html('loading...');
    $('#register_verify_image').load("/randomimage.php");
    });


That doesn't work but this does when you run the function from a submit button...
          
  1.  function example_ajax_request() {
    $('#register_verify_image').html('loading...');
    $('#register_verify_image').load("/randomimage.php");
    }


I even tried running the function by including it in a script tag at the bottom of the page. Does anyone have any ideas of recommend which plug-in forum I should ask for support from?

Thanks in advance for any reply