Click here to Skip to main content
13,248,766 members (58,852 online)

JavaScript

 
QuestionUsing Jquery in DataList Pin
mrkeivan19-Sep-12 7:17
membermrkeivan19-Sep-12 7:17 
AnswerRe: Using Jquery in DataList Pin
jkirkerx25-Sep-12 19:01
memberjkirkerx25-Sep-12 19:01 
AnswerRe: Using Jquery in DataList Pin
gjllyl9-Oct-12 20:36
membergjllyl9-Oct-12 20:36 
QuestionHow to calculate difference between two dates Pin
Robymon18-Sep-12 0:46
memberRobymon18-Sep-12 0:46 
AnswerRe: How to calculate difference between two dates Pin
Joan Murt18-Sep-12 5:59
memberJoan Murt18-Sep-12 5:59 
Questionfyi: accidental find: using JavaScript DOM in browser to parse a URL Pin
BillWoodruff14-Sep-12 23:54
memberBillWoodruff14-Sep-12 23:54 
AnswerRe: fyi: accidental find: using JavaScript DOM in browser to parse a URL Pin
ziggyfish10-Oct-12 7:26
memberziggyfish10-Oct-12 7:26 
Questiongoogle map splite write problem Pin
chogrf13-Sep-12 3:48
memberchogrf13-Sep-12 3:48 
QuestionFastest way to select all elements in a *ListBox* Pin
A*****12-Sep-12 20:32
memberA*****12-Sep-12 20:32 
AnswerRe: Fastest way to select all elements in a *ListBox* Pin
BobJanova13-Sep-12 0:04
memberBobJanova13-Sep-12 0:04 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 13:27
memberA*****13-Sep-12 13:27 
GeneralRe: Fastest way to select all elements in a *ListBox* Pin
A*****13-Sep-12 19:55
memberA*****13-Sep-12 19:55 
Questionjavascript _> activex passing by reference Pin
Johan000112-Sep-12 2:40
memberJohan000112-Sep-12 2:40 
AnswerRe: javascript _> activex passing by reference Pin
twseitex16-Sep-12 2:09
membertwseitex16-Sep-12 2:09 
Active X for IE

IE knows ID and NAME, but use ID not directly.

CSDCtrlClass. ..... useable only for IE



// +++++ get reference for all browsers
function GetReference(X00)
// X00 string, value of ID or NAME
// returns null in case of error
// returns never undefined
{
var X01=null;
var X02=false;

if((X00!=null)&&(X00!=undefined))
{if(X00.length>0)
{
// +++++
X02=..... // code to check only IE

// +++++ 1. try
if(X02){X01=window[X00];} // only if exactly IE
else{X01=document[X00];} // non IE
if(X01==undefined){X01=null;} // set reference undefined to null

// +++++ 2. try
if(X01==null)
{
X01=document.getElementById(X00);
if(X01==undefined){X01=null;} // set reference undefined to null
if(X01!=null)
{if(X01.id==undefined)
{X01=null;}
}
}

// +++++ 3. try
if(X01==null)
{
X01=document.getElementsByName(X00);
if(X01==undefined){X01=null;} // set reference undefined to null
if(X01!=null)
{if(X01.name==undefined)
{X01=null;}
}
}
}
}

return X01;
}

<object id="CSDCtrlClass" classid="CLSID:B228B13B-AD31-4523-AD58-5D52553EEC47" width="100" height="100">



var PointerOfActiveXObject=GetReference("CSDCtrlClass");
if(PointerOfActiveXObject!=null)
{PointerOfActiveXObject.InitScannerExternal();

// ActiveX-control must support Javascript interface (an HTML-DOM)
// e.g. InitScannerExternal() callable javascript function
// e.g. bInitKillScannerExternal supported javacript property

// for every call of any function of interface use an own try-catch

// try
// {CSDCtrlClass.InitScannerExternal();
// try
// {CSDCtrlClass.bInitKillScannerExternal = 1;}
// catch(e2)
// {...}
// }
// catch(e1)
// {....}
....
}



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


