jquery

jQuery If Div Does NOT Exist

I have 3 images and have a function so that on mouse rollover they fade in and out. I don't want to do this if the image being rolled over has the class 'selected'. So far I have this code: $(".thumbs").hover(function(){ if (!($(this).hasClass(".selected")){ $(this).stop().fadeTo("normal", 1.0); },function(){ $(this).stop().fadeTo("s...

jquery datepicker ms ajax updatepanel doesn't work after post back

Hi all, So I did some reading of the related questions and had some interesting stuff but did not find my answer, at least did not understand the answer. I am very new to AJAX, javascript and sclient side scripting in general. I have been using C# asp.net for a bit and recently added some updatepanels to my side to smooth so of the us...

jQuery: selecting a parent attribute from a callback

Hello, given this html code: <td><img class='del' id='4' src='images/delete.gif'></td> I am in trouble understanding how to complete the following code: $(document).ready( function(){ setup(); } ); function setup(){ $("#deleteForm").hide(); $("img.del").bind('click', formDisplay); } function formDi...

How to make a multi-lingual keyboard in jQuery?

I am searching for a multi-lingual keyboard api or plugin which I can embed in my web app. If the plugin in jquery then its better, caz I am already using jQuery library. I want keyboard like (or better) than the keyboard that www.shabdkosh.com has. On shabdkosh.com home page, there is a link "key" with the search button, click on the l...

jQuery slide left and show

I extended the jQuery effects called slideRightShow() and slideLeftHide() with a couple functions that work similarly to slideUp() and slideDown() as seen below. However, I would also like to implement slideLeftShow() and slideRightHide(). I know there are substantial libraries that offer this type of thing (I'd like to avoid adding an...

Best jQuery rounded corners script?

Hi, I've been looking at various scripts for adding automatic rounded corners to a div using jQuery but there are loads of plugins available, none of which seem perfect. So, does anybody know of a script that is quick to render, supports IE6, anti-aliases and supports opacity? Any help would really be appreciated, Jon. ...

Turning TIMESTAMP sql into 12 hour time

Hi, I am writing an app that allows people to schedule things for certain times and then displays them. The time of the event is stored in the database as an sql TIME, because there are things im doing in the DB that need this structure. However, on the output page i want the time to be in 12:00 am/pm format, but i dont want to run a c...

php dropdown menu population

I'm trying to write a php script that will populate a second drop down menu based on the selection of the a primary drop down menu. i would like to use jquery to do all the non-page refresh stuff. but every thing that i find that exists out there is hard to understand and modify, do you know of anything that was well written and easy to ...

Multiple ajax call handling

I am using jQuery to make some ajax calls and wonder how people handle this situation. An ajax request is made to the server to retrieve some info. Before the request returns another request is made. The first request is now invalid and out of date. How do I tell that the initial request is now invalid and can be ignored when it ret...

jquery drag/drop problem: drop() function never gets called.

Hello, I'm having trouble with the droppable effect in jquery 1.3.1 (UI version 1.5.3). As far as I can tell, everything works perfectly except the drop() function doesn't get called. I can tell the droppable target is accepting the element being dragged (via the thumbnail class), but the draggable item won't drop. Thanks for your help ...

open jquery modal dialog on page load

I have a page, i want it to disploay display it content in a modal dialog (jquery UI dialog) as soon as the page is loaded. $(document).ready(function(){ $("#example").dialog(); }); <div id="example" class="flora" title="This is my title"> I'm in a dialog! </div> Thanks ...

$.post() doesn't have time to run?

I'm trying to send data from a form to an external script prior to submitting the form, yet I cannot seem to get the data to reach the external script unless I return false; on the form itself. $(document).ready(function(){ // Handle Form-Submission $("#mainForm").submit(function(){ // Reset Error Array errors = new ...

jQuery Animation Leaves Unnecessary Styles

When I run the following jQuery animation sequence: $('#task').animate({ backgroundColor: fadeColor }, 50) .animate({ opacity: 1.0 }, 1000) .animate({ backgroundColor: originalBG }, 1000); It leaves unneeded styles on my table row when complete (below) <tr id="task29" onclick="TaskEdit('29');" style="background-co...

jQuery ajax request not firing on subsequent events

I have a jQuery function that I'm having a minor problem with: $(function() { $("a.CompletedCheckBox").click(function() { if($(this).hasClass("CheckedCompletedCheckBox")) { $(this).removeClass("CheckedCompletedCheckBox"); } else { $(this).addClass("CheckedCompletedCheckBox"); } $.get("/Tasks/Complete/" + ...

ASP.NET MVC scenario, similar to 'Post your answer' on StackOverflow

Hello, I have a requirement to add commenting system to a page (similar to 'Post your answer' at the bottom of any SO question). What is the optimal way to implement this? Should I render the partial view with Ajax or should I just pass the Json data to server? In the latter case I don't quite get how I should add newly added comment to...

Jquery - Dialogue not displaying correctly on IE6

I am trying to use bgiform but it seems to have no effect. The text in IE is pushed off of the screen of the dialogue box when its displayed. It works fine in FF. Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xht...

jQuery different pages with different actions with one .js file

Hi, My webpage with diffrent sites should just load one .js file for cache optimizing. The problem comes up, when the file is loaded. It applies the listener on every page to the form elements (for example) so, just the last page's form acts like it should, the others does not cause their actions were overwritten. So my question, how c...

How to return value from html popup

Hi, I need a terse, clean way to implement this in asp.net mvc (+/- jquery or js)? User clicks an element in webform A; Webform B pops up; User interracts with webform B; On closing webform B, probably by a submit button, the source element in webform a is updated with a value from webform B Thanks. ...

jQuery - Dynamically slide up Div over an image when mouse over it.

Hi, I need to dynamically show a div over an image when mouse over. I need to do this for a lot of images so it needs to be dynamic. I looked at the code from www.foliostars.net : jQuery.fn.masque = function(classe) { $(this).hover(function(){ $(this).find(classe).stop().animate({height:'40px',opacity: '0.9'},400); },function () { $(t...

jquery cant select Ajax elements

Hello, im trying to select elements of the page that have been added after the page has loaded. See the before and after example, before is the page source, after is the generated source. For some reason i cant select anything that has been generated? This seems odd to me as im pretty sure ive done this before. Thanks for your help. B...