Click here to Skip to main content
15,885,546 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 12:27
A*****13-Sep-12 12:27 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 18:55
A*****13-Sep-12 18:55 
Questionjavascript _> activex passing by reference Pin
Johan000112-Sep-12 1:40
Johan000112-Sep-12 1:40 
AnswerRe: javascript _> activex passing by reference Pin
twseitex16-Sep-12 1:09
twseitex16-Sep-12 1:09 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 0:46
Johan000117-Sep-12 0:46 
GeneralRe: javascript _> activex passing by reference Pin
twseitex17-Sep-12 8:30
twseitex17-Sep-12 8:30 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 21:38
Johan000117-Sep-12 21:38 
GeneralRe: javascript _> activex passing by reference Pin
twseitex18-Sep-12 8:58
twseitex18-Sep-12 8:58 
Javascript needs references of html DOM, of an active-x-control too.
Javascript data types not the same of c#.

Interface between active-x-c# and javascript needed --> <object ...="">

Internal of active x-control NOT needed for javascript.
So, if buf-array null so array-pointer "undefined".

buf=new array(value) --> define a pointer of array with length value
without init buf have no data type (after first set to value).

object buf = null; --> data type "object" ? like buf = new Object() ?

byte buf=new Byte() .... also not exist in standard javascript.

numObj = new Number(value) is a data type of javascript

control returns byte buf or other type in javascript interface ?

Another example: Flash has predfined interface for javascript --> data type conversion.


----------------------------------------------

IE object number

JScript

Number Object
An object representation of the number data type and placeholder for numeric constants.

numObj = new Number(value)
Arguments
numobj
Required. The variable name to which the Number object is assigned.
value
Required. The numeric value of the Number object being created.
Remarks
JScript creates Number objects as required from numerical values. It is rarely necessary to create Number objects explicitly.

The primary purposes for the Number object are to collect its properties into one object, and to allow numbers to be converted into strings via the toString method.

Properties
MAX_VALUE Property | MIN_VALUE Property | NaN Property | NEGATIVE_INFINITY Property | POSITIVE_INFINITY Property | constructor Property | prototype Property

Methods
toLocaleString Method | toString Method | valueOf Method

----------------------------------------------

IE Object Array

JScript

Array Object
Provides support for creation of arrays of any data type.

arrayObj = new Array()
arrayObj = new Array([size])
arrayObj = new Array([element0[, element1[, ...[, elementN]]]])
Arguments
arrayObj
Required. The variable name to which the Array object is assigned.
size
Optional. The size of the array. As arrays are zero-based, created elements will have indexes from zero to size -1.
element0,...,elementN
Optional. The elements to place in the array. This creates an array with n + 1 elements, and a length of n + 1. Using this syntax, you must supply more than one element.
Remarks
After an array is created, the individual elements of the array can be accessed using [ ] notation, for example:

var my_array = new Array();
for (i = 0; i < 10; i++)
{
my_array[i] = i;
}
x = my_array[4];
Since arrays in Microsoft JScript are zero-based, the last statement in the preceding example accesses the fifth element of the array. That element contains the value 4.

If only one argument is passed to the Array constructor, and the argument is a number, it must be an unsigned 32-bit integer (< approximately four billion). That value then becomes the size of the array. If the value is a number, but is less than zero or is not an integer, a run-time error occurs.

If a single value is passed to the Array constructor, and it is not a number, the length property is set to 1, and the value of the only element becomes the single, passed-in argument.

Notice that JScript arrays are sparse arrays, that is, although you can allocate an array with many elements, only the elements that actually contain data exist. This reduces the amount of memory used by the array.
GeneralRe: javascript _> activex passing by reference Pin
Johan000118-Sep-12 23:28
Johan000118-Sep-12 23:28 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 1:03
Johan000117-Sep-12 1:03 
AnswerRe: javascript _> activex passing by reference Pin
Manfred Rudolf Bihy19-Sep-12 1:02
professionalManfred Rudolf Bihy19-Sep-12 1:02 
GeneralRe: javascript _> activex passing by reference Pin
Johan000119-Sep-12 2:02
Johan000119-Sep-12 2:02 
GeneralRe: javascript _> activex passing by reference Pin
Manfred Rudolf Bihy19-Sep-12 2:06
professionalManfred Rudolf Bihy19-Sep-12 2:06 
GeneralRe: javascript _> activex passing by reference Pin
Manfred Rudolf Bihy19-Sep-12 2:12
professionalManfred Rudolf Bihy19-Sep-12 2:12 
QuestionCreate AD block functionality for my website Pin
swayam.test1.gmail10-Sep-12 19:58
swayam.test1.gmail10-Sep-12 19:58 
AnswerRe: Create AD block functionality for my website Pin
enhzflep11-Sep-12 22:06
enhzflep11-Sep-12 22:06 
QuestionHow does Google show_ads.js work? Pin
swayam.test1.gmail10-Sep-12 19:57
swayam.test1.gmail10-Sep-12 19:57 
QuestionHow to send request data from one tab to other tab which are on same jsp Pin
mayureshdh9-Sep-12 18:52
mayureshdh9-Sep-12 18:52 
Questionjavascript/jquery Pin
chaim_zvi8-Sep-12 8:50
chaim_zvi8-Sep-12 8:50 
Questionshow alert in javascript and not continue Pin
ptvce6-Sep-12 21:26
ptvce6-Sep-12 21:26 
AnswerRe: show alert in javascript and not continue Pin
J4amieC6-Sep-12 22:11
J4amieC6-Sep-12 22:11 
GeneralRe: show alert in javascript and not continue Pin
ptvce6-Sep-12 22:30
ptvce6-Sep-12 22:30 
AnswerRe: show alert in javascript and not continue Pin
MKAdeel13-Sep-12 1:22
MKAdeel13-Sep-12 1:22 
GeneralRe: show alert in javascript and not continue Pin
ptvce16-Sep-12 20:22
ptvce16-Sep-12 20:22 
QuestionPython Pygame Newbie Code Help Pin
johtnkucz31-Aug-12 12:14
johtnkucz31-Aug-12 12:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.