posted Today 5:43 PM
--------------------------------------------------------------------------------
We are attachign to a new window to listen to events on that window:
winHandle=window.open("....jsp");
if( window.attachEvent ) {...
We have written a windows ATL server application which runs as a windows service(system account).
Since the system account does not have file-write prmissions,we are searching for a way how to introduce logging mechanism into this application(either to file or event log).
Any help on this will...
Can someone point me to a sample involving non-component based event handling?
All the samples that i find are event handlers being tied to AWT components?
I just wish to write a simple server which calls back on registered listeners(clients),by programmatically raising an event from one of the...
We have the following scenario.
From page 'A' we download an applet.Then we open page 'B' from 'A' through window.open.
Page 'B' downloads another applet - is it possible for this applet to invoke a method on the packaged applet from page 'A'.
If not,is there any other better way to achieve...
We can use attachevent to listen to events on a document.
But we wish to open a new browser instance(window.open) and hook into the events of that particular browser instance-how do we do that?
We want to provide a recording functionality which allows us to record all user actions/navigations on...
I have the following code in Mozilla:
<script type="application/x-javascript">
function listElementHandlers(aObj)
{
if(!aObj)
return null;
for(var list in aObj)
if(list.match(/^on/))
alert(list+'\n');
}
function dummy()
{
}
<script>
...
We need to record all javascript events fired/registered against any HTML element on a form.
For example,if there is a SELECT element on a form,and there is a javascript function registered against the onchange event of the element,we need to shortlist the 'onchange' event.
How do we do this -...
We are parsing the html elements on a form and settings values on them programatically.
Suppose there is a SELECT element which has a javascript written on the 'onchange' event.
However,although we cant set the selected inex on the SELECT element programmatically,it does not seem to trigger off...
We have a requirement similar to the 'initialization' routin in c++.
i.e. at the first execution of a perl script we need to execute a registration script(regsvr32) for a dll;prior to using that dll from with perl.
This registration script should be by-passed in subsequent executions of the perl...
We need to modify the 'Interact with desktop' setting of a windows service through the registry.One of the options is to do this through a bat file invoking regedit.
Is there any other option through which registry entries can be manipulated through batch scripts?
I am new to custom tags and face a conceptual problem.
I have nestedtags in my JSP as follows:
<user:useragevalidation id="user">
<user:NotValidAge>You are not of valid age.</user:NotValidAge>
<user:validage>Yuo are of valid age.</user:validage>
</user:useragevalidation>
Now when i define the...
Can anyone provide link to any write-up/guide/article which discusses the best-practices in using java collection classes.Basically,the finer points of when/why to use array,vector,set,list etc.
We have a file with entries like
good/bad/ugly.
We are able to retrieve the last bit(ugly) with
sed -e 's/.*\///g' testfilelist.txt
But we wish to achieve the same by creating 'data regions'.
We are trying
sed -e 's/(.*/)([^/]\+)$/\2/g' testfilelist.txt
But we are getting
sed: -e expression...
I need to define 2 rules in my schema .
The validated xml is of the form
<root>
<vegetable>
<class>root</radish>
<type>A</type>
<value>moderate</value>
</vegetable>
<vegetable>
...
...
</vegetable>
..
..
</root>
Condition 1: When class is 'seed' - element 'type' is optional else mandatory...
I am sorry if this question seems too broad-based.
Our objective is to encrypt data using a known key(user-specified) in C++;and decrypt the same in Perl,using the same key.
We intend to use TripleDES algorithm for the same.
Is this possible through Microsoft CryptoAPI for C++ and...
We are encrypting a string with microsoft cryptoAPI in c++.This has to be decrypted in perl .We are using perl 5.6.1
Please indicate the module available in or before this release,which is the most accepted for tripleDES encryption/decryption in perl.
Sample codes on implementation will be...
Let us take a simple function
::MessageBox(0,data.c_str(),"log",0);
where data is a std::sting type.
When i change the build type to unicode ,this will spit out error
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
How can i feed in the underlying data...
We hava data file which has entries in this format:
sap/base/parser/agent/wholeworld.cpp
These have to be converted into :
wholeworld.cpp|sap/base/parser/agent/
ie <filename>|<path>
This has to be done via command-line.
and we cannot do a hard-coded awk -F/ print{$NF "|" $0"/"$1.... etc.},as...
We have a method interface
[id(5), helpstring("method PlayStuff")] HRESULT PlayRecording([in] BSTR pbstscript,[in]long pinterval);
We have to invoke this method from javascript wherein we declare 2 variables as var,and pass in.
But we are unable to pass in the BSTR and the method invocation...
i'm currently experiencing a strange problem under vc++ .NET 7.0. i hope
someone has a hint for me, i'm kind of lost atm.
i'm using a vector of object instances in my code.
using the release build,I get a runtime error intermittently while adding to the vector using push_back.
When i use the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.