xml4cn / np-activex

Automatically exported from code.google.com/p/np-activex
0 stars 0 forks source link

Activec does not working #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I have created an ActiveX control and its worked great in TE, But I need 
work This Activex in Chrome.I have add np-activex from chrome web store.when 
the page is loaded the right side image shows the page contain the activex but 
it doesn't working. pleas help me...

Thanks and Regards
Jiandev

Original issue reported on code.google.com by jinade...@gmail.com on 18 May 2012 at 5:01

Attachments:

GoogleCodeExporter commented 9 years ago
Can you just click "report problem" and send the logs to us?

Original comment by qiu...@gmail.com on 25 Jun 2012 at 3:21

GoogleCodeExporter commented 9 years ago
Hi,
This is the log that gives after clicking "report problem".

---------- Start of log --------------
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like 
Gecko) Chrome/19.0.1084.56 Safari/536.5
Extension version: 1.4.8.4

------------ Frame 2 ------------------
Objects:
{"href":"http://localhost:52470/","clsid":"{1FC0D50A-4803-4f97-94FB-2F41717F558D
}","actived":true,"rule":"custom_1337933018785_22_60970"}

Log:
09:41:23 PageURL: http://localhost:52470/
09:41:23 Page rule:null
09:41:25 found 1 object(s) on page
09:41:25 Warning: Detected display:none for axHello at level 0
09:41:25 Enabled object, id: axHello clsid: 
{1FC0D50A-4803-4f97-94FB-2F41717F558D}
09:41:26 found 0 object(s) on page

---------------- End of log ---------------
1207936066

Original comment by jinade...@gmail.com on 26 Jun 2012 at 4:13

GoogleCodeExporter commented 9 years ago
If you can modify the page, don't use style display:none on the object or any 
of its parents.
Use "width:0 height:0" instead, so the object can be loaded.

Original comment by qiu...@gmail.com on 26 Jun 2012 at 4:15

GoogleCodeExporter commented 9 years ago
Hi,
I think the problem is with "display:none".I used width:0,and height:0.but its 
not working.I want create a dynamic ActiveXObject (new ActiveXObject).Now am 
trying "dynamic" in helper script field..but am stuck in that position.Please 
give me a solution or demo.

Original comment by jinade...@gmail.com on 26 Jun 2012 at 4:26

GoogleCodeExporter commented 9 years ago
If still not working after removing display:none, send another logs here.
Just set "dynamic" at the helper script field like other predefined scripts.

Original comment by qiu...@gmail.com on 26 Jun 2012 at 4:31

GoogleCodeExporter commented 9 years ago
Am using this code for my Activex printing.
  var Activex = new ActiveXObject("AxControls.HelloWorld"); 
  var PrintStatus=Activex.Print(id, 'Type');
I don't know how to put helper script in the code.

Original comment by jinade...@gmail.com on 26 Jun 2012 at 4:35

GoogleCodeExporter commented 9 years ago
This is the log after giving width:0 height:0

---------- Start of log --------------
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like 
Gecko) Chrome/19.0.1084.56 Safari/536.5
Extension version: 1.4.8.4

------------ Frame 2 ------------------
Objects:
{"href":"http://localhost:52470/","clsid":"{1FC0D50A-4803-4f97-94FB-2F41717F558D
}","actived":true,"rule":"custom_1337933018785_22_60970"}
{"href":"http://localhost:52470/","clsid":"{1FC0D50A-4803-4f97-94FB-2F41717F558D
}","actived":true,"rule":"custom_1337933018785_22_60970"}

Log:
10:11:14 PageURL: http://localhost:52470/
10:11:14 Page rule:null
10:11:16 BeforeLoading axHello
10:11:16 BeforeLoading axHello
10:11:16 BeforeLoading axHello
10:11:16 Enabled object, id: axHello clsid: 
{1FC0D50A-4803-4f97-94FB-2F41717F558D}
10:11:16 found 0 object(s) on page
10:11:17 found 0 object(s) on page
10:11:30 BeforeLoading axHello
10:11:30 BeforeLoading axHello
10:11:30 BeforeLoading axHello
10:11:30 Enabled object, id: axHello clsid: 
{1FC0D50A-4803-4f97-94FB-2F41717F558D}

---------------- End of log ---------------
409001723

Original comment by jinade...@gmail.com on 26 Jun 2012 at 4:43

GoogleCodeExporter commented 9 years ago
Please check attached txt file.

Original comment by jinade...@gmail.com on 26 Jun 2012 at 5:06

Attachments:

GoogleCodeExporter commented 9 years ago
Helper scripts cannot be applied on CLSID rules.
You should specify a rule with URL pattern.

Original comment by qiu...@gmail.com on 26 Jun 2012 at 5:08

GoogleCodeExporter commented 9 years ago
I just modified the Rule, mode as "WildChar" and Pattern as 
"http://*localhost:49381/Activex.htm". Is any thing missing in the pattern?

Original comment by jinade...@gmail.com on 26 Jun 2012 at 5:24

GoogleCodeExporter commented 9 years ago
Are you sure the port number is correct? 52470? 49381?

Original comment by qiu...@gmail.com on 26 Jun 2012 at 5:25

GoogleCodeExporter commented 9 years ago
Ya."49381" is correct..Its another ActiveX testing project.

Original comment by jinade...@gmail.com on 26 Jun 2012 at 5:39

GoogleCodeExporter commented 9 years ago
Can u give any site URl that work ActiveX on Chrome??

Original comment by jinade...@gmail.com on 26 Jun 2012 at 6:23

GoogleCodeExporter commented 9 years ago
There are a lot of sites that work, though most of them are not in English.

 logmein as one of the most famous ActiveX obj in English.

Original comment by qiu...@gmail.com on 26 Jun 2012 at 6:25

GoogleCodeExporter commented 9 years ago
When using the Logmein in IE Activex is running .But in the Chrome they are 
using  Plugin for such an action. So I need to create Plugin for Chrome to run 
my code ??

Original comment by jinade...@gmail.com on 26 Jun 2012 at 6:31

GoogleCodeExporter commented 9 years ago
I have added another page Rule and the log is.
---------- Start of log --------------
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like 
Gecko) Chrome/19.0.1084.56 Safari/536.5
Extension version: 1.4.8.4

------------ Frame 2 ------------------
Objects:
{"href":"http://localhost:49381/Activex.htm","clsid":"{1FC0D50A-4803-4f97-94FB-2
F41717F558D}","actived":true,"rule":"custom_1337933032440_23_14478"}

Log:
12:06:08 PageURL: http://localhost:49381/Activex.htm
12:06:08 BeforeLoading axHello
12:06:08 Pending object 
12:06:08 found 1 object(s) on page
12:06:08 BeforeLoading axHello
12:06:08 Nested onBeforeLoading axHello
12:06:08 Pending object 
12:06:08 found 1 object(s) on page
12:06:08 Pending object 
12:06:08 Set userAgent: ie7
12:06:08 Page 
rule:{"title":"Rule","type":"wild","value":"http://*localhost:49381/Activex.htm"
,"userAgent":"ie7","scriptItems":"","identifier":"custom_1337933032440_23_14478"
,"script":""}
12:06:08 BeforeLoading axHello
12:06:08 Enabled object, id: axHello clsid: 
{1FC0D50A-4803-4f97-94FB-2F41717F558D}

---------------- End of log ---------------
-353267603

Original comment by jinade...@gmail.com on 26 Jun 2012 at 6:37