jquery

jquery based slideshow/transitions for HTML content

Searching for rotators based on JQuery only finds the original rotator plugin and a bunch of photo galleries, which I don't want. Please suggest other rotators available. The rotator should be able to rotate HTML not just images (like the Glimmer tool, which can create JQuery/HTML code for rotating images). ...

Using JCarousel above the fold - loading JCarousel before page has finished loading?

Hi there, I'm currently using JCarousel to highlight "featured posts" in Wordpress. The carousel displays above the fold, as part of our header. It works well once it loads, but since we're using it above the fold on a large page with many elements, it has to wait for our entire page to load before it will initiate and display our featu...

Trouble with jquery load on Google Chrome

I'm creating a demo that must be in html code only (no server side code such as PHP, etc). I'd like to use jquery and the .load function to call in some content dynamically. This is working fine in Firefox, but for some reason the page I want to get is not loading in Chrome (v 5.0). The code I am using is very simple: $("div#conten...

jquery-ui-1.8.2.custom.min.js difference between themes

Does the jquery-ui-1.8.2.custom.min.js file included with the themes you download from jqueryui.com differ from theme to theme, or is it the same? Edit: I'm trying out different themes to see which one looks best for the site. I have the following folders: /jquery/js/jquery-1.4.2.min.js /jquery/js/jquery-ui-1.8.2.custom.min.js /jquer...

jQuery Slide Out; Content is Vanishing during sliding

Using a jQuery effect, I have a layer that has a collection of HTML within it (which displays just fine). When a button is clicked, this slides out ($n).show('blind', { direction: left }, 1000); This effect works fine. It doesn't give me any trouble. But sometimes within the layer, I have other content that has to be aligned pr...

Why is ColorBox not loading properly?

The error I get is: $ is undefined Line 8 which is: $.colorbox({html:'<p>TEST TEST</p>'}); This is how the page renders: <script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.min.js?Y"></script> <script type="text/javascript" src="/misc/drupal.js?Y"></script> <script type="text/javascript" src="/sites...

How this Jquery function calls [jumping window]?

Go to the site here: http://en.heroes.gpotato.eu/ and click Register. What is the jquery function or plugin to make this jumping window? Thanks. ...

Jquery Confirmation samples

Hello All, I would like to have more samples regarding the jquery confirmation box. I have learned how to show the confirmation dialogure box through the below example: http://www.webstuffshare.com/2010/03/jquery-plugin-jconfirmaction/ But, I need more colorful samples, can you please help? ...

Jquery dynamic selector on Click

Hi all, I need "i" click functions depending on variable unknown length: for(i=0;i<=unknownLength;i++) {$("#group_link_"+i).click(function() {//asynchronous call to a Web Service for the specific content on group_link_i div, here I will use $("#group_link_"+i).val()} );} This code is not working. However, the same code, if i delete ...

What's the result of a selector with no matches?

Hi, What happens when you use a selector like this: $('#myelement').remove(); but no element with id 'myelement' is actually part of the page? Is it undefined, should we take care to make sure this does not happen? Thanks ...

Jquery if div doesn't exist

I'm using 1 js for 2 different pages. 1 page doesn't have a div which the other does. So when I submit the values, I get a $( js error for $('.description'+save_id+'').html(description_val).show(); //update category description I suspect that I get the error because there is nothing to show(). Is there a short code I can use to detec...

jQuery Plugin for multiple line-item forms

I have a form that acts as a frontend to entities in a 1:many relationship. The form lets the user edit the properties for the parent entity, as well as add, edit, and delete properties for the child entities. This is such a common scenario that I expect someone has already come up with an elegant jQuery plugin to help make a user-frien...

jQuery Pagination Question

So I have the following jQuery pagination plugin installed. http://d-scribe.de/webtools/jquery-pagination/lib/jquery_pagination/README I understand how to create the pagination navigation, but not quite sure how to implement a new server call everytime a new page is clicked. Below I've mapped out the steps that I currently have built ...

Passing values to formmail.cgi without refresh (HTML form PHP handling)

My host has a formmail.cgi script to send html form data to emails (http://formmail.dreamhost.com/), but I dont understand how to pass it values that it understands. Ive tried using this method to pass form values: HTML: <form id="contact_form" action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST"> <input type=...

jQuery - Add a div when an option is selected

Hi there! I'm trying to add a div when an option is selected from the list. This is my main code: <div> <select name="rooms" id="rooms"> <option value="1" label="room 1" selected="selected">1 room</option> <option value="2" label="room 2">2 rooms</option> <option value="3" label="room 3">3 rooms</option> </select> </d...

When should a period be used after $ in jQuery?

Hi, I am a beginner in JQuery. When should be used point after $ in JQuery? $.trim(str) and not $trim(str)? And some cases without point: $(document).ready, but not $.(document).ready? Thanks. ...

How do I hide a jqGrid column of variable name?

I have a jqGrid column which name may change (is a variable), how do I get the name and hide it? Something along the lines of the below (which don't work) $('#tblGridName').jqGrid('hideCol',4); or var infoName = $('.ui-jqgrid-htable th:eq(4)').text(); $('#tblGridName').jqGrid('hideCol',infoName ); ...

What the best way to check arr, object, string with JQuery undefined + null+ trim(str)!==""?

Hi, 1. What the best way to check array or object with JQuery undefined + null? I check array like that: function f1(arr){ if(arr!==undefined&&arr!=null){ //code } } Is Jquery have better way? 2. What the best way to check String with JQuery trim(str)!==""? I check String like that: function f2(str){ if(str!=...

JQuery and event bubbling... AGAIN.

I am roughly working with the following: var i; var k = 5; $('document').ready(function () { $('#someElement').click(function (e) { e.stopImmediatePropagation(); i++; if (i >= k) { my_function(); }); } }); my_function() { alert(i); $('#myDisplay').text("You have clicked on '#so...

How to detect new element creation in jQuery?

Lets say I have the following code that returns number of anchor elements on a page: function getLinkCount() { alert("Links:" + $("a").length); } If I call in on document ready it would work as expected. But what if now a new link gets inserted into a page dynamically through javascript, how can I get notified to run link counter ...