Your Time:
Our Time:

How to create ajax-friendly redirects without the usual html link tag

  • Resolved
    Posted in: MusicPlay  
    • Topics: 7
    • Replies: 16
    • Total posts: 23
    October 10, 2014 at 8:46 am #5646


    I am trying to create an HTML select list that has a few options. When clicking on one, I would like to redirect the user to a page in the MusicPlay site, but without interrupting music playing in the audio bar. I have tried window.location but that doesn’t work; it redirects and reloads the whole page):

    <select onchange=”window.location = this.options[this.selectedIndex].value;”>
    <option value=””>– Language –</option>
    <option value=”/french”>French</option>
    <option value=”/english”>English</option>

    This normal link works:

    But this does not (I tried using window.location again on a normal link...):

    Is there some CSS or javascript file I need to change to make the select list work? Or what would you suggest?

    Thanks for your help,

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.