jquery

jquery fadeout, load, fadein

Hi, I am using JQuery and what I want to happen is. Div fades out using the fadeOut command. It then loads content from a url using the load command. Then once content loaded it fades back in using the fadeIn command. The code I have is: $("#myDiv").fadeOut().load('www.someurl.com').fadeIn() However this does not work. It kind of ...

Simple getJSON does not work...

JSON function(Index) does not fire. Any Ideas? <script type="text/javascript"> $(document).ready(function() { alert("This alert is displayed :("); $("form[action$='GetQuote']").submit(function() { $.getJSON($(this).attr("action"), $(this).serialize(), function(Result) { a...

Jquery button click to selct check box

Hello, i have grid with user data.with first column has check box.. i have a button at the top of the gird..if i click button I need to selct top 5 users from the list? can anybody tell me how to do this using jquery? thanks ...

Text replace with Jquery

I have to replace Text inside HTML. When I looked ViewSource of the page I found this html tag. Now I need to replace text "Respuesta" with "Responder". I am using SharePoint CEWP webpart for this. What is the code I need write to replace this text? <div><a id="ReplyLink3" href="" ONCLICK="javascript:GoToPage('');return false;" target="...

Only perform jquery effects/operations on certain pages

Up until now i've been dropping all my jquery code right inside the document.ready function. I'm thinking that for certain situations this isnt the best way to go. for example: If i want an animation to perform when a certain page loads what is the best way to go about that. $(document).ready(function() { $("#element_1").fadeIn();...

Using Jquery Tools can one center the Expose window?

I tried using position:relative with the width,height, and margin: 0 auto; but it does not affect the overlay window. I'm using the minimal setup for overlay http://flowplayer.org/tools/demos/overlay/index.html It seems css wont affect how the expose/overlay window is aligned. ...

Is there a way to force a user to scroll to the bottom of a div?

I don't need to auto-scroll to the bottom of a div, rather force the user to scroll there themselves. I've got a legal agreement that I'd actually like people to read. Possible using regular JS or jQuery? ...

JQuery Cycle fails on Page Refresh

In a similar issue as this one: http://stackoverflow.com/questions/1719475/jquery-cycle-firefox-squishing-images I've managed to overcome the initial problem using Jeffs answer in the above link. However now I have noticed a new bug, upon page refresh it simply does not work. I have tried a hard refresh (ctrl+F5) but this does not wor...

What's the easiest way to add flash to an html page to use with Jquery?

Is there a method in Jquery to add a flash movie easily? ...

Whats faster for including scripts, using CDN (Google) or store them locally in website root?

Whats faster for including scripts, using CDN (Google) or store them locally in website root? ...

Putting Google Map in SimpleModal

HI. I am using AJAX so load a page in SimpleModal. On this page I have the Google code to display a Google map. The problem is when I load this page, the page blows up, meaning, the page goes blank, no Firebug errors, not source html, nothing. URL still says it is the correct page, but blank. It has not reloaded, but gone blank. If I r...

jQuery selectable() elements update values

Basically what I'm trying to do is update the value attribute of a hidden input field contained within the selected element when the selectable() UI stops running. If the element is selected, then the input's value should be the name attribute of that particular LI, whereas if the element is not selected, the value should be updated as ...

simple toggle problem

I'm just programming a little function that toggles a content by fading it in and out. this.advancedSearch = function(fieldset, triggerBtn){ fieldset.hide() triggerBtn.click(function(){ fieldset.toggle(function(){ $(this).stop(false, true).fadeIn(300) }, function(){ $(this).stop(false, true).fadeOut(300) }); retu...

What is a good book for Object Oriented jQuery?

I want to improve my JavaScript so I thought it'd be a good idea to get a book on Object Oriented JavaScript. But I also use a lot of jQuery so I'm looking for a book that approached OO JavaScript from a jQuery point of view ...

How to change cell's background color in SlickGrid ?

I was trying to change cell's background color with custom formatter like this: var myCellFormatter = function(row, cell, value, columnDef, dataContext) { if ((row + cell) % 5 == 1) { return "<div style='background-color:green'>" + value + "</div>"; } else { return value; } }; but this does not color the wh...

how to bind selected users

I used this code to select top 5 users from jQuery grid on button click.. $('#myButton').click(function() { $('#Grid input[type=checkbox]:lt(5)').attr('checked','checked'); }); Its working fine if I click the button it checks the check boxes. After checking any box, there is another button to send the selected user to the other ...

Attach jQuery dialog to Submit button in ASP.NET-MVC

I have a submit button which has been working to submit my form in ASP.NET-MVC. I would like to attach a jQuery dialog to the button click. If the user exits out of the dialog, then I would like to exit from the submit as well. I have dialogs hooked to other buttons, but not submits. How can I do this? *EDITED* This is an example o...

Fadeout and Fadein into the same space

I want to fade out #lg-image and fade in #column-left and #column-right into the same space as #lg-image was. Is this possible? Thank you ...

Evaluation of jQuery function variable value during definition of that function

I have a large number of rows in a table within which I wish to attach a unique colorpicker (jQuery plugin) to each cell in a particular column identified by unique ids. Given this, I want to automate the generation of instances of the colorpicker as follows: var myrows={"a","b","c",.....} var mycolours={"ffffff","fcdfcd","123123"...} ...

calculate number of working days on a rails form

I have two fields, 'from_date' and 'to_date' on my rails form. When a user enters the dates I have to display the number of working days i.e, exclude (sat, sun and a list of other official holidays in a database table). Is this something that should be done in the client side javascript Or is this something that should be done by maki...