Texas Instruments TI-Nspire CX CAS TINSPIRE-CX-CAS Merkblatt
![Texas Instruments](https://files.manualsbrain.com/attachments/b46f99d826b2b0e0e5f558c5fb6483942eb9216b/common/fit/150/50/c15ea36eb1fb1cce99a3b94668675bfc78ce832d8d727d9a7bb51a125510/brand_logo.gif)
Produktcode
TINSPIRE-CX-CAS
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.
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
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
openDoc : 'yes/no', // Hide/show open document button
cardId : '1-n', // This will open a document on the specified card, parameter