Using of ClassID see in this forum "Progress Bar 3:33 31 Aug '12 " entry 3:18 4 Sep '12
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 1:46
memberJohan000117-Sep-12 1:46 
GeneralRe: javascript _> activex passing by reference Pin
twseitex17-Sep-12 9:30
membertwseitex17-Sep-12 9:30 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 22:38
memberJohan000117-Sep-12 22:38 
GeneralRe: javascript _> activex passing by reference Pin
twseitex18-Sep-12 9:58
membertwseitex18-Sep-12 9:58 
GeneralRe: javascript _> activex passing by reference Pin
Johan000119-Sep-12 0:28
memberJohan000119-Sep-12 0:28 
GeneralRe: javascript _> activex passing by reference Pin
Johan000117-Sep-12 2:03
memberJohan000117-Sep-12 2:03 
AnswerRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 2:02
mvpManfred R. Bihy19-Sep-12 2:02 
GeneralRe: javascript _> activex passing by reference Pin
Johan000119-Sep-12 3:02
memberJohan000119-Sep-12 3:02 
GeneralRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 3:06
mvpManfred R. Bihy19-Sep-12 3:06 
GeneralRe: javascript _> activex passing by reference Pin
Manfred R. Bihy19-Sep-12 3:12
mvpManfred R. Bihy19-Sep-12 3:12 
QuestionCreate AD block functionality for my website Pin
swayam.test1.gmail10-Sep-12 20:58
memberswayam.test1.gmail10-Sep-12 20:58 
AnswerRe: Create AD block functionality for my website Pin
enhzflep11-Sep-12 23:06
memberenhzflep11-Sep-12 23:06 
QuestionHow does Google show_ads.js work? Pin
swayam.test1.gmail10-Sep-12 20:57
memberswayam.test1.gmail10-Sep-12 20:57 
QuestionHow to send request data from one tab to other tab which are on same jsp Pin
mayureshdh9-Sep-12 19:52
membermayureshdh9-Sep-12 19:52 
Questionjavascript/jquery Pin
chaim_zvi8-Sep-12 9:50
memberchaim_zvi8-Sep-12 9:50 
Questionshow alert in javascript and not continue Pin
ptvce6-Sep-12 22:26
memberptvce6-Sep-12 22:26 
AnswerRe: show alert in javascript and not continue Pin
J4amieC6-Sep-12 23:11
memberJ4amieC6-Sep-12 23:11 
GeneralRe: show alert in javascript and not continue Pin
ptvce6-Sep-12 23:30
memberptvce6-Sep-12 23:30 
AnswerRe: show alert in javascript and not continue Pin
MKAdeel13-Sep-12 2:22
memberMKAdeel13-Sep-12 2:22 
GeneralRe: show alert in javascript and not continue Pin
ptvce16-Sep-12 21:22
memberptvce16-Sep-12 21:22 
QuestionPython Pygame Newbie Code Help Pin
johtnkucz31-Aug-12 13:14
memberjohtnkucz31-Aug-12 13:14 
QuestionProgress Bar Pin
Manish K. Agarwal31-Aug-12 4:33
memberManish K. Agarwal31-Aug-12 4:33 
AnswerRe: Progress Bar Pin
C-War1-Sep-12 5:50
memberC-War1-Sep-12 5:50 
GeneralRe: Progress Bar Pin
Manish K. Agarwal2-Sep-12 20:22
memberManish K. Agarwal2-Sep-12 20:22 
AnswerRe: Progress Bar Pin
twseitex2-Sep-12 9:24
membertwseitex2-Sep-12 9:24 
GeneralRe: Progress Bar Pin
Manish K. Agarwal2-Sep-12 20:51
memberManish K. Agarwal2-Sep-12 20:51 
GeneralRe: Progress Bar Pin
twseitex4-Sep-12 4:18
membertwseitex4-Sep-12 4:18 
Questionget the checkbox index or table row index with javascript Pin
osmanjan30-Aug-12 14:01
memberosmanjan30-Aug-12 14:01 
AnswerRe: get the checkbox index or table row index with javascript Pin
enhzflep30-Aug-12 14:26
memberenhzflep30-Aug-12 14:26 
GeneralRe: get the checkbox index or table row index with javascript Pin
osmanjan30-Aug-12 14:45
memberosmanjan30-Aug-12 14:45 
GeneralRe: get the checkbox index or table row index with javascript Pin
enhzflep30-Aug-12 15:36
memberenhzflep30-Aug-12 15:36 
GeneralRe: get the checkbox index or table row index with javascript Pin
osmanjan30-Aug-12 20:51
memberosmanjan30-Aug-12 20:51 
GeneralRe: get the checkbox index or table row index with javascript Pin
BobJanova30-Aug-12 23:48
memberBobJanova30-Aug-12 23:48 
GeneralRe: get the checkbox index or table row index with javascript Pin
enhzflep31-Aug-12 0:18
memberenhzflep31-Aug-12 0:18 
AnswerRe: get the checkbox index or table row index with javascript Pin
enhzflep31-Aug-12 0:24
memberenhzflep31-Aug-12 0:24 
GeneralRe: get the checkbox index or table row index with javascript Pin
kmoorevs28-Sep-12 7:07
memberkmoorevs28-Sep-12 7:07 

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.


Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 15 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid