Questions tagged [intercept]

A programming interface for intercepting input device communication.

461 questions
59
votes
8 answers

add event listener on elements created dynamically

Is possible to add event listener (Javascript) to all dynamically generated elements? I'm not the owner of the page, so I cannot add a listener in a static way. For all the elements created when the page loaded I…
jenjis
  • 1,077
  • 4
  • 18
  • 30
35
votes
5 answers

android ClickableSpan intercepts the click event

I have a TextView in a Layout. It's so simple. I put a OnClickListener in the layout and some part of the TextView is set to be ClickableSpan. I want the ClickableSpan to do something in the onClick function when it's clicked and when the other…
강윤식
  • 351
  • 1
  • 3
  • 3
33
votes
2 answers

Difference between shouldoverrideurlloading and shouldinterceptrequest?

Anyone please tell me the difference between methods public WebResourceResponse shouldInterceptRequest (WebView view, WebResourceRequest request) and public boolean shouldOverrideUrlLoading(WebView view, String url). I'm creating an android…
Nevaeh
  • 1,519
  • 7
  • 24
  • 45
31
votes
1 answer

How to intercept node.js express request

In express, I have defined some routes app.post("/api/v1/client", Client.create); app.get("/api/v1/client", Client.get); ... I have defined how to handle requests inside a Client controller. Is there a way that I can do some pre-processing to the…
user517339
30
votes
5 answers

Intercepting Outgoing SMS

Is it possible to intercept outgoing SMS before it is actually sent, get its contents then ignore / send it according to some criteria? eg. block all international text (numbers with leading 00), but allow everything else.
GaiusSensei
  • 1,860
  • 4
  • 25
  • 44
30
votes
2 answers

How to remove intercept in R

I need to create a probit model without the intercept. So, how can I remove the intercept from a probit model in R?
Kazo
  • 1,205
  • 3
  • 15
  • 15
20
votes
6 answers
19
votes
10 answers

Intercept method call in Objective-C

Can I intercept a method call in Objective-C? How? Edit: Mark Powell's answer gave me a partial solution, the -forwardInvocation method. But the documentation states that -forwardInvocation is only called when an object is sent a message for which…
luvieere
  • 37,065
  • 18
  • 127
  • 179
18
votes
4 answers

Intercept WM_DELETE_WINDOW on X11?

I'd like to intercept the WM_DELETE_WINDOW message that is posted to a certain selection of windows that an application I'm writing (AllTray), so that I can act on it instead of the application receiving it. I'm currently looking at trying this at…
Michael Trausch
  • 3,187
  • 1
  • 21
  • 29
16
votes
3 answers

How to stop SIGINT being passed to subprocess in python?

My python script intercepts the SIGINT signal with the signal process module to prevent premature exit, but this signal is passed to a subprocess that I open with Popen. is there some way to prevent passing this signal to the subprocess so that it…
shino
  • 4,562
  • 5
  • 38
  • 57
15
votes
4 answers

Fault injection for .NET apps?

I am wondering if anyone knows of tools or techniques to automatically inject common faults into a running .NET program. Stuff like... Randomly inject an OutOfMemoryException upon allocation Randomly inject FileNotFoundException upon trying to…
noctonura
  • 12,763
  • 10
  • 52
  • 85
15
votes
2 answers

Fit a no-intercept model in caret

In R, I specify a model with no intercept as follows: data(iris) lmFit <- lm(Sepal.Length ~ 0 + Petal.Length + Petal.Width, data=iris) > round(coef(lmFit),2) Petal.Length Petal.Width 2.86 -4.48 However, if I fit the same model…
Zach
  • 29,791
  • 35
  • 142
  • 201
14
votes
1 answer

Intercept AJAX responses in Chrome Extension

We're building a chrome extension on top of an existing system, to help with a few tasks. It's AJAX intense and it would be far more efficient than scraping html and triggering events to intercept some of the AJAX responses. Example: Frome chrome…
13
votes
3 answers

How to manage logging in curses

I created a simple UI for my application using curses and I also include logs (logging) in my modules using herarchy structure (logmain, logmain.child1) and so on. In case an log event occurs the log is displayed in my UI,distroying its apparence. I…
Oscar Effe
  • 305
  • 2
  • 8
12
votes
3 answers

IOS Jailbreak How do intercept SMS / Text Messages

I'm currently trying to write an application that intercepts text messages and reacts depending on the content of that message. I tried to hook into _receivedMessage:(struct __CKSMSRecord *)message replace:(BOOL)replace method in the CKSMSService…
Pascal
  • 315
  • 5
  • 22
1
2 3
30 31