jquery

Showing and hiding buttons on hover

Hi, I'm trying to create an effect where if the user hovers the mouse over one of my li items, I show a few buttons that were hidden in the non-hovered state. Same kind of thing youtube is doing when you hover your mouse over comments. I'm trying this: var gButtons = $(generateButtons()); function generateButtons() { var html = "<...

insert an element at a certain time of the day

what is the best way to do something , like inserting an element at a certain time of the day ? should I use setTimeout() os is there a better way to do it ? ...

Getting jQuery Cycle plugin issue transparant image black border and white background in IE

Demo link Hi, I am getting black border and white background issue inside IE for transparent images when I user jQuery Cycle plugin. So I know this is known issue but I am not able to figure this out. this is what i tried so far : unitpngfix.js did not do the trick cleartype: false (did make paragraph transparent but made the image...

Is there a JavaScript or jQuery equivalent to Python's "sum" built-in function?

Say I have an array-ish container of decimal numbers. I want the sum. In Python I would do this: x = [1.2, 3.4, 5.6] sum(x) Is there a similarly concise way to do this in JavaScript? ...

get "event" from ajax success

I was wondering if there's a way to get "event" from ajax success? For example: UPDATE: $.ajax({ type: "GET", url: "/home/PersonInfo", dataType: "json", success: function(data) { // I would like to use "data" like data.name, is this possible? } }); to function MyEvents(start, e...

Trigger a keypress/keydown/keyup event in JS/jQuery?

Hello all, What is the best way to simulate a user entering text in a text input box in JS and/or jQuery? I dont want to actually put text in the input box, I just want to trigger all the event handlers that would normally get triggered by a user typing info into a input box. This means focus, keydown, keypress, keyup, and blur. I thin...

Having text show on mouseover

Hi, So I'm trying to have a background image disappear and then have some text appear in the div with a link. I've gotten the image to disappear on mouseover but I can't get the text to display. Here is what I've got so far. I'm kinda new to this stuff. /* I'm have the image removed with the first line, then setting the link as h...

How to prevent checkAll selection for future dates?

We have a list of days at the top of the table header and we want to disable the Check All capability if the selected day is greater than the current day (e.g. today is 30th, but the select 31st). We will allow checkAll to work for any date less than the current date. How do we achieve this? <script type="text/javascript"> j...

jquery plugin to capture user input via virtual keyboard

Most of the bank sites have a keyboard (primarily with alphabets) which let them select user input (usually for their passwords). Is there a jquery plugin available which we can use for this purpose? ...

File creation in rails + jquery

I am new to Rails. In my web application, the user can type the contents of a file in a textarea or a content Editable iFrame and when he saves the file, the contents should be written to the file with the file extension specified by the user. How can I do so?? ...

jquery and passing global variables

I have the following: window.linkFrom; $(document).ready(function(){ $("a.linker").click(function(event){ window.linkFrom = $(this).closest("div").attr("id"); alert(window.linkFrom); }); }); and want to pass the var linkFrom to a different script on a second page: window.linkFrom; (doc...

Javascript implementation of advanced datagrid?

I am looking for a datagrid which can show hierarchical information. I don't need it to be ajax driven ... can simply even be from static data embedded in HTML. ...

Using jQuery to create HTML is not working

I'm trying to implement Paulo's answer from: http://stackoverflow.com/questions/758906/how-would-i-implement-stackoverflows-hovering-dialogs. However, my variable "err" keeps evaluating to "NULL". The problem is with the line .css('left', element.position.left); When I include it, err = NULL. When I take it out, err = an object with t...

Firefox not loading jQuery plugin when entering URL

Hi guys, I'm having a very annoying issue on Firefox 3.6.8. I have this sample plugin: (function($){ $.fn.test_plugin = function(settings){ $(this).load(function(settings){ alert('ok'); }); }; })(jQuery); And at the bottom of the html page something like this: $(function(){ ...

jQuery UI Resizable alsoResize reverse

How to make the jQuery UI Resizable alsoResize reverse direction. suppose in the html there is two div tag is there, if i resize in upward means the other thing has to resize downward <script> $(function() { $("#resizable").resizable({alsoResize: ".myiframe"}); }); </script> <div id = "resizable"> This is t...

Multiple selectors or multiple functions - any efficiency gains?

Hi all, I'm wondering if its possible to make the following code more concise: $('#americasTrigger').hover( function () { $('#americasImg').fadeIn() }, function(){ $('#americasImg').fadeOut() } ); $('#europeTrigger').hover( function () { $('#europeImg').fadeIn(); }, function(){ $('#e...

Add /Remove dynamically HTML element with jQuery

Hello, I found this great code here the Demo. I just need some change. I'd like one button by line to delete the current line a confirmation before delete Could you help me ? Thanks, Update 1: I'd like this ...

ajax jquery support in spring mvc

Hello all... i am new to both jquery and ajax... i want to use these technologies in my current spring mvc project.... what all do i need???? is spring json required in this scenario?? is spring json or jquery any way similar to each other?? if required is there any sample tutorial where in spring json is used alongwith ajax jquery in or...

ASP.Net Forms: jQuery Tabs with iFrame content --> eventvalidation error

Hello, I really don't know how to start the title of my post, but i'll try my very best to give out my best explanation of the issue. Here it goes: I'm using jQuery tabs to open up multiple data. Each tab, when opened dynamically, loads up an iframe that contains another asp.net page and does what a normal page does. I open the tabs th...

jQuery .fadeIn() not working as expected

Hello I have the code below for showing a submenu. I want the submenu to fade in on mouse-over, but it doesn't fade in - it just immediately shows the submenu: jQuery("ul li").mouseover(function() { jQuery(this).fadeIn(1000, function () { jQuery(this).find('ul').css('right','0px').css('top','24px'); }); }).mouseout(func...