Ajax request in progress jQuery
Hi, Is there a way to check if there's ajax request in progress? Something like: if ( $.ajax.inProgress ){ do this; } else { do that; } ...
Hi, Is there a way to check if there's ajax request in progress? Something like: if ( $.ajax.inProgress ){ do this; } else { do that; } ...
Hi. I want to create a validation rule for 2 date-pickers (startDate less then endDate). I create a validation attribute: [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] public sealed class DateCompareAttribute : ValidationAttribute { private const string _defaultErrorMessage = "'{0}' is less then '...
In my toplevel menu items, I would like to make a subline for each item. I don't think it's possible to do by default, byt YooTheme has done it in many of their templates. The menu output look like this <div class="moduletable_menu"> <ul id="mainmenu" class="menu"> <li class="active item1" id="current"> <a href="URL_HIDDEN"...
I have the following code: $('a.home-page-link').mouseover(function() { $(this).animate({ opacity: 0.4 }, 200, function()); }); For some reason, this refuses to "play ball", any ideas? Cheers! ...
Is it possible to report all the observers of the 'ready' events. I have a page where something is happening twice, and i'm trying to chase it back to the source. ...
I want to write a jquery ui plugin? I can't find a useful tutorial which will guide me from start. I've never written a plugin for jquery before. I want to prevent draggables from overlappping on each other. I found a plugin for jquery ui but it doesn't work with version 1.7.1 of jQuery UI Please help! ...
I have the following mark up. <ul> <li><a><span>link-1</span></a></li> <li><a><span>link-2</span></a></li> <li><a><span>link-3</span></a></li> </ul> When user hover on the first 'a' then the next a tag in LI , we remove the backgorund-image. I hope you are clear what I want to do with this. ...
I'm loading the iFrames dynamically and some pages are 'taller' than others. I'd like the iFrame to grow accordingly. Is it possible? If so, how? ...
I have a question that is pretty similar to this one. Is it possible to make the jQuery UI draggable and sortable interaction work on in the Android browser? ...
I working on an intranet project for IE6 (i know...) and I need to output some HTML code from a div. I use $('#output').text($('#container').html()); But IE6 outputs all the code in uppercase: <TABLE border=1> <TR> <TD>Test Content</TD> </TR> </TABLE> How can I convert HTML tags to lowercase using jQuery? Would be useful to hav...
Is there a way to use jQuery.html() and not loose the scripts and styles? or any other non-jQuery way? I'm trying to output the full HTML of the page the user is on. Is this even possible? ...
I want to check server response in javascript. For example I have a server A which will host the script. On excuting the script it will check if the server B is responding or not. If yest continue other wise redirect to server C. Is this possible with Javascript/Jquery? If not what could be a possible solution in PHP? ...
How can I add a function for hide/show elements in the list? For example we've several lists. When we click on "show" link, all list items are displayed, when we click on "hide" link, hide items in a list with an index greater than 3. <div class="filter_item"> ... <h3>Network Name:</h3> <ul> <li>1</li> <li>2</li> <li>3</li>...
I have a textbox with calendar extender and a label <label for="<%= tbxFrom.ClientID %>"> From</label> <asp:Label ID="lblWeekDayFrom" runat="server"></asp:Label> <asp:TextBox ID="tbxFrom" runat="server" CssClass="Calendar"></asp:TextBox> <cc1:CalendarExtender ID="extTbxF...
I have something like this: <div id="wrap1"> <div id="util1"> </div> bla bla </div> <div id="wrap2"> <div id="util2"> </div> bla bla </div> <div id="wrap3"> <div id="util4"> </div> bla bla </div> ... I need to show the "util" divs when cursor is over the "wrap" div and hide it back when cursor leaves the "wrap" div ...
I'm trying to trigger a sequence of effects (simple animated show/hide) on a group of images inside of div where images are tagged with classnames that provide a filtering ability thru class selectors. <div id="myDiv"> <img class="tag1 tag2 tag3" ... /> <img class="tag2 tag3" ... /> <img class="tag1 tag2" ... /> ...mor...
I'm iterating over records and want to create the toggle-options for records but I can't replace the div-id with the records: <% for bill in @bills %> <% tmp = "test"%> <%= link_to '» now','#', :onclick => '$("#{tmp}").toggle();' %> Instead of getting: <a href="#" onclick="$("#test");">» now</a> I'm getting: <a...
Hello I'd like to focus on the first h:inputSecret component in my RichFaces rich:modalPanel. I've read I need to use the javascript I've included in the list below but it simply doesn't work (Win FF). Can anyone tell me why not? I've tried autofocussing on id="Form" and giving the panelGrid an id and using that to no avail. Any help...
I some divs with forms inside of them and i do have inputs with same ids but in different divs and forms so do like this: $("divEdit form #ParentId").val(12); it works on chrome/mozilla but not on IE8 anybody knows why ? ...
I am returning this from a json result from a controller, var genericResult = new { redirectUrl = Url.Action("Create", "Registration") , isRedirect = true }; return Json(genericResult); but when i inspect through firebug, {"redirectUrl":"/","isRedirect":true} if (data.isRedirect) { ...