jquery

Selector to grab all <tr>s after a given row in jQuery?

I am trying to take information from a <tr> and prefill it in all <tr>s below that <tr>. I know I can grab the <tr> I want and put it in a variable, but is there a good selector for grabbing only the <tr>s below that row? ...

I'm trying to show some divs on specific link click.

My task for this evening is to show and hide a div (eventually two divs or more actually) when a link from the main nav is clicked. This will then hide divs when they click on another part of the main navigation. DONE Thanks go to everyone especially..Matchu.... the code is now as below and works.... <script type="text/javascript"> ...

What is the best practice for parsing remote content with jQuery?

Following a jQuery ajax call to retrieve an entire XHTML document, what is the best way to select specific elements from the resulting string? Perhaps there is a library or plugin that solves this issue? jQuery can only select XHTML elements that exist in a string if they're normally allowed in a div in the W3C specification; therefore,...

JQuery - Write to opener window

Hello, I have an HTML page that opens another page via JavaScript. When a user clicks a button in the other page, I want to post a message in a DIV of the opening page via JQuery. I cannot put my finger on it, but I cannot seem to get this to work. Here is my opener page <html> <head> <script type="text/javascript" src="jquery-1...

jQuery Sortable for Two Column reordering?

Hey all. Here is the scenario. I have the below code, and I'm needing to rearrange the items within these columns. The problem is...the items don't necessarily need to remain within their containing column, they need to be able to be switched back and forth, depending on the user. Here is the sample code: <div id="container"> <d...

php script gets two ajax requests, only returns one?

I'll start from the beginning. I'm building a wordpress plugin that does double duty, in that it can be inserted in to a post via a shortcode, or added as a sidebar widget. All it does is output some js to make jquery.post requests to a local php file. The local php file makes a request to a webservice for some data. (I had to do it thi...

Find length ofa list with jQuery

I have a simple list like this: <ul id="cyclelist"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> and I am using jQuery to cycle through the list. The first problem is finding if the list has more than one elements to start with. I expect something like this to work: var $list = $('#cyclelist'); if ($list.length > 1...

Why does my jQuery UI Accordion Not Display Accurate Dimensions

http://mindfulintegrations.com/signiacapital/accordian.php I am using Jquery Accordion UI and if you look at the above page you can see it doesn't display the text correctly - the buttons are in odd places and the width of the text isn't spanning the white text block fully. What I want is for the accordion to be under the flash image a...

jquery fading effect

i have this javascript code to which i want to add the jquery fade-in effect hover.addEventListener('mouseover',function () {Core.addClass(cpanel,"on");},false); Core is another library i am using. the above event listener just enables the cpanel div to visible state. how do i make it fade into the view. i am using jquery-ui and am v...

Complex submit form using AJAX to process additional script

I have an existing signup form that submits in the traditional (non-ajax) way. I want to splice in some Javascript so that I can use some of the data from this form to populate other fields in another database. If this insertion takes a significant amount of time (one minute) is the page going to be locked until the AJAX call returns? ...

jquery load data when entered (as opposed to clicking)

Hi, On one section of my website, I ask my customers for their postal code and country. Shipping rates are loaded from another page once they enter these information and click on calculate link. Now, I want to remove the click button and once these information entered, I want users see loading image and load data immediately. I was wond...

jquery draggable

i have a div i want to drag confined in a particular container. i tried using the containment: parent option but this results in the div getting snapped to upper or lower bounds without dragging. i have overflow:hidden set, i hope that is not a problem. (i read it somewhere) pls help me out. the code: imgCanvas.appendChild(img); ove...

bookmarklet that detects whether the current page is a result of a GET request or a POST request

I am trying to make a bookmarklet, which will be used only in Firefox 3. I want it to do one thing if the page it is used on was the result of a GET request, and another thing if it was produced after submitting a POST request. Specifically, I am trying to determine whether I can pull up the same page by accessing the URL that is in the ...

JQuery: multiple rollovers

I have multiple DIVs containing an image in each. When I rollover these DIVs, I want another DIV to fade in over the top. When I roll off this new DIV, it should fade out again. Essentially I want something like the grid of thumbnails here http://www.visualboxsite.com/ This is the code I have written: <script> $(document).ready(funct...

Scaling images w/jQuery - browser cache in the way

To see my problem in action, 1st click this link. Then click this one. Notice how the images are squished? (you may have to click a through the pager to see it). I believe it's because of the browser cache. Here's the javascript doing the work: $("#grid_slider").slider({ value: 50, max: 100, min: 10, slide: function(event, ui) { ...

Inconsistent jQuery function when resizing elements on page load

Ahoy! I've built a little script to check the size of the left-hand margin on page load, resize a div there to fill it, and change the header div to float next to it. Here's the code: function buildHeader() { var containerMarginLeft = $(".container_16:not(:first)").css("margin-left"); var headerHeight = $("#head...

How to merge jquery autocomplete and fcbkListSelection functionality?

Initial caveat: I am a newbie to jquery and javascript. I started using the autocomplete jquery plugin recently from bassistance.de. Yesterday, I found the fcbkListSelection plugin (http://www.emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html) and am using it to include a selector in my application. What I n...

get json data back from ajax call

Hello, my question is: How can my php script send json type data and received back into the success or complete function? I was trying to get this chatfunction to work on my website Because it diddn't work, I created a minimized portion off the code to check if it had something to do with the json method. I only tested if I could get a...

How do I get the contents of an <iframe> containing a different site?

I'm able to get the 'src' attribute of an using .src. But I cannot get the contents that are located in another domain. Is this a browser security problem? jQuery(document).ready(function() { var elementTest = $("iframe:first").get(0); alert(elementTest.src); // ok alert(elementTest.innerHTML); // not ok }); ...

jQuery and Safari

Is it possible to turn off (or hide) the jQuery elements if the user's browser is Safari? Basically I'm using jquery drop shadow and it doesn't play nice in Safari, but it works well on the other browsers. I'd like to keep the effect, but have it turned off (or hidden) in Safari.. Is this possible? ...