jquery

selectors not working entirely

I am populating a <div> with the html() function, after a link is clicked. Basically, I don't want the page to refresh, but put stuff inside the <div>. That works fine. However, I am passing a link into the <div>, and trying to select that too! It literally takes me to a different page, rather than populating the next <div>, as I ex...

JSON response not working?

I'm new to JSON/jQuery, and I'm trying various JSON-AJAX examples. Unfortunately, my simple code doesn't seem to be working. Here is my JS/jQuery in testjs.js: $(document).ready(function(){ $("#radio").click(function () { $.getJSON("testphp.php", { testtest: 'blah' }, function(data){ alert(data.response); }); })...

Need to SelectAll or Clear all checkboxes

Hi, Please help I am trying to code for selectAll or clear all using Jquery. I have a checkboxlist and the value of id seems to be incorrect. Id in firebug shows the value "<%= checkboxId.ClientID %>" Thanks SA Part of the code: <a href="javascript:void(0);" onclick="selectClearAlltest('<%= checkboxId.ClientID %>', true)">Select All<...

Javascript/JQuery: Gallery with very large images. How can I have it on click fade out, load the next image, and then fade in w/ the new image?

Hello, my boss has me working on a website that basically has a very large gallery right in the middle. The way this one part needs to work is that the user clicks a next/prev button, the image fades out, displays a loading spinning image gif, and then fades in with the new image when it's down downloading. I have no idea where to even b...

jQuery Callback Scope

Lets say I have this code $(document).ready(function() { $('.checkbox').change(function() { $('.hidden').slideUp('slow', function() { alert(checkbox value); } } } How do I access the checkboxes value? $(this) doesn't work as you're now in the .hidden element? ...

jQuery Autocomplete result keeps spitting out error

Hi, I've been struggling w/ this problem since yesterday, but I can't figure out why i keep getting error messages "... is not a function". Here's the HTML code <td> <input class="itemAC" name="Item[0][name]" id="Item_0_name" type="text" value="" /> <input class="itemId" name="TransactionDetail[0][itemId]" id="TransactionDetail_0_itemId...

jQuery autocomplete modification Gmail like matching

$("#suggest3").autocomplete(someArray, { multiple: true, mustMatch: true, autoFill: true }); "Jhon Smith" "Borris Baker" "Dove Elliot" Now in the above combination when i would type 'Jhon Smith' a value ( Jhon Smith ) will be available in the dropdown....But how to tweak so that even when i type 'Smith Jhon' still the v...

[jQuery] Next and Previous Slide Button Functionality i++, i--

Hi Ya'll, I had a great experience asking a question last time and thought I'd come back for more help. You guys are wonderful. Thank you in advance. I am working with a featured post slider that advances through 4 posts automatically. I would like to add next and previous buttons. I know that I need to attach some kind of .click()...

Jquery: How to prevent further animating to the left when style: left == 0 or 0px?

How would I prevent a div from scrolling further left when the style 'left' of that div reached '0' or '0px'? Right now I am using the animate custom effect to scroll a div left and right to display hidden overflows but when the div reaches '0' or '0px' on style: left, I want the user to be prevented from scrolling further left where th...

Better Understanding of Web Proxies for php and javascript

I am trying to develop a analytic s project. My goal is to let a owner of x-domain be allowed to copy and paste a small snippet of javascript includes on to their site, from my server. That will be able to analyze the end users experience on their site. Given that my server is php, and I will sending and recieving data larger then the b...

How to check if a jQuery UI plugin is attached to an element?

How can I check to see if a jQuery UI plugin is attached to an element? For example, if I load up the .sortable widget, how can its presence be determined? The purpose behind this question is that I would like the ability to toggle .sortable on elements. With the ability to see that .sortable is present, I could then call .sortable('des...

How to update an existing a href attribute?

Hi, I’m newbie when it comes to jQuery so here is my newbie question ;-) : How to update the existing a href onclick attribute with a new value? I want to insert the Google link-tracker on all existing links. HTML: <div> <a href="http://www.example.com/files/map2.pdf" onclick="dwnlExe();">link</a> </div> What I have so far: <scr...

Where TD Does Not Contain Text

I'm getting magical with some data filtering. When hitting a drop down list I want to eliminate rows from a table where a certain column does not contain the text from the drop down list. I've tried various combinations without any luck as follows: $("table tr td:contains('" + $("#SupplierID :selected").text() + "')").parent().hide();...

How use Jquery.form plugin with C#?

Hi, I'm not very experienced in C#/.NET [WebMethod] (note: I am on Mono) and I wonder how could I use the JQuery.form plutin. I have a Service.asmx and Service.asmx.cs with methods I call with standard jQuery AJAX call. In the form "action" attribute I put link to the Service (/blah/blah/Service.asmx/myMethod). Which firm and/or attr...

how to clear the ajax cache in ie

I'm using jquery ajax, how to clear the cache of the ajax result? ...

AJAX style uploader

Morning all. My script is running here: http://www.actwebdesigns.co.uk/web-design-mansfield/php-functions/AJAX-style-image-uploader-script-php-jquery.php It is an ajax style uploader. My problem being: when image is uploaded, it calls for a refreshed list of images that have been uploaded. But once it has been refreshed once, the "g...

Help with changing the format of the UI date picker

Hi guys, I am using the UI datepicker and I have already limited the date range possible, bt now, I also want to change the format becuase my mysql database is not storing the dates as the format is not the ISO format(yyyy-mm-dd), it is more like(dd-mm-yy), here is my code please! : $(function() { $("#datepicker").datepicker({minD...

How to specify more than one option in jQuery datepicker

I am using jQuery Datepicker. I am using follwing script to attach the datepicker to all controls whose class is datepicker. <script type="text/javascript"> $(document).ready(function(){ $(".datepicker").datepicker({ showButtonPanel: true}); }); </script> Now, is it possible to use more than one option while creating the dat...

C# and JQuery, strange behaviour on postback

Hi, I have an asp.net web site in which I'm trying to insert some ajax call to gain some loading time on page opening. SCENARIO: On page A.aspx I use JQuery $(document).ready() event to trigger an ajax call (via the ajax() method). The ajax call targets B.aspx page (in the same site) which renders a portion of html that I eventually inj...

Get value from links with jquery

Hello. I have a div box with some images that the user can click. When the user clicks the image i want a ajax call that will provide me with the product images from that provider. Like this: <div id="phones" style="display:none;"> <a href="#" value=1 id=HTC class=vendorLinks> <img src=/images/vendors/htc.png> </a> ...