Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ranadhir
  • Content: Threads
  • Order by date
  1. ranadhir

    Prevent duplicate event handlers against same element

    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 ) {...
  2. ranadhir

    Logging as windows system account

    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...
  3. ranadhir

    Java Event handlign

    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...
  4. ranadhir

    inter-applet communication

    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...
  5. ranadhir

    hooking to a browser instance through javascript

    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...
  6. ranadhir

    'this' not working in javascript function in IE

    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> ...
  7. ranadhir

    Urgent:Identifyign javascript function against HTML events

    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 -...
  8. ranadhir

    Urgent:Firing javascript on IHTLElement interface

    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...
  9. ranadhir

    static variables in perl

    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...
  10. ranadhir

    script to modify registry values

    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?
  11. ranadhir

    JSP tag bodycontent - tagdepent or JSP

    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...
  12. ranadhir

    Best practices for java collection classes

    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.
  13. ranadhir

    sed regular expression

    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...
  14. ranadhir

    xml schema tricks

    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...
  15. ranadhir

    cryptography through perl

    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...
  16. ranadhir

    triple DES decryption in perl

    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...
  17. ranadhir

    std::string in unicode builds

    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...
  18. ranadhir

    awk or sed command-line routine to solve this situation?

    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...
  19. ranadhir

    Passing BSTR from javascript to ATL

    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...
  20. ranadhir

    Release build seg faults at vector push_back

    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...

Part and Inventory Search

Back
Top