Page 1 of 1

Are hyperlinks into EidoGo game records possible?

Posted: Mon May 24, 2010 7:41 am
by rubin427
What I would like to be able to do is:
1) Post a game record into EidoGo (with the game record's text inline using the class="eidogo-player-auto" on a div tag).
2) Later in the same web page, make a link, such than when someone clicks the link, the EidoGo player jumps to that move number.

I don't actually think this is possible, but if it is, it would make me happy.

Thanks.

Re: Are hyperlinks into EidoGo game records possible?

Posted: Mon May 24, 2010 8:45 am
by fwiffo
It's possible, but you'll need to know some Javascript. You can't use the "automatic" method of embedding. You'll have something like this.

Code: Select all

<div id="player-container"></div>
<script type="text/javascript">
var config = {
    container: "player-container",
    ... other eidogo config options ...
};
var player = new eidogo.Player(config);
</script>

<p><a href="#" onclick="player.goTo(25); return false;">Jump to move 25</a>!</p>

If you're talking about doing it here on the forum, the answer is: "No... well, actually yes... but I don't have time."