nannypoh
08-14-2003, 07:06 AM
I hope someone can help me identify the problem.
Below are my code. This code is working on development server. However, it's only work on my computer from live server. I tested on other computer and it didn't work. Anybody can point out the issues might be I will be really thankful. Note: all computers have the same IE 6.0 run under Window XP.
<script language="javascript">
function showEngine(target) {
if (target == 2 )
{
showSection('EngineData')
showSection('dieselEngine')
showSection('dieselFuel')
}
else
if (target == 6)
{
showSection('EngineData')
showSection('outboardEngine')
showSection('outboardFuel')
}
}
function showSection(target){
//alert(target);
document.getElementById(target).style.visibility = 'visible'
document.getElementById(target).style.position = 'relative'
}
Devserver:everything working good.
LiveServer:the section didn't visible. no error message.
The funny part was if I add "alert(target)" to showSection function, then it works!!! :confused:
Below are my code. This code is working on development server. However, it's only work on my computer from live server. I tested on other computer and it didn't work. Anybody can point out the issues might be I will be really thankful. Note: all computers have the same IE 6.0 run under Window XP.
<script language="javascript">
function showEngine(target) {
if (target == 2 )
{
showSection('EngineData')
showSection('dieselEngine')
showSection('dieselFuel')
}
else
if (target == 6)
{
showSection('EngineData')
showSection('outboardEngine')
showSection('outboardFuel')
}
}
function showSection(target){
//alert(target);
document.getElementById(target).style.visibility = 'visible'
document.getElementById(target).style.position = 'relative'
}
Devserver:everything working good.
LiveServer:the section didn't visible. no error message.
The funny part was if I add "alert(target)" to showSection function, then it works!!! :confused: