Hey Frank,
Thanks for the response. Let me try to clarify. If I have regular
html, as below, the link doesn't open up in a new page, its added to a
soundcloud custom player. (essentially adding a song to a playlist).
This is accomplished by having its class be "sc-player")
<li>
<a href="
http://soundcloud.com/diplo/climax-diplo" class="sc-
player">Friends</a>
</li>
So if this is inside my index.php file, this song linked to from
soundcloud will start playing in my player on my webpage because the
class is "sc-player".
Now, if I try to have this functionality inside my d3 js file, by
attaching links to the rects, the links just open in a new browser, as
opposed to opening in the music player, as the class="sc-player" tells
it to do.
If I were to add onclick, would it be to the rect, or the link? How do
I follow a link inside in java script without opening a new window.
Thanks!
Sorry for the confusion.