< Back

Document Subject: Click to activate and use this control problem
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#ObjectClickToActivate or http://A555F9/nn.nsf/ByAlias/ObjectClickToActivate

This refers to the Click to activate and use this control hover help that comes up when using the INSE multiple file uploader - multiple file downloader and edit in place widget from OpenNTF.org .




If you got to http://www.openntf.org/projects/pmt.nsf/0/F96E40ABF929F5138625729E00417D41 you can see a really nice widget that allows you to edit in place files in internet explorer and upload and donload several files at once.It was first used in Quickplace and also in Quickr.

NB: this does not work in firefox, you have to upload an extra active x plug in.

This problem occurs in Internet explorer 7 and any automatic updated versions.

I had a task to test this out and implement it in new forms and SSL.

When using the demo database from openntf, the screen loaded ok, and then the active x area was surrounded by a dotted line and the hover help or prompt:

Click to activate and use this control

Well that's annoying. So basically to upload a file using the folder icon, I had to click twice. Not desitable and can confuse users.

 

Why is this happening?

It is happening because of an update: http://support.microsoft.com/kb/912945  or KB912812

This update is to prevent internet explorer infringing on a patent to do with inline html object activation.

 

How to solve it.

Well I posted a question on the discussion board for the uploader and the answer came from Mark a bit cryptically but I managed to work it out.

You have to put the Object tags in a separate javascript library.

The lawyers have probably argued that if the object is embedded from another JS library file then the object is not inline and so can be activated without using the patented technique.

Microsoft's advice on solving this: http://msdn2.microsoft.com/en-us/library/ms537508.aspx

 

Code

These changes are made to version 1.1 of the database.

In sfNewAttachments subform change the line

document.write('<ob ...

to be

adfosWrite('<ob ...

Then create a new javscript library called adfosW.JS and paste in:

function adfosWrite(s) {  document.write(s); }

In the form: "Form Documents" go to JS Header, make sure you are in Web and Javascript and right click and do an Insert Resource and import adfosW.JS .

Save the form and subform, refresh the browser cache and try it!

 If you need this updated database let me know.