jquery

jQuery UI Datepicker with jQuery tipsy

Any ideas how to implement tipsy tooltips over jQuery's UI Datepicker? Basically I want to get a tooltip when the user moves on a specific date in the Datepicker. The Datepicker will be displayed inline and always visible. Thanks! ...

greasemonkey, jquery and setTimeout

Hi, I'm playing around with jquery and greasemonkey and tried to use setTimeout to call a function every second, but for some reason it doesn't work. // Add jQuery var GM_JQ = document.createElement('script'); GM_JQ.src = 'http://jquery.com/src/jquery-latest.js'; GM_JQ.type = 'text/javascript'; document.getElementsByTagName('head')[0].a...

jQuery serialize() not working on Ajax-loaded dialogues in IE

Hi, I'm hoping someone on this list can offer some help. I have a page that uses ajax to loads a form (id: "editform") into a jQuery-ui dialog box. The dialog box has a button attached - when someone changes the form and clicks this button it triggers a function which serializes() the data and sends via $.post to replace a div on the pa...

JQuery Updating Problem?

I can only get the functions getRating(); and getRatingText(); to update without reloading the web page. But the other functions getRatingText2(); and getRatingAvg(); wont update until I reload the web page. How can I get all the functions to update without reloading my web page? Here is the JQuery script. $(document).ready(function()...

Is there a good jQuery pattern for managing initialization?

Basically I want to do something like this: $(document).ready(function() { if ($(body).attr("class") === "HomePage") { HomePage.init(); //bind events for home page (Crockford's module pattern) } else if ($(body).attr("class") === "AboutPage") { AboutPage.init(); //bind events for about page } }); ...

JQuery Problem: $ not defined (I am trying to implement equal div heights script)

I need a solution that will set the heights of two divs whose class = col to the height of the tallest one. I found a solution here that I have used to implement this: http://www.cssnewbie.com/example/equal-heights/ This is the code that I have placed on my site: <script language="javascript" type="text/javascript" href="jquery.js"></...

Using jQuery how do I find the first ELEMENTTYPE that's a parent to the element selected?

I have a particular element (input box) that's deeply nested in some table stuff (td,tr, table). How can I select the "fieldset" that encompasses it all? ...

jQuery .fadeIn turns content invisible in IE

Hi, I'm having some difficulty getting IE to behave. I have created a web page containing various hidden divs. These act as sub pages, when a nav item is clicked they fade in/out in a very basic lightbox manner. It works in Firefox & Safari but in IE (8) it fades in to about 60% then vanishes completely, also knocking out the backgroun...

Using a web service for cross site scripting

I want to pull down a feed (like twitter) and place in on a page using javascript (jquery). Ultimately, the "service" just needs to hand off JSON. I created a web service that allows me to do that, sort of. I don't know if using a stream reader is all that efficient and I was a little bothered by having to use what amounts to 2 evals on ...

jquery, domain, get URL

How can I get the domain name with jquery ?? ...

jquery validate multiple or indivual containers for errors

Hi, is there a way to choose different containers with the jquery validate plugin for showing the errors in an independent container or a way to create a new container for every error but not just use the same one ? currently my code looks like this: $(document).ready(function(){ $("#loginForm").validate({ errorClass: 'err...

Where can I find a sample for jQuery Pagination with AJAX for ASP.NET?

Hello I'm searching a clutterless way to paginate data with JQuery and Ajax on a ASP.net website. I'm trying to make it work similiar to this, but it's not working because there's something wrong on javascript, but I can't find out how to fix it. I actually don't like the results so far, it's too complicate to maintain this code, don't...

Why "Live" don't bind to the actual element

I'm facing few problems especially with event bubbling and also with the "live" method. I have a table with few cells and in each cell "td", there is a list and a links "li a". The links have a ".class" associated with them. So I just want to make the links works, I use the live method (because they are created dynamically) $('.aclass...

Select link right after the one i just clicked.

also threw it up on jsbin: http://jsbin.com/ohazo/2 but the code on jsbin is the old code, so overlay_nextimg is overlay_content.click in the javascript on jsbin Jquery lightbox, grab next link from the one we just clicked, take it's href, fade out the current image, and load in the next img. Also, how would i go about keeping the over...

Javascript Syntaxhighlighting lost when AJAX call is made.

I have a page on my website that I am making a call to using a jQuery ajax call. It loads in a div. But whenever I the page is loaded, it loses the snytax highlighting that it should be displaying. Ex: <html> <head> <!-- syntax highlighting script --> <script type="text/javascript" src="syntaxhighlighter.js"></script> </head> <body> <!...

How can I use JQuery so that when a user clicks on this, a sudden color appears?

<a href="/list" onclick="????"> <div> LOTS OF INFO HERE LOTS OF INFO HERE LOTS OF INFO HERE LOTS OF INFO HERE </div> </a> I have a div, which is inside a hyperlink. The whole div is clickable. When the user clicks on this big div, I would like the entire div to turn light blue, and then slowly fade into white. This will give t...

Difference between Prototype 1.6 and jQuery 1.4.2

These Prototype <-> jQuery slides gave a great comparison between ajax libraries, but are based on Prototype 1.6 and jQuery 1.2.1. Now that jQuery is at version 1.4.2, has there been changes in its fundamentals? I skimmed its release notes for recent versions and saw mostly API changes and performance enhancements. ...

How to Restore an Element Removed with jQuery?

if an element is removed using $('.notification').remove(); How do we create it back. ...

How to add a footer to the popup dialog in jquery?

I am trying to create popup using the jqueryui dialog. I am trying to add a footer after the content in the dialog. my dialog should look like <popup> header-html content-html footer-html </popup> The dialog already has header and i can put content in the div. But, how can i add the footer html?? I want this footer to be there ...

Jquery submit multiple links

Hello, I have a page where I am displaying a list of users and next to each user - there is "Add as Friend" link. Now when a user clicks this "Add as Friend" link - I want to call Jquery and submit that request to the backend PHP. Typically my experience with Jquery involves having a single form in the page and submitting that form vi...