473,698 Members | 2,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

document.getEle mentById(toggle[i]) has no properties

2 New Member
I'm getting an error message in FF2.0:

document.getEle mentById(toggle[i]) has no properties

The goal of the script is, when I hover my mouse over an image, to make one div element visible while making all the others div elements in the array, hidden.

thisDocId is the element to avoid hiding.

This is the script:
[HTML]<script>
function makeHidden(this DocId) {
var toggle = new Array();
toggle[0] = "about_us";
toggle[1] = "merchants" ;
toggle[2] = "associatio ns";
toggle[3] = "consumers" ;
toggle[4] = "newsandevents" ;

for (i=0;i<toggle.l ength;i++) {
if (toggle[i] != thisDocId) {
document.getEle mentById(toggle[i]).visibility="h idden";
}
}
} //end makeHidden function
</script>[/HTML]

This is part of the HTML:
[HTML]<a href="aboutus.h tml"><img src="images/H0m2.jpg" alt="" name="Image2" align="top" onmouseover='do cument.getEleme ntById("about_u s").visibility= "visible"; makeHidden("abo ut_us");' /></a>[/HTML]

So the idea is to display a <div> menu while toggling the other menus to "hidden";
Jan 19 '08 #1
1 1958
swiftouch
2 New Member
I figured it out.

The problem code:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('about_us').visibility='visible';
The solution code:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('about_us').style.visibility='visible';
I left out style.

Funny how that took me 45 minutes to see. ARRRG!
Jan 19 '08 #2

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

Similar topics

0
1888
by: CJ | last post by:
Hi In my PHP script I'm able to update bookmarks without in hassles but document properties just don't work! I know in VB custom properties can be changed with the following: wdApp.ActiveDocument.CustomDocumentProperties(MyProperty) = "NewValue"
3
1831
by: StrongBad | last post by:
Does anyone know of a way to access the document properties of an office document using ASP? I need to be able to read things like the Title, Author, and Comments fields and pull that information into a web page. Any help is greatly appreciated. Thanks!! Eric
1
2145
by: Patrick Conway | last post by:
Hi! I'm building a Windows form that allows users to view a list of files (and their properties(metadata)) stored in a certain directory. All of the files in the directory are a result of a mail merge created in another process. In the Merge process, I used "BuiltInDocumentProperties"
0
940
by: clintonG | last post by:
Does somebody have code or documented methodology that will audit controls in the framework to generate the names and values for the properties each control uses? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL http://clintongallagher.metromilwaukee.com/
0
1451
by: Alan T | last post by:
I have modified custom properties of a Word document by code. And there are fields in this Word document link to the properties, however, after running the application and reopen the document, the field values are still the old value until I right click the field and select 'Update field', then the new value will populate the field.
4
1285
by: Morgan | last post by:
Hello! I'm trying to find out if it's possible to access the properties of an document uploaded via the fileupload control? The end goal is to dynamically insert the number of pages in a document into a database field when the file is uploaded, along with the filename and mime property. TIA! -- Morgan Web Developer
0
1125
by: Support | last post by:
Hello: Apparently we can read and write to Document Properties using Dsofile.dll (seel http://support.microsoft.com/?id=224351) My question is: can this be extended to non-native Microsoft files. For example, tiff files. And if so, what should I look for in VB.NET to read and write to those fileds
3
5929
by: Maurizio | last post by:
I create an application with Access 2000 and I wish to read/write the properties of a specified word document. I use dsofile.dll my code is Function fGetDocProps(strInFile As String, strProp As String) Dim objWord As Object, objDocProps As Object On Error GoTo Err_fGetDocProps Set objWord = CreateObject("Word.Application") objWord.Documents.Open strInFile
0
1401
by: hannahhhh1056 | last post by:
Hello! I´m trying to create a makro that finds the text in a wddocument formatted as "heading 1" and then puts it in the document properties. I know how to get the text into doc properties but i see more problems when i try to find the text formatted as heading. As you see below i will have the headingtext as a string and just put in document properties! Any suggestions? Please. Sub SelectField() Dim str As String ...
0
8676
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
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,...
0
9164
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8898
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7734
agi2029
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...
1
6524
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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();...
0
4370
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...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.