How to run this simple script in javascript in Firefox

170 views
Skip to first unread message

prabha karan

unread,
Apr 13, 2012, 9:26:09 AM4/13/12
to ff-activex-host
var commandtoRun ="C:\\WINDOWS\\notepad.exe";
var oShell = new ActiveXObject("WScript.Shell");
oShell.run(commandtoRun);


Hi,
I downloaded the binary exe. I copied the npffax.dll to firefox
plugin folder(C:\Program Files\Mozilla Firefox\plugins) . But, still
the above code is not working. I got message
" ActiveXObject is not defined" in web console. Can anybody shed a
light on this issue?. Please clear me of running this code.

Leeor Aharon

unread,
Apr 18, 2012, 4:31:23 PM4/18/12
to ff-acti...@googlegroups.com
As I have already said countless times on this group ActiveXObject() is not supported. You need to create an HTML object specifically for use with this plugin. This is done for security reasons.

Read the docs. Search the messages in this group. There's even a sample HTML on the project's home page.

Leeor.


--
You received this message because you are subscribed to the Google Groups "ff-activex-host" group.
To post to this group, send email to ff-acti...@googlegroups.com.
To unsubscribe from this group, send email to ff-activex-ho...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ff-activex-host?hl=en.


prabha karan

unread,
Apr 18, 2012, 11:04:09 PM4/18/12
to ff-acti...@googlegroups.com
Hi,
   Thank you for your guidance.

Regards,
G.Prabhakaran
Reply all
Reply to author
Forward
0 new messages