jquery

Can we add any attributes to any XHTML Tag through Javascript ? for example title in <a title="text>

For some reason I can't edit XHTML source. Can we add any attributes to any XHTML Tag through Javascript, for example title in <a title="text">? ...

jQuery smooth image change

Hi there... I wonder how to make image change in my jQuery script smoother. I also have an animate() chain, can I attach the "src" change into it or not? Sadly I can't use images as CSS backgrounds... Here's a little sample... function growBigger(element) { $(element) .find(".inside") .animate({ width: curWidth, height: curHe...

how to make an checkboxlist select only one item selected

hi. i am using an checkboslist binding to a datatable. but here i need to make user select only one item selected from checkbox list is there way we can aachive this either JQuery, javascript, c# thank you ...

Using only JQuery to update Twitter (OAuth)

Hi, we would like to send a JSON update command to twitter, but only using JQuery, not having to go to the webserver and have it done in PHP. The thing I can't grasp really is how to send the user credentials in the JQuery/JSON twitter API call. Our user credentials are from Twitter's OAuth. thanks, cheers! ...

jquery append foreach to div

Hi all, I'm trying to create a dynamic tag cloud using jquery, I want it to pull the keywords from the page and then spit them out in a div, but am not sure how to go about it - I know how I could do it if it were php, but just not so good at jquery. I've created my variable "keywords" var keywords = jQuery("meta[name=keywords]").attr...

jQuery Clone for showing single image

If we select multiple images, how can we show only single image when we are dragging? when I tried to drag, it was showing all the three selected images appended to it. As I'm showing the total count on drag images. My benchmark is Picasa Web Albums. ...

Find list item with class and get its list position in jQuery

Hi, I have a list like this: <ul> <li class="pageItem">1</li> <li class="pageItem">2</li> <li class="pageItem current">3</li> <li class="pageItem">4</li> <li class="pageItem">5</li> </ul> I want to calculate the list item position of .current. In this case it would be 3. Just to make things clear: I don't want th...

Single Choice Dropdown

I am building a form to rank series of items. The user will read the item and select in a dropdown the rating from 1 to 20. All 20 items will be displayed at the same time. What is the best way to make sure that the user didn't select the same number for more than one choice? Then I would display an error message, "You've already ranked ...

General Purpose Progressbar in Django

I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files for my Server using Django. And I want to keep track of the progress of the processes. I saw a few jquery-scripts, but they are designed to be used with uploads, and I don't know enough javascript to modify these scripts for my needs. I want to write a ...

Need help with jQuery script into WP plugin

Hello, I created a small plugin using Keith Wood's countdown plugin. Works great, everything working correctly but....no displaying correctly. I changed layout of the countdown, works ok, I even created shortcode for WP plugin to put countdowns is the posts or pages but...countdown is displayed before meta tags! Not in place where I w...

resize shadowbox with HTML content

I'm using a jquery shadowbox library, wich allows you to show HTML content in a lightbox/shadowbox. (www.shadowbox-js.com) My question is: is there any way to dynamically resize the shadowbox when it's already open (the content becomes bigger). You can set the start dimensions, but it seems pretty hard to change the dimensions later on...

complete jqGrid?

Please, can anyone tell me how to use jqGrid? I want to do edit, add & delete functionality. Also I want to show an image in the grid Please tell me, what can I do, and how can I do? ...

Solved: hide <li> from a list

Hi again, I can't find the way to do a very simple thing: I have some <li> with a class like the following: <li class="picture 62033">lala</li> <li class="video 41463">lala</li> <li class="video 53553">lala</li> <li class="video 53554">lala</li> <li class="video 51483">lala</li> <li class="video 36715">lala</li> displayed on a page wh...

ui tabs ver 2.7 jQuery error when i switching from jQuery 1.1.3 to jQuery 1.3.2

I have a problem , i'm using jQuery plugin from http://www.stilbuero.de/jquery/tabs/ , plugin for tabs and that enable history support for Tabs ui tabs ver 2.7, i switched from jQuery 1.1.3 to jQuery 1.3.2 and it's given the error in firebug uncaught exception: Syntax error , unrecognized expression: [@href$="#fragment-1"] , the plu...

Getting all mailto links with jQuery

I need a pattern that will traverse the document and get me all links that have mailto in their href: <a href="mailto:[email protected]">text</a> I could of course easily get all a elements ($("a")) and check each href attribute to see if it points to a mailto but I think that jQuery has some form of pattern matching that will allow me to ...

Get correct start position when using jQuery slider for a scrollable pagination

Hi! I am building a script for handling very long paginations. For this I use jQuery slider. I using some modified functions from here. This is the js code so far. The only thing that is missing is the pagination div to move to the correct position (slider does) when the script loads. On initialization I just want to run the same func...

Trying to toggle multiple DIV's with Jquery

Hello All, I have been trying to get this function to work for awhile now. I have 11 different divs that are hidden by default. Each have a "trigger" button that is supposed to get them to pop open. I was able to do this with a much longer series of functions for each specific div (which ended up being about 175 lines of code!). I wante...

jQuery on the fly URL shortener

I'm looking for an on the fly URL shortener much like how tweetdeck works. I have found many jQuery and general javascript plugins that take a url and run it through a shortening service such as bit.ly when a button is pressed. However, I have not been able to find one that does it on the fly. My first question is does this already exist...

XML cannot be the whole program

I am using jquery to make an $.ajax() call to a REST web service. Based on the documentation I found, I need to use jsonp as the datatype in order to make this cross domain call (an XML document is what is actually returned). When running my code, however, I receive the error "XML cannot be the whole program". Does anyone know what this...

IE6 load img using Accordion jQuery plugin

In IE6 only, using Accordion jQuery plugin to open DIV element, all img element (backgrounds too) inside the DIV are loaded at each click to open or close the choosen element. Exemple : there is 10 closed DIV, you click on the 2nd one to open it, you can see in the status bar the requests to load all img elements inside the both 10 DIV...