WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar - prevent refresh - Ajax? (6 posts)

  1. avastar
    Member
    Posted 6 years ago #

    Hi,
    I included the LastFM plugin in my sidebar, having the music started each time the user loads a page on my website. The problem is that it cuts the sound and switch to another track each time the user clicks on anything on the side, which is not really usable...
    I am looking for a way to keep the sidebar fixed (no refresh) when the user clicks on a link that changes the content in the main zone of the screen. Is it possible to do it with Ajax ? Which plugin / widget does that?
    Thankx

  2. Ivovic
    Member
    Posted 6 years ago #

    its possible to do it with ajax, but I think you're suffering buzzwordism.

    you don't just open a bottle of ajax and squeeze, unless you're house-cleaning... it needs to be built into everything at the core level.. that's not going to happen with a plugin.

    your best bet is to launch the player in another window - or try to find a theme which is heavily ajaxified already - it still won't be perfect, but it'll be better than nothing.

  3. rawalex
    Member
    Posted 6 years ago #

    Perhaps just an indication that music shouldn't be forced on an end user?

  4. avastar
    Member
    Posted 6 years ago #

    i found a way to do that very quickly with an Ajax framework called PrototypeJS. I just need to call the Updater() function, and the linked page is inserted in my target DIV section without reloading the page.
    Awesome!!!

  5. avastar
    Member
    Posted 6 years ago #

    ... I just have one remaining problem. I have one page that contains a FLV movie played with FLV player plugin (swfobject.js), but the page accessed via Ajax wouldnt show the movie, and display an error message instead: "Get the Flash player to see this player". I tried to include the swfobject.js in the page, but it doesnt solve the problem.
    Any idea?
    Thx

  6. Ivovic
    Member
    Posted 6 years ago #

    I think I remember saying something about it not being as easy as you think, to get it working flawlessly.

Topic Closed

This topic has been closed to new replies.

About this Topic