<object> tag is not working in mozilla

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BibhuAshish
    New Member
    • Oct 2007
    • 34

    <object> tag is not working in mozilla

    Hi,
    I want to deploy one applet in html page.
    for that i have written my code inside <object>. This code is working in Internet Explorer. My code for internet explorer is
    [html]
    <OBJECT classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH=600 HEIGHT=300 ALIGN=TOP codebase="/javaplugin/j2re1_3_0-win.exe">
    <PARAM NAME=CODE VALUE="com.Grap h.class">
    <PARAM NAME=ARCHIVE VALUE="/javaplugin/appletgraphs.ja r">
    <PARAM NAME=speed VALUE="5">
    <PARAM NAME=background color VALUE="221,221, 221">
    <PARAM NAME=title VALUE="Graph">

    <PARAM NAME="type" VALUE="applicat ion/x-java-applet;version= 1.2">
    </OBJECT>[/html]

    Is there any way to deploy applet for mozilla.
    Last edited by acoder; Dec 13 '07, 11:03 AM. Reason: fixed code tags
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by BibhuAshish
    Hi,
    I want to deploy one applet in html page.
    for that i have written my code inside <object>. This code is working in Internet Explorer. My code for internet explorer is
    [html]
    <OBJECT classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH=600 HEIGHT=300 ALIGN=TOP codebase="/javaplugin/j2re1_3_0-win.exe">
    <PARAM NAME=CODE VALUE="com.Grap h.class">
    <PARAM NAME=ARCHIVE VALUE="/javaplugin/appletgraphs.ja r">
    <PARAM NAME=speed VALUE="5">
    <PARAM NAME=background color VALUE="221,221, 221">
    <PARAM NAME=title VALUE="Graph">

    <PARAM NAME="type" VALUE="applicat ion/x-java-applet;version= 1.2">
    </OBJECT>[/html]

    Is there any way to deploy applet for mozilla.
    I usually use <applet> for applets. I know it's been deprecated, but I've never had a problem (and your code will still validate if you are using HTML-transitional). But I'm surprised mozilla has a problem. Have you validated?

    Jared

    Comment

    • BibhuAshish
      New Member
      • Oct 2007
      • 34

      #3
      Originally posted by jhardman
      I usually use <applet> for applets. I know it's been deprecated, but I've never had a problem (and your code will still validate if you are using HTML-transitional). But I'm surprised mozilla has a problem. Have you validated?

      Jared
      Hi,

      By seeing my code, can you please tell me how to deploy applet by using <applet> tag.

      Comment

      • brettl
        New Member
        • Sep 2007
        • 41

        #4
        Yes I'm surprised that the <object> isn't working for you.

        I'm not sure it will work but if you want to use the <applet> tag you can try this. Again not sure it will work.
        [CODE=html]
        <applet type ="applicatio n/x-java-applet" code="com.Graph .class" codebase = "/javaplugin/j2re1_3_0-win.exe" archive ="/javaplugin/appletgraphs.ja r" speed = "5" backgroundcolor ="221,221,22 1" width="600" height="300" align="top" alt="Graph" title="Graph">
        </applet>
        [/CODE]

        Let me know if it does work.

        Comment

        • BibhuAshish
          New Member
          • Oct 2007
          • 34

          #5
          Originally posted by brettl
          Yes I'm surprised that the <object> isn't working for you.

          I'm not sure it will work but if you want to use the <applet> tag you can try this. Again not sure it will work.
          [CODE=html]
          <applet type ="applicatio n/x-java-applet" code="com.Graph .class" codebase = "/javaplugin/j2re1_3_0-win.exe" archive ="/javaplugin/appletgraphs.ja r" speed = "5" backgroundcolor ="221,221,22 1" width="600" height="300" align="top" alt="Graph" title="Graph">
          </applet>
          [/CODE]

          Let me know if it does work.
          Hi,
          I solved that problem.

          Actually for Mozilla code should be like that :::::::

          [CODE=html]
          <!--[if !IE]>-->
          <OBJECT classid="java:m yapplet.class" type="applicati on/x-java-applet;version= 1.2"
          height="300" width="600" >
          <!--<![endif]-->
          <OBJECT classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH=600 HEIGHT=300 ALIGN=TOP>
          <PARAM NAME="CODE" VALUE="myapplet .class" />
          <PARAM NAME="type" VALUE="applicat ion/x-java-applet;version= 1.2" />

          </OBJECT>
          <!--[if !IE]>-->
          </OBJECT>
          <!--<![endif]-->
          [/CODE]

          Firefox/others will use the outer object to active the Java Plug-in. Where the inner object is for IE.

          Thanks and regards,
          Bibhu

          Comment

          Working...