Hello, I have signed up just now. My question is about a plugin Oembed.js.

I have created a simple wall post script which have embedded video url features.
Video is embedding but my other jquery script not working well like image uploading and auto suggestion script. And when i try to upload image it again throw an


1. Uncaught TypeError: Cannot read property 'code' of null

2. Unsafe JavaScript attempt to access frame with URL http://localhost:8080/facebook /user_index1.php?id=7 from frame with URL http://www.youtube.com/embed/qQ4pFarbVzo?feature=oembed. Domains, protocols and ports must match.
[jquery.form] terminating; zero elements found by selector





Jquery code:

<script type="text/javascript">
$(document).ready(function(){
$("#stexpand<?php echo $msg_id;?>").oembed("<?php echo $orimessage;?>",{maxWidth: 400, maxHeight: 300});
});
</script>


Omembed.js source:http://wall.9lessons.info/js/jquery.oembed.js


Where php variable '$orimessage' come from a textbox.



First try to solve 'code' of null error then i will ask other problems.