Original Post
Hi all!
I created activeX control.
It's a browser plugin for ie/ff/chrome and other browsers.
http://www.program-ace.com/ace3ddemos
This plugin contains auto-update method. Algorithm is next:
1. Check version of plugin on server;
2. Check version of local installed plugin;
3. Compare versions and if it's different then download plugin installation from server;
So, when I try to download plugin from server I call browser script. For some time it works on all browsers. But after last ie and ff update, my script is not running. I updated my plugin for new xul-sdk. Now plugin normally calls scripts from ff/opera/chrome etc. But in IE it calls script with a delay about minute or two :(
I call script from browser for ie hereby:
Please help to resolve this problem.
I created activeX control.
It's a browser plugin for ie/ff/chrome and other browsers.
http://www.program-ace.com/ace3ddemos
This plugin contains auto-update method. Algorithm is next:
1. Check version of plugin on server;
2. Check version of local installed plugin;
3. Compare versions and if it's different then download plugin installation from server;
So, when I try to download plugin from server I call browser script. For some time it works on all browsers. But after last ie and ff update, my script is not running. I updated my plugin for new xul-sdk. Now plugin normally calls scripts from ff/opera/chrome etc. But in IE it calls script with a delay about minute or two :(
I call script from browser for ie hereby:
LPDISPATCH pScript = NULL; if( FAILED( pHtmlDoc->get_Script( &pScript ) ) || !pScript ) return false; pScript->AddRef(); DISPID funcID; HRESULT hr; LPOLESTR funcStr = const_cast<LPOLESTR>(func); hr = pScript->GetIDsOfNames( IID_NULL, &funcStr, 1, LOCALE_SYSTEM_DEFAULT, &funcID ); if( SUCCEEDED( hr ) ) { VARIANT result, arg; DISPPARAMS args; ZeroMemory( &args, sizeof(DISPPARAMS) ); if( param ) { arg.vt = VT_BSTR; arg.bstrVal = ::SysAllocString( param ); args.cArgs = 1; args.rgvarg = &arg } hr = pScript->Invoke( funcID, IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_METHOD, &args, &result, NULL, NULL ); if( param ) VariantClear( &arg );} pScript->Release();Please help to resolve this problem.