jquery

jQuery validate + ajaxSubmit on multiple forms

Hello there. I'm trying to validate multiple forms in one single page with the jQuery validation plugin but it validates only the first form in the page. Here is my code: $('form.reply_form').validate({ submitHandler: function(form) { $(form).ajaxSubmit(optionsReplies); return false; } }); Is for a list of reply forms in th...

jquery change attribute

hi, i have 4 links and i need to change the href attribute in a rel attribute. i know i cannot do it so i'm trying to get the data from the href attribute, setting a new attribute (rel), inserting the data inside it and then removing the href attibute. basically i'm doing this: $('div#menu ul li a').each(function(){ var lin = $...

jQuery.addClass not adding a class

Just why is my style not being applied in the jquery below. It aslo only adds the table in FireFox $("#advisorPerformance").append("<table class='mvc'><tr><th>Advisor</th><th>Packs In</th><th>Pack In (£)</th><th>Packs Out</th><th>Pack Out (£)</th><th>PDQs</th><th>PDQ (£)</th></tr>"); $.each(data.AdvisorPerformances, function(i) { $("#ad...

How to load a page using a variable in jQuery

I'm using the jquery function .load: $('div#content').load($lin '.entry-content'); How can I call a variable inside the brackets? ...

jQuery.post() issues with passing data to jQuery UI

Hello, I am trying to get jQuery.post() to run my php script and then open a jQuery UI dialog with the data that php script returns. Its supposed to come back as a form with a table and a textarea in it. It works great with alert(data); and i get a pop-up with all my data. The problem starts if i turn off alert(). Now it opens 2 dialo...

jQuery Function Implementation and Function Call ?

What is the difference of calling function like: testCall: function() and function testCall() in jQuery ? Update: Questions: Does usage of one over the another have some performance issues related to it OR it really does not matter which one you are using ? Update 2 Also other thing that I noticed that whenn I am defining function u...

Jquery show/hide: hidden slowly in Internet Explorers results in awful effect.. ideas?

Hi guys, I implemented this Jquery show/hide code and everything works fine except that the box that I want to hide, with slow javascript browsers (IE 6) is hidden after the webpage has been loaded (or at least all the JS). And as the page is pretty complex this takes a while resulting in the very bad effect of displaying contents and th...

rounded corners of input elements in IE

is there a way to make rounded corners on elements so that they are visible in Internet Explorer. Currently, I am using curvycorners.js but it only works on block elements... ...

Scroll to anchor after jquery.load

There's placeholder on the page that is loaded asynchronously using jQuery load method. Page URL might have anchor and I want to scroll to the anchor after content is loaded. What is the best way to do that? Problem is similar to this: http://forum.jquery.com/topic/goto-anchor-after-load But I don't like the solution. May be someone has...

Applying effects to jquery-ui tabs

Is it possible to apply an effect to a jquery-ui tab, I haven't seen any examples of it, and I'm fairly sure that if it is possible the following is incorrect: <script type="text/javascript"> $(function() { $("#tabs").tabs(); $("#tabs").effect(slide,options,500,callback); }); </script> ...

jQuery MVC architecture

Hi, what is the best way to create MVC architecture in jQuery? Should I use jQuery.extend()? jQuery.extend({ View: function(){} }); ...or jQuery Plugin? (function($) { $.fn.model = function() { return this; }; })(jQuery); ...or just objects in JavaScript? var model = {} var view = {} var controller = {} Thank you! ...

jquery target link click event

Hi, i create some links on the fly ... $('input[name="iplus"]').click(function() { $(ol).append("<a href='#' title='delposition' class='beschr-"+($("#billsumary ol>li").length+1)+"'>l&ouml;schen</a>"); }); now I like to target each created link like $('a[title='delposition']') and assign a click-event like: $("a[title='delp...

Jquery galleryView loading issues: loader image not displaying, taking awhile

I've got an online portfolio that I'm putting up: Image Gallery I've got a php script that selects at most 15 images from a database that contains the urls for the images. e.g. foreach ($database->result as $img) { echo '<a href="path/to/image/' . $img . '">'; ?> When the page first loads, the scroll bar expands as if it is loadi...

Why is my content being overwritten instead of replaced in jQuery/Ajax?

I've got jquery being used in ajax to pass some contents into a database, my problem however has nothing to do with the db.. I have input fields in an id called #clientscontainer. When I click "save" in that container, it automatically refreshes the container correctly ... $('#clientscontainer').html(html); The problem is, a couple o...

MVC2 MSchart with detail grid

Hello, I need the capability to display a chart, click on a region and display the details in a jqgrid on the same page. I tried using a pie Chart and I can't seem to capture or create a click event for the chart. The data points contain a .url property which I can redirect to a different page but I need to display details on the same...

jQuery version compatibility detection

Are there any resources that can test a jQuery script/extension/plugin/whatever for version compatibility issues? ...

I want to use .animate colors when triggered using jquery

Hello, I want to use .animate to change colors when .bind('click')is fired, using jquery $('#selector').animate({width:'2.5%'},'slow').css('background-color','#F2F2F2'); <style> #selector{ background-color:#CCCCCC; } </style> Thanks Jean ...

Convert latitude and longitude into northings and eastings

Hi I have the following UK postcode dy8 3xt and know that the latitude and longitude is:- 54.452772 -2.156082 I also know that the Eastings, Northings for the postcode is:- 389490 283880 However I am struggling to find the equation that converts lat/long to northings and Eastings, I would prefer to have the equation in both in ...

jQuery - Moving background arrow in menu

I would expect something like this to be pretty popular in demand but I had much trouble finding a suiting script. I've got a basic menu build like this: <div id="menu"> <ul> <li><a href="#"><img src="images/btn1.png"></a></li> <li><a href="#"><img src="images/btn2.png"></a></li> <li><a href="#"><img src="im...

jQuery: show an element from select drop down, hide it when other option selected

I've tried looking around and there are similar problems, but mine is way more simple, but yet, I can't find a solution within these forums. While learning jQuery, I'm trying to show a DIV when an item/option from a select drop down is selected, and hide that same DIV when any other option in the select drop down is selected. select HT...