jquery

RESTfully getting HTML partial content via AJAX in Rails

In my Rails app, I have a model called "Photo" and a PhotosController. As would be expected, I've RESTfully routed the URLs so that the URL "/photos" returns an HTML-rendered list of all photos (as thumbnails), and "/photos/foo" returns an HTML-rendered representation of the photo with the friendly_id of "foo". (I also do XML, JSON, and ...

jquery form wizard validation

Hi all, I'm trying to implement a validation script (bassistance) with a jquery form wizard (http://www.jankoatwarpspeed.com/post/2009/09/28/webform-wizard-jquery.aspx) but I'm having some problems. On the page for the jquery wizard, a guy named "Tommy" came up with a piece of code to implement bassistance with the code. But for some r...

jQuery Drop down disappears when hovering over text (IE6/7 only)

EDIT: I've voted to close this as I was never able to determine the exact cause of the issue and the test links below no longer exhibit the issue since changing to use the Superfish menu. I'm using this simple jQuery drop down menu on a small site but I'm having an issue where the menu disappears only when the mouse hovers over text in ...

jquery Find ID of dynamically generated tr tag

i have a table with tr containing 10 td elements. The tr are generated dynamically. For eg <tr id = "<?php echo $count; ?>" > <td>name </td> <td>info </td> ... ... <td><a href="delete.php">delete</a></td> </tr> What i wish to do is when i click on delete link , using ajax go to delete page do the needful and then without page refres...

multiply two fields

There is a one section of orders page where users can add new fields to add new products. They choose a product from a drop down menu and its price is written in another column. I need to add a functionality that will allow users to enter quantity amount, and total price will be updated as soon as quantity amount changes. I tried it with...

how to submit html form in jquery ui modal dialog itself

I am using jquery ui dailog box to display a form.When i click on submit, I want the form to perform action in the same div which is used to display the dailog box. But after form submission the response just displays the returned page on the parent window and not within the dialog. ...

How to use Jquery to address individual posts in Wordpress.

Hello everybody! I'm currently designing a wordpress theme, and I require a bit of javascript for a hover effect. I'm using Wordpress Jquery + Jquery Color Animations plugin. The Structure: I use a div (class="post") as a container for the wordpress post, and within the "post" div, I have a span (class="title") which I use to display ...

How do I do an http post to code behind in asp.net webforms?

Hi, How can I call a method in the code behind from a jQuery post in asp.net webforms? In MVC it's simple, I just do this: $.post("/MyController/MyMethod", { data: somedata; }, function(result) { alert(result); }); but I can't figure how what to put for the first parameter if I wanted to call a method in the code behind in webforms....

jquery selecting a selector with namespaced element

how would i select the following in jquery <ns:text value="my value" /> i have tried selecting it like so: 1: var x= $('ns:text').attr('value'); return x; 2: var x= $('text').attr('value'); return x; but nothing so far... i don't know if it is possible or not but ... Thanks ...

How to Remove last Comma in Jquery?

Here is my code in which i generate comma separated string to provide a list of id to the query string of another page and i get the comma at the end of string. <script type="text/javascript"> $(document).ready(function() { $('td.title_listing :checkbox').change(function() { $('#cbSelectAll').attr('checked', fal...

Add 'Last Year' in daterangepicker in jquery

I want to add 'Last Year' option in daterangepicker.jQuery.js which will show me date start from- 1/1/2009 to 12/1/2009 (mm/dd/yyyy). how can i add this functionality in js file. ...

fast jquery image slide show

as we know that in jquery / Ajax we have lot of slide show projects, but i am looking for fast slide show of images specially for slow internet connections, most of the scripts load all the image on page load which make it slow. one idea may be it load one or two images at a time then load next two images once page is loaded and contin...

How to retrieve a clicked element in a jQuery treeview (chapter 2)?

Following the hint I received on my previous question I come across another problem. I have this list: <ul id="treeview"> <li>group1a <ul> <li>group11 </li> </ul> </li> <li>group2 </li> <li>group3 </li> <li>group4 </li> <li>group5 </li> </ul> I am currently using this piece of JavaS...

How to retrieve data from Database through jquery?

On my website, I'm using webservice to retrieve the data from (SQL Server) database. To improve performance, I like to use jQuery to retrieve the data from the webservice instead of using C#. The data values should be assigned to the drop-down list which I'm using in the aspx. Can anybody tell me how to do this? I'm a newbie to jQuery. ...

Keep searchfield-value after selection when using jquery autocomplete plugin

I'm using Jörn Zaefferers autocomplete plugin for jQuery to enable a live search field, which is working great. The user input gets sent to a search service, that returns formatted results in Json format. When a result gets chosen, the values are entered into a separate table. What I'm having trouble with is: After a user selects a sear...

jquery validation plugin and check unique field?

I am currently using jQuery validation plugin with cakephp in my new project. It's working perfectly untill I need to make unique check to email field through ajax to check with the database.. I didn't know how to make the plugin make a unique validation to email from db. thanx ...

show/hide dropdown items based on previous dropdown selection

- - edited as i described it incorrectly first time round, sorry! - - Hi, i am trying to use show/hide to manipulate what is shown in a second dropdown menu, based on what is selected in the first dropdown menu. However after having it work briefly, it now doesn't across any browser, it just shows them all no matter what is selected. W...

Open Select using Javascript/jQuery?

Hello! Is there a way to open a select box using Javascript (and jQuery)? <select style="width:150px;"> <option value="1">1</option> <option value="2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc arcu nunc, rhoncus ac dignissim at, rhoncus ac tellus.</option> <option value="3">3</option> </select> I have t...

Jquery checkbox problem

Hi this is my check boxes <table cellpadding="0" cellspacing="0" border="1" bordercolor="red" width="100%" > <tr><td width="50%"><input type="checkbox" name="businessTypeGroup" id="chkAll" value="0" >All</TD><TD><input type="checkbox" name="businessTypeGroup" id="chkBuyer" value="1">Buyer/Importer</td></tr> <tr><td><input type="checkbox...

codeigniter and ajax cannot access the post

On my website I am using ajax post request to show content around my site, this is done using this code, $("a.contentlink").click(function(ev) { ev.preventDefault(); $('#main_menu').hide(); var url = $(this).attr("href"); var data = "calltype=full&url="+url; $.ajax({ url:url, type: "POST", da...