If I examine document on a machine that does work, document is a "DispHTMLDocument"...but on a machine that does not work it returns "object". What would cause this behavior?
ActiveX is a security concern, that is why no other browsers suppoert it and why security settings on a browser need to be in trusted mode to work. Are you sure that the ActiveX settings in the one that does not work allow unsigned content? Are there any
other errors but the "object" one?
Yes, we have confirmed the ActiveX settings and they are identical. The only other error I can provide is after we instantiate the object (objPrint) and make our first call into the dll that is when we get the error stating "Object does not support this
property or method".
I have the same "Object doesnt support this property or method" error in a similar printing feature, in an exact case as yours. It took me days to come to this point to search for "ControlAxSourcingSite". A bit happy to find a the same prob, but did u happen
to find any solution to this?
If you happen to find any solution to this problem or any workaround, please reply. Appreciate your help.
Song-Tian - ...
All-Star
43697 Points
4304 Posts
Microsoft
Re: Sometimes getElementById returns wrong/generic object
Aug 06, 2012 02:56 AM|LINK
Hi,
Then I think you must use IE Developer Tools to determine the cause of the problem.
Feedback to us
Develop and promote your apps in Windows Store
njh2012
0 Points
9 Posts
Re: Sometimes getElementById returns wrong/generic object
Aug 06, 2012 05:59 PM|LINK
I believe I narrowed in on the issue somewhat:
objPrint = document.getElementById("MyprintUtility");
If I examine document on a machine that does work, document is a "DispHTMLDocument"...but on a machine that does not work it returns "object". What would cause this behavior?
TIA
Song-Tian - ...
All-Star
43697 Points
4304 Posts
Microsoft
Re: Sometimes getElementById returns wrong/generic object
Aug 07, 2012 01:57 AM|LINK
Hi,
Please refer to the code as follow:
ClientScriptManager cs = this.ClientScript; cs.RegisterStartupScript(this.GetType(), "test1", "alert('test1')", true);Feedback to us
Develop and promote your apps in Windows Store
A1ien51
All-Star
29935 Points
5821 Posts
Re: Sometimes getElementById returns wrong/generic object
Aug 07, 2012 07:33 PM|LINK
How does that even related to this?
Eric
A1ien51
All-Star
29935 Points
5821 Posts
Re: Sometimes getElementById returns wrong/generic object
Aug 07, 2012 07:35 PM|LINK
ActiveX is a security concern, that is why no other browsers suppoert it and why security settings on a browser need to be in trusted mode to work. Are you sure that the ActiveX settings in the one that does not work allow unsigned content? Are there any other errors but the "object" one?
Eric
njh2012
0 Points
9 Posts
Re: Sometimes getElementById returns wrong/generic object
Aug 07, 2012 07:43 PM|LINK
Hi Eric,
Yes, we have confirmed the ActiveX settings and they are identical. The only other error I can provide is after we instantiate the object (objPrint) and make our first call into the dll that is when we get the error stating "Object does not support this property or method".
Thanks,
njh
kimi1234
Member
2 Points
1 Post
Re: Sometimes getElementById returns wrong/generic object
Jan 27, 2013 11:28 PM|LINK
Hello njh2012,
I have the same "Object doesnt support this property or method" error in a similar printing feature, in an exact case as yours. It took me days to come to this point to search for "ControlAxSourcingSite". A bit happy to find a the same prob, but did u happen to find any solution to this?
If you happen to find any solution to this problem or any workaround, please reply. Appreciate your help.
Thanks
Pradeep12345...
Member
2 Points
1 Post
Re: Sometimes getElementById returns wrong/generic object
Apr 19, 2013 09:57 AM|LINK
HI Kimi1234,
Do you happen to find any solution to this problem or any workaround, please reply. Appreciate your help.
Thanks