Click here to Skip to main content
15,895,256 members
Home / Discussions / Web Development
   

Web Development

 
Questionplease sol javascript problem Pin
Vinay Dornala26-May-07 2:52
Vinay Dornala26-May-07 2:52 
AnswerRe: please sol javascript problem Pin
JimmyRopes26-May-07 3:48
professionalJimmyRopes26-May-07 3:48 
AnswerRe: please sol javascript problem Pin
Guffa27-May-07 18:59
Guffa27-May-07 18:59 
QuestionDETAILSVIEW WITH 2 COLUMNS Pin
hifiger200425-May-07 23:33
hifiger200425-May-07 23:33 
QuestionHow can I find out whether a page of iframe has been loaded completely or not? Pin
Ankur.Bakliwal25-May-07 3:38
Ankur.Bakliwal25-May-07 3:38 
AnswerRe: How can I find out whether a page of iframe has been loaded completely or not? Pin
Dmitry Khudorozhkov25-May-07 10:03
Dmitry Khudorozhkov25-May-07 10:03 
GeneralRe: How can I find out whether a page of iframe has been loaded completely or not? Pin
Ankur.Bakliwal25-May-07 18:42
Ankur.Bakliwal25-May-07 18:42 
QuestionJavascript OOP with the setInterval() Pin
chaddolan25-May-07 3:17
chaddolan25-May-07 3:17 
Can I use a javascript class method with the setInterval()? If I can use the method in the setInterval(), can some one look at this code to see what I am missing? It seems to give me an error when I call the setInterval() --> slide = setInterval("this.tableHide()", 10);

// JScript File
var slide;

function tableSlide(id, left, top, bottom, right, active)
{
this.tableId = id;
this.left = left;
this.top = top;
this.bottom = bottom;
this.right = right;
this.active = active;
this.slideInTable = slideIn;
this.slideOutTable = slideOut;
this.tableHide = hideTable;
this.tableShow = showTable;
this.currentLeft;
this.currentTop;
this.currentBottom;
this.currentRight;

if(active == 0)
{
this.currentBottom = 0;
}
else
{
this.currentBottom = bottom;
}
}

function slideIn()
{
//alert(this.tableId);
clearInterval(slide);
slide = setInterval("this.tableHide()", 10);
}

function hideTable()
{
//alert(this.tableId);
if(this.currentBottom > 0)
{
this.currentBottom = this.currentBottom - 2;
top.document.getElementById(this.tableId).style.height = this.currentBottom + "px";
}

if(this.currentBottom <= 0)
{
top.document.getElementById(this.tableId).style.display = "none";
}
}

function slideOut()
{
//alert(this.tableId);
clearInterval(slide);
slide = setInterval("this.tableShow()", 10);
}

function showTable()
{
top.document.getElementById(this.tableId).style.display = "block";
if(this.currentBottom < this.bottom)
{
this.currentBottom = this.currentBottom + 2;
top.document.getElementById(this.tableId).style.height = this.currentBottom + "px";
}

if(this.currentBottom >= this.bottom)
{
top.document.getElementById(this.tableId).style.display = "block";
}
}

var test1 = new tableSlide("test", -222, -14, 100, 100, 1);

function tableHideClick()
{
test1.slideInTable();
}

function tableShowClick()
{
test1.slideOutTable();
}

Thanks,

Chad
AnswerRe: Javascript OOP with the setInterval() Pin
Dmitry Khudorozhkov25-May-07 9:49
Dmitry Khudorozhkov25-May-07 9:49 
GeneralRe: Javascript OOP with the setInterval() Pin
chaddolan26-May-07 2:08
chaddolan26-May-07 2:08 
QuestionIIS requires object download everytime I browse to the page... Pin
Mundo Cani24-May-07 22:21
Mundo Cani24-May-07 22:21 
QuestionRestore data from datatable to database Pin
sm_78224-May-07 21:08
sm_78224-May-07 21:08 
AnswerRe: Restore data from datatable to database Pin
Mark J. Miller25-May-07 7:35
Mark J. Miller25-May-07 7:35 
Questionhelp in displaying image in Hyperlink control Pin
EEmaan24-May-07 19:45
EEmaan24-May-07 19:45 
AnswerRe: help in displaying image in Hyperlink control Pin
Mark J. Miller25-May-07 7:29
Mark J. Miller25-May-07 7:29 
QuestionIIS OUT OF PROCESS Pin
Rajkamal_dfine24-May-07 19:00
Rajkamal_dfine24-May-07 19:00 
Questionwhy this HTML code works with Hotmail while it dosnt work with Yahoo! ??!! Pin
suroor45324-May-07 14:11
suroor45324-May-07 14:11 
AnswerRe: why this HTML code works with Hotmail while it dosnt work with Yahoo! ??!! Pin
Christian Graus24-May-07 15:32
protectorChristian Graus24-May-07 15:32 
GeneralRe: why this HTML code works with Hotmail while it dosnt work with Yahoo! ??!! Pin
suroor45328-May-07 12:11
suroor45328-May-07 12:11 
QuestionSaveAs Dialog in JavaScript Pin
hamidreza_buddy24-May-07 8:23
hamidreza_buddy24-May-07 8:23 
AnswerRe: SaveAs Dialog in JavaScript Pin
Dmitry Khudorozhkov25-May-07 9:45
Dmitry Khudorozhkov25-May-07 9:45 
QuestionManipulate server control with client script? Pin
Mundo Cani24-May-07 8:11
Mundo Cani24-May-07 8:11 
AnswerRe: Manipulate server control with client script? Pin
Christian Graus24-May-07 15:39
protectorChristian Graus24-May-07 15:39 
GeneralRe: Manipulate server control with client script? Pin
Mundo Cani24-May-07 22:18
Mundo Cani24-May-07 22:18 
GeneralRe: Man this is frustrating... Pin
#realJSOP24-May-07 6:25
mve#realJSOP24-May-07 6:25 

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.