Questions tagged [handlers]

225 questions
0
votes
0 answers

Just showing a domain name in the address bar even though real page is located on another domain

I do not know were to start for this, although I think it has to to with handlers - here is what I want to do: Some of my clients own their domain name but they use my plate-form with it's own domain name to showcase their products (they get a…
Sergelie
  • 363
  • 1
  • 14
0
votes
1 answer

Two signals in the same main

I want to use two signals in the same main. So I made two handlers etc. That's my code: volatile sig_atomic_t go_on = 0; volatile sig_atomic_t execute = 0; void sig_syn(int sig_no) { go_on = 1; } void exe_handler(int sig_no) { execute =…
a_user
  • 207
  • 3
  • 13
0
votes
1 answer

Pass message or data from looper to main thread

My app uses a broadcastreciever that spawns two threads which contain Loopers ReceiverAccLooper and GetListingsLooper. These two loopers then call some other tasks to run that then return a result back to the Looper. I cannot figure out how to get…
0
votes
1 answer

How to allow threads to modify/get info between each other?

my question is more about programming pattern than about a specific case. I want to know how to manage better interactions between concurring threads. Say I have that for example : Class Ocean implements Runnable { Boat myBoat; // standard…
Silver Duck
  • 581
  • 1
  • 5
  • 18
0
votes
0 answers

serving clasic .asp pages works on IIS express but fails on production IIS

I'm making a web application with urlrewrites using global.asax, and in some point, i check if the page is a classic .asp page to serve special content or make redirections. I have the application working on development under IIS Express, but when i…
tomasofen
  • 1,330
  • 2
  • 12
  • 16
0
votes
1 answer

two event handlers (click and mousemove) at the same time on one element

I'm creating a sort of slider which when a certain point on the window is clicked the element will stretch its width to that point. I would also like to add a drag event handler and I have read about mousedown and mousemove and mouseup being the…
Sarah
  • 1,943
  • 2
  • 24
  • 39
0
votes
1 answer

Custom Action/Handler for Apache

OK, so here's my situation : I've written an interpreter (for a language of my own design) I need every file with a specific extension (e.g. .xxx) to be first handled by my interpreter Here's what I've tried so far (other than... messy solutions…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

jQuery event delegation with many events and handlers

My question is related to space and readability more so than anything else, but here I go. I need to use event delegation to get my dynamically added elements working with my jQuery functions. However I'm looking to combine two ways of handling the…
CatrPillr
  • 5
  • 4
0
votes
0 answers

How to: asp.net Handler?

i'm starting to develop my first asp.net web application. I've read a lot about the Handlers, but really i can't understand how to map the handler in the web.config. I've tryed to add this code into "system.web" tag
Alist3r
  • 556
  • 3
  • 11
  • 27
0
votes
3 answers

ASHX vs ASPX login

I have a handler doing the authentication (because i use $.ajax jquery) but if i open two tabs in browser (eg. google chrome) the second tab dont know any of the sessions. I would like to remain with the same sessions in the browser, for if the user…
Severiano
  • 1,083
  • 3
  • 25
  • 54
0
votes
0 answers

IIS 8 configuration of handlers without verifying file exists

I am migrating an ASP.NET 2 website from Windows Server 2003 to Windows Server 2012. This means going from IIS 5 to IIS 8. In IIS 5 I used to map all xml requests to be handled by asp.net (they needed to be served from a dynamic different location),…
dgivoni
  • 535
  • 2
  • 7
  • 17
0
votes
2 answers

JavaScript event handler not working

This javascript: window.onload=init; function init(){ var addSongButton = document.getElementById("addButton"); addSongButton.onclick = handleAddSongButtonClick; } function handleAddSongButtonClick(){ var textInput =…
Justin
  • 339
  • 1
  • 3
  • 15
0
votes
1 answer

showing textview on viewpager with delay of time

I am trying to display text view with 20 seconds delay in a each view page. The view page also display 1 minute delay.means,in each view page i want show three text views, on next page it will show another three text. please help me out. private…
meghendra
  • 1
  • 1
0
votes
2 answers

Is mHandler.obtainMessage supposed to fire handleMessage(Message msg)

Second question of the day! (Sorry, Newbie) I'm trying to create a separate thread, and in that thread I need to be able to send information back to the UI thread. For this, I went ahead and created a new Handler Class: private static class nHandler…
Linux4Hope
  • 233
  • 2
  • 8
0
votes
2 answers

Scoping issue Javascript

var isPressed =0; document.body.onkeypress = function(evt) { evt = evt || window.event; if (evt.keyCode!=='undefined') { // Do your stuff here isPressed = 1; console.log(isPressed);//Here it gives 1 } //return…
Swaraj Chhatre
  • 627
  • 1
  • 10
  • 22