jquery

BlockUI enable form posting

I'm using the jQuery plugin blockui as part of a project, and it causing me some grief while trying to call a postback as part of an asp.net ajax updatepanel. Is there a way to enable form posting for an element without performing the .unblock() command? I was able to get around this for my submit button by using: ...

JQuery Validation Plugin: Change element on error

Hi there.. Am using the jQuery Validation plugin, found here, which is proving very useful.... However what I would like to do, is instead of adding the class error to the input of any invalid form field. I would like to the class error to a div next to the form field itself. Here is the HTML.. <div class="label">Surname</div> <div>...

Trying to find if array is full or not

I'm working with JQuery to determine if an array, built earlier, with a determined number of indexes, is full or not. When created, array looks like this : ,,,,,, All I want to do is find if every position is filled or not. So bascially, i'm trying to test if and only if [x,x,x,x,x,x] For example, if [x,x,x,,x,x] or if [x,,,,,] ...

jquery : trigger $document.ready (so AJAX code I can't modify is executed)

My requirements are the following: I've got a rich webpage that at a certain moment loads a bunch of html on a div, via AJAX. The HTML I retrieve does have javascript (...) The retrieved javascript contains $('document').ready( ... ) parts I can not modify the retrieved javascript; it comes from an external lib I've got a javascript fu...

Why can jquery's DOM selector not find my element?

I'm trying to dynamically set the contents of a div on my page and then call a Jquery method, ala: document.all("menu").innerHtml = menuHtml; $('ul.sf-menu').superfish(); However the $('ul.sf-menu') part of the above fails to find any elements (menuHtml does definitely contian a <ul /> with class sf-menu) I'm very new to jquery and ...

session is not working in uploadify plugin of jquery...

session is not working in uploadify plugin... Edit... @ marcgg When i am trying to upload images using uploadify plugin.. My session is nt working at back end.. Boss what else i can say.. should i post the default code i got from uploadify plugin... ...

chkControl.form element is null in mozilla why ?

I am using ajax to populate the multilevel checkboxes dynamically depending on the users selections. Like choosing one or more options from first checkbox group will update new checkbox list and so on. I am adding the checkboxes to div. All the checkboxes are arranged using the table structure inside the form element. Now to access chec...

How do you make an animation not affect the parent container?

I've just started reading a book on jQuery and was just messing around with animations. If I have a <div> nested in another <div>, how do I stop the nested <div>'s animation from affecting it's parent? <script type="text/javascript"> $(document).ready(function(){ $("#outerDiv").click(function () { $("#...

How to make a button redirect to another page using jQuery or just Javascript

I am making a prototype and I want the search button to link to a sample search results page. How do I make a button redirect to another page when it is clicked using jQuery. ...

JQUERY in .NET 1.1 -- Loading Message

Hello, I am a newbie to JQUERY.. I want to use it in .NET 1.1 application. When a button is clicked it takes long time to populate the results on to my control .. I want to show " loading ..please wait" message to the user.. How can I achieve this ?? ...

Jquery to replicate a PHP effect

Hello, Okay i'm trying to do is replicate the same functionality in an HTML page using JQuery to pull in to the page products from my Database. Currently within the PHP version of this process you have your typical PHP call to the DB to connect: <?php define('INCLUDE_CHECK',1); require "connect.php"; ?> Now there is one section of...

jQuery Tabbing Order

With the absolute positioning of my submit button, when I tab on the last text box, it jumps over the button. Is it possible to intercept the tab event and place focus on my submit button when my last text box loses focus? ...

Binding dynamically created elements in jQuery

The following code is fairly self explanatory, but I am running in to an issue binding the click event to an element that has been created. You can see at line 25 I am creating a div with id of 'overlay'. I then set it's css properties. Then at line 65 I bind click to trigger the hiding of the modal. The problem is, it doesn't work. I...

How do I call a controller method from JQuery?

I have ajax code for asp.net (non-mvc) to call to a webMethod to get additional data from the server for a request. But I can't seem to figure out the url to give my JQuery in MVC. <script type="text/javascript" language="javascript"> function SubmitAjax(url, message, successFunc, errorFunc) { $.ajax({ type:"POST", u...

Converting HTML table data to CSV and XML

Hi, I'm building a table script and one of the functionalities is to convert XML, CSV data to HTML and vice-versa. I found some similar scripts on the web, that converts CSV to HTML and vice-versa but didn't find for XML. I'm writing the script from scratch, but I thought I'd better read few scripts before I write my own, to avoid mis...

jQuery Pass parameter to filter statement with contains clause

In the method below I can search divs with a class of bar for the text foo and underline the text contained within: function UnderlineText() { $(".bar").filter(":contains(foo)").css("text-decoration", "underline"); } But I would like to pass a parameter to the method instead containing the string foo. I have tried various permuta...

Fancybox problem when changing the href on ie 7 and 6

In my work i changed the dialogue boxes for fancybox, all went dandy, even with minor problems, such as making it run on pageload, but nothing that i could not managed. but now, I am facing a enormous obstacle: IE6 and IE7 untamed behaviour. I need to change the url of the place where fancybox is going to show. I could not find anyth...

jquery overlay popup load external page

im trying to make a jquery overlay to load an external page can anyone help?? i think im having two versions of jquery conflicting with each other im using this for a drag and drop and it works fine src="js/jquery-1.3.2.min.js js/jquery-ui-1.7.2.custom.min.js now im adding this "http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min...

Jquery, Click / If Else function, Not working

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html><head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'> <title>If Else</title> <script type="text/javascript" src="/jquery-1.3.2.min.js"></script> <style TYPE="text/css"> .show ...

jquery change() on input box in IE6 - can't remove focus

Hi, I have a checkout page that unobtrusively checks to see whether a customer has ordered from us before. After they fill in their e-mail address and focus to the next box, I look up the e-mail and present a 'welcome back' type thing with option to remember their details. I'm getting a problem in IE6 - whenever the focus is lost from ...