473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Funtion Problem

I'm getting an error "Object doesn't support this property or method."
Help appreciated.

<html>
<head>
<script type="text/javascript">
function showtable(){
var myform1 = document.form1;
if(myform1.T1.value=="Size Mix")
{
document.getElementByID("Table1").style.visibility ="hidden"
}
}

</script>

</head>

<body onLoad= "showtable()">
<form name=form1><input type="text" name="T1" value="Size Mix">
<table border="1" id="Table1" width="100%">

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #1
2 1025
On 11 Feb 2004 18:49:13 GMT, Steve Bishop <st****@viper.com> wrote:

[snip]
<script type="text/javascript">
function showtable(){
var myform1 = document.form1;
if(myform1.T1.value=="Size Mix")
{
document.getElementByID("Table1").style.visibility ="hidden"
}
}

</script>


[snip]

Why are you asking this question again? If my solution, or Mr Cornford's,
was not sufficient, you should have followed up with more information or a
clarification. You state above, like you did last time, saying that you
get a error, but you don't indicate on which line above that error is
supposed to have occurred.

I told you this last time, and I'll tell you again: JavaScript is
case-sensitive. The method name is "getElementById", NOT "getElementByID"
(notice the uppercase "D").

If this doesn't solve the problem, give us more information not a third,
identical post.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2
In article <40*********************@news.frii.net>, st****@viper.com
enlightened us with...
I'm getting an error "Object doesn't support this property or method."
{
document.getElementByID("Table1").style.visibility ="hidden"


document.getElementById("Table1").style.visibility ="hidden"
^^
case-sensitive

Oh, and the script as a whole isn't cross-browser nor does it degrade
cleanly (so that old browsers don't crash, they just don't do anything).
I sure hope this is not for a production-quality website.

--
--
~kaeli~
A lot of money is tainted - It taint yours and it taint mine.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: yang | last post by:
Deal all: I want to call the funtion of cryptapi (such as cryptaccquirecontext etc) in asp, and if it runat at client, it's ok,but if it run at server in IIS(as the same machine), it return...
3
by: Ye Liu | last post by:
Hi, Folks. If I have table create table t1(col1 number getnumber()) // getnumber is a funtion to generate default value of col1. How I can get this function string by a query on data...
6
by: | last post by:
Say we have the following code defining TMyMsgHandler and TMyClass typedef void (*TOnMsgReceive) (TMyMessage Msg); class TMyMsgHandler { public: TMyMsgHandler(); virtual ~TMyMsgHandler();...
6
by: JS | last post by:
I am writing som C code and was wondering if I should call the filename the same as the name of my function. It compiles ok but should I make a file for each funtion just to keep it orderly or is...
1
by: Chifo | last post by:
I try to connect postgres database but browser showme a error"Fatal error undefined funtion pg_connect()" somebody can helpme ? i dont know whats means, all conection string its ok this is an...
3
by: jitu.csewizard | last post by:
hi overview: function sprintf(<buffername>,<format string>, .....) in this function you need to allocate the size of buffername before hand. question: function ssprintf(<buffername>,<format...
5
by: Lee Xuzhang | last post by:
/* from SICP -- Exercise 4.21: ((lambda (n) ((lambda (fact) (fact fact n)) (lambda (ft k) (if (= k 1) 1 (* k (ft ft (- k 1))))))) 10) */
6
by: Fazana | last post by:
I was doing one of the question but my program was not working properly. Can anyone help me with it pliz........ Here is the question for the program Question. Part 1. Add the function...
1
by: Neo007 | last post by:
What is different between SQL Funtion & SQL Stored Procedure? What the use Of Each? Where to use which?
1
by: sridhard2406 | last post by:
Hi All, I am new to c++, please find my program below and my doubt as mentioned below. #include <iostream> using namespace std; class base { public:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.