473,574 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code works in Firefox doesnt work in IE

5 New Member
I've two frames in a page. On the left Frame i've buttons , if we click on button the particular pages will be loaded in the middle Frame.

This code works perfectly in Firefox but not in IE ...
Please help me to resolve this issue..

[html]
<html>

<head>
<!-- Infrastructure code for the tree -->

<title>leftfram e</title>
<style type="text/css">

.initialalgn{fo nt-weight:bold;bac kground-color:#315594;f ont-family:Arial,He lvetica,Verdana ;font-size:7.90pt;col or: #ffffff;width:1 60;text-align:left}

body{
font: 10pt Verdana,sans-serif;
color: navy;
}
.trigger{
cursor: auto;
cursor: auto;
}
.branch{
display: none;
margin-left: 12px;
}
img
{
border-style: none;
}
</style>
<script language="JavaS cript">
var status = 'NORMAL';
function callSetSize(inc OrDec) {
// Check if the user wants to increase the width of the Frameset
if(incOrDec == "INCREASE") {
if(status == "NORMAL") {
setSize("320");
status = "MAXIMUM";
// Hide the increase button
inc.style.visib ility = "hidden";
}
else if (status == "DECREASED" ) {
setSize("170");
status = "NORMAL";
// Show the decrease button
dec.style.visib ility = "visible";
}
else {
alert("Thats all you can maximise!!!");
}
}

// Check if the user wants to decrease the width of the Frameset
if(incOrDec == "DECREASE") {
if(status == "NORMAL") {
setSize("57");
status = "DECREASED" ;
// Hide the decrease button
dec.style.visib ility = "hidden";
}
else if (status == "MAXIMUM") {
setSize("170");
status = "NORMAL";
// Show the increase button
inc.style.visib ility = "visible";
}
else {
alert("Thats all you can minimize!!!");
}
}
}

function setSize(colValu e) {
parent.document .body.cols = colValue + ",*";
for(var i = 0; i < parent.parent.T opframe.documen t.images.length ; i++) {
if(parent.paren t.Topframe.docu ment.images[i].name == "blank_shim ") {
parent.parent.T opframe.documen t.images[i].width = colValue;
}
}
}

function changeCol(e){

for(i=1;i<6;i++ )
{
document.getEle mentById('butto n'+i).style.bac kgroundColor="# e2e2d0";
document.getEle mentById('butto n'+i).style.col or="#ee4628"
}

var el=window.event ? event.srcElemen t: e.target
if (el.tagName=="I NPUT"&&el.type= ="button"){
el.style.backgr oundColor="#ff6 000";
el.style.color= "#ffffff"
}
}

</script>
<script language="JavaS cript">
<!--
function MM_reloadPage(i nit) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Net scape")&&(parse Int(appVersion) ==4)) {
document.MM_pgW =innerWidth; document.MM_pgH =innerHeight; onresize=MM_rel oadPage; }}
else if (innerWidth!=do cument.MM_pgW || innerHeight!=do cument.MM_pgH) location.reload ();
}
MM_reloadPage(t rue);
// -->
</script>
</head>

<link href="../css/TemplateStyle.c ss" rel="stylesheet " type="text/css" >

<body marginheight="0 " marginwidth="0" topmargin="0" leftmargin="0" class="leftPane l" >
<tr>
<table width = "100%" cellpadding="0" cellspacing="0" >
<tr>
<td align = "right" width="96%" rowspan="2">&nb sp; </td>
<td align = "right" width="2%" rowspan="2">&nb sp; </td>
<td align = "right" width="2%"> <a href="#" onClick="callSe tSize('DECREASE ');" name = "dec" id = "dec" >
<img src="../images/resize1.gif" width="12" height="12" border="0" alt="Expanded Configuration Window"></a>
</td>
</tr>
<tr>
<td align = "right" width="2%" valign="top"><a href="#" onClick="callSe tSize('INCREASE ');" name = "inc" id = "inc" >
<img src="../images/resize2.gif" width="12" height="12" border="0" alt="Expanded Navigation Window"></a></td>
</tr>
</table>
</tr>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="LeftPane lnav">
<tr>
<td valign="top">


</td>
</tr>
</table>


