|
Hello, I am writing an ActiveX control by C++ and tried to let it be installed on IE.
I use MS Cabinet SDK to compress the .ocx file, some other required .ax and .dll into a .cab file.
And some parameters of the .inf files are
file-win32-x86=thiscab
RegisterServer=yes
CLSID={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
DestDir=
FileVersion=x,x,x,x
But when I use IE to connect the ip address which html stores.
(IE is on my Virtual PC environment, the html and http server is on my PC),
The expected result doesn't happen.
I can see the ActiveX file is installed at windows/downloaded program files, but the ActiveX doesn't work in the html page.
I tried many combinations of .ax and .dll in the .inf file, but all weren't work.
I also checked the CLSID and file version of .dll and .ax, all were right but the ActiveX still doesn't work.
But if I use IE to open the local file, the ActiveX can work. But my goal is to let the ActiveX can work on the internet.
Does anyone have the sugggestion about the possible error reason ?
Or some useful tools can make me understand why error happens ?
My Environment : Vista SP1 + VS2005 SP1, Virtual PC is XP SP3
Thanks
|
|
|
|
|
Problem is solved.
The reason is about the CLSID and the sequence in the .inf file.
|
|
|
|
|
I have a web application that uses popups. As much as I hate that fact, and fought against it, management put their foot down and I have to deal with the results. One of those is that I'm trying to figure out a way to run a js function in the root window that changes a variable value from any popup. There is no limit to the number of popups, and they can be infinite levels deep in the DOM tree from the root window... I'll need to know how many levels deep the popup is to access the root function. I was actually hoping that there is a Javascript library that will make it relatively simple for me to access the root window. Does anyone know of a solution to this?
Also, what is the best way to test to see if a window is actually a popup? If I try "return window.opener" in firefox it always returns true...?
Thanks!
|
|
|
|
|
Try something like:
var root = window.opener;
while(root.window.opener!=null)
{
root = window.opener;
}
When the loop finishes, root will be the handle to your root window.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
modified on Friday, August 29, 2008 7:28 PM
|
|
|
|
|
Hmmm... When I run this, the first popup accurately reports the opener, but any popup after that goes into an infinite loop in the "while" and never finishes executing... I've tried in IE7 and FF...
|
|
|
|
|
Apologies - this should work:
var root = window.opener;
while(root.opener!=null)
{
root = root.opener;
}
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
Can any one help me how to create graphical report in ASP. Thanks in Advance.
|
|
|
|
|
Take a look at FusionCharts - depends on what you intend to use them for though as the license can get pretty pricey.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
1) Upgrade to ASP.NET
2) Use ZedGraph[^].
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
|
Hi Guys,
Is it possible to use document.getElementByID("variableID").innerHTML in Classic ASP? Or is there a way on how to do it in classic asp? Because I am converting the codes from javascript into vbscript.
I would like to do something like this:
document.getElementByID("variableID").innerHTML = "100"
hifiger2004
|
|
|
|
|
hifiger2004 wrote: document.getElementByID("variableID").innerHTML = "100"
You need to see the exact property name...
|
|
|
|
|
Yup. javascript used only for Client side while the vbscript is used both in client and server side.
I actually got this link http://www.codeproject.com/KB/vbscript/SOAP___Classic_ASP.aspx
It shows here that the document.getElementById is used, but when I used the document.getElementByID in my code, it gives an error. It says - Object required 'document'
hifiger2004
|
|
|
|
|
hifiger2004 wrote: javascript used only for Client side while the vbscript is used both in client and server side.
Only on IE.
And there's still a strict separation between client VBS and server VBS. You can't touch the DOM server-side, or the server objects client-side.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
hifiger2004 wrote: Is it possible to use document.getElementByID("variableID").innerHTML in Classic ASP?
No.
You can only access the DOM using client script. You can't do that from the ASP code as that runs on the server.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yeah you're rightit is not possible. Anyway, I already found an alternative. But I have a new issue on how to call a function written in vbscript within the javascript?
I will just post this question as a new question.
Thanks Guys
hifiger2004
|
|
|
|
|
when you have a page that displays articles from DB...
in the normal way, you will make the page read some parameter to specify the articles
article.aspx?art_id=1
article.aspx?art_id=200
..
..
..
but what you will do if you want to name the pages by the articles names, like
here in CP ??
http://www.codeproject.com/KB/recipes/OctreeSearch.aspx
http://www.codeproject.com/KB/list/CListCtrl_ToolTip.aspx
i mean its impossible that every time CP add an article they and a new page to the
project and compile it then upload it.
what do you think ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
|
Hi Guys,
I have problem passing the javascript variable "tt" to vbscript. The code below doesn't work. How will I do it?
example:
var tt //javascript variable
var iResult //javascript variable
iResult = "<%=GetRoomRate(tt)%>" //here,using the tt variable in vbscript
hifiger2004
|
|
|
|
|
If you want to add some VBScript to the page, use the JavaScript document.write() function:
document.write('<script language="VBScript">/* insert VBScript code here */</script>');
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
Given the syntax, i'm guessing you're trying to call an ASP VBScript method. If so, you fail to realize that the VBScript is executed by the ASP runtime on the server, while the Javascript is executed by the end-user's browser (the client). To communicate, you'll need to use XMLHttpRequest / IFRAMEs / postbacks / etc. to initiate a request client-side and process it on the server.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
yes Shog you're right
hifiger2004
|
|
|
|
|
hifiger2004 wrote: "<%=GetRoomRate(tt)%>"
This is a serverside tag. YOu may need to use a little AJAX to communicate that way.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Hello,
I ahve a page which contains the top of my website .I want to insert it in another page so that I can keep the top same throughout all my pages.
I tried <#include top.html> but the top page didn't show up.
Regards,
Pritha
|
|
|
|
|
maybe i didn't understand you...
but check the iframe
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|