Removing an INLINE Spreadsheet Object (OWC) with JavaScript

Hi,

I have an HTML page with 3 INLINE spreadsheet objects (corresponding to 3 different office versions) (Office Web Component) created using <OBJECT> tag. I check the office version installed while loading. Once i determine the version i need to remove the OTHER unwanted stale spreadsheet objects. How can i do this with Javascript at the client side?

Thanks in advance.

-- dp
dtbijuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZvonkoSystems architectCommented:
Put all three objects every in its own <div> section with an id for the div.
Assign the innerHTML of the two unneeded divs to empty string.
That will remove the embedded objects from the page.
0
dtbijuAuthor Commented:
I did try that. But when i see the View Source, i still see all the 3 objects.

-- dp
0
ZvonkoSystems architectCommented:
You cannot see the dynamic created source in ViewSource; you see always only the initial source together with the script.
But if you realy want to see the generated source, then write this into the browser address bar:
javascript:alert(document.body.innerHTML)

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ZvonkoSystems architectCommented:
Why the grading B!
0
dtbijuAuthor Commented:
Hi Zvonko,

I'm sorry....i didn't mean anyhing bad.
i decided not to create 3 objects and try to remove 2. Intead, i now create only the one i want.

Thanks a lot for your help anyway.


0
ZvonkoSystems architectCommented:
Ok, the main goal is to solve your problem.
But the grading system is more to tell how good the support was for you.
The grading explanation is a bit missleading because it suggest Good is good enough as B.
But at the moment are nearlly all gradings A, that mean Excelent!
So does B mean that you was dissappointed by the support.

If you like, then you can let change your grading to A by posting a request to this topic area:
http://www.experts-exchange.com/Community_Support/

Cheers,
Zvonko

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.