It is currently Fri Apr 19, 2024 8:32 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
Offline
 Post subject: Are hyperlinks into EidoGo game records possible?
Post #1 Posted: Mon May 24, 2010 7:41 am 
Lives in gote

Posts: 338
Location: Las Vegas, NV
Liked others: 163
Was liked: 62
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.

Top
 Profile  
 
Offline
 Post subject: Re: Are hyperlinks into EidoGo game records possible?
Post #2 Posted: Mon May 24, 2010 8:45 am 
Gosei
User avatar

Posts: 1435
Location: California
Liked others: 53
Was liked: 171
Rank: Out of practice
GD Posts: 1104
KGS: 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:
<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."

_________________
KGS 4 kyu - Game Archive - Keyboard Otaku

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group