views:

27

answers:

2

I'm creating a website in wordpress. I have a music player in it as its for a music artist. But I want the player to continue playing while the users move through the website. I dont want to use iframe as i want the url updated so the page can be bookmarked. Or is there any way to update the url and use iframe?

A: 

any way to update the url and use iframe

maybe you need something like this

main.html

<script type="text/javascript">
    function change_parent_url(url)
    {
    document.location=url;
    }       
</script>

player.html

 after each click (how?): parent.change_parent_url (new_url_here);

I am not sure, but I've seen similar, iframe approach on weborama.ru:

look for window.location=, maybe it helps

jonny
A: 

Somebody on the Wordpress forum asked the same question.

The best way (technically) to do this is indeed to use a CMS that supports surfing the site without page-refreshes, so using AJAX, as @jonny suggested.

jango.com seems to do this as does another site I can't remember.

If you load every page via AJAX, there's probably gonna be a drawback if you care about search-ranking .

Niels Bom