jquery

Real time updates display like friend feed or twitter top tweets

Hello Everyone, I am using pubsubhubbub to receive the recent updates on the feed. As soon as callback url receives the update, it should displayed in the web page like friend feed or twitter top tweets (content will move down as soon as new content arrives). Is there any library to do this? Jquery? Callback url receives the updates i...

How to use multiple jQuery Plugins in one File

I have to use jcarasoul and Lightbox plugin both together in a file of php. the Jcarasoul is working fine for the light box all paths are correct but it always says that $("#gallery a").lightbox is not a funtion. Same as for fancy box or how do I can use Lightbox2 of prototype with jQuery. I used the below for no confliction var $...

something wrong with this jquery?

i have these two jquery scripts on my html page, one of them loads more results(like pagination), and the other one replies to users messages, just like twitter! the replies works(inserts username into textbox), when the page is on default, but when i load more results, the loaded results wnt insert the username into the textbox!! these...

Is this a jquery.live() side effect?

Hi all, I'm new to jquery. When I was using .live('click', handler) instead of .click(handler), I found the event handler can be triggered even though the object is disabled! Is this a bug of .live() all it is an anticipated behavior? And if do not want the side effect, what should I do? Thanks! ...

How to get the first name of each list?

Sorry if the title isn't clear enough, I have five <li>'s in each <li> I have <a> and a <div> and in each <div> I have a <ul>with a class of "config". Then in that I have two <li>. I use jQuery to hide the <ul> with the class of config and then use slideToggle to show/hide them. The problem is, It shows all of them. I want to just click...

How to create a textarea with jQuery and/or javascript ?

I need to create a textarea with jquery and/or javascript. I am using this code ( click here for preview ) but backspace, enter, simbols and lowercase doesn't work. Why ?: <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; <meta charset=utf-8 /> <title>TEST</title>...

jQuery tipsy: manual triggers and delayIn

I'm using the tipsy plugin for jQuery. Whenever I try to call tipsy with both a manual trigger and delayIn, the delayIn doesn't seem to work: $('.interest').tipsy({trigger:'manual', gravity: 'n', html: true, delayIn: 3000}); Any ideas as to why? ...

how to create hyperlink in piechart

Hi guys! I want to do a pie chart in matplotlib. This pie chart will be a representation of two variables: male and female. That's easy to do :) What I would like to do next, I'm not even sure if it's possible to do with matplotlib, I would like to make these two variables clickable so if I click on male, I would see another page with...

Add in select box ...

Hello, I have a dual list box, named "source" and "target". In some point I reload the content of the source list box like this : $('.sourceSelect').find('option').remove().end().append(msg); the content of msg is <option>...</option> I'd like add in the source list only the option put in the target. Sample, the source as Group1,Gr...

Own function with multiple "if" conditions in jquery.

Actually I whant to feed a variable "var xy" with diverent heights in dependence of more than one "if" condition. The best way to do this, is to create a custom function,isn't it? Well, I don't know how to do that. I've done something like this to get the height of diverent elements in dependence of the "item_xy" hasClass "current": $.f...

Syntax explanation please

Hi, I'm trying to understand 2 different lines of code below. My javascript is weak, trying to improve it with jquery (hmmmm) What I'm trying to use the drag sort plugin from http://dragsort.codeplex.com/ specifically I'm using the http://dragsort.codeplex.com/SourceControl/changeset/view/74794#1025059 example. I've gotten to the sta...

Execute a function on click

Hello, I have the script below which works well, i.e. it generates a chart on the screen when the page loads: <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChartAjax); function drawChartAjax() { $.ajax({ url: 'json_data.aspx', ...

How to use multiple jQuery Plugins in one File

How to use multiple jQuery Plugins in one File? I have to use jcarasoul and Lightbox plugin both together in a file of php. the Jcarasoul is working fine for the light box all paths are correct but it always says that $("#gallery a").lightbox is not a funtion. Same as for fancy box or how do I can use Lightbox2 of prototype with jQue...

Split a string on a pattern

var a="##55##data1!!##66##data4545!!##77##data44!!"; how to remove ##664545##data!! from the string Edit:if we know the start value in a string i.e,##66## and the end value ie,!! In the main string how to remove characters starting from the start pattern,data after the start pattern till the end pattern My expected output w...

JQuery and JqGrid retrieve data from row

Hi, How I can retrieve data from jqgrid row, if I have only the number of the row? For example what I have to do if I want the id column of the 3th row? Thanks a lot. MP ...

Jquery hover click problems

I have this piece of code which, when you hover over a Class it finds the related ID and fades it in. Then when you click it it stays highlighted. The problem is, when you click and highlight it, then hover over another item it stays highlight also. Here is the code I am using. $('.link1,.link2,.link3').hover(function(){ linkCla...

Javascript pattern matching

In a string if we know a start point .how to find the end string using js or jquery var helper="$var_1__ee$var_2__ee"; $var is the starting point and the end string pattern is ee How to split the string based on this pattern ...

jQuery UI radio button - how to correctly switch checked state

If I have a set of radio buttons, all styled with jQuery UI's .button(). I want to change their checked state, but when I do so programatically on the container's change event with $("#myradio [value=1]").attr("checked", false); $("#myradio [value=2]").attr("checked", true); The values are changed correctly, but the UI styling stil...

Microsoft CDN - How about the .css and images of jQuery UI themes?

Hi I know that the usage of Microsoft CDN improves the website performance when talks about .js But what about the images? The styles of jQuery UI themes are hosted too in CDN, and all the images of the themes also. Using the styles of themes, and consequently images also, improves the performance like.js does? Thanks ...

JQuery buttons with icons - icon only shows when mouse pressed down

I have a page with anchor tags that are being converted to JQuery UI buttons via the following code. $(document).ready(function() { $('a.jquery-button-add').button({ icons : { primary: 'ui-icon-circle-plus' } }); });` For some reason, the icon is only visible on the button when I hold the mouse button down. Without holding the mouse...