jquery

Implementing jQuery Cookie Plugin

How would I implement the jQuery Cookie Plugin into this snippet of jQuery, so it saves the open/closed state of the toggles upon leaving the page? $(document).ready(function() { $('a.toggle').click(function() { var id = $(this).attr('name'); $('#module' + id).slideToggle('fast'); $('a.toggle[name='+id+']').toggle(); retu...

jQuery: How to reference dynamic form elements and keep the previous elements working?

I've done a lot of searching on this, so please forgive me if I've missed it, but this seems to be pretty unique. I've got a table in a form that I need rows (and fields) to be dynamically added, and then I need jQuery to manipulate some of those fields, and then they must be passed off to PHP to be dumped into a MySQL database. I've g...

markItUp for Wordpress widget

I am using markItUp for a textarea in a WP widget (that is, on widgets.php page, while creating and editing a widget). The textarea is markItUp'ed when I first open the widget, but after I click save the functionality is lost and I am back to a regular textarea. I compared the source code for the before-save and after-save versions of ...

Jquery odd/even question with prepend/append.

I am successfully using jquery odd/even selectors to create a "tiger striping" on a table. Then I added ability to add or deleted rows. However I have not been able to get striping to work properly on add/delete of row. It works for a an add/append, but not on add/prepend or delete. Here is summary of the code... $(document).ready(f...

Add comma to numbers every three digits using jQuery

jQuery plugin to add comma separating numbers into three digits without white spaces and if total digits are under three, then no comma added. Ex. 2984 => 2,984 and 297312984 => 297,312,984 and 298 => 298 $('span.rawNums').digits(); Thanks. ...

how to use Jquery facebox

I am going to use Facebox in my page, and am loading following plugins: <script type="text/javascript" src="facebox.js"></script> <script language="javascript" src="jquery-min.js"></script> <link type="text/css" href="facebox.css" rel="stylesheet" /> I have two div elements. I want to show one div in the facebox after an onclick event...

Difference between jQuery.extend and jQuery.fn.extend?

Hi, I am trying to understand the jquery plugin syntax, because I want to merge two plugins into one. The blinker that also needs to be able to stop de interval or run a number of times. Anyway, is this syntax the same as jQuery.fn.extend({ everyTime: function(interval, label, fn, times) { return this.each(function() { ...

Open a popup browser window to select a record.

I want to open a popup window on client PC where I will show records. The user will click on the selected row, and the popup window will disappear, but the parent Form on my page must get filled with the DB values related to the clicked row on the popup. This is what I want to do. What is the right approach? ...

jquery widget and visibility problem

I have a widget: http://designer-depot.com/prob/ When clicking to tab2, the image is not visible. Its only visible when mouse over. What is my mistake in jquery or css coding. Thanks in advance ...

Horizontal Scrolling

I am working on a site that displays pictures accross the Y axis of the browser and spans about 12500px wide. I am using the Hortizontal way as a base but I have just realized that the horizontal scrolling with both the arrows and the mouse's wheel does not work in both safari and chrome. http://www.thehorizontalway.com/ Is there any...

Why FaceboxRender is not working?

I've installed FaceboxRender and JQuery and Facebox. Following the instrutions on http://github.com/ihower/facebox_render/ I've tried Facebox alone, in my rails app and it's working. After that I've put the folder facebox_render in vendor/plugins/facebox_render/, I added include FaceboxRender in /app/controllers/application.rb restar...

using php array in jquery

In the below code i have an array arrSGoal. On Click of RemoveGoal i need to delete or set the value to 0 for the the id in the array. Array is in php. dont know how to use in the jquery. <SCRIPT LANGUAGE="JavaScript"> $(document).ready(function() { $('a.removegoal').click(function(e) { e.preventDefault(); //Getting the TR...

jQuery.param and UTF-8

I have the following code: var words = new Object(); $("li.words").each(function(){ var thisId = $(this).attr("id"); words[thisId] = $(this).children('input#word').val(); }); The input with id #word contains words in Hebrew (i.e. UTF-8 chars). When I use: alert($.param(words)); the words look like this: %D7%9E%D7%AA%D7%A7%...

Jquery Insert HTML

I'm using: http://jquery.malsup.com/form/#getting-started to submit my form, Ajax styleee. However the form submits correctly and the data is sent however the fields on the form continue to have data in them. How can I clear them on submit? Hiding the form and displaying thank you would also be acceptable? $(document).ready(function() ...

Combine two pieces of JQUERY

I' using: $(document).ready(function() { $('#pollform').ajaxForm(function() { $('#pollform').reset(); }); }); How can I bring in the following to the above function? $('#myForm2').ajaxForm( { beforeSubmit: validate } ); ...

jquery ajax form (jquery.form.js)

I would like to use this example http://jquery.malsup.com/form/#html in my page for chat panel. I have tried exactly this example (just copy+paste from this page), on the page it works, my script works either, but only once.. I write text, touch the button and see the text bottom, but whenn i change the text and click on the button a...

why would one pass an jquery.fn object to the jqueryobject

Hello, I am still trying to understand plugin procedure so I can write my own or adapt another. I try to learn from this plugin It sets methods with fn.extend and then passes itself(with this) to some function made in jquery.extend. jQuery.fn.extend({ everyTime: function(interval, label, fn, times) { return this.each(func...

php array usage in javascript, jquery

Using JsonEncode i got the php array in javascript. How i can get the modified array back to php.? ...

jquery image auto slide

Hi All, How to make an image to slide and navigation button to cycle image from right to left jquery.where images are in the div element, Thanks in advance ...

Server push: comet vs ape?

I've read a little about comet and also APE. Which one is better? I want the users to see other users updated content. Like Google Wave. And in comet, there are 2 versions: iframe vs traditional ajax. what is the difference and which is better. I dont quite understand it. Thanks. ...