jquery

JQuery - Get the number of rows in a table body

Hello, I have an HTML table that is defined as follows: <table id="myTable" cellpadding="0" cellspacing="0"> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Birth Date</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>Smith</td> <td>03-11-1980</td> </tr> </tbody> </t...

How can I disable an element using jQuery Multifile?

This code does not disable my element as expected if(Multifile.n==0){ $("#btnUpload").attr("disabled","disabled"); } This code does not enable my element as expected $("#btnUpload").attr("disabled",""); I added these lines in jQuery.MultiFile.js after what I believe is the location where files are added and removed from the Mu...

jQuery-UI Draggables Question

I am using jQuery-ui *draggable()*, and overall, works fine. Issue I am having is when either a form button or field, or flash video is inside the draggable div area -- and the drag event does not fire when use mouses over those elements to try and drag the draggable() div. What I need (I think) is something like what the iframeFix par...

How to check if document is ready?

How to check if document is ready (all js files loaded, DOM is ready) through jQuery? Is there any flag? Facing issues if some of the files are not downloaded completely, and the event is raised by user. I want to check inside event handler. I am using jQuery, asp.net ...

Uploadify uploadSettings with scripData does not work

Hi everyone, I am sending a file to my Java Servlet via jQuery Uploadify, there are no problems while sending the actual file. But when I try to send some scriptData with file along, to process on Servlet it just does not send anything. Here is the JS code: $("button").click(function(){ $("#uploadify").uploadifySettings('scri...

Using Jquery History Plugin to solve thickbox browser back button problem

Hi there, Some of you may be aware of the "problem" with Jquery plugins such thickbox , Lightbox,Fancybox etc.) where some users consider the back button to be broken. Basically, after loading a image/vid in thickbox, if you press the browser back button, it takes the user back to the page before the one they used to launch the image/vi...

Animating list items with jQuery

Hi Guys, Im trying to find the best way of animating a list of items one by one. So for example I have a UL with 7 items in it and when my trigger element is clicked I want each item to fade in one below the other with a slight delay between each item. Any ideas would be most appreciated. Thanks ...

jQuery: responding to click event of element added to document after page load

I am writing a page which uses a lot of in situ editing and updating using jQuery for AJAX. I have come accross a problem which can best be summarized by the workflow described below: Clicking on 'element1' on the page results in a jQuery AJAX POST Data is received in json format The data received in json format The received data is...

Keep target page stay in jQuery Thickbox after post-back

Hi, I have an asp.net page "demo.aspx", that has a normal link called "Demo Link" which uses jQuery Thick box. The page that is wrapped inside the Thickbox is "target.aspx", that has a button "Demo Button" and a label. If I click on the Demo Link, it show the "target.aspx" wrapped inside the Thickbox nicely. However, If I click on the ...

Jquery error "u is undefined"

Why am I getting an error in Firebug "u is undefined"? My page consists of a display of photos and photo gallery as a special separate section in the PHP code divided using the "break". Photos and photo galleries are displayed using the "Fancybox.js". The first time when I try to open a photo, everything works fine but when I do it a...

Jquery - Convert ascii chars back to HTML

I am reading data from an html file to load into a div. The problem I am having is, the program that writes the html files is converting <br /> to &lt;br /&gt; SO when I execute $('#items').load('/News/list.aspx'); it displays <br /> as a string on my page instead of reading it as a page break. I have tried to read the above file i...

Javascript, jquery - Call array position by using a variable name

I have 2 arrays: var array1 = [50,60]; var array2 = [120,180]; I am passing a value to a variable like this: var curId = $(this).attr('id'); I want to set the content of #result to a computation like this: $(#result).text(number * curId[0]); Number is a variable predefined by me, and curId[0] shoul actually translate to array1[0]...

Using jQuery to POST a Symfony form

I am using jQuery in conjunction with Symfony 1.3.2. I have registered the form's submit button click event with jQuery, so that jQuery POSTs to the correct action at the server. My code looks like this: $(document).ready(function(){ $('#form_btn').click(function(){ $.ajax( {'type': 'POST', 'url': '/form_handler.php' }); }); ...

JQGrid: Loading data into the footer row

Are there any examples for loading data into the footer? I can't find any or I'm being blocked at work. Thanks in advance... ...

GRaaarrgghhh.... content not displaying

OK, i have this page on my DEV server and it works just fine... when i publish to PROD it just doesnt display... can anyone see WTF is going on...? I have re published, modified, stripped down...etc... and can not get it to work... https://www.bcidaho.com/about_us/reduce-healthcare-costs.asp there should be a content slider there tha...

jQuery .append() function

Why this $("#mydiv").append("<ul>"); $("#mydiv").append("<li>Hello</li>"); $("#mydiv").append("</ul>"); alert($("#mydiv").html()); produces <ul></ul><li>Hello</li> and not <ul><li>Hello</li></ul> ? Thanks! ...

Storing information in the DOM?

Im making a small private message application in the form of a phone. Ten messages are shown at the time. And the list of messages are scrolled up/down by hiding them. Just how bad is it to use the DOM to store information in this way. My main goal for doing this is to reduce calls to the database. And instead of making a new call all t...

jquery jquery-ui sortable array

Can someone please help me with this one: I am reposting this just in case people have missed it and or to see if UI Sortables is something beyond most people - so I apologise in advance: After considerable research on the BigG, posting here there and everywhere I am still no nearer finding or getting an answer or even seeing something...

Whats wrong with this piece of jQuery code?

I have just discovered live events in jQuery. I am trying it out. I have written a little snippet to bind the mouse hovering over submit buttons in a form: jQuery("form img.submit_btn").live('hover', function(){ ( function () { jQuery(this).css('cursor','pointer'); }, function () { jQuery(this).css...

I am using $('#div').children().each() but want to find a nested value within one of those children

$('#combineDiv').children().each( function(){ if ($(this + ":first-child").attr('class') == 'combinedColumn') { alert('found ONE!'); } }); I have a hidden input in some of the divs in the children of the div #combineDiv...