jquery

.load() and .fadeIn in jquery

hello.. i have this code and it work find except the fadeIn transition.. $("div.thumbnailsContainer").fadeOut("500",function(){ $("div.fullViewContainer").empty(); $('<img />') .attr('src', imgPathLarge) .load(function(){ $("div.fullViewContainer").append( $(this) );...

How to ajax-submit a form textarea input from CKEditor ?

I am using CKEditor, jQuery and jQuery form plugin and I would like to submit contents of the CkEditor form via an Ajax query. Here is my code: <form id="article-form" name="article-form" method="post" action="/myproject/save"> <textarea name="bodyText" style="visibility: hidden; display: none;"></textarea> <script type="text/javas...

jquery code painfully slow in chrome

Hello everyone I have made this for one of my clients http://clients.joompros.com/slideshow/default.php however - i am having performance issues , specially in chrome - can anyone please offer any insights ? Or something specific which may be causing it ? I am using supersized2 plugin ( modified ). Thank you ...

animate 'insertBefore' jquery

Is there a way to add animation to 'inserBefore'? I have a wierd business requirement to have a tab in a navigation move from the last position on the right, to the first position on the left. The business wants it to be obvious when this happens and the want to to move across in an animated way. So a simplified example is this: Say ...

CSS, if html is value, change color

Sorry For being unclear, what I mean is this. Currently on page load I fetch the links with a certain id, I check my database, then json back the result into the link. So Essentially: <a href="#" class="switcher" id="Site_Gallery-<?php echo $item->id; ?>">...loading....</a> Becomes either: <a id="Site_Gallery-563" class="switcher" h...

Count child DIVs + add class

Hello I have the following bit of code to display thumbnails on a page: <div id="gallery"> <div class="thumbnail"> <img src="" /> </div> </div> This will loop to show 15 .thumbnail DIVs. I would like to attach a class of ".last" to the 5th DIV and the 10th DIV. And for the 11-15th DIVs a class of ".bottom-last". ...

Inconsistant IE8 ajax post success from MVC2

I am getting an incosistant error in IE8, it happens about half the time. I have cascading drop downs using ajax to fetch the next select box options. $(function () { $("#stock_item_id").change(function () { var stock_item = $("#stock_item_id > option:selected").attr("value"); $.ajax({ type: "POST", ...

Jquery direct users to a specific anchor tag

I am sure I could search for this if I knew the words to describe what I am looking for. I have a link that when pressed directs the user to another anchor tag using href="#anchorTagName"... however the link also has an onclick function which makes the div visible that anchorTagName is contained within. As a result the user is never dir...

JQuery drop down, remain down while hover over drop down

I setup a jquery dropdown menu that works perfect. It drops down when a user rolls over a link. The problem is that when the user rolls over the content area of the drop down menu, it slides back up. I need to set up the code so that the slidedown box remains in the down position while the user's cursor is still over it. Here is my HTM...

can we add the file dynamic by using jquery in ror

In my ruby on rails application i have 2 html form (edit,_experiecnce) ,in edit form i have one link whenever i link this link i want to add the _experience form on edit form. this can be done dynamic by using jquery can some write the jquery method.Please ...

Filtering elements out of a jQuery selector

I have a page that selects all the elements in a form and serializes them like this: var filter = 'form :not([name^=ww],[id$=IDF] *,.tools *)'; var serialized = $(filter).serialize(); This works, unless the form gets around 600+ elements. Then the user gets s javascript error saying that the script is running slow and may make their ...

Jquery Fancybox not displaying on IE 7

Hi, I am using FancyBox to show larger versions of image thumbnails on a PHP application. I am using a uniform CSS class name for all the thumbnails to trigger the Fancybox functions. But when viewing the app on IE 7, only the first thumbnail actually triggers Fancybox, the rest of the thumbnails dont work. What could be the problem...

limit slimbox (lightbox) image to window size

HI all, Anyone know how to limit the overlay window size of slimbox to be a percentage of the user's window size (like prettyphoto does) Thanks Here's the module code: http://paste.ly/3Kz And the slimbox js: http://paste.ly/3L0 ...

Set Selectbox value after refresh with Jquery / Javascript?

I'm have a problem with this code not working when it probably should be: <script language = "javascript"> $(document).ready(function() { $('#dept').change( function() { var datas = $(this).val(); $.cookie("deptdata", datas); var urlDept = 'catch.cfm?dept=' + datas; $.ajax({ ...

Writing jQuery plugins: how to set up callback to terminate plugin execution when false returned

Hello, I'm writing a jQuery plugin that has a couple of callbacks, and am at the point where I need to allow one of the callbacks to run. The callback in question is 'beforeListItemSelect', so naturally I'd like the plugin code after the callback to not run if the callback function returns false. So the following is a section of my plug...

jQuery get post data

Is there any way to get POST values in jQuery? ...

How to loop a simple JQuery funtion?

I'm trying to do something very simple: continuously loop a background image. I'm doing this via the "Background Position Animations" plugin. My current code: $(function skyloop() { $('#header').animate ({backgroundPosition:"(-250 0)"}, {duration:1000}); }); I need a way to call the 'skyloop' function at the end of the animatio...

jQuery and WCF service problem

Hello, I am creating an application that uses jQuery to make ajax calls to ASP.NET WCF Web Service. Everything works fine most of the time but eventually (about twice per week) the service stops working with the error below. The only solution is to clear the ASP.NET Temporary Files. The problem seems to start by the time the application...

How can I trigger an image load by clicking other element rather than the image itself (Lazy Load jQuery plugin)?

In the Lazy Load plugin's documentation (A jQuery plugin that loads images only when an event occurs) says: Event can be any jQuery event such as click or mouseover. You can also use your own custom events such as sporty or foobar. Default is to wait until user scrolls down and image appears on the window. To prevent all im...

How can I return data via C# AJAX to a javascript variable?

I am using jQuizMe, the jQuery plugin for quizzes, and I want to get the quiz questions out of a database. So I thought that I could use an ajax call to fetch the questions and process them to mimic a JSON-like array. I would then like to take that AJAX responseData and store it (as a JSON-like array) in a javascript variable. Here is t...