<!-- Execution of the code that actually builds the specific tree -->
<table align="left" width = "100%" cellpadding="0" cellspacing="0" >
<tr>
<td align="left">
<div class="trigger" onClick="showBr anch('branch1') ;swapFolder('fo lder1')">
<table border=0 cellpadding=0 cellspacing=0>
<td align="left" class=smaller height=25>
<input type="button" id="button1" value="Manage page" class="initiala lgn" >
</td>
</table>
</div>

<span class="branch" id="branch1">
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td class="td" height=20>
<a href="clientgri d.html" target="MiddleF rame" ><input type="button" id="button2" value="Client Grid" class="initiala lgn"></a></td>
</tr>

<tr>
<td class="td" height=20>
<a href="devicegri d.html" target="MiddleF rame"><input type="button" id="button3" value="Device Grid(Zone Definition)" class="initiala lgn" ></a>
</td>
</tr>

</table>
</span>
</td>
</tr>



<tr>
<td>
<div class="trigger" onClick="showBr anch('branch2') ;swapFolder('fo lder2')">
<table border=0 cellpadding=0 cellspacing=0>
<td class="smaller" height=25>
<input type="button" id="button4" value="Manage Environment" class="initiala lgn" >
</td>
</table>
</div>

<span class="branch" id="branch2">
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td class="td" height="20">
<a href="class.htm l" target="MiddleF rame"><input type="button" id="button5" value="Class" class="initiala lgn" ></a>
</td>
</tr>
</table>
</span>
</td>
</tr>

</table>
</td>
</tr>



<script>
function swapFolder(img)
{
objImg = document.getEle mentById(img);
}

function showBranch(bran ch)
{
var objBranch = document.getEle mentById(branch ).style;

if(objBranch.di splay=="block")
{
objBranch.displ ay="none";
}
else
{
document.getEle mentById('branc h1').style.disp lay="none";
document.getEle mentById('branc h2').style.disp lay="none";

objBranch.displ ay="block";
}

}
</script>
</body>
</html>[/html]
Mar 9 '08 #1
1 2677
nomad
664 Recognized Expert Contributor
My two cents...
I would tend to avoid frames. Use templates instead.
If you have say 100 pages can you imagine change all the frames?
With a template you just make on change and the whole site is updated.


nomad
Mar 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
2348
by: lkrubner | last post by:
We are working on a website that is here: http://www.lauradenyes.com/ The site was working till I put up an .htaccess file that was suppose to redirect all html files to the PHP parser. The site then stopped working, because I had the address of the PHP parser wrong. I then deleted the .htaccess file, and the site began to work again....
17
2686
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but know nothing about ASP. He can build the design of the pages in HTML with tables, labels, textboxes etc. But then I would need to change them to...
4
14438
by: stevong | last post by:
It works on Konquerer though. I remember it works on IE too. I've tried window.close() too. Doesn't work on Firefox also. I've also tried to create a function. It doesnt work on Firefox also. Bottomline is: Firefox doesn't accept window.close() or self.close()? Are there ways to rectify the issue? Please advise.
4
2296
by: puja | last post by:
hi all, I have an asp.net website where am including .css file dynamically on page load event. For diff users, there is diff CSS file. So after user logs in, I am setting CSS href on page load. My CSS file works fine in IE 6.0 when i specify the absolute path. eg- href ="D:\Mywebsite\css\mycssfile.css" but this full path does not work in...
0
1508
by: jmacduff | last post by:
Big question: How to enable edit/update commands to work when setting the sqldatasource select command from code behind. Details: I have a GridView using a sqldatasouce with the select and update commands set. The gridview is part of a "admin" page where the admin will view the data, then use the gridview edit/update buttons to update...
1
2159
by: reemamg | last post by:
Have a piece of code which works in Firefox however doesnt work in IE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META...
3
1937
by: SpaceMarine | last post by:
sorry for the near-dupe post (also in .security), but im desperately trying to find an answer to this... i am attempting to configure security for an intranet web application in ASP.NET 2. it uses Windows authentication, retrieving roles from our Active Directory. nothing too unusual. what is unusual: it works for users that are VPN'ing...
1
5904
by: bogdanm | last post by:
Hello everyone, I am having a probleme with a issuu code when trying to insert it o my site it doesnt work in IE but in mozzila works fine the code is bellow: <div><object style="width:500px;height:300px" ><param name="movie"...
0
7807
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8058
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8241
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7820
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8100
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5624
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5301
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.