jquery-plugins

jQueryUI ContentSlider Question

Hi, I'm pretty new to jQuery and jQueryUI and I'm eager to try out things. This time, I want to create a content slider than has auto play and can jump to a specific slide. I was able to sort things out for those two rules, but then I want to add a bullet indicator which also replicates the "jump to slide" functionality of #slideNav. ...

jquery: tinysort.. "unsort" method to restore default order ?

I'm using tinysort plugin on jQuery and it works great. However I would like if there is an "unsort" option, to restore the default order of my elements. Thanks ...

Jquery: Retrieve array from cookie

im having some difficulty trying to pull out a specific value from a cookie. im using the cookie plugin found here: http://plugins.jquery.com/project/cookie var cookieString = "{'zip':'" + $( '#ZipCode' ).val() + "','age':'" + $( '#age' ).val() + "','gender':'" + $( '#gender' ).val() +"}"; $.cookie("rememberMe", ( ($( '#rememberMe' ).at...

is it Ok to make a jQuery Extension that depends on other jQuery Extension?

I think this is just a "Best Practices" question, but I was wondering if it is ok to make a jQuery extension that does not depend solely on jQuery, but also on another jQuery extension. Thanks for your answers! =D ...

jQuery deleting cookies using cookies plugin

I am using this plugin to store some cookies: https://code.google.com/p/cookies/wiki/Documentation I was wondering how i would go about deleting all cookies with a certain prefix and/or delete all cookies that have a certain value. I need this to be done once some user has completed their journey through my application. For example i...

Superfish, 2 menus open at once - how to prevent?

I have a super fish menu, the delay is set to 800, but when I move from one drop-down to another it still shows the previous drop-down and the new drop-down at the same time. until the 800ms delay is over then the previous drop-down goes away. I do not want to change the delay, but if a new drop-down is opened, I want the previously open...

Dynamic Jquery Tabs

I am building a site here but having a problem with linking to pages. This site is a one pager site that has a menue and a javascript that triggers it. Not if you visit the link I wanted to link the 3 green boxes to level1,level2,level3 like the main menu. But having a problem on how to do it. here is the code for the Top Menu <div cla...

how to avoid function conflicts between jquery plugins

I'm having an issue where I have ended up with two functions named the same (jquery.fn.filter). one is from a 3rd party plugin, the other is from one of my plugins. Obviously I can rename the function in my plugin, but how would it be best to go about about writing plugins to avoid the possibility of this happening? is it possible to ...

How do you catch errors thrown inside of a jQuery Plugin?

I tried to do this: try{ (function($){ ... my plugin stuff })(jQuery); }catch(er){ alert("an error occurred"); } but this doesnt seem to work =/ I'm also trying to figure out how to do this in Mozilla vs IE vs Chrome Thanks! ...

JQuery treeview plugin cookie path

How do I set the cookie path to "/" with the jQuery treeview plugin? ...

Does storing JSON objects in the class attribute of a tag Validate (XHTML Strict)?

I'm looking at using the jQuery MetaData Plugin. Looks very interesting but... <li class="someclass {some: 'data'} anotherclass">...</li> <script>alert($('li.someclass').metadata().some);</script> does this code validate? http://docs.jquery.com/Plugins/Metadata/metadata#options ...

jQuery.validator cannot assign default ignore selector to jQuery.validator.defaults.ignore

I know from here that I can pass an ignore option in the jQuery.validate method like this... $('form').validate({ ignore: ":hidden" }); ... which works fine, but I wanted to set the validator to ignore ":hidden" form fields by default... I've tried the following: jQuery.validator.defaults.ignore.push(":hidden"); ... but it does...

How does one raise an event in a jquery plugin, and consume it on the front-end?

I need to raise a couple of events with parameters within a jquery plugin, looked at similar questions, but cant seem to see what I am looking for? ANy basic examples out there? ...

Jquery scrolling or sliding div with overflow?

I'm trying to make a a fairly simple jquery function to slide through some "tweets" with varying heights. I've tried numerous carousel / slider plugins but none of them seem to allow for simple continuous scroll onmousedown, and they are all tied to animating from one "slide" item to the next. There is jScrollPane but it seems impossib...

JQuery Uploadify not not showing in IE7

I am using Uploadify http://www.uploadify.com/ in my asp.net mvc application however it works great but when using IE7 it doesn't show up I am hoping someone has some insight as to how to fix this. I did look through thier forums and there are several problems in IE7 posted but nothing related to what my problem is and with a solution. ...

Static variables a jQuery Plugins; how to create?

Hello, What is the best way to create a static variables for jQuery plugins? I have 2 example use cases to illustrate my thinking so far; each with some ideas. Any other ideas welcomed of course... One example is for a static variable containing: animation settings, layout settings, product details, etc; the other for a static variab...

Cleaning up repititious jQuery in a plugin and making sure performance is as good as it can be.

I've completed writing a purpose-specific plugin and there are a few spots where I have duplicate code and due to the structure of the function, I'm not quite sure how to cleanly get rid of repetitious code. You can see the code here: http://jsbin.com/aboca3/8/edit I am specifically referring to the 4 switch statements and wondering h...

How to preselect nodes using jsTree jQuery plug-in

I am using the jsTree jQuery plug-in with its "Checkbox" plug-in and using an async http request to lazy-load each level of the tree. All works great, except that I cannot get the tree to pre-select certain nodes after the first level. I am using the "selected" attribute to provide an array of ID's to preselect. ID's in the top level of ...

Copy and manipulate ALT on Image

Hi there I'm a new visitor, and relativily new at jQuery. I have an image with an ALT text that I would like to be shown, in the SPAN, under the image, and manipulated to replace "-" with B- and I-tags... Current HTML: <span class="alignright"> <img src="sys/billeder/medarbejdere/tommy_stor.jpg" width="162" height="219" title="N...

HtmlBox JQuery plugin

I'm using the HtmlBox 2.8 (http://remiya.com/cms/projects/jquery-plugins/htmlbox/) Turns the textarea to a richtext editor. when i change the value of the textarea, $('#Survey_Value').val(data.Value); the text in the richeditor does not change. how to change the text the text in the rich text editor? ...