Jump to content
Software FX Community

Create Object Tag through Javascript


Jeff Alexander

Recommended Posts

Hi,

 I have a chart that I use Ajax to create the <object> tag and pass it back through javascript to a div (i.e. document.getElementById('divID').innerHTML = objectTagString;). The div tag is empty and must start off that way and the chart is created once some options are selected and a button is clicked.

I have also tried to create the object tag (and it's params) through the createElement method and append it to the div tag.

 I would appreciate any assistance you can give.

 Regards,

Jeff.

Link to comment
Share on other sites

I believe I tried this once and was unsuccessful. I think IE has problem with ActiveX controls being added dynamically to the DOM. You can try with a simple Windows Form control (not Chart FX) and I believe you will get the same results.

I think you will have to create your <object> tag in the original page inside a hidden div and show it later when the appropriate option is selected.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...