View Single Post
  #1 (permalink)  
Old Apr 10th, 2007, 04:59
Jon1123 Jon1123 is offline
New Member
Join Date: Apr 2007
Location: cambridge, MA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Need help using object/embed tags to embed java applet

Hi,
I've been trying to figure out how to use OBJECT and/or EMBED tags to embed a java applet in webpages and I can't make sense of it. I want people to be able to embed the java player in their own website or myspace page or whatever. I have found several similar examples and tutorials online, but I haven't been able to successfully adapt them for my situation. The webpage needs to open a java applet player archived in a .jar file on our website, and that player also takes a parameter for which project to play, with the projects saved elsewhere on our website. I can get the player to load, but I think there is a problem with taking the parameter to specify what file to open within the player. I have completely working code using an APPLET tag but since APPLET is deprecated I want to accomplish the same thing using OBJECT for IE and OBJECT or EMBED for Mozilla. I assume I will have to use some sort of browser detection and conditional statements to accomodate both browsers, but right now I can't even get something working for just one or the other. I have a couple of test pages, including the working versions with the applet tag, here: http://web.mit.edu/jhansel/Public/HTML%20testing/. If anyone knows how to do this, or has any ideas what I might be doing wrong, it would be extremely helpful. Thanks so much.

Jon
Reply With Quote