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 Wanet Telecoms Ltd 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
  • 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

    Does this mean that for cross-domain recording there is no javascript option available - but would have to go throgh the IWebBrowser route?
  6. 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...
  7. ranadhir

    'this' not working in javascript function in IE

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

    Urgent:Firing javascript on IHTLElement interface

    ...CComPtr<IHTMLSelectElement> spSelectElem; HRESULT hr=pelem->QueryInterface(//Ask for an Select interface IID_IHTMLSelectElement,(void **)&spSelectElem); ................................................ long idx; std::stringstream ss(pevent.get_args()); ss >> idx...
  11. 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...
  12. 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?
  13. 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...
  14. 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.
  15. ranadhir

    cryptography through perl

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

    sed regular expression

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

    sed regular expression

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

    sed regular expression

    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?
  19. 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...
  20. 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...

Part and Inventory Search

Back
Top