jquery

Filtering web page results with javascript-jquery

Hello. I have some filters on the left... At the right there is a div placeholder where products are shown... When a user chooses a filter , products on the right should be filtered and non available filters(filters that if are selected there would be no results) should be disabled. The filters are dynamic.. Adding custom tags to objects...

How to hide the suggestions from the TexboxList (jQuery) plugin?

Hello guys, I'm trying to do something with the TextboxList (plugin) (jQuery) and I just can't get it to work. I have two "TextboxList" in my page one next to the other. When I'm in the first "textbox" and I press the "enter" key to select the item, I want to set the focus in the next "textbox". I managed to do that with the code below:...

How to use jquery selectors on json result

Hi all, I'm creating an inbox system for my website which allows basic communication between users. I'm fetching the results with jquery calling a webservice. Then I'm using a jquery template engine to render the results to the screen. So far this all works good. but now I want to add some click functions on certain parts of inbox mess...

Set button focus next to field so that it uses either Enter or Mouse click with jQuery

I want to be able to either Press the enter key or click the mouse to submit the info in the inputbox. Right now when you manually change focus using tab or click with mouse it will submit the info. It is using the jQuery live Click method. I found this solution for setting focus to a button http://stackoverflow.com/questions/3839342/...

Google map (v3) infowindow opening on the same marker all the time...

I create several Gmarkers (from JSON data loaded by JQuery "load" function), on all of them I add an event listener to open the infowindow object I created before on the marker, and then I add them all to the map. The issue is that the infowindow always opens on the same marker. I all had this working before, i can't see where the prob...

jQuery autocomplete won't show more than 10 results

I'm using the jQuery autocomplete, and no matter what settings I change, I can't get it to show more than 10 results in the dropdown. I can see in the results coming back that I'm getting all of them from the server, but the front end won't show more than 10. $("#add_cpt_code_text").autocomplete('<%: Url.Action("SearchCPT", "ChargeCapt...

Where to define a jQuery $.ajax() success function if you don't want to define in the call to $.ajax() ?

If I want to separate out my ajax success function so that it is defined elsewhere in my <script>, does it have to be inside the $(document).ready(function() { section or could it be defined along with non-jQuery javascript functions? $.ajax( { url: '/load_prayer', cache: false, dataType: 'json', type: 'POST', ...

How to use Public API?

I came across a jQuery lightbox plug-in called PrettyPhoto. Seems very interesting. At the bottom of documentation I noticed a section about Public API, which I paste in its entirety below: Version 2.5 introduced an easy to use API. You can now open prettyPhoto from anywere. The public API functions are the following: $.prettyPhoto...

How to temporary disable click event on a HTML element

Hi guys, $(function(){ $(".first").click(function(){ $(".first ul li").slideUp(); $(this).find("li").slideDown(); }); }); How can I make the active .first element temporary unclickable until its class siblings are referred as active and of course executing the code above is necessary. Als...

specify filetype for FlashGet's download command with JavaScript

Consider a web page with of links to files. FlashGet's normal operation is by right-clicking, and selecting from the context menu. I want to make it easy to launch FlashGet, and make a selection of file type to my desired file type without downloading any other resources being linked to. For example, my desired file type is .rar , and...

jQuery Uploadify - How to use onComplete?

Hello, I'm using uploadify: http://www.uploadify.com/ And have an onComplete: onComplete: function(response) { alert(response); }, My server is sendin back album_id... How do I access that in the response? Thanks UPDATING onComplete: function(response) { jsonObject = jQuery.parseJSON(response.response); ...

JSONP not receiving any callback?

Trying to make a JSONP request to yellowapi (Yellow Pages), even specifying a callback is giving me the "invalid label" error. Here is what I have so far: $.ajax({ dataType: 'jsonp', cache : false, url: "http://api.sandbox.yellowapi.com/FindBusiness/", data : "apikey="+testingPurposes+"&what="+what+"&where="+where+" &fmt=JSON&pg...

How to request different domain with Ajax in jQuery

I need to make a request to a different domain with Ajax in jQuery! Should I use iframe? Edited: On facebook.com working chat, with few different domain name? GET http:// www.facebook.com/ajax/presence/reconnect.php?__a=1&reason=6&iframe_loaded=false&post_form_id=23be2df75b74a0bcb61358814c56ba4f 200 OK GET http://0.50.channel.facebo...

passing data from javascript to php using Jquery.

Hi everyone. Maybe this question has been asked before but I am struggling in doing this. I have got a php file which does not include any piece of php code (might be in the future),it includes just javascript and some html. What I want to do is clicking a button in this php file to send some amount of data to another php file. put it ...

Help with jQuery .load

I have a page that's content is already inside a tab, and don't want to use a tab inside a tab. There will be 4 years 2010, 2009, 2008, 2007 that are anchors across the top of the #content div. When you click a year, it should load the specific content via jQuery's ajax load functionality into the div#content. That is easy enough. Is it...

How to strip slashes in Javascript (json)? Any JQuery plugin?

So, when I save the data into database, PHP will add a \ on single or double quote. That's is good. However, when data passing back to client using json_encode(); TEXT like McDonald's is STORED as McDonald's in DB but once pass back from PHP to js, it will be encoded as McDonald\'s Since I'm using jQuery, is there any plugin easily ...

Microsoft and JQuery: code to combine linking and templating?

With an extreme amount of SO user help, I used ASP.NET MVC 2 Futures to employ JSON to load 600 some products and display them with Microsoft Jquery templates in 400ms with the code below. Is there a way to use Microsoft JQuery Linking to bind the object to the generated form data without looping through every one? (Assuming I preserve...

jQuery: button not working in html returned by ajaxForm - how to rebind?

Hello, Trying to get a button working (jQuery UI chrome and jQuery functionality) in a second form that is in the html returned by ajaxForm that has been called on a first form. The button works in the first form - the jQuery UI chrome is visible and the ajaxForm event works. For the second form, the button is generic and ajaxForm doe...

Pinning jQuery Draggable Offset Position On Browser Resize & Zoom

I am working with jquery on dragging icons around on a webpage from threedubmedia.com's drag js script. This works by assigning the class="drag" to the images. The jquery looks like this: jQuery(function($){ $('.drag').drag(function( ev, dd ){ $( this ).css({ top: dd.offsetY, left: dd.offsetX }); }); The css l...

jqGrid throws "Uncaught Syntax error, unrecognized expression: #"

Hello everyone :) I'm sorry for the long code listing, but I'm not sure exactly where I'm screwing up here. I'm writing an internal-use-only jquery plugin for editing access control lists. A component of the ACL editor is the jqGrid plugin, which is an excellent grid implementation, which comes with it's own AJAX loading facilities and ...