Click here to Skip to main content
15,886,919 members
Home / Discussions / JavaScript
   

JavaScript

 
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 
QuestionProgress Bar Pin
Manish K. Agarwal31-Aug-12 3:33
Manish K. Agarwal31-Aug-12 3:33 
AnswerRe: Progress Bar Pin
C-War1-Sep-12 4:50
C-War1-Sep-12 4:50 
GeneralRe: Progress Bar Pin
Manish K. Agarwal2-Sep-12 19:22
Manish K. Agarwal2-Sep-12 19:22 
AnswerRe: Progress Bar Pin
twseitex2-Sep-12 8:24
twseitex2-Sep-12 8:24 
GeneralRe: Progress Bar Pin
Manish K. Agarwal2-Sep-12 19:51
Manish K. Agarwal2-Sep-12 19:51 
GeneralRe: Progress Bar Pin
twseitex4-Sep-12 3:18
twseitex4-Sep-12 3:18 
create an activeX object

don't forget
'OBJECT ID="' ... + '"'
+ ' CLASSID="' .... + '"'
+ ' TYPE="' .... + '"'

....

e.g.
"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"; Mediaplayer Class-ID
"application/x-oleobject" type of Class-ID and media


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

create object directly, not with innerHTML.

X12=document.createElement(....);
X13=document.body.appendChild(X12);

try
{
X13.classid=....
X13.type=....
}
catch(e)
{
...
}

or

X12=document.createElement("<object id="..." classid="..."">); // e.g IE
X13=document.body.appendChild(X12);

after that maybe readystate is 4, but
pointer X13 must be !=null and !=undefined
X13.property too e.g. X14.classid

at this point activex exists (installed an callable)

e.g. Mediapalyer and try ..catch

// - - - check MediaPlayer createable, only IE
function checkMediaPlayer()
{
var X00=false;
var X01;

// ----- only if IE exist

// ----- create
X01=document.createElement("OBJECT");
// X01 mus be !=null and !=undefinded

// ----- set object try-catch so no place for readystate
try
{
// attention: activex must be allowed by user

// maybe NOT possible
// X01.classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95";
// X01.type="application/x-oleobject";
// X01.filename= ..... // dummy-wmv 1 sec must exists !

// maybe only that possible
X01.type="application/x-mplayer2"; // EMBED and not activeX
X01.filename= ..... // dummy-wmv 1 sec must exist !
}
catch(e1)
{X00=false;}

// ----- no append to body so no remove from body

if(X00)
{
try{X01.filename='';}
catch(e3){X00=false;}
}

// ----- clear object
X01=null; // no append to body so no remove from body

return X00;
}
Questionget the checkbox index or table row index with javascript Pin
osman makhtoom30-Aug-12 13:01
professionalosman makhtoom30-Aug-12 13:01 
AnswerRe: get the checkbox index or table row index with javascript Pin
enhzflep30-Aug-12 13:26
enhzflep30-Aug-12 13:26 
GeneralRe: get the checkbox index or table row index with javascript Pin
osman makhtoom30-Aug-12 13:45
professionalosman makhtoom30-Aug-12 13:45 
GeneralRe: get the checkbox index or table row index with javascript Pin
enhzflep30-Aug-12 14:36
enhzflep30-Aug-12 14:36 
GeneralRe: get the checkbox index or table row index with javascript Pin
osman makhtoom30-Aug-12 19:51
professionalosman makhtoom30-Aug-12 19:51 
GeneralRe: get the checkbox index or table row index with javascript Pin
BobJanova30-Aug-12 22:48
BobJanova30-Aug-12 22:48 
GeneralRe: get the checkbox index or table row index with javascript Pin
enhzflep30-Aug-12 23:18
enhzflep30-Aug-12 23:18 
AnswerRe: get the checkbox index or table row index with javascript Pin
enhzflep30-Aug-12 23:24
enhzflep30-Aug-12 23:24 
GeneralRe: get the checkbox index or table row index with javascript Pin
kmoorevs28-Sep-12 6:07
kmoorevs28-Sep-12 6:07 
Questionuse JQuery in C# code Pin
GSingh-Developer29-Aug-12 7:26
GSingh-Developer29-Aug-12 7:26 
AnswerRe: use JQuery in C# code Pin
jkirkerx29-Aug-12 8:01
professionaljkirkerx29-Aug-12 8:01 
GeneralRe: use JQuery in C# code Pin
GSingh-Developer29-Aug-12 8:26
GSingh-Developer29-Aug-12 8:26 
GeneralRe: use JQuery in C# code Pin
jkirkerx29-Aug-12 9:49
professionaljkirkerx29-Aug-12 9:49 
AnswerRe: use JQuery in C# code Pin
BobJanova30-Aug-12 0:18
BobJanova30-Aug-12 0:18 
GeneralRe: use JQuery in C# code Pin
jkirkerx30-Aug-12 7:34
professionaljkirkerx30-Aug-12 7:34 
SuggestionText editor Pin
Nolee K28-Aug-12 2:57
Nolee K28-Aug-12 2:57 
GeneralRe: Text editor Pin
Pete O'Hanlon28-Aug-12 3:06
mvePete O'Hanlon28-Aug-12 3:06 

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.