jquery-plugins

Read multiple barcode from a single image using php or javascript

北慕城南 提交于 2019-12-22 11:29:27
问题 Is there any way to scan multiple bar-codes from a single image at a time using PHP or JavaScript. I have googled, but can scan only single barcode from an image. I have tried this code : https://gist.github.com/tobytailor/421369 回答1: If you can't find any good PHP or JavaScript Barcode SDKs, you can try some C/C++ SDKs. I just show you an example about how to wrap C/C++ methods in JavaScript and PHP. Here is an image with multiple Barcodes. You can use Dynamsoft Barcode SDK to decode the

Starting ColorBox slideshow using a link

浪尽此生 提交于 2019-12-22 11:18:54
问题 I would like to have a page with both an image gallery and a slideshow. The slideshow should be started when I click the link, the normal ColorBox should be used when I click one of the images. What I do now is group all the images with a rel. For the slideshow link I use the following code: <a rel="slideshow" href="#">Display slideshow</a> In the configuration for colorbox I define rel as the rel I use for the images. This works almost, the problem I have with this is that I get an extra

Scrollable Table using jQuery

a 夏天 提交于 2019-12-22 10:42:55
问题 Is there any good and light jQuery plugin out there make Scrollable Tables. I got one at http://www.webtoolkit.info/scrollable-html-table-plugin-for-jquery.html but that won't working non-IE and non-FF browsers. Thanks! 回答1: If you're looking for light code, skip the jQuery altogether and use pure HTML/CSS: <table> <thead> <tr><th>Header Item 1</th><th>Header Item 2</th></tr> </thead> <tfoot> <tr><th>Footer Item 1</th><th>Footer Item 2</th></tr> </tfoot> <tbody style="overflow-y: scroll;

jQuery plugin: Validation- labels are getting hidden

穿精又带淫゛_ 提交于 2019-12-22 09:24:13
问题 I use the following code of jQuery plugin: Validation: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> div.formerror { color: red; margin-bottom: 6px; margin-top: 1px; } input.error, select.error, label.error { border: 2px solid red; background

how to return true/false from nested jquery callback functions

☆樱花仙子☆ 提交于 2019-12-22 09:13:49
问题 I am trying to validate elements inside a javascript function which contains two jQuery callback loops. Based on the conditions I want to return true / false from the inner jQuery loop and that should be sent back to the calling method of javascript. If the result of the inner loop is true the loop should stop running. if(validate(key)){ } else{ } function validate(key) { $jquery.each(function(){ $jquery.each(function(){ if(){ return true; } else{ return false} }) }) } 回答1: I think this is

jQuery click() event isn't fired after sorting table

烈酒焚心 提交于 2019-12-22 09:08:05
问题 When you load the page, if you click on a line, it logs to the console clicked . But, if you sort the table (click on the table header), click event on tr doesn't get fired if you try to click on the rows. I'm using this plugin: tablefixedheader jQuery $(document).ready(function(){ $("table.ex").fixheadertable({ caption : 'Tarefas Disponíveis', showhide : false, height : '265', zebra : true, zebraClass : 'ui-state-default', sortable : true, sortedColId : 0, dateFormat : 'Y/m/d', pager : true,

FullCalendar showing event in month view but not day and week view?

落爺英雄遲暮 提交于 2019-12-22 08:36:42
问题 I'm working with FullCalendar fetching events from a json feed. However, I've run into a problem. The calendar shows my event just fine in the month view, but when going to the day/week in day-view and week-view, the even is not shown? My initialization of fullcalendar looks like this: var options = { header: { left: 'prev, next', center: 'title', right: 'month,agendaWeek,agendaDay' }, allDaySlot: false, monthNames: ["Januar","Februar","Marts","April","Maj","Juni","Juli", "August", "September

Why does this change to the Array prototype not work in my jQuery plugin?

有些话、适合烂在心里 提交于 2019-12-22 07:13:09
问题 I have added the following method to the Array prototype: Array.prototype.foreach = function(func){ for(var i = 0; i < this.length; i++){ if(!func(this[i]) === false) break; //return false from func in order to break the loop } return this; } In the same file, after the above code, I have the following jQuery plugin: jQuery.fn.addClassForEvents = function(){ var that = this; arguments.foreach(function(event){ that.bind(event[0], function(){ that.addClass(event[0]); }) .bind(event[1], function

jQuery validate - User must select YES radio (not no) in order to conitnue

泄露秘密 提交于 2019-12-22 06:47:34
问题 I would like to set up a jQuery validate rule to require that YES (not no) be checked in order for the form to validate/submit. User must accept terms. If the user selects no they will get the error msg and the form will not validate. What is the correct way to accomplish this using jquery validate plugin? <form id="myForm"> <input type="radio" name="terms" id="terms1" value="Yes!" class="required" title="Must accept terms to continue" /> Yes <input type="radio" name="terms" id="terms2" value

jQuery change content of colorbox

偶尔善良 提交于 2019-12-22 05:42:11
问题 I tried already questions with simliar titles, but they don't work. (For example: How to load AJAX content into current Colorbox window?) I have the main page: (including jQuery 1.6.1) <script type="text/javascript" src="js/jquery.colorbox.js"></script> <link rel="stylesheet" type="text/css" href="css/colorbox.css" /> <script> jQuery(function(){ $("#aLink").colorbox(); $('#blub a[rel="open_ajax"]').live('click', function(e){ e.preventDefault(); var url = $(this).attr('href'); $.ajax({ type: