click

Finding series item clicked in a chart in VB 2008

瘦欲@ 提交于 2019-12-24 09:27:50
问题 I am using VB 2008 with the Microsoft Chart Controls for .NET Framework. Using a pie chart, I would like to find the selected item when the chart is clicked or double clicked. I am have the click and doubleclick events as shown here, which I have confirmed is being hit, and the the eventarts contains the x,y position of the click. Private Sub Chart_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Private Sub Chart_Click(ByVal sender As Object, ByVal e As System.EventArgs) What

Timeout when using click() webdriver selenium function Python

白昼怎懂夜的黑 提交于 2019-12-24 09:24:57
问题 This is my first web scraping project and I'm using selenium webdriver with Python in order to dynamically generate some csv files after choosing a few options on a website (though I'm not there yet). However, I'm facing an unexpected timeout when the execution reaches a button click(). The click is performed but it gets stuck in there and does not continue the execution till the timeout. Any clues on how to solve that? Thanks!! from selenium import webdriver from selenium.webdriver.support

Delphi TPageControl not responding to clicks on tabs

和自甴很熟 提交于 2019-12-24 09:10:09
问题 I have an app with a TPageControl on the main form. The pagecontrol has several tabs. The app can be minimized to a tray icon. Sometimes after running minimized for a while, when I restore the main window (via a right-mouse click on the tray icon), the tab that was last displayed is displayed, but I can't select any other tabs! If I click on another tab, the appearance changes so that tab then appears to be the active one (i.e the tab itself moves to the front of the row of tabs), but the

JQuery - url location and click event

扶醉桌前 提交于 2019-12-24 07:46:43
问题 $('#head_menu a').click(function(){ currentPage = document.location.hash.split('#')[1]; }); <div id="head_menu"> <a href="#order"><div>make order</div></a> <a href="#portfolio"><div>portfolie</div></a> <a href="#contacts"><div>contacts</div></a> <a href="#vacancies"><div>vacancies</div></a> <a href="#about"><div>about company</div></a> </div> So, when I'm clicking to the links in head_menu div I come into this handler. But one trouble: if url has, for example, #about hash, in handler I'll get

How to detect clicks on specific links in page with Greasemonkey?

末鹿安然 提交于 2019-12-24 07:45:51
问题 Ok... one of my virtual pet sites was down so I decided to tweak a Greasemonkey script for another site... the original script just pops up an alert when you find an egg so you don't click past it - I thought it would be simple to count how many eggs I came across. After 2 hours I finally found a way to keep a variable past page reloads - SUCCESS!! Then I decided I wanted to keep track of how many "steps" I was taking... ARGGGG!!!! Should be simple but isn't! On the page there are three

Jquery animate fontSize back to original size on click

荒凉一梦 提交于 2019-12-24 06:52:54
问题 JSFIDDLE $("button").click(function(){ $("h1").animate({fontSize: "50px"}); How to make the font size return to its original size if clicked again. 回答1: You can achieve this by checking the current font size and then toggle the value to set, like this: $("button").click(function() { $("h1").animate({ fontSize: $('h1').css('font-size') == '32px' ? "50px" : '32px' }); }) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <button>CLICK</button> <h1>HELLO</h1

Apply jquery code on all elements

时光怂恿深爱的人放手 提交于 2019-12-24 06:44:34
问题 how can I apply a jquery function to elements that are loaded with ajax? <span class="h">Test</span><br /><br /> <span class="h">Test</span><br /><br /> <span class="h">Test</span><br /><br /> .... <span class="h">Test</span><br /><br /> <script type="text/javascript"> $(document).ready(function() { $('.h').click(function() { alert("test"); }); }); </script> So, this works perfectly. Every click on a span element returns an alert. But there the click function is not applied to the elements

delay with settimeout and for loop

青春壹個敷衍的年華 提交于 2019-12-24 06:01:18
问题 I have this code from here: How do I add a delay in a JavaScript loop? I use it in console in IE, and after this code I call the function with myFunction() in console to run; This first code runs perfectly, it clicks on the second "something" tagnamed element 10 times and between the clicks are 3000 ms delay. function myFunction() { (function myLoop (i) { setTimeout(function () { document.getElementsByTagName("something")[1].click(); if (--i) myLoop(i); // decrement i and call myLoop again if

find the region part of live using c#

纵饮孤独 提交于 2019-12-24 05:56:43
问题 I have done like this for creating click event handler for one part of the chart using mschart control, the chart is like this and the code like this private void targetChartmouse_Click(object sender, MouseEventArgs e) { try { var pos = e.Location; var results = kpiChartControl.HitTest(pos.X, pos.Y, false, ChartElementType.DataPoint); foreach (var result in results) { if (result.ChartElementType == ChartElementType.DataPoint) { //do something.... } } } } It's working fine when we click on the

JavaScript Click Events - Why do I need two addEventListeners?

♀尐吖头ヾ 提交于 2019-12-24 05:54:43
问题 I'm trying my best to learn unobtrusive JavaScript. The code below is an attempt to change an existing practice piece I had with the getArrays function called from within the HTML tag. This is the only version I could get to work. While it's nice that it works, I feel like there may be some unnecessary parts and don't fully understand why I need the last line of code in there (kind of new to the addEventListener stuff). I was working off of the Mozilla DOM reference example and know how to do