Click here to Skip to main content
16,011,685 members
Home / Discussions / Web Development
   

Web Development

 
QuestionIE7 - Compatibility Issue - Information for all developers Pin
Aby Thomas Varghese31-Oct-06 6:02
Aby Thomas Varghese31-Oct-06 6:02 
AnswerRe: IE7 - Compatibility Issue - Information for all developers Pin
Aby Thomas Varghese31-Oct-06 6:05
Aby Thomas Varghese31-Oct-06 6:05 
GeneralRe: IE7 - Compatibility Issue - Information for all developers Pin
Aby Thomas Varghese31-Oct-06 6:07
Aby Thomas Varghese31-Oct-06 6:07 
Questionreport viewer accuping full page size Pin
shashank Neelagiri31-Oct-06 1:23
shashank Neelagiri31-Oct-06 1:23 
AnswerRe: report viewer accuping full page size Pin
Laxmikant Lad31-Oct-06 2:45
Laxmikant Lad31-Oct-06 2:45 
GeneralRe: report viewer accuping full page size Pin
shashank Neelagiri31-Oct-06 23:33
shashank Neelagiri31-Oct-06 23:33 
Questiondocument map width in reporting services Pin
shashank Neelagiri31-Oct-06 1:18
shashank Neelagiri31-Oct-06 1:18 
Questionreplace a div with another div Pin
g00fyman31-Oct-06 0:43
g00fyman31-Oct-06 0:43 
hi all,

i am writing a custom server control for asp.net and i need to implement some javascript to replace a hidden div with a div that is already visible then set the replaced div to visible.

at the moment it is working but when i simply toggle visibiity the div is not displayed at the same position within its parent div

this is my javascript include.

function ShowPanel(panel)
{
  for(var i = 0; i < resources.length; i++)
  {
    var res = resources[i];
    var obj = document.getElementById(res);
    if(obj)
    {    
      obj.style.visibility = 'hidden';
    }
  }
  panel = document.getElementById(panel);  
  if(panel) { panel.style.visibility = "visible"; }  
}


and this is my output for the javascripts vars
<script type="text/javascript">
<!--
var resources = new Array('ToolbarStart', 'ToolbarBackground', 'ToolbarEnd', 'ToolbarSeperator', 'ToolbarHome', 'ToolbarCopy', 'ToolbarDelete', 'ToolbarFolderUp', 'ToolbarMove', 'ToolbarNewFile', 'ToolbarNewFolder', 'ToolbarRename', 'ToolbarUpload', 'ToolbarDownload', 'ToolbarZip', 'ToolbarAbout', 'ToolbarSettings', 'ToolbarSaveAsXml', 'ToolbarPrintStructure', 'ToolbarFileSystem');
var useTransitions = true;// --></script>


and this is the divs i want to replace with each other

<div id="ActionsPanel">
				<div>
					<div id="ToolbarUpload" style="visibility:hidden;top:5px;left:5px;z-index:3;">
						blah blah blah
					</div><div id="ToolbarDownload" style="visibility:hidden;top:5px;left:5px;z-index:4;">

						blah blah blah
					</div><div id="ToolbarRename" style="visibility:hidden;top:5px;left:5px;z-index:5;">
						blah blah blah
					</div>
				</div>
			</div>


any help please?

regards,

g00fy
AnswerRe: replace a div with another div Pin
Guffa31-Oct-06 1:24
Guffa31-Oct-06 1:24 
GeneralRe: replace a div with another div Pin
g00fyman31-Oct-06 11:49
g00fyman31-Oct-06 11:49 
GeneralRe: replace a div with another div Pin
Guffa31-Oct-06 13:09
Guffa31-Oct-06 13:09 
Questionweb server info Pin
apoorva_raje30-Oct-06 23:53
apoorva_raje30-Oct-06 23:53 
QuestionNeed JavaScript help Pin
Rohit Saralaya30-Oct-06 3:55
Rohit Saralaya30-Oct-06 3:55 
AnswerRe: Need JavaScript help Pin
UltraCoder30-Oct-06 10:59
UltraCoder30-Oct-06 10:59 
GeneralRe: Need JavaScript help Pin
George L. Jackson30-Oct-06 11:55
George L. Jackson30-Oct-06 11:55 
GeneralRe: Need JavaScript help Pin
Rohit Saralaya30-Oct-06 16:55
Rohit Saralaya30-Oct-06 16:55 
QuestionJavascript Comments not Recognised? Pin
Brady Kelly29-Oct-06 21:57
Brady Kelly29-Oct-06 21:57 
AnswerRe: Javascript Comments not Recognised? Pin
Guffa30-Oct-06 6:00
Guffa30-Oct-06 6:00 
AnswerRe: Javascript Comments not Recognised? Pin
George L. Jackson30-Oct-06 12:25
George L. Jackson30-Oct-06 12:25 
GeneralRe: Javascript Comments not Recognised? Pin
Brady Kelly30-Oct-06 17:22
Brady Kelly30-Oct-06 17:22 
QuestionWeb Crawlers and User Agents [modified] Pin
Clickok29-Oct-06 16:39
Clickok29-Oct-06 16:39 
AnswerRe: Web Crawlers and User Agents Pin
Daniel Turini29-Oct-06 23:46
Daniel Turini29-Oct-06 23:46 
GeneralRe: Web Crawlers and User Agents Pin
Clickok30-Oct-06 4:57
Clickok30-Oct-06 4:57 
Question40000 Records only, Make my search page work so slow and page is stuck... Pin
Hy Chanhan29-Oct-06 15:19
professionalHy Chanhan29-Oct-06 15:19 
AnswerRe: 40000 Records only, Make my search page work so slow and page is stuck... Pin
Christian Graus29-Oct-06 15:42
protectorChristian Graus29-Oct-06 15:42 

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.