jquery

Is it possible to overide the sort function in the jQuery tablesorter?

I'm currently using tablesorter to sort a set of graphs. I achieve this by using a hidden text to embed the "number" the graph contents represent. The textExtraction routine then pulls the number out for sorting. However the graphs are actually for two separate things, lets call them A & B where a B node is a child of one of the A node...

[jQuery UI - Accordion] Styling active header?

Hi, Simple issue: I am using Accordion without any UI themes (just barebones, using my own CSS). So far, so good, except that I cannot figure out how to set an "active" style for the currently selected header. The jQuery code: $("#menu").accordion({ event:"mouseover",header:"a.top" }); The HTML code: <a href="#" class="top">XXX1</...

Rails, update 2nd select with static data from partial, based on initial select.

I have a rails form where the end user is going to drop down a list of categories, select a category. I need this selection to update the next select drop down. The issue is that the 2nd select needs to be populated by static data from a partial. The reason for this, is that its a product registration page, that includes more option...

Contents of iframe disappears after inserting it using jQuery.append

Hi, Please consider this code: <html> <head> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"&gt;&lt;/script&gt; </head> <body> <div id="dlgDiv" style...

how can i send data to server ...

Hi all, I am having ASP.NET MVC application in which i have to send data from client browser to the server. Client browser means that data is present in javascript function (calculated) now what should i use to send this data to server . Before MVC, in my old application i was using Web Methods Please advice ...

How to simulate a click in javascript?

One of the features is that when a user clicks on something, something happens. How do I simulate this click without just calling the function? ...

Trouble with jQuery and .attr('value')

I have a list, with a value on each list item like so: <ul> <li value='red'>red</li> <li value='grn'>green</li> <li value='prp'>purple</li> <li value='blu'>blue</li> </ul> I needed to retrieve the value of the list items, so turned to jQuery (1.3.2): $('li:first').val(); This throws a javascript error. I'm forgivin...

Why doesn't this work?

I want to change the value of an element with javascript. <span id="mixui_title">Angry cow sound?</span> <script type="text/javascript"> $("#mixui_title").val("very happy cow"); </script> ...

How do I change the "href" of <a> through Javascript Jquery?

Suppose I have this: <a id="main_link" href="http://feedproxy.google.com/~r/AmazonWire/~5/FN5UZlXKwdY/SalmanRushdiePodcast.mp3"&gt; How do I use Jquery to change the "href" to something else? ...

MVC, jquery, hoverIntent, Error: Object doesn't support this property or method

I am having one heck of a time with hoverIntent. I keep getting "Error: Object doesn't support this property or method" popping up. If I change .hoverIntent to .hover, it "works". I've tried the regular file and the minified file and neither work. I downloaded them from here I only have 2 scripts on the page. (this is in the MVC ma...

jQuery json/html template rendering plugin

I'm looking at possible approaches to rendering json data received from an Ajax call into HTML tables. I don't want to recreate the table tags and rows each time so a templating seems like the best solution. Besides 'PURE' plugin/library (http://beebole.com/pure/), is there another option that would work for this purpose? ...

Make search input to filter through list Jquery

Hey, I am trying to create a search field that will filter or show/hide(which ever is best) the list elements based on what the user typed in and clicked the search button. I have no idea how to do this. everything I tried does not work unfortunately and im unsure of the best approach for this, like do i use show and hide or is there som...

Customise JQuery EasySlider plugin numeric output menu to use text string instead?

Hello, I'm using this plugin: http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider Demo: http://cssglobe.com/lab/easyslider1.7/02.html Maybe somewhere in here can be altered? if(options.numeric){ for(var i=0;i<s;i++){ $(document.createElement("li")) .attr('id',options.numericId +...

jQuery Selecting the first child with a specific attribute

Hello, I have a form in HTML with multiple inputs of type submit: <form id = "myForm1" action="doSomethingImportant/10" class="postLink" method="post"> <input type="hidden" id="antiCSRF" name="antiCSRF" value="12345"></input> <input type="submit" value="clickThisLink"></input> <input type="submit" value="Don'tclickThisLink"></input> </f...

How to get django and jquery .ajax to play nice - not triggering success

At this all evening and can't see what I'm missing: JS: $(document).ready(function() { $("#form").submit(function () { var txt = $('textarea[name=text]').val(); $.ajax({ type: "POST", url: "/parse_text/", data: {"text": txt}, dataType: "text", success: fun...

Examining AJAX HTTP requests using Web Inspector

Is there an easy way to examine the HTTP GET/POST/OPTIONS/HEAD etc requests being made by jquery ajax calls using WebKit's Web Inspector? I'm hand crafting responses and am looking for a simple way to monitor the back and forth traffic. ...

Zend Form: How to create a 'create account form' that checks for unique username?

I have a form where a user can create an account. The username column is unique in the database. If a user tries to create an account with a duplicate username, it throws an exception. This ends up looking pretty ugly. I'm thinking about doing some sort of check before inserting in the database (possibly with ajax) to see if the desired...

jQuery XML Parsing Not Working Locally in Safari 4.0.4

I'm new to this site, but it seems like someone out there should be able to answer my question. I've recently started using jQuery, and spent the day slamming my head against the desk trying to successfully parse an XML file and append the text to a div. After failing at this in Safari, I switched over to Firefox, and found it working p...

xVal and remote validation rules with empty values

I have a textbox.. <input id="state" name="state" type="text" value="" /> And I'm trying to add a remote rule to it. <%= Html.ClientSideValidations() .AddRule("state", new RemoteRule(Url.Action("ValidateNeedForState")))%> In that remote action I want to see if the country is "US" and if so, make sure there is a state provided. ...

JQuery AJAX .load - flash chart doesnt load in IE

Hello, An IE issue has me completely stumped. I have a coldfusion page that uses JQuery's AJAX .load function to load in a new flash file that is generated by coldFusion's cfchart tag. This works completely fine in firefox: the new flash file and new html elements load. However in IE: all of the html elements that are geneated with the ...