<object> tag becomes lost using setHTML in JavaScript

Last post 12-07-2006, 8:57 AM by mmeltaus. 2 replies.
Sort Posts: Previous Next
  •  12-06-2006, 12:52 PM 24918

    <object> tag becomes lost using setHTML in JavaScript

    Using the editor at http://cutesoft.net/example/JavaScript-API.aspx (in IE6 or Firefox), I encounter this problem when I do the following:

    1. switch to HTML view
    2. delete all the text in the editor and paste in the following:
    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/bJpnri3NQdo"></param><param

    name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/bJpnri3NQdo"

    type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    3. Click the get HTML button -- you see the text you just pasted.

    4. Click the set HTML button.  It seems to switch to Normal view (I see the result of the HTML, not the code itself) although the HTML tab is still hilighted.

    5. We want to see the actual HTML but clicking HTML tab doesn't do it (presumably because it is currently highlighted).  Click the Normal tab, then the HTML tab to view the code.  The textbox is empty.

    Filed under:
  •  12-06-2006, 9:19 PM 24932 in reply to 24918

    Re: <object> tag becomes lost using setHTML in JavaScript

    mmeltaus,
     
    Can you change
     
    <object width="425" height="350">
     
    to:
     
    <object id=movie codeBase="http://download.macromedia.com /pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height=350 width=425classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
     
    Then try again?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-07-2006, 8:57 AM 24963 in reply to 24932

    Re: <object> tag becomes lost using setHTML in JavaScript

    Adam,

    I changed my object tag as you indicated, and left the remaining stuff from my original post, and observe the same problem.

    To clarify, then I ended up with the following text now to start off with (note add space before classid from your suggestion):

    <object id=movie codeBase="http://download.macromedia.com /pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height=350 width=425 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><param name="movie" value="http://www.youtube.com/v/bJpnri3NQdo"><param
    name="wmode" value="transparent"><embed src="http://www.youtube.com/v/bJpnri3NQdo"
    type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    Is that what you were expecting me to test?


View as RSS news feed in XML