» Home » click » Page 1
jQuery UI sortable and live() click problem — need to click twice after sorting for click to register
Category : Programming Languages

I have a table I'm using jQuery UI's "sortable" on. In the table, I have rows consisting of a "drag handle" to grab and reorder the table, and cells with clickable items, like this:


<table id="test-table">
<tbody>
<tr>
<td class="handle"><div class="ui-icon ui-icon-arrowthick-2-n-s" /></td>
<td cla

View Replies


Advanced right click functionality - click and hold, show buttons, on release click what is hovered over
Category : Web Design

How would you do this in javascript/jquery?


I currently have the right-click + hold to show a div, and then it disappears on the release of the right click. However, I would like to click any button the mouse is hovered over on the release of the right click.


This is what I have so far:


// Cancel out the default context menu
$('body').on(

View Replies


javascript: Implementing selection via click, control click and shift click, such as in windows explorer
Category : Web Design

In Javascript:


I need to implement selection via click, control click and shift click on rows in an html table, such as in windows explorer, and I hate to write it if the code already exists.


Can anyone point me in the right direction?


thanks!


View Replies


link click event not firing button click event on the first try (IE only). Works on second click.
Category : Programming Languages

This is driving me mad. I've got a div on my page that opens up in colorbox. When the user clicks one of the links in the div, it fires an event to the code (below) which should in turn populate the hidden field and then click a server button to run some code behind.


Problem is, in IE(9) it won't click the server button on the first attempt (yes, it does go onto the client click ev


View Replies


Knockout custom click binding, return true to prevent click hijack?
Category : Web Design

So we all know return true manually will allow default click action on element with a click binding, but what if I have custom binding as following:


ko.bindingHandlers.action = {
init: function(element, valueAccessor, allBindingsAccessor, context) {
var options = valueAccessor();
var params = options.slice(1);

View Replies


jQuery: on click disable click event till response from ajax call
Category : Web Design

Doing following in jQuery:


$('#signupbox1').on('click', '#signup1', function() {
var str = $('#signupform').serialize();
// make it look like a waiting button
$('#signup1').addClass("btn_wait");
var btn_val = $('#signup1').val();
$('#signup1').val(');
$.ajax({
type: "POST",
url: "signup_step1.php",
View Replies


Fancybox doesn't trigger on $(elem).click(), but does on “real” click?
Category : Programming Languages

I'm having trouble getting fancybox to trigger. I have it set up to trigger when you click an element. I still don't know why, but for some reason fancybox only works if i bind it using live(), sort of like this:


$(document).ready(function() {
// This works
$('.fancybox').live('mousedown', function() {
$(this).fancybox();
});
View Replies


How Create a right click context menu when I click on marker in Google map Using java Script
Category : Java

I have developed a javascrit code which shows google map.When I click in map it creates a marker.


now what is i want, when i click on marker is should show right click menu at clicked location.


View Replies


Modal popup flickers or flashes first time I click. Next click doesn't cause it to flash
Category : Programming Languages

OK I am posting the whole code. So any tag with name=modal will render the modal.
Hope this will help finding the flicker issue.


This is how it is triggered:


<a tp='#dialog' name='modal' tgt='bob' title='Send message'>Send message</a>

JavaScript code:


$(document).ready(function () {
initmodal()

View Replies


ActionScript 3 - anonymous function as click handler is called multiple times per click
Category : Web Design

I have a button labeled 'blueButton' and I'd like to use an anonymous function to handle the click, like so:


blueButton.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void {
trace( "-----click detected-----" );
// now do other stuff
});

Problem is, the click handler is called multiple times per click. The number of times called


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .