jquery-plugins

jQuery's History (and Bookmark) plugin may have a bug?

I am suspecting in file http://github.com/tkyk/jquery-history-plugin/blob/master/samples/ajax/ajax.js line 13 and 14 load(url); $.history.load(url); in Firefox, Chrome, and IE 8, I see that the page is loaded twice when 1, 2, or 3 is clicked on. Is it true that line 13, "load(url);" can be removed because $.h...

How to handle 403 response with jquery.form plugin?

I am using the jquery form plugin (http://jquery.malsup.com/form/) but I want to handle a special case when a user tries to post to the site without being logged in. The backend returns a 403 (forbidden) response in this case - which is working ok - but the 'error' callback doesn't fire and if I use the 'complete' callback, the XMLHttp...

jQuery RTE Recommendations

There are some decent JavaScript-based RTEs out there, but when it comes to jQuery plugins, the selection seems to be quite sparse. What are the most recommended/promising projects (either finished, or in progress) that provide a simple-to-implement RTE using jQuery? Here's what I've found from my research so far: jQuery UI Rich Text ...

When should we not create a jquery plugin?

When should I be creating a plugin and when not? Is it better to create a plugin and stuff everything (Data, Logic, View) within a plugin and use it like a black box or to separate Data, Logic and View ? ...

Performing two jquery functions at once

Hey folks, I'm just getting my bearings with Javascript and jQuery, and I'm working on an animation. Essentially, what's going on is an element, #left-arrow. On hover, the arrow moves left 10px and increases opacity. I'm using the 2D Transform plugin for jQuery to handle the transform. Now my issue, however, is that javascript will ...

Form plugin handling non-200/301/302 responses

I'm working with the jQuery Form Plugin. I have my servers send 200 responses on success, which trips the success listener perfectly fine. Per the standard, 301 and 302 and transparently redirected by the browser. However, when the server returns, say a 401, the Form Plugin just silently dies. How can I apply a listener to non-200 respon...

In jQuery, how can I make it so a click function can activate a resizable property.

Let's say I have a div that when it's clicked on it adds the .resizable() function to the div, thus being able to be resized. Would anyone have a code example of this? Thanks!! ...

In jQuery, how do you use 'this' properly in this situation?

I am confused on why this code is written like this, but I am sure it is important to understand: $.fn.mapImage = function(options){ //Set user input options and defaults var optionConfig = $.extend({}, $.fn.mapImage.defaults, options); image=this; this.image = this; // Assign defaults this.getUrl = optionConfi...

JQuery Plugin related. . getting an array element from an object

Right so I'm creating a plugin using jquery what I have thus far is this. . (function ($) { $.fn.AppCompFunctionality = function () { var defaults = { }; var options = $.extend(defaults, options); return this.each(function () { $(this).click(function () { var currentComps = $("#currentComps").get(); $(current...

Load fancybox page through "Facebox image and content viewer"(or other alternatives)

Hi, I'm trying to load a different fancybox page every time someone clicks one of the links on the left menu. example: http://cupones.com.ec/stackoverflow/ I am using the Facebox image and content viewer plugin. The first link "pizzerias" loads an image with no problem. However there is a problem displaying the second "mexicanos" lin...

How to call a function after a div is resized with the resizable() function?

Hi, I was wondering after I resize a div that has the .resizable() feature on it, how do I make it call a function as soon as the user resizes the box and lets go of the mouse? Thanks! ...

In jQuery, if I add a resizable feature to a div, why does it add a weird style to it and how do i fix it?

Hi, I have a click function setup to make a div resizable. When I click on the div, the style has white lines and is all spaced out, I am guessing it might have something to do with the jquery ui css file? How would i go about styling it? Example: http://www.fissiondesigns.com/simon/ try clicking on one of the boxes on the image. Than...

In jQuery, how do you destroy resizable() feature after your completely finish resizing?

I have a application when you click on a div it starts a resizable function on the div, but when I click off of it, or click on another div how can i destroy it? I don't think the stop: function(){} will quite do it because it will destroy it after one resize. Any ideas? I have an example here: http://www.fissiondesigns.com/simon/ Yo...

In jQuery, how do you remove all the divs pertaining to a certain class INSIDE a certain div class?

If I have a div that contains other divs, how do I make it so I remove all the divs inside the original div? That might have been confusing, heres a code example: <div class="test"><div class="delete"></div></div> <div class="delete"></div> How do I remove the 'delete' div thats INSIDE the 'test' div ONLY and still keep the one outsi...

In jQuery, how do you get a div's width in the 'stop' function of resizable?

I have this code, and I cant seem to get the width to come out right after I resize the div. this.area = $('<div class="dynamic-pinpoint-area"><div id="inner"></div></div>'); var area= this.area; this.area.click(function(event) { event.stopPropagation(); area.css('border', '1px dashed #000000'); area.childre...

start stop jquery plugin

Hi, I wahnt to write a jQuery plugin which will change the x background-position in an looped time interval. $('#element').pluginName(); - starts the looped action Then I wahnt to stop it by $('#element').stopFunction(); or $('#element').pluginName().stopFunction(); Is it possible? Can You give me a tip how to write it? EDIT (my solu...

Are there any jQuery tutorials that demonstrate authoring plugins to accept selector syntax?

I'm attempting to write my first jQuery plugin to query multi-dimensional arrays of complex objects. It kind of functions how I want it, but right now it receives a property name and value as input for comparison of the items. I want to modify it so that it can receive jQuery's selector syntax as input in order to filter my objects in ...

jQuery .cycle() is invisible in Webkit browsers [Safari / Chrome]

I'm using the .cycle() plugin here: http://commonmovement.com/MIP/our-clients.html I'm not sure why the second image does not show up in Safari/Chrome. After you roll over the nav it shows up. After searching this forum and the web, I did not come up with a solution that works. any thoughts? script: <script type="text/javascript"> $...

jQuery.Cycle - use two different effects on same container

Hi there I'm currently using jQuery.Cycle to cycle through a few child <div> tags. However, I want the default cycle fx to be fade, and when I click on the next or prev selectors, I want the cycle fx to temporarily change to scrollRight or scrollLeft depending on the selector clicked. Is this possible? jQuery code, if necessary: $('#...

jquery dialog not working in firefox

Why is that jquery dialog does not work in firefox? this is working in IE very well.I used jqueryblockui.js pug-in. function showConfirmation(progTit, msgText, msgIcon, msgHideIcon) { var tblMsg; tblMsg = '<table width="310" cellpadding="0" cellspacing="0" border="0" height=113px >' + '<tr style="background-color:#3a3a3a;">' + ...