Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9144043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:10:21+00:00 2026-06-17T10:10:21+00:00

Basically, I have written a Spotify app thats includes only a single page (index.html)

  • 0

Basically, I have written a Spotify app thats includes only a single page (index.html) with all the links triggering javascript onclick() functions that manipulate the DOM. For example, I show an initial 4 albums and have a “See More albums” link that loads and renders the rest of the albums. I did this so the initial 4 albums would only load once. I didn’t realize there was a limitation on pushState()until I read the fine print. Spotify says you will get a “security exception” if you try to use pushState(). I prefer not re-writing the app to load new html pages on each link click. I tried their method of using the full URI (eg. <a href='spotify:app:chirp:best_of:index'>), but it behaves erratically (code). Recommendations on a general approach? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:10:22+00:00Added an answer on June 17, 2026 at 10:10 am

    pushState is not supported in Spotify apps. If you want to create a new entry in the history so that if the user clicks on the back button it returns to the previous state, then you should have a link like:

    <a href='spotify:app:chirp:best_of:2009'>See More</a>
    

    And you would detect when the user has clicked by observing the models.EVENT.ARGUMENTSCHANGED event.

    You can have a look at the Spotify App Tutorial on GitHub which uses a similar approach.

    If you don’t want to create a new entry, but just append some more albums, then there is no need to navigate to any new URI, then execute your seeMoreAlbumsOfTheYearOnClick function as currently.

    Note that if you don’t pretend to navigate to any new URL you should pass the event variable to your seeMoreAlbumsOfTheYearOnClick function and call event.preventDefault();. Another possibility is to use a button element instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written an app that basically shows a bouncing ball on the screen.
I have written a custom class for overriding the seek method of QSlider. Basically
I have a custom component called ButtonPanel written in Actionscript. Basically it's just a
Basically I have written a game plugin that will allow server admins to update
I have written an application that basically gathers up a bunch of text and
I have written a script which is basically a small wysiwyg signature generator for
Basically I have written a script to allow the user in the back end
I have written a little Excel VBA report tool for my iPhone App sales.
I have written a mail-processing program, which basically slaps a template on incoming mail
I have a custom layout that I have written that basically just displays a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.