Adobe 38040334 - Dreamweaver CS3 User Manual page 358

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Arguments
lv
The
argument is the long integer value that you want to convert to a
lv
Returns
A
structure that contains the integer that was passed to the function as an argument.
JSVal
JSVal JS_ObjectToValue()
Description
This function stores an object return value in a
to define its contents.
JS_SetElement()
Arguments
JSObject *obj
The
argument is a pointer to the
obj
Returns
A
structure that contains the object that you passed to the function as an argument.
JSVal
char *JS_ObjectType()
Description
Given an object reference, the
object is a DOM object, the function returns "
returns "
". For an array object, the function returns "
Element
Note: Do not modify the returned buffer pointer or you might corrupt the data structures of the JavaScript interpreter.
Arguments
JSObject *obj
Typically, this argument is passed in and converted using the
Returns
A pointer to a null-terminated string. The caller should not free this string when it finishes.
JSObject *JS_NewArrayObject()
Description
This function creates a new object that contains an array of
Arguments
,
JSContext *cx
unsigned int length
• The
argument is the opaque
cx
• The
argument is the number of elements that the array can hold.
length
. Use
JSVal
object that you want to convert to a
JSObject
function returns the class name of the object. For example, if the
JS_ObjectType()
". If the object is a node in the document, the function
Document
,
jsval *v
pointer that passes to the JavaScript function.
JSContext
structure.
JSVal
JS_ NewArrayObject()
JSVal
".
Array
function.
JS_ValueToObject()
.
JSVals
DREAMWEAVER CS3
Extending Dreamweaver
to create an array object; use
structure.
352

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents