jquery

Rotating a Div Element in jQuery

Trying to rotate a div element...This might be DOM blasphemy, could it work possibly with a canvas element? I'm not sure - if anybody has any ideas of how this could work or why it doesn't, I'd love to know. Thanks. ...

Keyup Event After a Time Interval

Hi! I have this jQuery code that queries an API on a keyup event (via keyterms.php). It works as it is, but I'm trying to figure out how to implement a "pause" so to speak such that it will only do a query after a certain amount of time (say 2sec.) after the last keyup. Any help will be much appreciated. Thanks! $(document).ready(fu...

jQuery - How Do I Place a DIV On Overlay?

I'm trying to make a modal dialog in the least amount of jQuery code as possible because my project already has a bit too much jQuery loaded into it. So, I first needed an overlay, which is achieved with: $('body').wrapInner('<div />') .css('opacity','0.5') .css('z-index','2') .attr('id','dim1'); Disregard for now that I have another...

Toggle whichever element is clicked

I am using the toggle() with jQuery and I have a sidebar on my page and each header is <h2 class="sidebar-header"> One section of my code will look like: <div class="sidebar-section"> <h2 class="sidebar-header">SUBSCRIBE</h2> <p class="sidebar">Make sure you subscribe to stay in touch with the latest articles and tutorials. Cl...

Dynamically construct querystring behaviour in IE and FF / Chrome

This code function LoadContent(Id) { alert('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id); $.get('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id, function(data) { $(Id).append(data); }); $(Id).removeClass("Waiting"); } works perfectly in IE7. the alert displ...

Not printing results from AJAX

I am working on a script to send data to a mysql table and I have it all working properly but the success part of the call, it is not loading my results in to my results column on my page. My code is below. Any suggestions on what I can do to fix that? I am guessing the problem is within my "success:" option in my AJAX call. Thank you,...

jQuery, ThickBox with Ajax content for beginner

Here is the scenario: ThickBox is opened from parent window (when button is pressed) with Ajax content (div based form) that contains the set of inputs with autocomplete support. Once ThickBox(form) is closed the input values should be passed to parent window. Question: the content of ThickBox is loaded dynamically, so what's the corr...

Windows Gadgets & Jquery

I am creating a Vista Gadget and I haven't been able to get JQuery to work. I have tried a few very simple calls like this: $(function() { $('a').click(function() { $('#box').html("test"); }); }); I know you can use JavaScript so it doesn't make much sense to me why you wouldn't be able to use a library. Does an...

Is there a way to access a cache or session from a static method?

How would you access the cache from a jQuery ajax call? I'm using jquery to do some data verification and quick data access. I have a static web-method that jquery is calling via json to return a value. I don't want to call to the database everytime so I'd like to cache the data I'm hitting, but I can't determine how to call the asp.ne...

impromtu plug in not working

Dear all, I Like to have an Popup Modal Dialog that need to show the list of options {like radio button select event .But I dont Know what i am Missing!.It work fine when No HTML Tag embed In Impromtu ,Does i include in CSS ,Any help $(document).ready(function(){ $.prompt( ' Milk',{ opacity: 0.2 }); }); When I run t...

Best way to ship external stylesheet for my new JQuery Plugin? Strategy needed.

I've written my first JQuery plugin and one of it's dependancies is an external css stylesheet. Do you think this is an acceptable strategy to include this in the distributable or should I embed style information in the plugin itself? Should I ship with no style information at all? The visual elements of the plugin make no sense without ...

Extending Forms Authentication Timeout When Making AJAX Calls With jQuery

I'm looking to rewrite a pretty intensive CRUD type ASP.NET page to utilize ajax calls (specifically jQuery ajax). My concern in doing this is that the user may be on this page longer than the forms authentication timeout. Because of this, I'm thinking that I should extend the forms authentication ticket with each ajax call (basically ...

Add link to swapped image

I have an image gallery that is swapping images and I want to link the swapped image to come up even larger in a shadowbox/lightbox. I am close, I am having a brainfreeze on how to add the link. It would go where I have the alert box popping right now. Here is the page if you want to see it so far: http://site.jpda.biz/projects/boerum...

Why does jQuery wrap itself in a function?

I was reading the jQuery source and I was wondering why the entire source file was wrapped in an anonomous function. (function(){ ... })(); Is this something which helps not to pollute the global namespace? Why is it there and how does it work? ...

JQuery Ajax Return value

Dear all, I have jquery that, i have called an ajax function file.php , that has some fields like Milk , Will I assign into again JQuery function, If so how to do It?.I attached the sample file <html> <head> <LINK REL=StyleSheet HREF="examples.css" TITLE="Contemporary" TYPE="text/css"> <script src="jquery-1.2.6.js" type="text/j...

playing flash movies in lightbox

I'm using JQuery and Prototype in this web application that I'm developing. I'm looking for a way to use Lightbox v2.04 by Lokesh Dhakar to play flash movies. If its not possible using the Lightbox v2.04 then what other ways can I accomplish the shadowing overlayed flash video pop-up with jquery and/or Prototype? The reason I'm set on...

How to correctly set the dateElementOrder in datejs to use partial dates

In datejs, if i set the dateElementOrder to the pt-PT localized version of "dmy" or "ymd" instead of "mdy" the following tests on the "Partial" test fixture start to fail: 1/2008; 1 2008; 1-2008; 2008/1; 2008 1; 2008-1 What do i need to do to make it work? ...

How to get ul structure from HTML

I am making a configuration page, that splits a category tree over 3 columns for easy browsing like: **Column 1** **Column 2** **Column3** Category1 Category3 Category5 *SubCategory1* Category4 *SubCategory5* Category2 *SubCategory4*...

How to limit days available in jquery ui date-picker

I need to limit the jquery ui date picker to only have future Tuesdays and Thursdays as selectable days. How can I accomplish this? ...

jQuery and ASP.NET AJAX

Can we combine both jQuery and ASP.NET AJAX in an ASP Web Application? ...