jquery

How do i remove :hover ?

I have a small problem with a script. I want to have a default action on :hover for those with javascript disabled but for those with javascript enabled i want another action (actually... same action, but i want to add a small transition effect). So... How can i do this? I am using jquery. ...

Local html file AJAX Call and jQuery Woes

I'm working on a offline version of a website using jQuery and some xml files. I'm running in to a problem in jQuery when I do a $.ajax call on a xml file jQuery throws a error. When I look at the error I can tell its loading the XML file because its in the error's responceText property. It seams to work just fine in Firefox. This is h...

What should "value_from_datadict" method of a custom form widget return?

I'm trying to build my own custom django form widgets (putting them in widgets.py of my project directory). What should the value "value_from_datadict()" return? Is it returning a string or the actual expected value of the field? I'm building my own version of a split date/time widget using JQuery objects, what should each part of the...

What is the right pattern for using JQuery Ajax and ASP.Net Mvc?

I'm very new to both the Mvc framework as well as JavaScript and JQuery. I'm trying to understand the right way to structure Ajax calls. Let's say I have a "Vote Up" button similar to what you see on StackOverflow. When the user clicks it I need to update the vote count in the database and return the new value to the UI. Currently I am ...

Exclude a column from being sorted using jQuery tablesorter

I am looking for a way to exclude a single column from being sorted using jQuery's tablesorter plugin. Specifically, I have a fairly large table and would like to keep a "row number" column fixed so that it is easy to see what position in the table a particular row is, after sorting. For example: # name ----------- 1 papaya 2 ...

JQuery Slider - Call function after slide

I have a JQuery silder that I'm using to set the score on a web application. I orignally had it so that the user clicked a submit button, but the client now wants it to update AJAX style. This would work find, but the slide function gets call on every movement, so my AJAX script will send a score before the slider has finished being mo...

Getting rid of disc in list item

Hi, I'm developing a site using jQuery, and jQuery UI tabs. For some reason, my tabs (unordered list) are showing their bullets in all browsers (tested thus far) except Firefox 3 on OS X. It displays them in Safari OS X, FF 3 Windows, and Google Chrome Windows (IE displays all the divs in a big stack in the corner... but that's anot...

jQuery, attribute filter selectors and finding out exactly _which_ element was clicked...

Hi, I have this jQuery which works fine $("li[id^='shop_id']").click( function () { alert("I clicked on id ??"); }); The above will work if any list element with an id beginging with 'shop_id' is clicked (i.e 'shop_id_1', 'shop_id_2', etc). The problem is that I don't know how to find out exactly which id was clicked. I need to k...

Ajaxform problem in jQuery

I am using ajaxForm. Now I have encountered a problem. My Idea is when the user enters the username, if any wrong username, it should ReportMessage to the user My Code is working fine, but the problem is that after ReportMessage shown to the user, the Submit button becomes inactive. So, the user is unable to click the Submit button agai...

jQuery: exclude $(this) from selector.

Hi. I have something like this: <div class="content"> <a href="#">A</a> </div> <div class="content"> <a href="#">B</a> </div> <div class="content"> <a href="#">C</a> </div> When one of these links is clicked, I want to perform the .hide() function on the links that are not clicked. I understand jQuery has the :not selecto...

jQuery offset doesn't produce value

before posting the whole code, i wanted to make sure I am not missing a simple issue here. var dv = $(myElement); var pos = dv.offset(); var width = dv.width(); var height = dv.height(); alert(pos); alert(width); alert(height); here, width alerts fine, height alerts fine but offset alerts [object Object] (in firefox) am I missing ...

Iterating Over <select> Using jQuery + Multi Select

This isn't quite as straight forward as one may think. I'm using a plugin called jQuery MultiSelect and multiple <select> options using XSLT as follows: <xsl:for-each select="RootField"> <select id="{RootField}" multiple="multiple" size="3"> <option value=""></option> <xsl:for-each select="ChildField"> <option value="{C...

Is ther a way to add a path to all src attributes of image tags?

I would like to add a path "images/" to all img tags in my html file. Is that possible and if how can I achive that? ...

select a div's all links but not child divs' links

Hi, Please help... How can I code at Jquery, "Selecting a div's links but not child divs' links of that div? Thanks. Best Regards. ...

Why isn't jQuery $('.classname') working in IE?

With valid HTML the following finds the object as expected in all browsers but gets NULL in IE (6 & 7). $(document).ready(function() { alert( '$(.rollover):\n' + $('.rollover')); }); I've tried by switching it to something simpler like $('a') but I always get NULL in IE. Update: After running the page through the W3C validator (a...

How to get jquery ui tabs working?

At http://docs.jquery.com/UI/Tabs#Example there is a short HTML example of how to use JQuery UI Tabs. I put the HTML in a local index.htm file. I downloaded all the CSS and Javascript files, and saved them in local files: but the closest I can get is the same example without any color in the tabs. I've looked around for images, etc. bu...

Is there any good way to convert existing YUI based scripts into JQuery code?

My site was based in YUI, but since I plan to upgrade my site to .NET MVC and JQuery is MVC friendly, so I plan to convert my existing YUI scripts to JQuery. ...

Is it all right to add custom Html attributes?

I have a site I'm working on where I want to mark if a row of data has been changed. If something has been changed in that row I would mark it with a custom attribute like so. <tr> <td isDirty="true"> ....row data <td> </tr> This works great with jQuery and it doesn't add to much code to my page. But is this really the corre...

How to embed additional jQuery plugins into Greasemonkey

So I've been able to get Greasemonkey and jQuery 1.2.6 to work together without issue, but, now I'm wondering how to embed additional jQuery plugins into my Greasemonkey script, such as Eric Martin's SimpleModal plugin (http://www.ericmmartin.com/projects/simplemodal/). The following code gets jQuery loaded, but I'm not sure how to get ...

how to get GET and POST variables with JQuery?

How do I simply get GET and POST values with JQuery? What I want to do is something like this: $('#container-1 > ul').tabs().tabs('select', $_GET('selectedTabIndex')); ...