On Thu, 2009-11-26 at 11:26 -0500, Larry wrote:
> Could anyone show me how to access the seating position information in
> the DOM?

You can use the following javascript code to get the seat number, once
logged and sitted:

>>> var server = $.jpoker.getServer('/poker/POKER_REST');
>>> var game_id = 42;
>>> var seat = $.jpoker.getPlayer(server.url, game_id,
server.serial).seat
>>> console.log(seat);
2

And there are the following css classes set on the player seat element:
jpoker_player_self jpoker_player_seat jpoker_player_seat2 

Hope that helps.

-- 
Johan Euphrosine <pro...@aminche.com>
Development and services around Free Software
http://aminche.com/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pokersource-users mailing list
Pokersource-users@gna.org
https://mail.gna.org/listinfo/pokersource-users

Reply via email to