jquery-plugins

How does using 'this' in a simple jquery function work?

Hi, I am having trouble understanding this code: $.functionone = function(){ function setOptions(newOptions){ ... } this.setOptions = setOptions; } what does adding 'this' in 'this.setOptions' for? I understand that its referencing the function setOptions, but does adding the 'this' there make the function get called? I k...

NetBeans jQuery plugin code completion

I'm using NetBeans for PHP. When I edit a .js file, it gives me JavaScript code completion. How can I get it to also give me jQuery code completion? NetBeans 6.9 code auto-complete is not working for jQuery plug-ins. The code auto-complete is working for jQuery but not for plug-ins such as the validate plugin. Is this a bug in NetBean...

In jQuery, how does prepend() work on a children() function?

I am a little confused on how prepend acts towards a children function. image.canvas.children('.image-pinpoint-view').prepend(this.area); where would this.area appear? ...

Getting jQuery plugin to act on dynamically loaded (ajax) content

Hello Stack geniuses! I have one jQuery plugin (colorbox) that loads a modal popup window (with an external html file). <-- works perfectly by itself. I have another jQuery plugin (jScrollPane) that loads custom scroll bars for divs. <-- it too works perfectly by itself. Both have a JS component and a CSS component. My process thus f...

How do you use the click event properly to call another function within the class?

Hi, I was confused on how to use the click event in order to call another function within the class. $.fn.imageareaselect(image) { this.click(function(){ $.fn.pinpointImage.add(image); }); } The selector that is passed into this function is an image. I wan't to make it so when you click the image it calls that function. ...

In jQuery, what happens when you have two .children() functions?

In jQuery, what happens when you have two .children() functions? var area = image.canvas.children('.image-pinpoint-edit').children('.image-pinpoint-edit-area'); Is it redundant? cant you just do image.canvas.children('image-pinpoint-edit-area') to get the inner children? ...

Combining validation methods in jQuery Validation plugin with "or" instead of "and"

In the jQuery Validation plugin there are a couple of methods that do the same thing, but for different locales, for example dateISO and dateDE, that both validate date formatting. How do I combine these so that the input element accepts either? Let's say I have an <input type="text" name="dateInput" id="dateInput" /> in my form, and I ...

Jquery tablesorter for diffrent date format

Hi in jquery table sorter doc http://tablesorter.com/docs/ we have date in Jan 18, 2001 9:12 AM this format. If i am changing dis date to January 12, 2010 format then sorting is not happening. Can any one please help. ...

Retrieve the selected value from jQUery AutoComplete control

Hey Members, I need two questions answer if possible: How to set the key\value within the jQuery Autocomplete control. Retrieve the selected value from the jQuery Autocomplete control once a user selects a school name. Thank in advance for your help. <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text...

How to dynamically add an active state with jQuery to a gallery thumbnail

I'm using galleriffic to handle my image gallery and I'm having a problem with the thumbnail active states. Galleriffic doesn't have support for active states on the images - only the list items. Right now the gallery will assign a "selected" class to the current LI containing the thumbnail and I've been trying to use jQuery to target t...

jQuery Validation: How do I create a custom error message element (not just text)?

I've seen a lot of examples on how to use message: to have custom error text. What I'm trying to achieve is something different. I have client-side and server-side validation, so I want the same error message shown by both. To avoid duplication of code, it seems like having <div class="error" id="bad_email">Invalid e-mail</span> is the ...

Problem with jQuery SpinBox Plugin Dynamic Min/Max

Hi, I am using the jQuery SpinBox plugin (from http://plugins.jquery.com/project/spinbox) on some text boxes on my form. But I have come across a problem. Some of these textboxes need to have their min/max properties set dynamically when the values of other fields are changed. I have tried doing something like this: $("#tbxDelayEndDate...

How to get sIFR to reload fonts each slide using the jquery.cycle plugin?

Hello, I'm using the jQuery library "cycle" to rotate a bunch of div's at the top of my page, within these div's i have a h1 tag, which is styled with sIFR. see example here: 2011 Website The problem is on webkit browsers, the h1 tags which aren't visible on page load aren't rendered, after doing a bit of research on this, it seems i ...

Conflict between two jQuery plugins?

Hey, I'm developing a couple of jQuery plugins for a client website that will allow the styling of form elements such as radios, checkboxs and selects. I've been developing them as three separate plugins within the same file, and while the radio and checkbox plugins seem to work fine alongside each other, my select one is giving me troub...

Does any jQuery Ajax History plugin work with Chrome?

So far I tried jQuery History http://nix.lv/history/demo.html Ajaxify http://max.jsrhost.com/ajaxify/demo.php jquery history plugin http://www.mikage.to/jquery/jquery_history.html but while they support loading of the desired content using Ajax on page load (so the Ajax content can be "bookmarked"), none of them support the Back bu...

How does the click() function in jquery work when working with multiple stacked divs?

How does the click() function in jquery work when working with multiple stacked divs? I have one main div and another div inside of the main div, when i click on the div inside, its also considered a click on the main div, but i dont want that, i want it to only consider a click on the inside div. <div id="main"><div id="inner"></div><...

position element on top of another

i am looking for a jquery plugin that will let me absolutely position one element on top of another. This plugin should understand scroll offsets, and borders. bonus points if it looks right on both ie and firefox. bonus point if it repositions itself on window resize. does something like this exist, or am i stuck rolling my own? ...

JQuery: How determine child ordinal position? Need: $("#parent").ordinalChild('#some-child') => 3 (say)

Because Jquery UI tab doesn't support passing id selector to remove() tab method, and no method exists to map id to index, I have to painfully "jump hoops" to determine the index of the tab I wish to remove. I just searched the documentation for JQuery and wasn't able to find a utility method to return an integer of the ordinal positi...

jQuery Javascript large scale application development

Hi, I have just been asked to describe the architecture for a large scale dashbaord style project that i will be working on. I have bever worked on a application of this size and am a bit lost as to what to say. Could i be pointed in the direction of any articles that may help me get started and hopefully finished. I have gleaned the...

Looking for jQuery carousel

Looking for jQuery carousel script that can do the following or similar I can tweak. Go from this imgur.com/hj9GL.gif to this on rollover/hover (also rotate slowly on its own) imgur.com/L2XFp.gif Can anyone point me in the right direction? Thanks! ...