jquery

Dynamic image gallery generation using PHP and jQuery

I've got an idea in my head, something I want to create, but am not sure about the best approach. I'd like to pitch the idea and get some opinions on a smart way to go about this before I dive headfirst in the wrong direction! I've got a photography website that displays multiple portfolios for a few different photographers. It's got th...

json call and forms authentication time out

I am making a ASHX handler call to get JSON object. How do I handle or redirect user to login page if forms authentication times out when calling ashx handler page? ...

jQuery, need help with 'sortreceive' ajax call and POST vars.

Hi there, I have a dilemma that just seems beyond my abilities at the moment! I have a group of connected sortables using the class 'biglist'. What I want to do is bind #biglist 's sortreceive callback (which is made whenever a list receives an element from another) to take the 'boxnum' value of the element (which signifies which list...

Jquery Sortables last "dragged" item

Sorry, back agin How can I get at the "last" sortable item. I am dragging from one list 2 another but I need/want to append the "length" to the last dragged item which may not be the last item in the "dropped" list - hope you understand. some idea of code $j(function() { $j("#id_section_layout").sortable({ connec...

jQuery cycle: fading white text becomes "green" in Windows/Firefox/Cleartype Enabled

On Windows it seems that when there's white text on any background and it does transitions, the text naturally turns to some shade of green during its opacity value being toggled back to 1. This makes sense. But does anyone know any sort of workaround to prevent it transitioning to a shade of green between the animating besides changing...

Concept for storing information in Jquery

I have divs that are initially closed. The code below then controls the opening/closing: $("p:contains('INVESTOR')").click(function() { if( $('#cs_investorServ').is(':hidden')) { $('#cs_investorServ').animate({opacity:'toggle', height: 'toggle'},'fast', function(){ $('#cs_furlBar1 .cs_furlHeaderCl...

Jquery Image Slider

Hi, I have a jquery image slider, but it only shows 2 slides, so i cant really add more images than whats in those 2 slides is there any way i can create more slides here is the code /* Slideshow */ $(document).ready(function() { slideshow_loading = true; slideshow_busy = true; current_slide = 1; slideshow_l...

adding jConfrim breaks function

I am trying to add a confirmation box to this code: $('.widget .remove').live('click', function() { //Remove widget from layout $(this).closest('.widget').fadeOut('fast', function() { $(this).remove(); saveLayout(false); }); return false; }); This is what I did: $('.widget .remove').live('click', function() { //Remove w...

How do I check if a variable is a jquery object or plain dom element?

How do I check if a variable is a jquery object or plain dom element? ...

jquery: menu show at mouseover

$(document).ready(function () { $('img.menu_class').click(function () { $('ul.the_menu').slideToggle('medium'); }); $('.img.menu_class').mouseover(function() { $('ul.the_menu').slideToggle('medium'); }); }); I've added this mouseover, but it doesnt work, only if i click.. What have i done wrong? ...

remove dynamic validation with Jquery Validate plugin

i have a simplified version of my problem here: http://www.arianhojat.com/temp/jquery/dynamic_validate/test.html Basically i had an email rule, and based on a checkbox i remove it... but it still isn't being removed... I tried moving it to its own rule with "add", then trying to remove via its accompanying "remove" function but still s...

Where can I find documentation of older version of jQuery libraries?

Where can I find documentation of older version of jQuery libraries? For example: jQuery 1.2.7 thanks ...

Drupal and the latest jQuery

hi, I need to use the latest version of jQuery in my Drupal. jQuery update module is not enough because it doesn't update jquery to its latest version. Is there anyway to use the latest version of jquery in the front-end, and the drupal included version for the back-end ? Should I work on the theme templates files ? Is this going to ...

Create a hexadecimal colour based on a string with jQuery/JavaScript.

Hi there. Sorry if this is a vague question... I'm not really sure how to go about it so maybe someone with the wisdom can point me in the right direction :) Basically, I want to create a function that will accept any old string (will usually be a single word) and from that somehow generate a hexadecimal value between #000000 and #FFF...

jquery click event is overridden when new object is created

I am writing an Ajax application which uses a callback function to add a card to a players hand. the object is created correctly and the menu for each object is also created correctly. when created the DOM object, in the callback function i use to add the object, i have some code like this: $("#card"+cardNum).live('click',function(){ ...

jQuery: jScrollHorizontalPane - Adding content dynamically

I have a set of images in a jScrollHorizontalPane and I want to be able to change the content of the pane per project. Currently this is what I have loading every time a project is selected: $.each(project.images || [], function() { if(this == "") return; imgCont.append('<div class="image-item"><img height="225" src="' + t...

Jquery post recieves data from controller but won't render

I have controller method in my MVC application that I am calling using the jQury $.post.... The call is executing correctly, processing and sending a valid result back to the view for rendering. If I alert the result everything is received on teh client as expected but the data is not rendered to the view. The controller mehtod is as ...

Problem with IE and setInterval() not refreshing/updating.

Hello. I'm using JavaScript/Jquery to make a page auto-update with a value from a database, although it doesn't seem to update in Internet Explorer. It works fine in FireFox & Chrome. Can anyone explain what's wrong? It looks like IE is just displaying a cached version of the page. How can I prevent this happening? Thanks. function upda...

Multiple periodically_call_remote calls not behaving as expected

I've been doing ruby and rails for a long time but am a newbie when it comes to the more dynamic elements (currently jrails and jQuery), so it's entirely possible I'm missing something. That said, I've got a page where multiple elements need updating from multiple sources. For example, a dynamic header comes from one source and 5-6 d...

jQuery: Simple, lightweight modal box

What is the simplest jquery plugin for modalboxes that do the following: Ajax by href Inline content modal Simple slide-down effect Little supplied styling (I don't want it wrapped in 15 divs of junk) Thanks! I've tried jQuery UI's dialog, but it's becoming problematic. ...