jquery

trigger event after several ajax calls succeeded

I wonder which is the best approach to trigger an event after several (unordered) ajax calls finished. To make it a bit clearer, I would like to call a Method doSomethingGreat() which triggers several ajax calls, the order in which those succeed ins unnecessary. I just want to trigger an event 'SomethingGreatFinished' when all of those ...

Jquery funcation after() is not working in ie7

I am using $(row).append(newRow); it is working fine in IE8 but not in IE7. Please answer me. ...

How can i use JQuery fadeTo() in IE 7?

I am using jquery fadeTo() its working in chrome and firefox but not in IE 7. Below code is not working in IE 7.. I have fixed table.nav td:have{ opacity:0.2;} Run time i use jquery to change opacity 0.2 to 1.0 $(document).ready(function() { $("table.nav td").hover(function() { $("table.nav td:hover"...

Loading Items in order and increasing web application speed using asp-ajax

Hi folks I want to implement the following page by Asp.net version 4.0 and ajax but I want to have loading by order like loading item 1 and 2 and so on. I have container or web part but mostly container like simple asp.net panel. how I can implement it ? I used updatepanel and update progress but it doesn't work that I have expected befo...

Expand & collapse in asp.net with JQuery

Hi All, i am using asp.net 2.0 and c#. I have two divs and , what I want is this that when I click on the link, div1 will collapse and div2 expand and the vice versa. I have to do this in JQuery. Please help, it's urgent. Thanks in advance. ...

Jquery automatically form submit, but returns nothing

Hi All, I'm using Keith Jquery Countdown 1.5.8 for doing the countdown and the ticking time is working perfectly for every user. i have 2 forms in a single php file (let's say multiform.php) but the form submits nothing when the countdown reaches zero. Here is my jquery code : <script type="text/javascript"> $(function () { $('#d...

Jquery Uplaodify images upload into different folders

Hi, I am using Jquery Uploadify for images upload with PHP, here i want to upload multiple images in different folders i.e first image will upload into 'folder1' ,2nd image upload into 'folder2' and all these uploads should be done by single instance of uploadify. Is it possible or not?? ...

Change fancybox body id on load

Hello! I have a background image in my site, but when I open a fancybox, that background image would appear in fancybox's body, too. Is there a way to get the body element inside the iframe so that I can apply an id to it? I tried this: $("#appointment-form").fancybox({ 'width' : 500, 'height' : 300, 't...

jquery Any item selected in listbox

how can i check with jquery that an item is selected or not in listbox? ...

Creating an arch of list items (javascript)

Hi I've got a list of items which have a background image (via CSS) and some text. The simple markup is as follows: <ul> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> etc... </ul> Imagine that each list item is a square. Is there an easy way to display these as a semi-circle? i.e. [][] [] []...

I want to load a php include file using jquery

Hello, I want to load a php include file using jquery, ie., should reload. I have the german language loaded below <div id="lang_files"><? include('lang-de.php'); ?></div> Now I want to load the french language using $('#lang12').bind('click',function(){ ('#lang_files').load('lang-fr.php'); }); Thanks Jean ...

jQuery .inArray question

I want to check if my row id is within in an array. If I set a fixed value to myindex it works but as it is below it always returns the FALSE value.Thank you. $('#stripeMeSubSubCat tr').each(function(){ myindex = $.trim($(this).closest("tr").attr("id")); var array = [ 0, 52, 53 ]; alert(myindex); alert(array); if ...

jQuery Ajax POST response - knowing which form submitted?

Supposing I had a multi-form page such as: <form id="A" class="jaxy" ... /> <form id="B" class="jaxy" ... /> <form id="C" class="jaxy" ... /> Then I have some JQuery $('.jaxy').live('submit', function() { $(this).startLoadingSpinner; $.post(this.action, $(this).serialize(), $(this).stopLoadingSpinner, "script"); return false; }...

Using ID generated by Html.EditorFor in a jquery UI extension

So here's a DateTime editor a la NerdDinner's /Views/Shared/EditorTemplates/DateTime.ascx: %@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.DateTime>" %> <%: Html.TextBox("", String.Format("{0:yyyy-MM-dd HH:mm}", Model))%> <script type="text/javascript"> $(function () { $("#date").datepicker({ showOn:...

JQuery delegate not working for certain inputs

I'm tring to use JQuery to automatically sum inputs in a table where rows are added dynamically. $().delegate and $().live do not seem to work if the selector contains an input with a name with [ ]. The same selector works with bind. Here is a sample code : <div id="area"> <input name="x[]"/> <input name="x[]"/> <input name="x[]"...

JavaScript OPTIONS cross-site data sending with Firefox

I'm having an issue with sending post data to server when using Firefox. The server is running on Google App Engine. Here is what I have in my javascript. $.ajax({ url: 'http://someurl/example/myform.json', type: 'post', dataType: 'json', data: { 'value.title': title, 'value.info.first': first, 'value.info.second': val...

jquery datepicker Buddhist date

Hi All, is there any jquery datepicker plugin to display as Buddhist date? currently I use jquery ui datepicker to display it, but it's not actually I want. here is the code $(document).ready( function() { $("#datepicker").datepicker( { appendText: ' yyyy-mm-dd', autoSize: true, buttonImage: 'images/calenda...

Ajax success callback for 'delete' not triggering in Firefox

Hi, I have got a test page to use Ajax to make a http 'delete' request to a server. The following JS code works as intended in IE7, but it does not work in Firefox (unless I make the ajax call asynchronous). In Firefox, unless async is false, the error callback gets triggered with status of 0. Can anyone assist in explaining why t...

Fade in multiple images in secquence once they have loaded

Hi there, What I am trying to achieve is a grid of images (10x10) that firstly load after the rest of the page has finished loading, and secondly fade in 1 after another i.e. (represents only one line) ---------- +--------- ++-------- +++------- ++++------ etc... What I have so far is this: <script type="text/javascript"> var loadi...

jQuery - Load images in a gallery?

Hi, I have made an image gallery. What currently happens is the following. I display all of the thumbnails, each thumbnail has a unique identifier. I then use an ajax request to look up the page and the image that matches the thumbnail. At this point I use jQuery to switch the src value in the #photo div. On my localhost this provides...