Calling off domain javascript?

Hi All:

I’m trying to write a wordpress plugin that incorporates’s B-R Linker ( functionality with my wordpress installation (if you follow the link - the B-R Linker is currently just a bookmarketlet - I want to have it ran automatically when hitting submit); however it does not seem to be working:

I tried to bind the javascript code to the “Submit” button on Wordpress to no avail; however if I replace the sr_link function’s code with ‘alert(“Testing”);’ it works - I believe it may be an intentional “defect” of javascript to not allow running off domain scripts. If this is the case - is there any way to get around this? or can anyone tell if I am doing anything wrong? Thanks so much.


   function sr_link() { 
       var s=document.createElement("script");
       var rand_param =    "rand=" +  Math.floor(Math.random()*10000);
       s.src=""+ rand_param;

 jQuery(document).ready(function() {
    jQuery('#publish').bind('click', function()