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...
Please make this code work on mozilla and IE - in mozilla you will only see onkeyup and onblur which are the events defined for the owning element searchField - but in IE it will print out a host of events not related to the 'searchField' element at all.
In fact,I guess in IE it starts printing...
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.
Still struggling to find a way to work on encrypting in C++ and decrypting in perl using DES/TripleDES.
Any samples would be helpful;before i take the extreme step of invokig c++ routine from perl to decrypt.
I am able to encrypt/decrypt in c++ using crypto API;and do the same in perl using...
What i meant is the following construct in perl:
next unless($line=~m/([^\/]+)\/([^\/]+)\/([^\/]+)$/);
This too works fine - the only difference that i see is to not use the escape characters.
Solved!!
The final form looks like quite scary - but it works
sed -e 's/\(.*\/\)\([^\/]\+\)$/\2/g' testfilelist.txt
Awk is definitely much more simpler;but this was just an attempt to understand the data region concept ,to use in perl
tried this
sed -e 's/\(.*/)\([^/]\+)$\/\2/g' testfilelist.txt
But that does not improve matters.
Am using GNU sed version 4.0.7
Is this a proper attempt at partitioning into data regions?
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...
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.