SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Michigan
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <object> Problem with IE

    The following code works in Firefox AND validates as XHTML 1.0 Strict:

    <object codetype="application/java" classid="java:lake.class" width="423" height="567">
    <param name="image" value="lovetide.jpg" />
    </object>

    It displays the image and the applet simulates ocean waves on the image.

    It does NOT work in IE. Any idea how to do this in IE in a way that will still validate?

    Thanks.

    Ken

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,165
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    What version(s) of IE? I don't know, but this page could possibly help:

    Felgall Replacement for iframe Tag

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Michigan
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried it on IE 8. I don't have IE 9; I don't think XP will run it.

    I looked at felgall's page. Looked mighty complicated and seemed to be solving a slightly different problem.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Michigan
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did some searches on the Web, and found an article that pointed out IE handles <object> differently from other browsers. Based on that article, I tried this:

    <!--[if IE]>
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="423" height="567">
    <param name="code" value="lake.class" />
    <param name="image" value="lovetide.jpg" />
    </object>
    <![endif]-->

    <!--[if !IE]> Not executed by IE-->
    <object type="application/x-java-applet" classid="java:lake.class" width="423" height="567">
    <param name="image" value="lovetide.jpg" />
    </object>
    <!--[endif]-->

    Still works with Firefox but not IE. Any help would be much appreciated. Thanks.

    Ken


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •