Your Time:
Our Time:

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

Sorry, but you do not have the capability to view this topic

  • Resolved
    Posted in: MusicPlay  
    • Topics: 7
    • Replies: 16
    • Total posts: 23
    Not too shy to talk
    Post count: 24
    alaahammoudeh
    Member
    2014-10-10 at 8:46 am #5646

    Hi,

    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>
    </select>

    This normal link works:

     French 

    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,
    AH

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

Comments are closed.