» Home » event » Page 1
Opening a fancybox from fullcalendar event - clicking the event opens the previouosly selected event's url
Category : Programming Languages

First time question asker here. I used several different threads on here to construct a fullcalendar that opens event information in a fancybox. More specifically, each day has an link (structured as an event) that opens a list of that days events in a fancybox.


I constructed the calendar and fancybox links with the following code:


$('#calendar').fullCalendar({

View Replies


JavaScript - Avoid executing event's default action. `event.cancelable` vs `event.preventDefault`?
Category : Web Design

When I don't want to execute the default action that is associated with the event, I use


function listener(e){
if(e.preventDefault) e.preventDefault();
/* Other code */
}

But I have just learnt that events have the boolean cancelable. Then, should I use this code instead?


function listener(e){
if(e.c

View Replies


FireFox and javascript Problems (event.keyCode or event.charCode or event.which not work )
Category : Javascript

i do not know what is going on my firefox!


my aspx and javascript codes are like this :


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script type="text/javascript">
function a() {
alert('a');
//alert(event.which);
/

View Replies


Design event dispatcher, event source, event watcher with type safety in C++
Category : C & C++ & C#

Need some help in sorting out design options for simulation framework in C++ (no C++11).
The user creates an "event dispatcher" and registers interest (using "watchers") in occurrence of "events". The dispatcher internally holds "event sources" which are used to detect event activation and manage notifications to watchers. There's a 1:1:1 mapping between watcher, event and event source cl


View Replies


Opera, event.layerX / event.layerY properties and mouseDropped event
Category : Web Design

I am writing some application with Raphael.js. And it should handle mouse drag events.


That is, when mouse drag is ended, i try to catch the point on the Raphael's Paper object (DIV / SVG element, actually) where the mouse caused drop event.


FireFox and Chrome are doing well with event.layerX and ev


View Replies


Javascript: Trigger an event that happens in a few seconds, but be able to cancel that event if another event happens?
Category : Web Design

Disclaimer: I am anything but a Javascript expert, so I'm not even sure if I'm approaching this correctly...


I want to be able to trigger an event in Javascript, but be able to cancel that event if another event occurs. So, what I'm looking to accomplish is:


User begins typing in a text box.
When textbox contents change, trigger an event that makes an AJAX call

View Replies


Attached event triggering if event is same as current event
Category : Web Design

I have a button which start/stops a timer. When I click it, I remove the current event handler, and attach the opposite one. Ie, click "Stop", and the "Start" function is attached for the next click.


However in IE (7), not sure about 8. The newly attached event is also triggering after the original function is finished:


Lifeline in IE7:
Button pushed --> "Stop" functi


View Replies


How to add all handlers (delegates) of an event instance to another event instance of the same event type?
Category : Programming Languages

I have two classes A and B.
In class A, I have an event EventA


public delegate void FolderStructureChangedHandler();
public event FolderStructureChangedHandler EventA;

In class B, I have the same event which named EventB.
In the a method of my application, I want to add all of the handlers registered to EventA to the event EventB



View Replies


How to have a single UserControl added to baseform but with different event handlers for same event in the inheriting pages?
Category : Programming Languages

This is my application setup :


I have a UserControls folder in my application inside which there is my .ascx file which happnes to contain just a simple ASP Button. I have not added any code in the code-behind of the ascx.


I have a BaseForm.cs (just a C# class file and NOT an aspx file) which is inheriting from System.Web.UI.Page


public class BaseForm : Sy

View Replies


Get an event when an event listener is added or removed on an object in the google closure library
Category : Web Design

I am developing an API in which I want to be able to know when an event listener on an object is added or removed. The reason is that some of the events I am firing will require me to continually poll an object for updates, and I don't want to have to poll the object if nothing is listening for the event. I am polling the html5 media player and other players for buffering updates, so eliminatin


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .