0
votes

I was advised to post this here by SoundCloud support - I hope you can help. I want to use the html5 widget on my site and access different sets but, rather than have multiple widgets on a page, I want to be able to reload the widget with a different set by clicking on different links on the page. It seems you can do this using the API and I have been playing with w.soundcloud.com/player/api_playground.html and have got it to load my sets by putting the api.soundclound.com url in the appropriate box and clicking "reload widget".

I really don’t know javascript at all so I was hoping to copy the source from that page and try and edit it to do what I want. However, I can’t even get the page to load when it is hosted on my site:

http://www.indigomusic.co.uk/SCtest/playground.htm

I downloaded api.js and put it in a folder on my server but I’m obviously missing step(s). I’ve read http://developers.soundcloud.com/docs/html5-widget#introduction but it obviously assumes a level of javascript knowledge that I just don’t have...

...are you able to help?

Many thanks,

Dan Selby

1

1 Answers

0
votes

You don't have do use the Widget API for that necessarily. Here is a simple example using jQuery and the SoundCloud SDK doing what you described: http://dl.dropbox.com/u/12477597/Temporary/dynamic-widget-example.html

Hope it Helps.