jquery

Jquery hover to only have effect for certain amount of time

Hi, I'm using a jquery hover effect but would only like the effect to last for around a second when rolled over....ie user rolls over image, it changes for a second, then reverts back to the original image. $(document).ready(function(){ $(function() { $('.rollover').hover(function() { var currentImg = $(this).attr('src...

possible to $.post and get a file download dialog back

Hi All, I'm using jquery's $.post and was wondering if I can use this to get a FileResult back? Not having any success yet? The content is coming back in the callback but not as a file download? Thanks, rodchar ...

jQuery Modal Dialog without jQueryUI

Hey Guys I was wondering how to implement a modal dialog with background overlay with jQuery without using the jqueryUI plugin? ...

Javascript - Regx to check for characters

All, I am looking for a JavaScript function that checks for the following characters (without commas) in a string. If they are present, it would return false, else returns true <,>,(,),#,"",',:,:: Thanks ...

finding the value of radio button with jquery

i have this code below to show different divs when i choose certain radio buttons: if ($("input[@name='exerciseRB']:checked").val() == 'New') { $("#newExercise").show(); $("#existingExercise").hide(); } else { $("#newExercise").hide(); $("#existingExercise").show(); } at first, i just had two radio buttons (both na...

Where to put "return false" in this code (provided)

Initially i was looking for an answer to a show/hide page jumping issue. Having found an answer here: http://stackoverflow.com/questions/2024342/link-with-href-scrolls-page-to-top-when-used-with-jquery-slidetoggle, I need to understand where to put "return false" in the following code: toggleDetail : function(obj) { $(obj).parent()....

JQuery error in IE, works with FF. Maybe a problem with live.

Hello. I have an ASP.net MVC2 application. In wich I'm using JQuery to alter all table rows so I can click anywhere in any row to trigger a click event on a link in the clicked row. The tables is created using MVC's built in partialview ajax. Here is my JQuery script. <script type="text/javascript"> $(document).ready(functi...

question about jQuery droppable/draggable.

I modified a sample photo manager application. photo manager application Instead of photos, I have employee records coming from a query. My version will let managers mark employees as on vacation, or at work. One of the things I did is to include employee ids like <a href="123">. I get the ids from event.target. This works for the cli...

Resize Flash player problem on Internet Explorer

When i want to make my flasplayer( flowplayer ) resize to bigger or smaller with jquery , it does not work properly on internet explorer when i make it smaller i use this function ////Make player smaller function createSmallPlayer() { flowplayer("player").hide().pause(); // get handle to the embed element ...

Calling Multiple functions simultaneously

I'm trying to call two different functions for two different HTML elements at the same time, but the second function isn't being read at all. I'm also trying to use the id to specify which corresponding elements to grab data from. Here's what I have: function changeImage(id) { var s = document.getElementById('showcase'); var simg...

Trouble with loading jquery onload.

Hi guys, I'm trying to build some jquery tabs based on the request (which is stored in a table). I have two pages sharing one .js file. One page is for the user to create the request, and the other is for the administrator to approve/deny the request. On the admin page, here is my javascript code: $(function() { GetReques...

How to make content take up 100% of height and width

I'm so close but I can't get this to work like I want it. I'm trying to get the header and the menu to always be visible and have the content take up the rest of the view screen and have it's own scrollbar when it overflows. The problem is that the width of the content isn't being stretched to the right and I get a scroll bar in the midd...

Generate and download a text file in javascript

All my research so far suggests this can't be done, but I'm hoping someone here has some cunning ideas. I have a form on a website which allows users to bulk upload lots of URLs to add to a list on the server. There's quite a lot of server-side processing to do on each URL, so to avoid timeouts and to display progress, I've implemented ...

how do I disable the submit button when the form gets submitted without any errors

Hello everyone, I want to disable the submit button when a user submits the form so that he may not click the submit button twice. So I coded the following javascript in my page $(document).ready(function(){ $("form").submit(function(){ $("form").find('input[type=submit]').attr('disabled', 'disabled'); }); }) This ...

jquery contains with class

I'm using jQuery :contains selector to filter through some link tags. The following code works great. $('a:contains("string")').each(function(i){ //do some stuff }); I'd like only run this function if the anchor tags are inside a specific class, I've tried the following but it does not appear to work: $('.my_class a:contains("string...

Show elements depending on html value of a tag

I would like to accomplish the following with jquery : When I click on this link <a href="#">Cars</a> I would like all divs like those <div class="product"> <div class="category">Cars</div> </div> to do something. You get the idea, I have a menu with a list of categories, and a list of products, each containing a div with ...

JQuery Form Plugin - Callback function for failure?

For the jquery form plugin http://jquery.malsup.com/form/#options-object, I see a success callback, but how do I run code if there is a failure like a network issue? ...

How to create the drag and slide effect from this website?

If you drag and release quickly from the horizontal menu, the menu will auto slide for a distance. It seems to slide more the faster you drag and release. Source ->appear.dk How do i achieve this effect? Has it got to do with some complex formulaes? ...

JQuery hide div based on day

Here's the updated code again I want the div for Friday, not to appear on Friday. I also want it not to appear after 5pm but I could not get passed day problem. Thank you for all you help. <html> <head> <script type="text/javascript"> $(document).ready(function() { var rightNow = new Date(); var day = rightNow.getUTCDay();...

Servlet receives OPTIONS instead of GET requests from jQuery?

All I want to achieve is to implement a servlet providing a json feed for my fullcalendar application. When I inspect http://arshaw.com/js/fullcalendar/examples/json.html with Bugzilla, I see that GET-requests are sent to receive the json feed. However, when I use this example within my scenario, fullcalendar seems to send OPTIONS-reque...