473,832 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

typeof on applet method suddelny stopped working...

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

if (typeof document.getEle mentById('myApp let').getTableA sSDV != 'undefined')
{
rowBuffer = document.getEle mentById('myApp let').getTableA sSDV();
}

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.getEle mentById('myApp let') 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 2099


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

if (typeof document.getEle mentById('myApp let').getTableA sSDV != 'undefined')
{
rowBuffer = document.getEle mentById('myApp let').getTableA sSDV();
}

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.getEle mentById('myApp let') returns 'object',
so the applet is found.


If you have
<object id="myApplet" ...>
or
<applet id="myApplet" ...>
then of course
document.getEle mentById('myApp let')
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*******@yaho o.de> wrote in message
news:42******** *************** @newsread2.arco r-online.net...


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

if (typeof document.getEle mentById('myApp let').getTableA sSDV != 'undefined') {
rowBuffer = document.getEle mentById('myApp let').getTableA sSDV();
}

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.getEle mentById('myApp let') returns 'object',
so the applet is found.


If you have
<object id="myApplet" ...>
or
<applet id="myApplet" ...>
then of course
document.getEle mentById('myApp let')
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.getEle mentById('myApp let') ) {
document.getEle mentById('myApp let').getTableA sSDV();
}
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
9879
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 ********************************** package Celcom.Client;
4
8079
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 sec = Second of triggered event 00~59 tone = DTMF Tone to play 0~9 A~F # & * I now need to write a HTML/JavaScript web page that will enable me to pass these 4 parameters to the applet.
2
12793
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 the window or frame). I'm trying to use Javascript to do so. I can sort of get an example working in a Mozilla browser: > <!-- This works on Mozilla only (and maybe netscape) --> > <script language="Javascript"> > document.write( "<applet...
4
2581
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 with the same version of tools as I've always used. The following function does not call .clearTable() anymore. (That is... typeof document.getElementById('bidApplet').clearTable
8
3400
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 problems. IE crashes when one refreshes the page or leave the page. This happens only after calling the Java method more than once. It does not crash if the Java method is called just once and then the page is refreshed. FireFox does not crash at all...
4
5271
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 the details of my code (on request available, though), here is what I do : I have a TCPServer and BaseRequestHandler .
0
5666
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 ChatDispatch.java
2
2665
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. Something related to JRE is not allowing to display this applet through browser. Even I tried by uninstalling & reinstalling JRE and ended up with same problem. Can anyone tell whats problem on my PC. Here is the error which I am getting in java...
2
3460
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 advance for responding. I have made a stub of the codes for better understanding. Situation: I have a Java servlet (HelloWorldServlet) running on a Tomcat (5.5.26) server on a Linux machine (compiled in JDK1.4.2). It writes Javascript to construct...
0
9795
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
10781
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...
0
10499
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9320
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
7753
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
6951
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();...
1
4421
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3972
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.