Help coderanch get a
new server
by contributing to the fundraiser

J Gib

Greenhorn
+ Follow
since Jul 20, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by J Gib

Hi,
Well i guess you'd say that is Java code using Javascript through JSObject. I'm running it on IE.
18 years ago
Hello,
I made an applet which basically works in conjunction with another third party applet. When my applet loads it starts a Thread which sleeps every second and acts as a listener to the third party applet. The problem is that sometimes my applet loads before the other applet can even begin loading which sends an error when it trys to communicate with it.
I have gotten around the problem by having my "listener" thread sleep for a few seconds upon loading, but i feel like this isnt the best solution.
Is there a way to check to see if an applet/document exists? i've tried:

But it doesn't work. It compiles fine, but i get an error everytime my applet loads before the other one can. Any suggestions? Thanks.
18 years ago
Adding a list item to a textfield when the user clicks on it seems like a simple enough thing to do but for some reason its just not working for me.. i've tried:

I'm probably over-looking something but I can't figure it out. Any ideas?
18 years ago
Hello,
Say i have a line of code:

How can I tell the compiler to treat the "()';" chars as plain text instead of recognizing them as part of the code?
18 years ago
Hey everyone,
Heres my situation: I'm already extending Applet so extending Thread is not an option. I've already used the "Run()" method in the class i've been coding, but i need to run another thread which does something completely different: (Checks to see if a txt file has been changed every 60 seconds) -- since i can't have a second "Run" method in that class, im guessing that i need to make a second class with it's own Run() and somehow execute that method from my original class. Does that sound about right? if so, how do i do it?! I've been researching this for several days with no luck.. if anybody can help me out or possibly suggest some alternatives i would really appreciate it.