JS Help

This is my script.

<script>
function geturl() {
	var comment = window.document.comment.comment.value;
	var url = "../ajax/profile_comments.php?type=post&ajax=1&user=<?=$User?>&comment="+ escape(comment) +"&submit=Comment";
	loadpage(url);
}
function loadpage(url) {
	$('#comment').html('<br />Loading...<br /><br />');
	$('#comment').load(url);
}
</script>

My issue is whenever I post a link e.g http://www.link.com it won’t post but whenever I put http://link.com it works why is that?

I’m guessing you are on http://link.com (without the www)?

I’m not sure if adding the www would be considered cross-domain.

The script allows http://link.com

but when I add www. it just says “Loading…”

Sponsor our Newsletter | Privacy Policy | Terms of Service