Click here to Skip to main content
15,889,266 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: fyi: accidental find: using JavaScript DOM in browser to parse a URL Pin
ziggyfish10-Oct-12 6:26
ziggyfish10-Oct-12 6:26 
Questiongoogle map splite write problem Pin
chogrf13-Sep-12 2:48
chogrf13-Sep-12 2:48 
QuestionFastest way to select all elements in a *ListBox* Pin
A*****12-Sep-12 19:32
A*****12-Sep-12 19:32 
AnswerRe: Fastest way to select all elements in a *ListBox* Pin
BobJanova12-Sep-12 23:04
BobJanova12-Sep-12 23:04 
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 
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 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 
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 

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.