In javascript, let say I got two nodes(node A, node B). when I click on node A, can I transfer "click" event to node B, so event handler for node B will execute.
How can I handle the Paste event for a RichTextBox control in Silverlight 4? (I want to be able to copy-paste images - the Clipboard in SL4 supports only text, so I'm sending the ImageSource Uri, and on the Paste event I want to load the image in the RichTextBox instead of the Uri string).
I have built a Java CORBA application that subscribes to an event server. The application narrows and logs on just fine, but as soon as an event is sent to the client, it breaks with the error below. Please advise.
2010/04/25!13.00.00!E00555!enserver!EventServiceIF_i.cpp!655!PID(7390)!enserver - e._info=system exception, ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
TAO exception, minor code = 54410093 (invocation connect failed; ECONNRESET), completed = NO
How can you set the event listerner for a Spinner when the selected item changes
basically what I am trying to do is something similar to this:
spinner1.onSelectionChange = handleSelectionChange;
void handleSelectionChange(Object sender){
//handle event
}
For a panel with one textbox and one button which is its default button, the DefaultButton event fires only once as editing textbox details again and pressing enter, event doesn't fire.
<asp:Panel runat="server" ID="pnlNewFolderDetails" DefaultButton="btnAddFolder">
<asp:Label runat="server" ID="lblFolderHeader" Text="New Folder Name" CssClass="label" />
<asp:TextBox runat="server" ID="txtFolderName" ToolTip="Folder Name" />
<asp:Button runat="server" ID="btnAddFolder" OnClick="btnAddFolder_Click" Text="Add" />
Any suggestions?
In my project, tree is a list of customers displayed in an ListView control, When user double clicks (or taps) on an item I should show the details of that customer,
But there is no double click (or click event, mouse up and down events etc.) event in .NET CF 3.5 ListView control (we only have ItemActive and SelectedIndexChanged events)
Is there anyone has figure out this problem?
Hi everybody,
I try to do a custom CanExecuteChanged event for a command button. Inside CanExecuteChanged event I would like to do some stuff when canExecute value change but I don't want to do it by implementing a custom command button class (deriving from Button and Implementing ICommandSource). Also I don't want to do my stuff into CanExecute method.
Any ideas?
Thanks.
Hi,
I was wondering how to apply a custom render to a event... I want to be able to preppend the "patient" name of a practice agenda...
eventRender: function(event, element) {
console.log(element[0]);
}
This currently shows the HTML output in the console, but I don't know how can I access it (in a pretty jquery manner) in order to manipulate the data within.
Thanks
Suppose I have the following (shortened for simplicity):
jQuery("#grid").jqGrid({
...
ondblClickRow: function() {
// I want to define this function dynamically at run time
}
...
});
How to I bind ondblClickRow event outside of the grid Deceleration. For example in jQuery I would normally do
$('#grid').bind('ondblClickRow', function() { alert('my over written event'); });
Hi guys,
I have attached a event to a text box using addEventListener. It works fine. My problem arouse when i wanted to trigger the event programmatically from another function.
how can i do it?
I have some code which fires when user selects an item in dropdownlist. Now i want the same code to fire when i set selectedindex programmatically.
I have tried setting
ddlSystemLevelDCP.SelectedIndex=2;
and this as well
ddlSystemLevelDCP.SelectedValue="2";
None of them fires this event.However when user changes the selection,this event fires.Please tell me what am i missing.
I am trying to use onblur event to close a window. Its working fine in IE, Firefox and safari, but the event does not trigger in chrome. is that a bug in chrome or a mistake from me
I have developed a custom keypad using resco controls in my application I have currently handled the backspace button click event with the following code
private void customKeyboard1_KeyboardKeyUp(object sender, Resco.Controls.Keyboard.KeyPressedEventArgs e)
{
if (e.Key.Text == "Backspace")
{
Resco.Controls.Keyboard.CustomKeyboard.SendBackspace();
e.Handled = true;
}
}
This works fine with the edit boxes in the application but not working in edit boxes in the web pages (for eg. on gmail username text box).
so is there any way to raise the KeyDown event manually
Is there a way how modules can listen to parent application event? My current solution that works is:
private function directoryRemoteObject_saveCompany_resultHandler(e:ResultEvent):void
{
this.directoryModuleLoader.child.dispatchEvent(new CompanyEvent(CompanyEvent.COMPANY_SAVED, e.result as int));
}
this means that I need to dispatch event for every module. Isn't there better solution? Thanks.
I am writing a tic-tac-toe game in plt-scheme as my AI course project.
The idea for gui is a grid with 9 boxes, each with a canvas, using panes ...
When the user click on a canvas, 'X' or 'O' will be drawn accordingly ...
The question is how can I catch mouse click event on canvas?
I found out I need to use on-event, but still don't know how?
Any clues?
Hi all,
Just wondering what everybody's opinion is on the Windows Admin tool Event Viewer?
I'm writing a WCF application at the moment and have started logging errors to the windows event viewer when I handle them. I then started thinking, should I be logging more than just errors, such as when a user has logged in or out or would you go further logging even more activity?
Or is this a tool that's mainly used for testing without using the debugger?
Any input appreciated:-)
The ScrollViewer's MouseWheel event will fire only when the scrollbar is at the end of it's track (either the top or bottom/left or right). The MouseWheel event does not fire when it's anywhere in between.
Does anyone have any clue as to how to capture the scrolling when it's being caused by the mouse wheel?
I have a dialog that I show with <class>.ShowDialog(). It has an OK button and a Cancel button; the OK button also has an event handler.
I want to do some input validation in the event handler and, if it fails, notify the user with a message box and prevent the dialog from closing. I don't know how to do the last part (preventing the close).
Hi,
I want my web server to notify me through a php page when an event occurs at a another TCP server, to which the php page has successfully connected via a socket. The event is like the TCP server want to send a message to the web server, etc. Is there any way to accomplish this and/or any references on how to do it???
Thank You!!
I have textbox whose value if entered needs to be validated using some regularexpression
I need to validate the value as user is entering the data.
Which is suitable event can be used for this ? some sample example of using onfocus event on textbox will be helpful
I have 3 textboxes and on the keyup event for all the 3 I want to call the same function?
In the below code, I am tring to bind
'keyup' event to
'CalculateTotalOnKeyUpEvent' function
to textbox named 'compensation', but
it doesn't work
$("#compensation")
.bind("keyup",CalculateTotalOnKeyUpEvent(keyupEvent));
function CalculateTotalOnKeyUpEvent(keyupEvent) {
var keyCode = keyupEvent.keyCode;
if (KeyStrokeAllowdToCalculateRefund(keyCode)) {
CalculateTotalRefund();
}
};
Thanks..
If i attach a change event listener on a<select> how do i acces the option that was selected (not just the value, the actual element).
$('select').addEvent('change',function(event) {
//??
});
Note: i'm using Mootools
Hi,
I am confused, wanted to confirm the below statement -
We can create multiple event handle method for the same event?
I think yes, beacuse it is overloading concept? right?
Please correct my understanding or advise.
Thanks.
Hi Everyone
i m developing a website using .NET 3.5 with MVC 2.0. For server side validations i m using ComponentModel.DataAnnotations. these validations are reflected to client side by html helper's method Html.EnableClientValidation(). this scheme works fine for except that it triggers the validation on blur event of each form control whereas i want to have it triggered on form's submit event. any suggestions in this regard are highly appreciated
regards