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

JavaScript

 
QuestionHow to restrict user not to enter <> characters in text box. Pin
InderK15-Sep-11 0:04
InderK15-Sep-11 0:04 
AnswerRe: How to restrict user not to enter characters in text box. Pin
twseitex17-Sep-11 9:01
twseitex17-Sep-11 9:01 
AnswerRe: How to restrict user not to enter characters in text box. Pin
berba19-Sep-11 21:05
berba19-Sep-11 21:05 
AnswerRe: How to restrict user not to enter characters in text box. Pin
John Y.29-Sep-11 9:56
John Y.29-Sep-11 9:56 
QuestionUsing Java Script: Pin
amolraj1114-Sep-11 23:57
amolraj1114-Sep-11 23:57 
AnswerRe: Using Java Script: Pin
twseitex16-Sep-11 9:13
twseitex16-Sep-11 9:13 
QuestionI Frame code to replace "name" attribute Pin
PDTUM14-Sep-11 6:29
PDTUM14-Sep-11 6:29 
AnswerRe: I Frame code to replace "name" attribute Pin
twseitex16-Sep-11 9:40
twseitex16-Sep-11 9:40 
Hi,



var newPage = document.getElementById('iFrame'); // get a pointer of object with ID attribute and value "iframe"

if(newPage!=null) // check pionter !
{
// do domething
}

// so put this code in a function

function getPointerOfObject_ID(stID)
// stID value of ID attribute, not of name attribute
{
var ptOfObject=null;

if(stID!=null)
{if(stID!="")
{ptOfObject=document.getElementById(stID);}
}

return ptOfObject;
}





// only an example





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

function ChangePage(newPage)
// newPage not in use
{
iFrame.src = 'iHome.aspx'
// Object with pointer iFrame must exists
// Object with pointer iFrame must have property .src

// to get a pointer of an object see getPointerOfObject_ID(stID)
};

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

menu1[0] = '
Home';

ChangePage(newPage) --> newPage not in use inside of ChangePage()
ChangeLabel(home) --> home is a string var ? ID attribute of A-tag not exist.

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

to get pointer with ID or NAME

// +++++ check Microsoft Internet Explorer
function fuIEexist()
{
var X00=false;
X00=(navigator!=null);
if(X00){X00=(navigator.appName!=null);}
if(X00){X00=(navigator.appName.length>0);}
if(X00){X00=(navigator.appName.indexOf("Microsoft")!=-1);}

return X00; // true for exist
}

// +++++ get reference
function fuGetReference(X00)
// X00 string, value of ID or NAME
{
var X01=null;

if(X00!=null)
{if(X00.length>0)
{
if(fuIEexist())
{X01=window[X00];
if(X01==null){X01=document.getElementById(X00);}
if(X01==null){X01=document.getElementsByName(X00);}
}
else
{
X01=document[X00];
if(X01==null){X01=document.getElementById(X00);}
if(X01==null){X01=document.getElementsByName(X00);}
}
}
}

return X01;
}
QuestionReading a file in local drive using Java script Pin
shir_k13-Sep-11 19:49
shir_k13-Sep-11 19:49 
AnswerRe: Reading a file in local drive using Java script Pin
Graham Breach13-Sep-11 20:26
Graham Breach13-Sep-11 20:26 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k13-Sep-11 22:11
shir_k13-Sep-11 22:11 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 0:06
Graham Breach14-Sep-11 0:06 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 0:51
shir_k14-Sep-11 0:51 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 1:12
Graham Breach14-Sep-11 1:12 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 1:56
shir_k14-Sep-11 1:56 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 2:05
shir_k14-Sep-11 2:05 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 2:44
Graham Breach14-Sep-11 2:44 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Dec-11 18:09
shir_k14-Dec-11 18:09 
AnswerRe: Reading a file in local drive using Java script Pin
Matt Meyer14-Sep-11 3:22
Matt Meyer14-Sep-11 3:22 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 4:09
Graham Breach14-Sep-11 4:09 
GeneralRe: Reading a file in local drive using Java script Pin
Matt Meyer14-Sep-11 4:22
Matt Meyer14-Sep-11 4:22 
QuestionDynamic Iframe Resizing on Multiple Layers Pin
Phatinox13-Sep-11 12:24
Phatinox13-Sep-11 12:24 
AnswerRe: Dynamic Iframe Resizing on Multiple Layers Pin
twseitex16-Sep-11 9:51
twseitex16-Sep-11 9:51 
AnswerRe: Dynamic Iframe Resizing on Multiple Layers Pin
greatghoul28-Sep-11 0:23
greatghoul28-Sep-11 0:23 
QuestionHow to add a Second Parameter Pin
Vimalsoft(Pty) Ltd12-Sep-11 21:58
professionalVimalsoft(Pty) Ltd12-Sep-11 21:58 

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.