click

jQuery - Click event on div but not on checkbox in the div

I'm trying to setup a click event on a div, and I would like that event to fire if that div is clicked anywhere except a checkbox in the div. If the checkbox is clicked, I do not want the div's click event to fire. I setup a click event on the checkbox and returned false, which stops the div's click event, but does not allow the checkb...

System Tray notifyIcon won't accept left-click event

Hi, I'm creating a System-Tray only application. It's somewhat complicated to have the icon without a main form, but through previous topics on StackOverflow I've worked it out. The right-click works fine, I've linked in a context menu, etc. I'm having problems with the left-click. As far as I can tell, the "notifyIcon1_Click" event isn...

How can I prevent Firefox from opening the gridview header sort postback link in a new tab on Ctrl Click

I am trying to make my gridview control in ASP.Net do a multi sort based on if the user pressed Ctrl key when trying to sort by clicking on a column name. The problem is that when I am using Firefox, if I click on a column name with Ctrl key pressed, the browser tries to open "javascript:__doPostBack('ctl00$ContentPla..." link in a new ...

Using UI Editor at runtime on a button click

Hi All, I have a custom UI Editor for a property in C# . The editor works fine at design time. How ever I want to lauch the editor on click of a button at runtime. How can I do this? Thanks, Datte ...

jquery click doesn't work on hyperlink

I have a simple link click simulation that I want to do using jquery. From what I've read, this should work, but the below code doesn't seem to work. Nothing happens if I do the same thing as a part of some other event or something either. Thoughts? <script type="text/javascript"> $(function() { $("#lnk_0").click(); }); </scrip...

Click Toggle (jQuery)

$("li").hover( function () { // do x }, function () { // do y }); .. thats for hover, how would I do the same for click toggle, i.e do x on click and y on second click? Manythanks ...

Disable user interaction in a GWT container?

I want to disable/enable user interaction (mouse click more specificly) on many widgets like hyperlink, button, etc which are contained in a composite (flextable) there are more than one click handlers, and I don't want to bother with removing and adding listeners according to mode (interaction enabled/disabled) Any ideas would be appr...

Calling .click(function)() inside Facebox

Hello, I've created a Facebox on my site and want to call .click(function)() to append text to all tags. I can get it working outside the Facebox, but it won't work once I put it inside. I haven't spent much time looking through the facebox.js file because I'm tight on time...so, if someone could help me out here, that would be great...

JQuery .click pass variables

Hi folks, propb. very simple, but not for me. Looking to pass a variable on a click function to show either div a or div b based on the a link clicked. My code is something like this $('.view').click(function() { var id = this.id.replace('view_', ""); if(id=1) { $('#show').show('slow'); } if(id=2 ) { $('#show2').show('slow'); } $(...

Tracking outgoing links with Javascript and PHP

I have tryed it using jQuery but it is not working. <script> $("a").click(function () { $.post("http://www.example.com/trackol.php", {result: "click" }, "html"); }); </script> <a href="http://www.google.com"&gt;out&lt;/a&gt; ...

jQuery - only fires on second click when changing iframe src

I'm trying to change the src of an iframe upon submitting a form. The iframe src won't change unless I hit the submit button twice. However, if I just change the input 'type' for my submit button to 'text', it works on the first click - but obviously doesn't submit the form. <script> $(document).ready(function() { $("#form1").su...

how to Make a program intangable with c#?

Hi! I just wanted to know, if there is someway to make a program (or part of a program) intangable with c#. I want to make it so that people can see the program is there, but if they were to click, it would click whatever is underneath it. I would also like to know if you can do that backwords. Is there someway to make an item that is in...

Toggle (if exists) nested element

HTML: <ul class="parent"> <li><a href="#">toggler</a> <ul class="child"> ... </ul> </li> </ul> I'd like to toggle 'child' UL (if it exists) via 'toggler' link. There might me multiple parent>child elements so I'd like to toggle the relevant child only. Thanks in advance for your help. ...

Preventing jQuery click() conflicts

I have a table of locations. Each location has a individual url associated with it. I am using one column to activate / deactivate that url so I can turn locations off and on. I'm using jQuery's bind / click to do that with an AJAX request. I now want to make clicking anywhere on that table row take the user to that individual url. va...

Jquery - save class state for multiple div #'s to a cookie?

Im trying to replicate a UI effect as on http://mcfc.co.uk I have written a script that hides a div on click function and applies a class to a div with the #id corresponding to the div that was clicked, and the reverse. Im new to jquery, how would i save the state of these 'clicked' div's to a cookie to show which were hidden etc?? Than...

When a mousedown and mouseup event don't equal a click

Hi, I've been using some buttons for a while now that have a depressed effect as they are clicked using position relative and a top: 1px in the :active pseudo-class. I had problems with click events not firing and it turned out to be due to the mousedown and mouseup events not firing on the same element. I did a bit of fiddling to make...

jQuery live click binding issue with IE6/7

I have an issue in IE6/7 where they ignore the live binding of elements. I can't seem to find any solutions to this issue, and I really need both IE6 and 7 support (fixing one should fix the other anyway). The first click of my elements works as intended but afterwords the binding goes away and I can't get it to work. This does not happe...

Binding a jQuery click event to each element within a foreach loop

I am building a plugin which matches an element, finds a link within it and makes the parent element go to that location upon a click. I have a loop in the main body: return this.each(function(options) { $to_link = $(this); //matched object link_href = $('a', $to_link).attr('href'); //link location $($to_link,$parent)...

Controlling cursor and keyboard with C++/Visual C++

Hello This time I have a question about C++. I'm using Dev-C++ for programming, but I also have Visual C++ Express installed so both are good. I'm creating a program like automated tasks, is it.. macro? But as I'm a noob in C++, because I started it a week ago, I need help. Please keep the answers simple :-D This is a part of my learnin...

Toggle next element (jQuery)

HTML: <div class="interview"> <h4>Interview</h4> <a href="#" class="question">This is question 1?</a> <div class="answer">This is an answer!</div> <a href="#" class="question">This is question 2?</a> <div class="answer">This is an answer!</div> <a href="#" class="question">This is question 3?</a> <div class="...