I need some help with the following code
It should be changing the report whenever the row array is changed,
but it isn't.
I've done some editing to remove parts of the code that I don't think
apply to the problem, I can show you the whole thing if that will make
a difference.
I've asked on other forums without luck.
<! DOCTYPE HTML PUBLIC "=//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Report </title>
<link href="exec.css" rel="stylesheet " type="text/css">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<table id = "tblAvailReport " border="1">
</table>
<script language="JavaS cript">
function toggleStripe()
{
if (stripeColor)
{
stripeColor = ""
}
else
{
stripeColor = " bgcolor=\"#CCCC CC\""
}
}
var row=top.menu.ro w
var arrOrgList = new Array("DO","LO" ,"LO","DO","PA" ,"PA");
var arrPosList = new
Array("quincy", "quincy","test" ,"test","test2" ,"tester");
var arrOfficeKeyLis t = new Array("11","3", "2","1","13","1 2");
var arrRghtsTypeLis t = new
Array("Editor", "Reviewer","Rev iewer","Reviewe r","Reviewer"," Editor");
var arrRghtsUserKey List = new Array("1","1"," 1","1","1","1") ;
var arrOfficeKeyLis tTwo = new Array();
var arrActiveDateLi st = new Array();
var arrLocationList = new Array();
var arrLeaveTypeLis t = new Array();
var arrOrgListTwo = new Array("LO");
var arrDescriptionL ist = new Array("testing" );
var arrActiveDateLi stTwo = new Array("3/5/2004");
row = top.menu.row
stripeColor = ""
for (i=0; i<row.length; i++)
{
var strOrg = row[i];
/*
* add Org Master Table to tblAvailReport
*/
var orgMainTableRow = document.create Element("TR");
tblAvailReport. appendChild(org MainTableRow);
var orgMainTableCel l = document.create Element("TD");
orgMainTableRow .appendChild(or gMainTableCell) ;
var orgTable = document.create Element("TABLE" );
orgTable.setAtt ribute ("border", "1");
orgMainTableRow .appendChild (orgTable);
/*
* add Org Master Table Header called orgHeaderRow
*/
var orgHeaderRow = document.create Element("TR");
orgTable.append Child(orgHeader Row);
var orgHeaderCell = document.create Element("TD");
var orgName = document.create TextNode(strOrg );
orgHeaderCell.a ppendChild(orgN ame);
var teststring = document.create TextNode("tests tring");
orgHeaderCell.a ppendChild(test string);
orgHeaderRow.ap pendChild(orgHe aderCell);
/*
* Add table in which Org/Pos and day events will be detailed called
OrgPosEventsTab le
*/
var orgPosEventsTab leRow = document.create Element("TR");
var orgPosEventsTab leCell = document.create Element("TD");
var OrgPosEventsTab le = document.create Element("TABLE" );
orgPosEventsTab leCell.colspan = "8"
OrgPosEventsTab le.setAttribute ("border", "1")
orgPosEventsTab leCell.appendCh ild(OrgPosEvent sTable);
orgPosEventsTab leRow.appendChi ld(orgPosEvents TableCell);
stripecolor = " bgcolor=\"#CCCC CC\"";
}
</script>
</body>
</html> 1 1228
Netscape répond : top.menu has no properties
GR
NewmanBT a écrit: I need some help with the following code It should be changing the report whenever the row array is changed, but it isn't. I've done some editing to remove parts of the code that I don't think apply to the problem, I can show you the whole thing if that will make a difference. I've asked on other forums without luck.
<! DOCTYPE HTML PUBLIC "=//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> <title>Report </title> <link href="exec.css" rel="stylesheet " type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body> <table id = "tblAvailReport " border="1"> </table>
<script language="JavaS cript">
function toggleStripe() { if (stripeColor) { stripeColor = "" } else { stripeColor = " bgcolor=\"#CCCC CC\"" } }
var row=top.menu.ro w var arrOrgList = new Array("DO","LO" ,"LO","DO","PA" ,"PA"); var arrPosList = new Array("quincy", "quincy","test" ,"test","test2" ,"tester"); var arrOfficeKeyLis t = new Array("11","3", "2","1","13","1 2"); var arrRghtsTypeLis t = new Array("Editor", "Reviewer","Rev iewer","Reviewe r","Reviewer"," Editor"); var arrRghtsUserKey List = new Array("1","1"," 1","1","1","1") ;
var arrOfficeKeyLis tTwo = new Array(); var arrActiveDateLi st = new Array(); var arrLocationList = new Array(); var arrLeaveTypeLis t = new Array();
var arrOrgListTwo = new Array("LO"); var arrDescriptionL ist = new Array("testing" ); var arrActiveDateLi stTwo = new Array("3/5/2004");
row = top.menu.row stripeColor = ""
for (i=0; i<row.length; i++) { var strOrg = row[i]; /* * add Org Master Table to tblAvailReport */ var orgMainTableRow = document.create Element("TR"); tblAvailReport. appendChild(org MainTableRow);
var orgMainTableCel l = document.create Element("TD"); orgMainTableRow .appendChild(or gMainTableCell) ;
var orgTable = document.create Element("TABLE" ); orgTable.setAtt ribute ("border", "1"); orgMainTableRow .appendChild (orgTable);
/* * add Org Master Table Header called orgHeaderRow */
var orgHeaderRow = document.create Element("TR"); orgTable.append Child(orgHeader Row); var orgHeaderCell = document.create Element("TD"); var orgName = document.create TextNode(strOrg ); orgHeaderCell.a ppendChild(orgN ame); var teststring = document.create TextNode("tests tring"); orgHeaderCell.a ppendChild(test string); orgHeaderRow.ap pendChild(orgHe aderCell);
/* * Add table in which Org/Pos and day events will be detailed called OrgPosEventsTab le */ var orgPosEventsTab leRow = document.create Element("TR"); var orgPosEventsTab leCell = document.create Element("TD"); var OrgPosEventsTab le = document.create Element("TABLE" ); orgPosEventsTab leCell.colspan = "8" OrgPosEventsTab le.setAttribute ("border", "1") orgPosEventsTab leCell.appendCh ild(OrgPosEvent sTable); orgPosEventsTab leRow.appendChi ld(orgPosEvents TableCell);
stripecolor = " bgcolor=\"#CCCC CC\""; }
</script> </body> </html> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris Powell |
last post by:
I am using Excel/Access 2000 and have two large Excel files (25,000 rows
each) that I wish to create linked tables in Access rather than
importing into Access. The two source Excel files change frequently, so
I want to:
A) prompt the user, using a custom form, for the specific Excel files to
be linked;
B) create the links dynamically;
C) insert the linked tables into a select query grid and include the SQL
statement in the VBA...
|
by: Thanks |
last post by:
I have a routine that is called on Page_Init. It retrieves folder records
from a database which I display as Link Buttons in a table cell. I set the
table cell's bgcolor to a default color (say black for example). I am
dynamically creating the LinkButton controls and adding them into the table
cell and I've also hooked up an event handler for each LinkButton's Click
event. This all works fine.
Now in the Link Button's Click event...
|
by: Mike Hutton |
last post by:
I have a rather odd problem.
I have a SP which uses temp. tables along the way, and then returns a
table of results:
CREATE PROCEDURE dbo.usp_myproc(
@pNameList VARCHAR(6000)
)
AS
|
by: Girish |
last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a
huge learning experience..
My problem. I have a requirement to display a gird with a gird. Within the
embedded grid, theres a requirement to show a drop down menu list (this is a
control I downloaded online) in one of the columns. For the purposes of this
question, Ive implemented the drop down menu as a drop down list instead.
Ive got all this working at this...
|
by: Syoam4ka |
last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery.
I have a tabcontainer. It includes tabpanels such as:Catalog,Terms,SiteMap.ViewCart ,etc. All the jewellery Intro is in the Catalog panel. when I first click the Catalog panel it Introduces me all the main types of the jewellery(It's all done dynamically from the cs file).The...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |