extending jQuery.expr.filter.CLASS
Hi! We use the HTML class attribute to give the JS access to parameters. For example a class="cssclass jsclass(a=b;b=c) cssclass2" can be read by a script using something like $("element").filter(".jsclass").getParameters(). To achieve this we extended jQuery.expr.filter.CLASS to match classname( too. That worked fine in 1.4.x and with a slight modification it works in 1.8.x too. But when I override the default behavior of jQuery.expr.filter.CLASS, I loose the classCache because it is a local variable.
What is wrong this jquey plugin?
I have a young jquery developer working on my wordpress sim only deals comparison plugin. The plugin is that is powered by jquery. I am unhappy about the fact that the plugin takes about a whole minute to load my sim only deals in IE8 while it loads all my deals in about 6 seconds in FF and chrome. In fact I would ideally like to make the whole thing much faster across all browsers but probably not possible. I suspect that this IE8 issue is to do with how IE8 deals with my developers JS code. My
$.fn.extend or $.fn.myPlugin
Hi, I'm reading several Plugins and found following Syntaxes: $.fn.extend({ nt_modalbox: function (opts) { $.fn.nt_modalbox = function (opts) {In my testings both did the same. Are they both just different ways to write the same thing?
OOP in Javascript: Class function to define "classes"
Hi all, i' ve written a tool that provides a “Class” function in Javascript: it is intended to be a really light copy of the MooTools’s Class function with basic features, to encourage OOP in Javascript and make the inheritance easier. It is not really a jQuery plugin but a tool i am using with jQuery and i' ll be happy if someone will make a jQuery plugin of it. Here you can find more about it, examples and sources (it is a post on my blog): http://nerdstuckathome.wordpress.com/2012/11/14/a-class-function-to-define-classes-in-javascript-with-mootools-like-syntax/
New plugin system
I have followed all the steps at the plugins.jquery.com repo on github to be ready to add my plugin to the new system, I have a plugin called Tweetslider in the old repository, but I am confused. I have set up the local jquery sites using /etc/hosts to route it to my ip, and set up all the node functionality. I assumed that publishing a plugin would be done via the wp-admin of the local site, but it seems this is not the case. The more I read, the more it seems that I simply add a jquery.json manifest
Tag Manager draft specification
http://tagmanager-tomanderson.rhcloud.com I will be creating this tag manager based on this specification soon.
why $(this) is used in this way?
Hi all, In a plugin I see a the following code, $.fn.galleria = function( options ) { if ( !$(this).length ) { ... The code works. But this in $(this). above should be JQuery, so $(this). is essentially $(jQuery). Why don't use just "this"? Thank you.
New jQuery Plugin - EzQ
This was as right of a place as I could find for announcing this. And, before I get started, I originally came up with this functionality for what I consider a fairly fringe case scenario but I couldn't find any jQuery plugins that did it already so figured I'd release it to the world. (After cleaning it up first) Anyway, here's my first jQuery plugin: https://github.com/Nemesis-Xero/jquery-ezq Like the Github page says, it's basically a wrapper for jQuery's queue functionality. It handles a lot
to print one div content from page containing more then one div without opening new tab or new window in ie
function ------------ var opt; $.fn.div_print = function (options) { opt = $.extend({}, $.fn.div_print.defaults, options); var $element = (this instanceof jQuery) ? this : $(this); //for mozilla/opera or opera support if (opt.mozilla/operaSupport && $.browser.mozilla/opera) { var tab = window.open("","div_print-preview"); tab.document.open(); var doc = tab.document; } //for ie support else { var $iframe = $("<iframe
Changing Message displayed within JQuery method
This might be a high-level question but, I want to change the message that's displayed within my webpage, in the defaultMessage method/procedure. This is so that it can be more user-friendly to the client.I have replaced the text that was assigned to $.validator.messages[method], from: $.validator.messages[method], "<strong>Warning: No message defined for " + element.name + "</strong>" ); }, to having a different message assigned to the $.validator.messages[method], I have rebuilt the solution
Essential difference between on and bind?
What is really the difference between .on() and .bind()? (excepting the version difference) I've been using 1.64 version for a long time, and now I'm actually getting scolded for using the old .bind() method, but I can barely understand the reasons for upgrading though. I also wonder what methods do you guys use for the community plugins, and should we generally consider the back compatibility? The latest versions add quite a bit in weight, so maybe not all of the users want to upgrade...
jQuery UI widget factory, separate widgets sharing data
Hi All, I think I'm missing something here. I thought that when you created a new widget each instance of that widget's attributes are unique to it. It seems that a change of one internal attribute in one, affects all the other instances. Here's jsfiddle demonstrating the issue: http://jsfiddle.net/xVMuh/1/ In this case, shouldn't each value logged be unique to when the widget was created? What is going on here? It seems "that this.something.A = new Date().valueOf()" is actually setting the widgets
A issue related to jquery.
Now we have already completed the hack for the native HTML5 audio mode, but now we need someone to complete it for the flash failback mode (if you test our version now in Chrome it will play M4a files because Chrome support HTML5 audio playback for M4a files, but if you test in Firefox, it will not work b/c Firefox does not support M4a files). jPlayer is all open source (including the flash fail-back part). To get the source files, go to http://www.jplayer.org/download/ and scroll down and download
How to develop Jquery plugin like one which is present in fifteenrobin.com.sg
Please help me develop a jquery plugin like http://fifteenrobin.com.sg/ especially that contents sliding from lateral side of screen whenever i scroll
Developing plugin for database access (SequelSphereDB)
I am developing a jQuery plugin as a connector to a javascript relational database API (SequelSphereDB - see http://sequelsphere.com). It is a simple API for accessing a local database with SQL. While nothing is needed to use it in jQuery, i would like to make it more jQuery-friendly. In examining how to make a simple, synchronous database API useful in a jQuery environment, many options are available depending on the application architecture employed by the programmer. This begs the question,
Forms tightly coupled to ajax queries
I’ve been starting work on a new query plugin for tightly tying web page fields to the input and output of ajax calls to the server. The client side could be as fancy as it wanted with display and editing of values. The server code that implemented the calls could do whatever it need to get things done. Logically I the glue in the middle seems mostly rote and automatable, but I can’t find anyone who has made that happen, so I’m writing it. And I keep feeling like somebody else must have already
Public Callback Function in own Plugin
Hi, i have written a little plugin in jquery which works good so far. i want to have a public callback function e.g. if the image is loaded (everytime), the name of the function is loadData(). i have some public functions which execute some code, i can call the functions in my html file, this works perfect. now i want to have some callback if some function is completed. sorry for my english ;) code is attached thanks for your help, greetings
How can I validate two fields together using jquery inline validation?
I have 3 fields (first, middle, last) names. I would like to validate the first and last name, requiring them, and checking for characters. I don't want to validate them individually. Any ideas?
Logging via $.jog — easy to use, lots of power
I looked over the existing logging packages and none of them were sophisticated enough for my needs, so I wrote another one, $.jog, available at http://kcrca.github.com/jog/ Jog is a JavaScript/JQuery logging package for application logging, analogous to Java packages such as log4j or java.util.logging. It allows you to separate your logs into various areas so you can turn on the logs of one area without seeing all the others, especially those of plugins or other packages you may be using. Using
Multi Instance Plugin Issue
Hey all, I'm in the process of writing a JQuery Plugin, and have ran into a bit of a snag. When I create multiple instances of a plugin, it always ends up returning the last instance that was created. Can any of you JQuery wizards help me out? Here is an example of the code that I'm using. I'm currently testing this in chrome. <html> <title>Sample</title> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script type="text/javascript"
3xCLOUD Plugin
3xCLOUD jQuery Plugin 0.0.1: · Is a JavaScript based, cross browser tree component, packaged as a jQuery plugin. Documentation · Requirements: 1. API key from 3xCLOUD 2. jQuery 1.6.3 or newer 3. 3xCLOUD jQuery Plugin Getting started with 3xCLOUD Plugin Link files Add these items to the <head> of your document. This will link jQuery and the 3xCLOUD plugin into your webpage. <!-- Place somewhere in the <head> of your document --> <script src=" https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
$.progressiveAjax
Hey guys Out of the need to read a very big ajax-response on a mobile phone, I started to build a plugin which is able to process the ajax-call as if it would be a stream. Since I don't have an private ftp, check my github-rep if you have an equal need: https://github.com/richifrick/jQuery.progressiveAjax Cheers!
Alert like facebook, if user's session expired
Hi everybody, I want to alert message using javascript, if user's logged in session is expired. What i have to do? Please help. Thanks Madan
Track Browser close event using jquery
Hi everybody, I want to track the browser close event to logout the user if they close the browser. Please help. Thanks Madan Kumar
New plugin: multiselection on select, avoiding <ctrl> and using only the <select> tag, no additional HTML
Hi, it is the first time i write in this forum but i often checked it to get helpfull informations. I just would like to share a plugin i wrote; by this plugin you can add the multi selection feature on a select tag, avoiding the <ctrl> button. There are a lots of plugins to do that but they usually add a lots of additional HTML... Mine doesn't add any HTML. I don't write more about it because at this adress (it is my blog, i hope i can post it here) you can find the plugin explained and demos on
creating validation plugin
This is my first time creating a plugin. I am trying to make a plugin that will validate whether an input field is empty or not. My problem is with the keyup() function - if I call it as I did in 1.php it works fine, but I want to put keyup() in a plugin as I did in vall.js, it is commented out as $(this).keyup(function() is not working. Should I place keyup() somewhere else or make a separate keyup() function.? Later I want to add keyup(), focus()... to options so I can just write keyup:true or
Close button in Jquery mega menu?
Hi Everybody. I use the Jquery mega menu on one of my websites i'm building. I just have one huge problem, really would like to add a "close" button inside the drop down menu. You can see my menu here: www.medidyne.dk/wordpress And you can see what I would like to achieve on this website, when you try to click on the menu: www.novonordisk.com Please help :) I need this website to be done soon...
Tablesorter multi column sort works erratically
I am noticing trouble sorting on multiple columns using the tablesorter plugin. I have three columns, two are text and one is a drop down. If I shift click the first column and then the second, it only sorts by the first column. If I shift click on the second column and then the first it will sort on both columns. And it can't sort the column of drop downs at all. Is there something I am missing? Here's the HTML: <!DOCTYPE html> <htm1> <head> <title>Mike's Filter Test</title> <script
Data table plugin configuration
I have been using data table plugin of JQuery.But documentation about its configuration is not found. Reply if u know its documentation path.
jquery tabs& maps
Am using google map inside jquery tabs. google map is not displaying inside tabs.Please help. Below is my code. <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBzHZOqQ2vYEd55e8NldIjmUaI8xntUzzQ&sensor=true">
jqgrid column header alignment with columns
Hi All, as i am new to Jqgrid ,when i created grid with more than 10 columns in it, then the column header are not alligned with colummns ,anybody having solution ,its urgent as it contain some hidden columns also. .js files used are(/ui.jqgrid.css/jquery-1.5.1.min.js/jquery-ui-1.8.11.js/grid.locale-en.js/jquery.jqGrid.min.js)
request for help with terminology
I am getting ready to copy & paste Google Analytic's tracking code so that my website can be tracked by Google Analytics. However, on one of the instruction pages the following is stated: "Be sure to copy the snippet and paste it directly onto your website using either a text editor or an editor that preserves code formatting. We recommend that you do not use a word processor to copy the snippet from your account. Doing so can add an extra space or change the quotation marks in the tracking snippet,
semi revealed accordian
I dont know what to call it, but this guy has an accordian function on his site that i want to replicate, can anyone help by explaining to me the concept of it or at least point me in the right direction? this is the website. <http://www.tylerbuilds.co/> i have a basic style of one at <http://brentdeacon.manapool.net>
jquery plugin on click check element is visible
Hi, I'm creating a plugin that opens a popup/tooltip on click a Icon. The problem i'm having is that on click i want to check if the element is visible or hidden. If visible close the tooltip else if hidden open the tool tip. What the issue is that the .is(':visible') always returns false even though the element is visible and i can't work out why. A code review would be good to. I have create a jsFiddle link so you can try it out. http://jsfiddle.net/emjaksa/ExvYj/8/ This is the code that i have
[Doubt] jQuery Plugin
Hi guys, I'm trying to make a jQuey plugin with my own methods, something like this: var myPlugin = new MyPlugin(paramA, {"foo": "bar", "foo2": "bar"}); myPlugin.doThis(); myPlugin.doThat(); I don't know how could I make this kind of plugin. I don't know how can I start. Can you let me a little sample with a little explanation? Thanks!
How do I combine two plugins?
Hi people, I was wondering if you can help me with a small challange. I have a website, where I have added two jqyery plugins: 1) Jquery Lightbox2 Lightbox2 This excellent plugin enlarge pictures on mouseclick. 2) Jquery Loupe Loupe Also an excellent plugin, which works as a image magnifier on mouseover. now, what I want to do is to combine these two plugins in order to get the following feature: when i want to study an image/picture, I click on it to enlarge it (Lightbox2) and on the enlarged
having an issue with SmoothDiv Scroller
I am trying to accomplish something similar to another post on here( hence why I put it in this area), https://forum.jquery.com/topic/urgent-need-a-jquery-scroller-for-images-that-are-hoverable my issues seem to be similar with a twist, 1st issue is the right side does not seem to trigger or do anything . 2nd issue is getting the scrolling to be smooth. here is a link to what I have happening now. http://www.jhalligandesigns.com/test/kander/ the one in question is the "my work" just below the fold.
Urgent: Need a jQuery scroller for images that are hoverable
Hey all, I basically need to mimic this the scroller at the bottom of this site: http://hobsonvillepoint.universal.co.nz/ I'm using wordpress. I've looked on CodeCanyon and WP plugins but can't find anything like it. If anyone knows where I could get something like that, or would like to make one to get some cash - I'd be very greatful. Cheers
Infinite loop - can't find jQuery
I have a weird problem that only happens occasionally. In my js file there is a section for utility functions. I eventually added a section for jQuery utility functions (shown below). The code is in the middle of the file but not inside of any closure. The script tag for the file comes after the sript tag for jQuery. Some times, and as of yet I don't know how to reproduce this, the code will run an infinite loop giving the error that it can't find the variable jQuery on line 37 of the code shown
slideshow callback
Hello! im working with a slideshow on my page and have a problem with some things. I want to be able to change the body class depending on img class. on this site http://dimsemenov.com/plugins/royal-slider/documentation/ is the api for this slider. i think it is possible to use the sliderinstance variabel and then use one callback event and then use my own code in this function. Ive tried this one. But it is not working. var sliderInstance = $(”.royalSlider”).data(‘royalSlider’);
Next Page