Working with iPhone SDK 3.2 --
I have a complex custom UIControl that handles touches on the child controls. In certain cases, I want the parent UIControl to pass an event to the UIViewController, which will then take action outside the control. How do I do this cleanly? Thank you!
...
I am currently loading HTMl content via AJAX.
I have code for things on different elements onclick attributes (and other event attributes).
It does work, but I am starting to find that the code is getting rather large, and hard to read. I have also read that it is considered bad practice to have the event code 'inline' like this and th...
Hi,
I need some help to implement a common behavior in some controls.
In my WPF application, I have a main form that contains a panel and a button:
Ok
The button will run a Save method when clicked.The Save method reads some data from the form and saves the data to...
I have links in my webpage which get several types of functions linked by jquery.
First, they get the standard behaviour of marking which one is the active link:
$('.buttonlist li a').bind('click',
function() {
var li = $(this).parent();
li.siblings('.aktiv').removeClass('aktiv');
li.addClass('aktiv');
}...
I have a Delphi project in 2007 that doesn't show the procedure names in the Object Inspector's Events such as Form OnClose, OnCreate or OnShow in the IDE. The code is there and if you click on OnCreate (for example) you are taken to the code and the IDE fills in the name of procedure. However on reload, the procedures are missing from...
i am in the process implementing SQLdepenency i would like to know in case of Dependency Handler exeuctues will it spun a different thred from main Process ? What will happen when the event handler triggers? Do i need to worry about any multithreds issues?
public void CreateSqlDependency()
{
try
{
using (SqlConnection co...
Hello,
This is a question which follows on from my previously answered question here
At first I assumed I had a problem with the way I was creating my events due to the handles for OpenEvent returning NULL, I have managed to find the real cause however I am not sure how to go about it.
Basically I use Visual Studio to launch both Proc...
I'd like to click a header link and have the block directly underneath hide or show (with slideToggle)
Thanks
<div class='header'><a href='#'>Header</a></div>
<div class='block'>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
</div>
<div class='header'><a href='#'>Header</a></div>
...
I am trying to fetch user events from facebook but I am having some problem witht he request. I can access their profile image and their UID but for some reason when I try to access the events I get the following error: {
"error": {
"type": "QueryParseException",
"message": "An active access token must be used to query inf...
I need to run a script every time a table is resized (whenever the user resizes the browser window). Does anyone know how this can be done?
...
I made a javascript library that lets me drag a marker from a dragzone to one or more dropzones.
The problem is... the mouseup event happens over the marker I'm dragging, no te dropzone.
How can I detect in wich dropzone was the marker dropped, and in wich coordinates?
Here's my script:
http://dl.dropbox.com/u/186012/demos/dragger/dr...
The following code is a silverlight application but the same happens in WPF, so it seems to be just something I'm missing regarding the delegate, event, etc.
Can anyone tell me why the following code successfully executes this event:
OnLoadingComplete(this, null);
but never executes this event handler?
void initialDataLoader_OnLoadi...
I have a web form with textbox and button. I want after "ENTER" key click on textbox postbak form.
I am using next code:
onkeypress=" if(event.keyCode==13)
{ alert(2);
WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions('ctl00$ContentPlaceHolder1$btnSearch', '', true, '', '', false, false));
alert(2);
return false;}
where Web...
Hi all,
when creating a named EventWaitHandle in each process you can specifiy in which state it should be.
Now this somehow contradicts the assumption that the EventWaitHandle is usable for IPC as another process might have set the state to "signalled" whereas I (when creating the EventWaitHandle) can set it to "not signalled".
Any id...
Hey guys,
I've wrote some jquery code with some draggable elements and one droparea.
Unfortunately my droparea can't make a difference between various object.
Here's my code.
<script type="text/javascript">
$(function() {
$("#droparea").droppable({
drop: function(event) {
var $target = $(even...
I want to disable the default contextMenu when a user right-clicks on an input field so that I can show a custom contextMenu. Generally speaking, its pretty easy to disable the right-click menu by doing something like:
$([whatever]).bind("click", function(e) { e.preventDefault(); });
And in fact, I can do this on just about every ele...
I am having an issue where I show an AlertBox message when the user hits ENTER and the focus is in a text area. The pop up works fine, but when the user hits enter the Alert closes as expected, but the TextArea listener receives the ENTER event from the Alert and pops the dialog up again. I have tried a number of ways to catch and eat...
public static void main(String[] args) {
try {
String line;
InputStream stdout = null;
OutputStream stdin = null;
Process process = Runtime.getRuntime().exec("test.exe");
stdout = process.getInputStream ();
stdin = process.getOutputStream ();
...
I have a Mootools asset created like so:
// Create a new asset
var asset = new Asset.image(path, {
title: this.language.download,
events: {click: this.download.bind(this, link)},
});
I have a method of a MooTools object defined as such:
download: function(e) {
// The path to download
console.log('download: ' + e);
},...
I'm trying to use SMIL to animate the typing of text into a field embedded in a SVG. I tried the following code in both Chrome and a SMIL-enable Firefox nightly, but it has no effect:
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:html="http://www.w3.org/1999/xhtml">
<foreignObject>
<html:input type="text" value="">
<...