473,385 Members | 1,848 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,385 software developers and data experts.

typeof on applet method suddelny stopped working...

I have the following code fragment in one of my pages:

if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined')
{
rowBuffer = document.getElementById('myApplet').getTableAsSDV( );
}

The code above have been working in IE, NS anf Firefox for a long time now,
but have suddenly stopped working in IE 6, on WIN XP SP1.

It now returns 'undefined', so my rowbuffer never get set.

For the record:
typeof document.getElementById('myApplet') returns 'object',
so the applet is found.

It still work on other browsers, and in IE on Win2000 and lower...

Any insights on thisone?

TIA...

--
Dag.
Jul 23 '05 #1
2 2068


Dag Sunde wrote:
I have the following code fragment in one of my pages:

if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined')
{
rowBuffer = document.getElementById('myApplet').getTableAsSDV( );
}

The code above have been working in IE, NS anf Firefox for a long time now,
but have suddenly stopped working in IE 6, on WIN XP SP1.

It now returns 'undefined', so my rowbuffer never get set.

For the record:
typeof document.getElementById('myApplet') returns 'object',
so the applet is found.


If you have
<object id="myApplet" ...>
or
<applet id="myApplet" ...>
then of course
document.getElementById('myApplet')
finds that element object but whether the applet is run and exposes
public properties is a different issue.
Is Java enabled at all, have you checked the Java console whether there
are any problems with the applet itself being properly initialized and
started?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:42***********************@newsread2.arcor-online.net...


Dag Sunde wrote:
I have the following code fragment in one of my pages:

if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined') {
rowBuffer = document.getElementById('myApplet').getTableAsSDV( );
}

The code above have been working in IE, NS anf Firefox for a long time now, but have suddenly stopped working in IE 6, on WIN XP SP1.

It now returns 'undefined', so my rowbuffer never get set.

For the record:
typeof document.getElementById('myApplet') returns 'object',
so the applet is found.


If you have
<object id="myApplet" ...>
or
<applet id="myApplet" ...>
then of course
document.getElementById('myApplet')
finds that element object but whether the applet is run and exposes
public properties is a different issue.
Is Java enabled at all, have you checked the Java console whether there
are any problems with the applet itself being properly initialized and
started?


Yes to all of the above...
The applet is alive & kickin' when the problem occurs...
No problems in the console...
Java is definitely enabled (Sun plugin 1.4.2_06)

The above test was to check if my applet actually had a method called
"getTableAsSDV()" before calling it, but that suddenly stopped working
in IE/XP.

I've changed the code to:
if ( document.getElementById('myApplet') ) {
document.getElementById('myApplet').getTableAsSDV( );
}
instead, and all is well... (but it puzzles me...)

--
Dag.
Jul 23 '05 #3

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

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
4
by: timwap | last post by:
I hava a Java Applet that produces a DTMF tone at a certain time of day. There are 4 parameters to the Applet, they are hour = Hour of triggered event 00~23 min = minute of triggered event 00~59...
2
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
4
by: Dag Sunde | last post by:
I've been working on a system that have been running for the last couple of years, but stopped working on my dev. machine after reinstalling WinXP yesterday. To my knowledge, it have been set up...
8
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some...
4
by: google | last post by:
Dear newsgroup, I give up, I must be overseeing something terribly trivial, but I can't get a simple (Java) applet to react to incoming (python) SocketServer messages. Without boring you with...
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
2
by: pssraju | last post by:
Hi, I am having applet display problem on my PC and the same thing working fine on some of my colleagues PC's. When I cross checked content through view source its exactly same on both the PC's....
2
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...

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.