jquery

How to add/change param value to url using jquery

Hi, I am trying to add two parameters to the url (in the address bar). Basically a user click this link from a different location <a href="player.php">open player</a> I need to automatically load the the latest show from that list of shows displayed, the show is shown every day so i do not know the episode number. the address bar nee...

what is the actual use of jquery ?

what is the actual use of jquery ? Just the richness ? ...

jQuery select column

I would like to select all cells of the first column of a table. Can anyone please tell me the coe. Tried this.. $('.sortable tr:nth-child(1)'); // getting entire row. ...

Classic post request vs ajax request

I have a table with some items. I select one and when i click a button i want to send its id in the server side and based on that id to create some excel file. To send the id from the client should i use a classic post(create a form, assign to id a hidden, submit it and destroy it) or should i use $.post from jquery(or any other ajax) Wh...

jQuery reversing animation on second click

I have a div element that on the click of a link slide in from the right and slides to the left, the works great, I am now trying to get so that if the link is clicked again it runs the animation in reverse, I have tried add a class to the link when the animation runs and then doing the same animation but backwards, but that does not wor...

how to get following dom element usign jquery...

hello all, var rows = $(".sometable tr:last"); var cells = $(".sometable tr:last td").filter(function() { return $(this).html().length == 0 }); i want to get first empty cell in the last row of my table. the table is rendered from the server and it is html table. i can iterate to cells and get the first cell if there are elements ava...

How to make custom, no editing need, bulletproof jquery's noconflict version?

in my job i always have to use jquery with prototype can i make any custom jquery with library file like once i will add in head and then no need to change anything in any code. is it possible? I don't want to change anything in an code $ to jQuery. ...

disable text highlighting on double click in jQuery

I have this jQuery toggle. It work fine. <ul> <li>Go to the store</li> <li>Pick up dinner</li> <li>Debug crash</li> <li>Take a jog</li> </ul>   $("li").toggle( function () { $(this).css({"list-style-type":"disc", "color":"blue"}); }, function () { $(th...

validate tricky fields

in my form fields i've got watermark text that disappears when the user is typing something in them. but then, i cannot use jquery validation plugin http://docs.jquery.com/Plugins/Validation#Example for checking that the user has typed something in the fields cause in either way, they will contain text. so how can i validate that the u...

how to re-order blank cells from html table using jquery.

as per question i want to re-order blank cells from table using jquery, do not want to remove the cells.. all cells with data will be first and then empty cells should be there. how todo it best. my table contains 10 cols and some rows... cols will be fixed. just want to reorder the without removing cells. ...

How Can I get the text of the selected radio in the radio groups

as said in the title for example: <input id="User_Type_0" type="radio" name="User_Type" value="1" checked="checked" /> <label for="User_Type_0">User1</label> <input id="User_Type_1" type="radio" name="User_Type" value="2" /> <label for="User_Type_1">User2</label> how can I get the text:User 1 ...

positioning span?

take a look at this validation demo: http://jquery.bassistance.de/validate/demo/ the error messages are placed on the right side to the fields. i have wrapped span on my messages and want to place them to the left side of the input fields. how do i do that with css? ...

jQuery selecting columns in tables and updating values onClick with both th and td present in table

I am trying to update cost values in a seperate div from an external XML file when a user clicks on a table column. My table structure is as follows: <table id="benefit" class="portletTable benefitsTable" summary="This table displays the level of of benefit you would receive."> <caption>Table of benefits</caption> <thead> <tr> <...

first-child selector means what? Select the first-child of the element? Or select it if it is the first-child?

Look at this: var selection= $('table td:first-child'); In practice it selects the first row's <td> elements in the table. When I saw it for the first time, I took it as: Select all first-child elements within all <td> in the <table> </table>. But what it does is: Select all <td> within the table if it is the first-child of its pare...

Anything Slider: Linking Directly To Slides from Static Links

Can anyone help? I am using the fantastic jQuery 'Anything Slider' by CSS Tricks. I can't work out how to link directly to slides from static links. It is mentioned as a option (see below) but my knowledge of jQuery is very limited. "Target the link using and ID or Class (or whatever), and apply a click handler. Then call the plugin...

JQuery (load image, shrink up after x seconds)

I'm a newbie with JQuery so if someone has an example of this that I could use I would greatly appreciate it. Basically, I want my page to load with a large image (possibly 600 x 400) automatically and then after 1 or 2 seconds, automatically shrink up the image with a slide effect so that only a portion of it is showing (but I would ne...

Internet Explorer line 1 char 1 code 0 error

I'm using jQuery+drupal and some jQuery plugins. All is ok with Firefox. But in IE's i'm receiving problem like this. Line: 1 Char: 1 Error: object expected URL: http://businessway.am I have included .js files. How to know where is the problem? In which file? Line 1? Which file? If you can please check site which I gave before. ...

User interface suggestions / navigation ideas (mockup images provided)

I have a number of graphs I'd like to display, each one with a corresponding text. With the size of the area to the left as your only constraint, I'd appreciate suggestions on how to make the interface intuitive and stimulating (if there's any contradiction?). In this mockup, there are basically 2 modes: 1) A graph tree menu is shown ...

Loop timer in javascript

Hi, I need to execute a piece of javascript code say, each 2000 milliseconds. setTimeout('moveItem()',2000) The above will execute a function after 2000 milliseconds, but won't execute it again. So inside my moveItem function I have: function moveItem() { jQuery(".stripTransmitter ul li a").trigger('click'); setInterval('mov...

jQuery dynamic qtip shows div, but gets slower and slower with every mouseover

Hello, I use jQuery qTip plugin to show divs for a mouseover link/img. I have wrote 2 options to use, but both are causing troubles. V1: the first version shows the tooltip, only the second time I move my mouse over the link. After repeating my mouse over the link the script seems to get slower and slower and after 6/7 times my browser...