triggers

jquery trigger event on match of element on page load

I've created a custom jQuery function and I want to call it for every match of an element on the page when it loads. The syntax I'm using to call the function: $(document).ready(function() { $("div.class1.class2").fixClassesForIE6("a","b"); }); That syntax does nothing. The fixClassesForIE6 function is never called. I think I may...

jquery trigger a link won´t work

Hello, I have the following problem Is it possible to trigger a link, because this does not seem to work. The img picture has an atribute rel that contains the id of the link. Clicking on the picture should trigger the link if possible. I think it is because I capture a jquery click event and not the native link action anyway, here ...

WPF Style.Trigger

Hi, Somebody can tell me why this trigger doesn't work: <!--Style--> <Style x:Key="Test" TargetType="{x:Type Expander}"> <Style.Triggers> <Trigger Property="IsEnabled" Value="false"> <Setter Property="IsExpanded" Value="false"></Setter> </Trigger> </Style.Trigg...

Database trigger is recurising :( How to prevent this?

Hi folks, I've got the following trigger on a table for a SQL 2008 database. It's recursing .. so i need to stop it. After I insert or update a record, I'm trying to then update a single field on that table. Simple. Here's the trigger :( ALTER TRIGGER [dbo].[tblMediaAfterInsertOrUpdate] ON [dbo].[tblMedia] BEFORE INSERT, UPDA...

WPF - MultiTrigger in ControlTemplate, strange behaviour.

Okay, I've not done much WPF lately and this is confusing me. I have a Style defined for RadioButton, which uses a ControlTemplate with a MultiTrigger. The gist is that I want a Border to become opaque when the mouse either hovers over it or when it's IsChecked is true. So I have the MultiTrigger, which animates the Opacity in and ou...

Hibernate transaction boundaries

Hi, I'm using Hibernate (in a Grails app) and the transactional boundaries are service methods, i.e. every time a service method is called a transaction starts, and every time a service call completes the transaction is either rolled back or committed. If one of the database operations causes a database trigger to fire, and this trigge...

ASP.Net - Is it possible for an UpdatePanel to use a control within a UserControl as a Trigger?

I've created a Footer UserControl that I dynamically add controls into based on a number of factors. I want some of those controls to be triggers for an UpdatePanel on the same page. I have the following in code behind: private void SetupFooter() { WebToolBar footerToolBar = this.ShowFooterToolBar("~/ToolBars/PM_Footer.ascx"); ...

WPF Trigger a Command at end of animation.

How can I trigger a Command in my ViewModel at the end of an animation/storyboard using XAML only. ...

Shake Detection iPhone 3.0 not working

I have a ViewController that works perfectly with a button that trigger an action. I would like to replace the button with a shake event so I've googled it around and created a ShakeDetector class that ineherits from UIView and my implementation is as follow: @implementation ShakeDetector - (void)motionBegan:(UIEventSubtype)motion...

How to notify a windows service(c#) of a DB Table Change(sql 2005)?

I have a table with a heavy load(many inserts/updates/deletes) in a SQL2005 database. I'd like to do some post processing for all these changes in as close to real time as possible(asynchronously so as not to lock the table in any way). I've looked a number of possible solutions but just can't seem to find that one neat solution that fee...

Audit Table using Triggers

DROP TABLE IF EXISTS `actividades`.`act_actividad_audit`; CREATE TABLE `actividades`.`act_actividad_audit` ( `fe_creacion` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `usr_digitador` char(10) NOT NULL, `ip_digitador` char(15) NOT NULL, `id_act_actividad` int(10) u...

Same as "Trigger to update data on another SQL Server" but in SQL Server 2000

I have the same question to ask, but I'm using both SQL 2000 Server. When the table1 in SQL Server 2000 gets updated/inserted/deleted, I have to update another table in SQL Server 2000. How is it possible to achieve that ? Thanks in advance ...

WPF Expanders Triggers

Hi! I have 2 expanders side by side. Only 1 can be opened at a time. I want to write Triggers for them directly in their definition like this: <Expander x:Name="MenuOverView" ExpandDirection="Left"> <Expander.Triggers> <Trigger Property="IsExpanded" Value="False" SourceName="MenuDet...

Behaviours in ContentTemplate Triggers

Hi all, I’m loving behaviours and states in Blend 3. Typically I’m using the GoToStateAction behaviour to go to a state when an action (such as a button click) occurs. I’ve hit a snag with ControlTemplate triggers though. Blend lets me define states in the ControlTemplate, but I can’t work out how to assign the behaviour to use them....

Question about CronTrigger - Quartz

Concerning http://www.opensymphony.com/quartz/wikidocs/CronTriggers%20Tutorial.html .. given bunch of examples and I just don't get this, how would I write CronTrigger expression to run every minute of every day for unlimited amount of time. I've "figured" out about running it every second which is easy "* * * * * ?" how would I write ex...

Link Server Optimization Help

I have this code in a trigger. if isnull(@d_email,'') <> isnull(@i_email,'') begin update server2.database2.dbo.Table2 set email = @i_email, where user_id = (select user_id from server2.database2.dbo.Table1 where login = @login) end I would like to update a table on another db server, both are MSSQL. the query above works for m...

Triggering on a ScrollViewer's scroll bar visibility (WPF)

Is it possible to create a Trigger that is triggered based on a ScrollViewer's scroll bar visibility? I have a ScrollViewer with its VerticalScrollBarVisibility set to Auto and I want to change some of the ScrollViewer's properties only when the scroll bar is actually visible. Something like this: <ScrollViewer VerticalScrollBarVisibil...

mysql trigger stored trigger is already used by statement which invoked stored trigger

Hi, I want to set up a trigger so that if on an update the prediction field is = 3 then the trigger changes the value to 4 and saves it in the database. The trigger is below. For some reason I keep getting an error saying: "#1442 - Can't update table 'tzanalytic_forecast_cached' in stored function/trigger because it is already used by...

hook a hotkey from windows logon screen

hi i built a program that hooks the keyboard and when some hotkey pressed it openning the door (that connected to the COM1 serial port of the computer). this works fine, until i locking the computer (winkey+L). i want to be able to open the door with the same hotkey from the logon screen. i using Windows XP & C#. how do i do that? t...

Does Informix have scheduled triggers?

I need an Informix database to update some records on December 31 at 11:59; can Informix do this on a trigger, or does it have a scheduler of some sorts? I'm an Informix noob btw. I'm using informix 11.1 for hp-ux ...