Texas Instruments TI-Nspire CX CAS TINSPIRE-CX-CAS Merkblatt

Produktcode
TINSPIRE-CX-CAS
Seite von 603
500 Embedding Documents in Web Pages
src="http://education.ti.com/html/nspireplayer/3.2.0/application/js/webnspireapi
.js"></script> <script src="http://www.java.com/js/deployJava.js"></script>
Link Example
Use the following code to create links to either .tns or .tnsp files.
Syntax
<a href="javascript:openDocument('YOUR_APPLET_ID', 'PLAYER_
DOCUMENT_URL', 'CARD_ID')"> MY LINK </a>
Where:
- YOUR_APPLET_ID is required
- PLAYER_DOCUMENT_URL is required
- CARD_ID is optional
Example
<a href="javascript:openDocument('player2',
'http://education.ti.com/xchange/US/Math/Geometry/13176/Secants_
Tangents_and_Arcs.tns', '2')"> MY LINK </a>
Creating the Document Player Window
Use the following code to create a window for displaying the applet that
enables opening the Document Player when a user clicks a link.
Syntax
<script type="text/javascript">
tiCreatePlayer(
// attributes (REQUIRED)
{
id: 'YOUR_APPLET_ID', // REQUIRED
codebase: 'URL_WHERE_THE_PLAYER_IS_HOSTED', //REQUIRED
name: 'YOUR_APPLET_NAME',
},
// parameters (OPTIONAL)
{
nspirefile : 'PLAYER_DOCUMENT_URL', // This will be opened in the
beginning (Relative addressing supported)
openDoc : 'yes/no', // Hide/show open document button
cardId : '1-n', // This will open a document on the specified card, parameter