jquery

Check DIV position relative to browser screen - jQuery

I have many DIV with the same class name, let save "wmplayer". I want to make sure that when these DIV get close to bottom of browser, let say 100px above the bottom, they will have display:none. How do I do that with jQuery? Thanks ...

jquery - do [x] after mutiple .load

Once all three loads are complete... $("#sidebar a").live("click", function(e){ $(this).addClass("selected loading"); $("#conceptual").load(conceptualUrl, null, function(){ $(this).removeClass('loading').show("fast"); }); $("#development").load(developmentUrl, null, function(){ $(this).removeClass('loading').show("fast"); ...

Load javascript via jQuery ajax

is it possible to use jQuery %Json function to load a javascriptfile.js asynchronously? ...

jQuery checkbox not checking

I have a form setup so that when you check a checkbox, the relevant UL will expand showing more options based on the choice. It works, but only when the user clicks the label of the checkbox. If the checkbox is clicked, the UL expands as expected, but the box doesn't get checked. Javascript: jQuery(document).ready(function() { ...

how to use each function to get attr of each element with jquery

hi html is <table> <tr> <td><img src="ex.jpg" class="edit" name="n1"></td> <td><img src="ex.jpg" class="edit" name="n2"></td> <td><img src="ex.jpg" class="edit" name="n3"></td> <td><img src="ex.jpg" class="edit" name="n4"></td> </tr> </table> Jquery code is: $(".edit").click(function() { $(".edit").each(function(){ alert($(this...

File Upload via AJAX within JQuery

Hello All, I am new to JQuery AJAX . I want to implement a file upload using a jquery. Will it be possible to make a fileupload with JQuery,AJAX and send it to Servlet which can use apache file commons to upload the file. Can anyone please advice me how to proceed further? Thanks, Deepthi. ...

problem with images load on setTimeout

Hello everybody, I have a problem, that i seems not be able find my way around it. The problem is, that I load images and some text trough ajax call, and then after some time i try to call ajax function again to get new set of images and text. However my problem is that images don't load in time (everything is fine with the text load) ...

Superfish dropdown position

Does anyone know if it is possible to have different positions for the dropdown UL's for superfish? I have a horizontal navigation bar, on the left side I would like the dropdowns to align to the left of the button, on the right side I would like them to align to the right of the button. ...

Greasemonkey how to apply a CSS rule only for @media print?

I'm using Greasemonkey and JQuerys #css method to add css styles to a page. Script so far: // ==UserScript== // @name www.al-anon.dk Remove inline scroll so that page content prints properly // @namespace http://userscripts.org/users/103819 // @description remove scroll from al-anon pages // @include http://al-a...

jquery fading gallery

Hay all, i've wrote a simple fading gallery with jQuery. It basically loops though a set of images, fading from one to another. It works perfectly, as predicted, until it gets to the last image, it then doesn't fade from the last to the first, just to displays it. here's my jQuery $(document).ready(function(){ Zindex = 99999; i = 0; ...

Using JQuery AJAX calls in SharePoint

I've got a custom new item form which I'm using in SharePoint 2007. What I want to happen is that once the user has entered an asset id and they leave the field, an ajax query checks to see if that asset id is available. I've used the following code successfully on a normal .NET web applicaiton, however when using the same code in Share...

fading from div to image in jquery

I have a <div> setup as such: #menu_one { height:50px; width:150px; background-color:#666666; } </style> <div id="menu_one"></div> What I want to do is have this <div> fade into a image that will be of the same size on mouse over then fade out when the mouse exits. Would it be better to have a background image of the g...

Control HTML element by using JQuery

Hi, I am trying to do something really practical. <table class="annplain" cellspacing="0" cellpadding="15" width="325"> <tbody> <tr> <td><p><strong><a href="#Title" class="Title">Title</a></strong><br /> <span class="annfrom">date<br /> </span> <span cla...

Merge two jQuery Function

Hi all, I have two functions that pulling some of content from html and returning it in body. $(document).ready(function() { var b = []; $('.avatar_ name').each(function(i,e) { b[i] = $(this).text(); }); $('body').empty(); for (var i = 0, j = b.length; i < j; i++) { $('body').append( b[i] + '<br>')...

how to stop writing repeated code

Hi I was just wondering how I can change the code below to less lines of code, it contains a lot of repeated lines, basically what it does it swaps images and make them zoom in, any help would be appreciated, // JavaScript Document $(function() { var fullWidth = 1500; // Width in pixels of full-sized image var fullHeight = 2...

Reloading Content of Ajax Tab

I'm completely puzzled, I make an ajax call inside a Jquery UI Tab, after that I want to refresh the content of the tab, the function that should be doing it is: function reloadTab(){ var $tabs = $('#tabs').tabs(); var selected = $tabs.tabs('option', 'selected'); $tabs.tabs('load', selected); return false; } Incredible but true it do...

Google admanager and Jquery

I have Google admanager and Jquery and Jquery UI. But it takes a long time to load the Jquery because Google Admanager. I have about 30 banners in Google Admanager. Anybody know how to get the Jquery load first? Thanks ...

Bouncing an element into view with jquery

I am making a simple portfolio site and I would like to have a series of elements, <divs> I suppose bounce into view when their thumbnail buttons are clicked. I want it to look something like this: http://plugins.jquery.com/project/Bounce Where the item starts at a location with a negative left position to be hidden off screen and then...

jQuery Navigation - Keeping the accordion open and show the active page.

I have seen a similar related post but my situation is a little different so I am posting a new question. I am working on a site that was built by someone else. The navigation is an accordion style that works nicely but I need to be able to have the navigation remain open with the current active page highlighted. I am relatively new to ...

What is the best choice for making AJAX calls to a WCF service?

The Microsoft AJAX Library Preview 6 and jQuery provide several ways to make the sorts of calls I need: Sys.Net.WebRequest (ASP.NET Ajax) Sys.Net.WebServiceProxy (ASP.NET Ajax) $.ajax (jQuery) Sys.Net.WebRequest offers a way to specify the verb ("GET", "POST", "PUT", and "DELETE"), but no built-in callback for a failed request (they ...