jquery

jQuery Intellisense in VS 2008 not working with ajax ToolkitScriptManager

I've followed all the steps to get intellisense working for jQuery in VS 2008 SP1 (with the vsdoc hotfix). It works when I reference jQuery inside an asp:ScriptManager control like so: <asp:ScriptManager runat="server"> <scripts> ... </scripts> </asp:ScriptManager> But I'm using ajax ToolkitScriptManager instead and the intellisense d...

Is this a jQuery bug, or am I missing something?

I am using jquery-1.3.2 in an AJAX web application. I use the jQuery ajax $.post() method to submit requests to the server. On the server I am using php to build an array and then json_encode the answer. Then on the client I use the callback function of the AJAX post method to process the response. All works well until I use the $.post...

integrating jquery with AJAX using MVC for ddl/html.dropdownlist

Hi guys, the situation: a user on the page in question selects a category from a dropdown which then dynamically populates all the users of that category in a second dropdown beside it. all the data is being retrieved using LinqtoSQL and i was wondering if this can be done a) using html.dropdownlist in a strongly typed view? b) using...

Persistant notification

Hi I was wondering if anyone knows of a jquery plugin to create a behavior similar to the notification header that appears on Stack Overflow. I understand how to hide and show elements, I dont know how to make its toggle status be persistent throughout the site. I guess basically what I am asking is how to add cookies in the script so t...

Please help to optimize simple JQuery functions

I have a such fuctions for Jquery: $("input").focus(function () { $(this).addClass('focus'); }); $("input").blur(function () { $(this).removeClass('focus'); }); $("select").focus(function () { $(this).addClass('focus'); }); $("select").blur(function () { $(this).removeClass('focus'); }); $("textarea").focus(function ()...

Why JQuery Autocomplete is not executing?

I hava a very interesting case where the JQuery Autocomplete field does not respond the first time i type in the TextBox, but when i TAB outside the TextBox and then return the cursor back to the TextBox for the second time it starts to respond and the results are shown as i start to type. When i use firebug i can actually see the AJAX ...

Question about backwards compatibility of jquery

I know jquery have backwardscompatibility files. But if you link to this specific version: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js you don't need backwardscompatibility files. I want to know if http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js also is going to work with newer browserversions. Then ...

Javascript / JQUery Dynamic Variable Access

I have a javascript variable which is referencing a complex object (it is a slideshow control but that's not important) e.g. var slideshow = new SlideShow(); Because i have multiple slideshows on the page and I want to make accessing certain operations generic/reuse code in different pages. I WANT TO BE ABLE TO ACCESS DIFFERENT VARI...

dealing with jquery events in ASP.NET MVC

I'll try to make this as simple a posible. I just started working with jquery and don't know what's the best aproach to do what i want to do or if i'm completely wrong. I'm trying to make a simple "recommend" button to recomend articles but i want that once the user has recommended one article he can't recomend it again. So far i got ...

jQuery idTabs plugin hover feature problem

I am using jQuery idTabs pluging. I want to give hover feature and use divs with this feature. Default settings are working with click event. How can I change this feature. Best Regards. ...

JQuery URL Event Listeners

I'm trying to get JQuery to highlight an element based on the link ID selector For Example <a href="#thisid">Goto Element with ID name</a> Highlights the element below. <div id="thisid" class="isNowHighlighted">FooIsCoolButNotBetterThenBar</div> Iv tried searching for relevant plugins but no joy. Any ideas? ...

How do I print a pdf from within an iframe?

At cbjsonline.com, I'm trying to have a pdf in an iframe print automatically with javascript. Currently, my code is - (connected to the onclick of the link that opens the iframe) - document.getElementById('fancy_frame').onload = setTimeout('window.print()',2500); Any suggestions? This method only works in safari. ...

How to apply CSS theme to only a specific jQuery-UI element?

I have a web site already build with my own CSS theme. I'm using jQuery UI "tabs" widget but no CSS from jQuery-UI. Now, I'm trying to add the "Date Picker" widget in one of my page. It would be great if I could reuse jQuery-UI default theme which is just fine. The problem is that the date picker theme is also applied to my tabs CSS. ...

jquery .get/.post not working on ie 7 or 8, works fine in ff

I have basically this on a page: <script type="text/javascript"> function refresh_context() { $("#ajax-context").html("Searching..."); $.get("/ajax/ldap_search.php", {cn: $("#username").val()}, function(xml) { $("#ajax-context").html($("display", xml).text()); $("#context").val($("context", xml).text()); }, '...

How can I get jquery to execute animations in exact parallel?

I'm trying to create an accordion widget in jquery similar to jquery's accordion plugin, with the difference that I want the handles to appear below their respective content instead of above. My accordion works by decreasing the height of the open content section while at the same time increasing the height of the clicked content sectio...

Implementing circular scroller in jquery

I'm looking for a jquery plugin to simulate a vertical marquee. I need it to support: Scroll any opaque (unstructured) content. No li, no div. The user can even paste from Word. Automatic constant scroll velocity. Pause on hover. Circular scroll - after scrolling to end, continue smoothly from the beginning. No scroll back, no visible ...

$ is not defined: What does this mean?

Hello all, I get a JS error and I can't figure out how to fix it. When my page loads up, IE7 notifies me of a run time error. In addition, my Firebug on Firefox warns me of an error: $ is not defined (?) [Break on this error] $(document).ready(function() { $("a#sin...Out': 300, 'overlayShow': false }); }); When I go to the lines in ...

General purpose json serializer/deserializer in jQuery?

Duplicate: http://stackoverflow.com/questions/191881/serializing-to-json-in-jquery It seems there's a JSON serializer/deserializer built into jQuery, since it's able to implement things like .getJSON . Is it possible to use the built in jQuery JSON processor itself a general purpose JSON processor (ie. make a jQuery.something() call to ...

(jQuery) Scroll event.. I want to scroll the document to the point specified if the user scroll the page

Hi guys, I want to implement a scroll function.. So the default of scroll is disabled. And if the user use the scroll button, I want it to be set to the point I want.. How can I implement this function? window.scrollTop is not working.. I tried a lot of different methods but all were not working.. $(window).scroll(function() { $(b...

Generating an unordered list with jQuery

There is unordered list, which not works properly in IE6-7, I would like want to replace it by a jQuery function. So, we have: simple list with special #id (ul id="") some <li> tags some special tag in <li> to show the number of a row (or something else, as you wish). I need a function which will give an unique number for each row, ...