This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

tyler jones

Ranch Hand
+ Follow
since Dec 01, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by tyler jones

I currently have a form where I need to provide a textbox area where a user can do basic html formatting (WYSIWYG style). Then when they submit the form, have the processing page get the html source of what they entered. I've played with javascript solutions, but I can't find anything that is cross browser. So I thought I might try to do it in an applet. Is this possible in an applet? If so, would I use a regular textarea class or a jeditpane or what? It's been forever since I did anything with java, but I'd like to get my feet back in the pool with this. Just not sure if I'm on the right track. Any advice?
15 years ago
I've written my applet to be 1.1 compliant though so that I wouldn't have issues with anyone who didn't have anything higher installed. I don't know what part of my code isn't 1.1 compliant. Do you see anywhere where it isn't? Thanks.
18 years ago
My applet is running in the background of a page. Then all of a sudden, this message will pop up ...
java/lang/UnsatisifedLinkError Exception was not handled.
I know it's an exception that I need to catch, but I can't figure out where it's occuring in my code or even why it's occuring. Does anyone see a reason that this would be happening? Thanks.
18 years ago
I have a thread executing inside of my applet and I've read that I shouldn't use the stop method of a thread to end it. Here's the scenario.
I have one main .asp page that is loaded with every other page. Inside of this .asp page is my applet. So, the applet gets loaded every time someone changes pages. I need to kill the thread and restart it every time the person changes pages. When a certain time has arrived, I show a message box alerting the person that the time has arrived. The problem is that right now, I'm using the applets stop method...

... to try and end the thread the way I read about. But it's not working. Is there another way to do it without resorting to the deprecated stop method of the thread? Thanks.
18 years ago
I wrote an applet that has a pop up frame in it warning the user that an event has come due. At the bottom, it has the Warning: Applet Window message in the status bar. My boss is afraid that will freak out our customers if they see a warning message. Is there anyway possible that I can get rid of this? Thanks.
18 years ago
Nevermind, I figured out that I was getting this because I was opening the htm page on my own machine and the applet was trying to connect to one of our webservers. As soon as I let the applet run from the webserver, it all worked fine. It called the asp page which then updated the database.... wooohooooooo! Now, I can finally finish this project.
18 years ago
I modified my code a bit and I'm getting a different error now. I don't know if I made things better or worse

... and this is the error I'm getting....

com.ms.security.SecurityExceptionEx[AlarmContainer$AlarmClock.run]: cannot access "www.mysite.com":80
[ June 06, 2002: Message edited by: tyler jones ]
18 years ago
In my applet, I'm trying to call an .asp page that executes an update against our sql server database. I'm creating a url object and passing in the url to the asp page. I'm getting the following error and I'm not sure what I'm doing wrong. Thanks.
java.net.UnknownServiceException: no content-type
Here's my code for url portion of the applet...

And here's the code to my asp page...

[ June 06, 2002: Message edited by: tyler jones ]
18 years ago
This is the error message I get when my class tries to update a table in my sql server 7 database.
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
I'm running a simple update query inside of an applet (or at least trying to). I know it's not what you'd really want to do, but it's the only solution I've been able to figure out. I have an asp page that has numerous events for my user. Let's say I have an event scheduled for 9:30 and one for 10:45. My applet currently goes off at 9:30 and at 10:45 to alert the user that their event is due. However, at this point, I need to update the table and set the reminded field to true. So, this is why I'm doing it in an applet. If anyone can think of an easier way to do this portion of it outside of an applet on an NT server or something, please let me know. I'm new to java, so I'm not sure if I'm clear on the whole odbc jdbc driver issue. Does this look for the driver on the client machine where the applet is running? I assumed that and thought that the driver was part of java 1.1. If not, what do I need to do to load the driver and get this to work? Thanks a lot!!!
Nevermind, I figured out what I needed to do to make it work. Thanks for your help.
18 years ago
Thanks for the help, but that didn't get the window to close. Here's my complete code. Maybe I'm doing something else that's keeping it from being able to close? Thanks.
18 years ago
I open a window when an alert has happened, but if I try to click the x button in the top right corner, it won't close. Do I have to do something to build that functionality into the window? Heres my code. Thanks.

[ June 05, 2002: Message edited by: tyler jones ]
18 years ago
Thanks for your input and suggestions. I really appreciate it. As for why I'm extending Applet, I was doing that because the applet class provided me with the audioclip class so I can play an alarm sound. I wasn't aware of another way to be able to get the audioclip class without extending applet. I don't understand why you added 1 to the month though that is being returned by the calendar. I didn't see in Sun's documentation that the call to get the month returned the previous month. Is this the case or is there something else going on that I don't see? Thanks.
18 years ago
I've worked on this code for 2 days and I'm not sure why this applet won't run correctly. It's supposed to accept a parameter called Times which would have time values separated by the | symbol .... 10:15|14:20|8:30 ... and so on. Then it's supposed to create an alarm object for each time and the alarm object is supposed to go off and write to the screen whenever that time has been reached or exceeded. I'm pretty new to writing applets and java in general, so I'm not sure where I'm going wrong. It compiles fine with no errors, but it just won't sound the alarm or write to the screen when the time has been reached. Thanks.

[ June 04, 2002: Message edited by: tyler jones ]
18 years ago
Thanks, but unfortunately, that didn't work. It's still looking for the timer class, so it's not going to be compatible with 1.1.
18 years ago