Hi there,
Is there such a thing as publish and subscribe for use with jquery to send msgs from 1 javascript page to another.. Using the same idea behind ajax publish and subscribe?
I would like to use the pattern for communication between pages, i have been using a javascript framework lately but recently converted back to jquery and w...
Hi all,
I have a text input that its content is changed by a script not by user. So I would want to fire an event when the value changes. I can't find a suitable event for that.
I event found this on StackOverflow but is not the solution I'm looking for.
How to make this work with jQuery and a text input where the value is set like thi...
I am getting an EVENT undefined rror in the ASP.NET C# code below. I am dynamically creating image buttons and am explicitly assigning them to a CLICK event. After the user clicks on a thumbnail, the user is directed to a page with a blown up image of that thumbnail. When the user presses the back button to go to the original page thi...
Hello!
I have a window, in which i have many controls, UserControls or controls derived from other controls (and grids and frames).
It works fine if i DON'T add any event to ANY of the controls i have in my window (in XAML). I have many other events that don't cause this, but if i add a new event. It will crash.
Example:
This is the...
Here is the UI of my application. It contains a DataSet, a Save Button, a calendar (monthCalendar), and a DataGridView (columns are Assignment, Description, Date Due, Subject Finished). I want it to do the events:
The Calendar changes the dates to a different color if they are in the date due column
The save button should save the Da...
Is there a way to get information if an element that's draggable is reverted? I'm stuck on this. I want to make an element droppable again but only if the draggable that was lying there is moved elsewhere (meaning doesn't revert).
Thanks in advance.
Kind regards,
flo
...
Not sure if this is an appropriate programming question or not; but here goes....
I've written a very simple add-on that displays text/plays a sound when certain spells become usable (Overpower / Revenge).
But I've been unable to find the appropriate event to listen for to check this. My hack-ish approach is to simply check the state ...
I can define an event like this(declared function):
MyElement.Keyup +=MyDeclaredFunction
I can also define it like this(anonymous delegate):
MyElement.Keyup+=new delegate(object sender, eventargs e) {};
I can also define it like this(lambda):
MyElement.Keyup += (sender, e) => myfunction
What is the best way to do this? One case...
Hello,
I would like to be able to detect if the mouse is still over the element in the following scenario:
If mouseover then sleep for a few seconds.
Once done sleeping check of the mouse is still over the same element.
If true then do something.
How can I achieve #2?
Thank you.
...
Hai Guys,
How to add events like oncopy,onpaste to a dynamically generated textbox in a windows form applications...
...
The radio buttons when selected work fine in terms of outputting a selected color via the radio buttons onto the page or screen.
Each radio button represents a different color.
I was wondering if it's possible with some java script to be able to manipulate the contrast of each selected color.
For example by constantly clicking the Col...
Hi
I'm a total Flex newbie and I struggle with event model. I have the following scenario:
having DataGrid with dataProvider set to ArrayCollection
the data grid is a simple to-do list, first column contains check box as item renderer
other columns are plain strings
What I need to achieve is that after data grid has been created or ...
I mean the following:
I have a custom control which has StateChangedEvent:
public class WindowControl : ContentControl
{
public static readonly RoutedEvent StateChangedEvent;
static WindowControl()
{
WindowControl.StateChangedEvent = EventManager.RegisterRoutedEvent("StateChanged", RoutingStrategy.Bubble, typeof(RoutedEventHandler), ty...
I mean if i have some custom event with bubbling strategy, then who must declare preview event and who must care about its raising? Me or WPF?
for example I has class with event
public class WindowControl : ContentControl
{
public static readonly RoutedEvent StateChangedEvent;
static WindowControl()
{
WindowControl.StateChangedEvent ...
hi ,
in jQuery. i am invoking an event by class. how do you do same in Prototype.
$(".button").click(function() {
var element = $(this);
var Id = element.attr("id");
});
...
I'm trying to update a Javascript variable that controls a scrolling script based upon some Ajax code. The Ajax code is supposed to add to the JS Var when conditions are true in the Ajax script. Is there any way to trigger this?
Thanks!
edit: I'm not sure how to change the value of the variable. I've tried changing it via the Ajax but ...
I am using this code
try
document := (pDisp as IWebbrowser2).Document AS IHTMLDocument2;
Body := Document.body;
Links := Document.links;
for i := 0 to (Links.length-1) do
begin
tmp := (Links.item(i, 0) as IHTMLElement);
tmp.onclick := TEventObject.Create(MyProcedure) as IDispatch; // THIS LINE
end;
exce...
This is the call:
bool isValid = true;
if (this.ExternalConstraint != null)
{
isValid &= this.ExternalConstraint(this, EventArgs.Empty);
}
if (isValid)
{
//...
}
The event look like:
public delegate bool externalConstraint(object sender, EventArgs args);
event externalConstraint ExternalConstraint;
When debugging I n...
I want my application to be able to display certain information when no user input has been detected for some time (like a Welcome/Instruction layer). Is there anyway to have the application register any form of user input (keyboard, mousedown/move etc) without having to write handlers for each of those events?
Is there a generic input ...
Using Mootools, but a generic answer is fine.
I would like to remap the 'Enter' key in a web application.
When they hit 'Enter' it should react as though the 'Shift-Enter' has been pressed.
I would just stop the enter event, and use exec.insertHTMLor its ilk, but FF's implementation is buggy on many elements.
I imagine that I could fi...