Jump to content
Software FX Community

Create Object Tag through Javascript


Jeff Alexander
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...