Hello.
I have two web parts that communicate. The provider can not give a value(an RID) to the consumer until at least the provider's Page_Load event. So the consumer can not know the RID it needs until after Page_Load. So, I hooked into Page_LoadComplete. Now there is a problem. The consumer creates dynamic controls based on this RID. ...
I have built a PHP calendar system and have pretty much everything done but not sure how to deal with a UI issue involving how the events that stretched out over a couple of days. I want to be able to stretch an event that stretches over couple of days in a div that spans those days in the calendar. Basically I would like to know how to ...
I was just reading a page on events on MSDN, and I came across a snippet of example code that is puzzling me.
The code in question is this:
// Make a temporary copy of the event to avoid possibility of
// a race condition if the last subscriber unsubscribes
// immediately after the null check and before the event is raised.
EventHandle...
Hello everyone,
here come my problem I am registering dblclick event on some p tags, when the user double click on this tag he can edit the content. So far so good the only problem if the p tag contain other tags and the user click on this only the content of that tag is editable.
to clarify a bit here come an sample
<html>
<head...
I have an expander that has n contained elements (possibly other Expanders that also contain elements).
Now I want to programmatically bring a contained element into view - like with BringIntoView() for ScrollViewers. All Expanders that currently hide the element should expand.
My current idea is to subclass the Expander and make it ...
This is a repeat post with more info...
I create a bunch of tags dynamically, appending them to a I then add a click handler...
$(document).ready(function(){
// ... code to append <a> tags to nav div
$("#nav a").click(function(event){
alert('Clicked '+event.target.id);
return false;
});
});
If I hav...
I am having trouble trying to get a click event to fire after the command gets executed. I am trying to follow the MVVM style of development.
Here is the scenario:
In my application I have a grid of 2 by N buttons, where N is a dynamically loaded set of buttons (sometimes it'll be 2 x 2, sometimes its 5 x 9, I don't know). Initially, a...
html:
<ul>
<li><input type="submit" id="myId" value="someVal"/>
</ul>
jQuery
$('ul').find('input[type="submit"]').click(function{
alert('nasty alert')
$(this).attr('id','newId');
});
$('input#newId').click(function(){
$(this).hide();
});
ok, so my intention is to change the id after one click and th...
ok so basically I have this:
<div id="tabs">
<div id="unique_id" class="tab_link" onclick="changeTab(this);">
<div id="tab_link_image" onclick="closeTab(this);">
<image src="image.jpg" />
</div>
</div>
</div>
Now in the closeTab function I have it removing the tab from the page. In the changeTab function I have it toggling a ...
Is there any event which allows me to get informed when a client accesses any of the listening WCF service methods ?
...
My DOM looks like:
<body> <div class="c1">
<div class="c2">
...
</div>
<div class="c3">
<div class="thisone">....</div>
</div>
</div>
<div class="c1">
<div class="c2">
...
</div>
...
how can i disable live('click', function...) method and then after ajax call (depending on response), then enable it again?
i read some place that "event.preventDefault();" dont work on live method and even if it works, how can i enable it again? i cant use die('click', function...) method, because it will disable all the links and not ...
Hi,
I have an input text login/password, i use a label which i display inside the input, when the input takes the focus, the label is hidden, when the input it is blurred if the value is not equal to "" the label is displayed again, it works great using the focus() / blur() functions, but, how could i handle the browser auto filling, b...
I've written an ActiveX control using ATL. I used the wizard to add support for connection points which added public IConnectionPointContainerImpl<CActiveX> and CProxy_IActiveXEvents<CActiveX>, where the CProxy_... is the wizard generated code to fire events.
I've defined a dispinterface as follows:
[
uuid(43ECB3DF-F004-4FAD-...
When attaching a function to the onmouseover event for an SVG group <g>...</g>, the event occurs once, each time the pointer enters to an element in the group.
This occurs even if two elements in the group appears one inside another.
For example:
+-----+
|A ___|
| |B |
|__|__|
When the pointer enters the A rectangle, and from ther...
I have a YAHOO Panel object defined like this:
profilesDialog = new YAHOO.widget.Panel("profiles_dialog", {
width: "705px",
height: "609px",
fixedcenter: "contained",
close: true,
draggable: true,
zindex: 2,
autofillheight: "body",
visible: f...
This is in continuation of
http://stackoverflow.com/questions/1613744/how-to-attach-an-event-to-onsubmit-event-of-form-with-chaining-earlier-attached-m
Now, i am having disablePage method which will be executed every time there is any submit event occurs. But i don't want this method to execute if the event is generated from export bu...
Hi guys..
I am just adding a Flex HSlider to my dialog. It allows for setting a time duration in days, and I thought it would be great if the user can snap to weeks by pressing the SHIFT key while dragging the slider.
Unfortunately the event passed to the event-handler contains no key modifier information..
Here is my code:
protected...
Hi,
Anyone know how I can add a marker to an image (not a map) in Javascript?
Ideally I'd like a handler that behaves much like adding a marker to a map - i.e. onclick causes a marker to be displayed at the point that was clicked, and returns the x/y pixel coordinates of the point that was clicked.
Is this possible?
Cheers
Richard
...
I discovered that an event raised (directly on indirectly) in the constructor cannot be handled outside the very class. To prove if that was the actual problem, I wrote a simple exemplary app.
Class with the event:
Namespace Utils
Public Class A
Public Event Test()
Public Sub New()
CallTest()
En...