I have a UserControl with a dependency property called ItemsSource. When the property is changed, I need to calculate the size of various elements. To do this, I have to access the UserControl's ActualWidth and ActualHeight properties.
The problem is, if an object is assigned to ItemsSource before a layout update has occurred, ActualWid...
I'm using the excellent BeautyTips plugin as a means of indicating validation failures to end users and I'm running into positioning problems whenever page content is dynamically added, removed, or animated.
Here's a concrete example. I have a DIV at the top of each page that’s used for confirmation/error messages. It's displayed in $...
I've loaded a <textarea> with javascript,
and need to focus on it as soon as it's available.
The live() in jQuery must specify a "type" which doesn't exists in my case.
I need to do something like below:
$('#target').onAvailable($('#target').focus());
How to implement this with jQuery?
...
<div id="container">
<div id="son1">
</div>
<div id="son2">
</div>
</div>
When click inside "container" or "son1",I need to call "func1",
and when click inside "son2",I need to call "func2",and shouldn't call "func1" again.
How to do it with jQuery?
$('container').click(..) will be called even when clicking on "son2"...
I have one main "parent" swf that loads several other swfs. If something happens in the main swf I need to tell one of the child swfs about it.
This seems to work well the other way around. Any of the children can simply dispatchEvent(), and I can set up the main swf to listen for the event. However, I can't get the child swf to catch a...
Hi,
I have two javascript functions.
First one is:
function gallery(page)
{
$.scrollTo( '#'+page, 1000, '#' );
}
The next one is like this:
window.onscroll = function ()
{
makeCallv();
}
Here i want to disable window.onscroll function when gallery function is called. And s...
I have a View Controller, and a UIImageView as a subview. That UIImageView also has a subview of that same type.
I have:
self.userInteractionEnabled = YES;
set for each. My touchesEnded code was working. Any idea what would cause this? No touches are even reaching the touches events. I don't understand?
Any help appreciated.
Thanks...
Say I have the following :
var a = $("#a");
var b = $("#b");
//I want to do something as such as the following :
$(a,b).click(function () {/* */}); // <= does not work
//instead of attaching the handler to each one separately
Obviously the above does not work because in the $ function, the second argument is the context, not anoth...
Hi May know the reason of my Esc key event not getting fired.
here is my trail I've two forms form1,form2
in form1 button click event
Form2 frm2 = new Form2();
frm2.show();
in form 2 I've an event called
private void frm2_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
this.Hide();
...
I'm trying to use events to use the nice += -= syntax.
Here is my problem:
I have a lot of different events, so instead of creating many events, I would like to use only one,
where the registrant additionally supplies an additional parameter (string[]) detailing which (sub)events one wants to listen to.
The is basically what I'm doing ...
I've bumped up against this before and I need the help of someone smarter than me!
How can I attach an event of an element to a method of a class? More specifically, the same class? Is there a better way?
Using a Qt widget style approach, I've been trying to create self-contained "widget" objects in javascript. I'm using the Prototype...
I'm having the problem described in this message board post.
I have an object that is hosted in its own AppDomain.
public class MyObject : MarshalByRefObject
{
public event EventHandler TheEvent;
...
...
}
I'd like to add a handler to that event. The handler will run in a different AppDomain. My understanding is this ...
I need to distinct the action in BeforeExpand event of TreeView. The problem is that the DoubleClick event is lunched after BeforeExpand event.
When user double clicks the tree node the DoubleClick event is fired - which is ok, but the node is expanded/collapsed. I'd like to limit that the user needs to click '+' to expand the node and...
is there any notification support that nhibernate has in its framework that cna be used to register db changes?
...
Hello,
Is there a way to track Google Analytics Events from Server Side in ASP.NET, the requirement is the the Event should be tracked on button click after some functionalities are executed on Serverside. ? OnClientClick of button, we cannot fulfill this requirement completely as some time serverside functionalities can fail but the ev...
I am trying to compile a VB6 application, but it fails with the error, "Run-time error '91': Object variable or With block variable not set". It turns out the Resize event of a user control is firing during compilation and calling code that attempts to access an object that has not been instantiated yet.
Why is an event firing during c...
I have 6 instances of a moiveClip. when one is clicked, i need to write a function that affects all other instances of the movieClip, and not affect the one being clicked.
What is the most efficient way of doing this? Im thinking something to do with event class for sure.aa
...
Hi,
I'm looking for some code allowing easy asigning many event handlers to a single event of object... I needed it very much for my plugin architecture, so I implemented some replacement for that, however I don't like my solution for that, so I'd like to know what is yours idea/solution/tip ... My solution is just a list with items like...
Hi, I'm experiencing a very strange problem...
I have a regular ASP.Net webpage with a page_init and a page_load function. It is my understanding(from everywhere I look) that page_init gets called on the first page load(as in, not ever called in a postback) and page_load is called anytime something happens with the page.(It is very har...
I have an object, say Order where if an error occurs, it raises the ErrorOccurred event. If I'm running some code in say, the codebehind for a .aspx page with an public Order registered as WithEvents and I want to check to see if an error has occurred before I run more code, how do I do this? I can't simply check theOrder.ErrorOccurred. ...