jquery

Is there a jQuery-like library for Flex?

Does anyone know of a library that would allow me to manipulate Flex "DOM" and assign events in such an elegant way that jQuery uses? ...

Jquery selector data retrival in variable, in another different page.

How can we use Jquery to read certain page content in a variable on a different page? If for example we want to read div.tag1 from a page into another page but in a variable( ie i dont want to load it into the page but manipulate it so store it in variable) Eg: file1.html have(say) <div class="tag1"> Hello world </div> <div class="tag...

How to sort images in jquery/php/mysql same as google picassa reorder interface?

I am using PHP/MYSQL. I want to create a image gallery for sorting images. User will drag and drop images to sort and organize their images. Just like picassa do this. I have created a page using using jQuery UI sortable plug-in: http://jqueryui.com/demos/sortable/#display-grid Demo Page: http://jsbin.com/oqani/9/ Its dragging and d...

Please recommend one or more of the best Chart component,Flash or javascript

I am looking for a suitable charting component use in my Web project,Please help me! Thanks! ...

jQuery determine if a tag is empty

I've almost got this but just need a little push over the edge. I'm parsing a string which contains (potentially) HTML. Here's the code: function clean(snippet) { OBJ = $(snippet); txt = OBJ.text(); if(txt) { parsed = txt; } else { parsed = snippet; } return parsed; } And here are my test cases: ...

Jquery cycle plugin

Hi All, I am using jquery cycle to show images as slides. How to scroll two images at a time without using any button. Code: jQuery(document).ready(function($) { $('#album').cycle({ fx: 'scrollHorz', speed: 1000, timeout: 0, continuous: true, pause:...

In Javascript, how do I determine if my current browser is Firefox on a computer vs everything else?

if(firefox and is on a computer){ alert('using firefox on a computer') }else{ alert("using something else!"); } How can I do this? ...

mysql count include to json object

Hi! I made a php/ajax/mysql/json script for my site, to show all the tags. If i GET the page id it will show me all the tags of that page. But! In my main page i'd like to show all tags, from all pages WITH a counter. For example if i tagged 4 pages with "ilovestackoverflow" i'd like to see in my main page "ilovestackoverflow (4)" i ...

Plugin broken after updating jQuery to 1.4.2

I've written a jQuery plugin and it was working well for all version up to 1.4.1. Now that jQuery was updated to 1.4.2 is stopped working entirely. I have a bunch of unit tests and in last version only 32 of 300+ pass. I have checked 1.4.2 changelog but all it says is that there were some performance improvements and that's it. Here's...

How can I pass object to Eric Martin's OSX modal?

From my jsp I have something like <table> <tr> <td>${event.name}</td> <td>${event.type}</td> <td>${event.dateString}</td> <td>${event.virtualMachine.name}</td> <td><a href="#" class="osx">View event</a></td> </tr> </table> I want to pass the event object to the modal content such that It will display more informati...

Jquery: Find all image links and convert them to some default thumbs?

I have WYSIWYG and I don't allow users to upload images, just links to images outside the site. So I want to find every image link/path and replace it with some default thumb, where user can click and that image will be shown in modal window. I'm using qTip, but that will be my part of the job :) So if there is: http://sstatic.net/so/...

JQuery UI: Containment on draggable element is buggy

A site I'm working on has an image zoom, and the zoomed image is draggable. The problem is that on the current version you can zoom in and then drag the image totally out of the viewable area. See: htt p://testing.successfulsites.co.uk/s5/1.3.5.1.html (and zoom in) (sorry about the gap in the URL - I'm a new user so can't post more th...

Jquery tabs with cookie support restore wrong tab position after page refresh.

Hello, all. I have tricky problem which I can't completely understand... It's jquery tabs with cookie support. I've following code: $(document).ready(function() { var $tabs = $("#tabs").tabs(); $tabs.tabs('select', $.cookie("tabNumber")); $('#tabs ul li a').click(function() { $.cookie("tabNumber", $tabs.tabs('option', 'selected'))...

getting a radio button dynamically with jquery

Hi, I have tried this for too long... too big for me. I need a little help here. I have a page with products. each product got 3 sizes (normal, big, special) The user is selecting radio button to choose the size and then hits the "add to cart". I am trying to get the value he chose, but without any success. Right now I found that jQuer...

hide div when click on form or focus on another control or press escape key...

I am developing an web application. In this i provided a functionality means "autocomplete textbox". In this control, I need to show up 4 columns whenever user press keys in textbox, i need to collect these keys and send it to the service which will give us result as xml. then i convert xml to dataset and binded with datagird. for this ...

jquery nth-child add html after

Hi. I have a simple unordered list with 16 list items. I want to add a new list item after every fourth existing list item using jquery How would I do that? Code below: <ul> <li>some stuff</li> <li>some stuff</li> <li>some stuff</li> <li>some stuff</li> <li class="clear">This is what I want to add</li> <li>som...

draw binary tree with php

Hi, I'm looking for a good library / API to draw a binary tree using PHP. I've tried using Image_GraphViz, but it doesn't seem to work. I've also looked at phpsyntaxtree, but its not documented. Alternatively, I'm also looking for a jQuery plugin that does this. (just not this one because it has no documentation). Thanks ...

How to apply jQuery live() function to this code?

As mentioned i would like to know how i can apply the live() function to this code. This code will be inserted by javascript: <a class="link" href="url"><span>This content is hidden</span></a> This is the javascript that needs to be live: $('.link').append('<span class="hover"></span>').each(function () { var $span = $('> sp...

Assigning scope amongst jQuery.getJSON and a JS.Class

I'm trying to assign some JSON data to a property of a JS.Class instance. var MyClass = new JS.Class({ initialize: function(uuid) { this.uuid = uuid; }, write: function() { $.getJSON(url+"?callback=?", {}, function(data) { Assign(data); }); function Assign(data) { this.content = data; }; } }); var m = ne...

JQuery process form

This one is a really simple question (I hope), but as just laening/getting to grips with Jquery I apologise in advance. If I have a form e.g. <form id="form"> <input type="text" name="abc" /> <input type="text" name="def"/> <input type="text" name="ghi"/> <input type="submit" name="try" id="try" /> </form> Anf then send it via JQuer...