I'm having a jquery mobile page with JavaScript inside. the problem is the JavaScript doesn't work unless the page is refreshed. here is my code:
<script language="javascript" type="text/javascript">
var url = window.location.search.substring(1);
jQuery(function($){
$('#mydiv').load('real_news.asp?'+url);
});
</script>