jquery

jquery table count rows always returns value of 1

For some reason every time I try to count the number of rows in a table it always returns 1. I am dynamically adding and removing rows to the table, so I'm starting to think it is just counting the number of rows initially configured in the table. here is the code I'm using. $(".elementDelRowButton").live ('click', function (event) { ...

jQuery appendTo (switching back and forth)

So what I'm trying to accomplish is a simple appendTo a certain element. The issue I'm having is after execute is run, it appends to the location but then proceed to go back to the ul it resides in. <script type="text/javascript"> function execute() { $('#desCopy').appendTo('#description') $('#imgPlace').appendTo('#IMGbo...

is it possible to remove an html comment from dom using jquery

just wondering if there was a way to remove an html comment using jquery. <!-- <div id="main">Some text </div> --> thanks ...

jquery stop child triggering parent event

Hi, I have a div which I have attached an onclick event to. in this div is a a tag with a link. when i click the link the onclick event from the div is also triggered. how can i disable this so that if the link is clicked on the div onclick is not fired. script. $(document).ready(function(){ $(".header").bind("click", fun...

How to create a table with the same dimensions as a previous one

I would want to create a table with the same widths (table and its cells) then a previous one created dynamically 1st __________________ |_____|___|_______| |_____|___|_______| |_____|___|_______| 2nd __________________ |_____|___|_______| |_____|___|_______| What do I need to do to set the second one with the desired widths. (Tab...

jQuery Animate Effect not doing what its supposed to...

The JS: var dialog = jQuery('#dialog'); dialog.animate({ 'top':'-4px', 'display':'toggle' }, 300); The CSS: #dialog { display: none; position: relative; width: 180px; height: auto; margin-left: -20px; top: -15px; } The Problem: The animate executes and the div appears into view but after the animate is done executi...

How to include jQuery in ASP.Net project?

I've read that Microsoft now bundles jQuery with Visual Studio. How then do I "include" the jQuery source in my ASP.Net project? ...

jquery .load callback never called in Internet Explorer

I am downloading files through IFRAME method described here: http://encosia.com/2007/02/23/ajax-file-downloads-and-iframes/ And am showing progress in a div and hiding this div on load completion: $(objIframe).load(function() { $("#spinner").hide(); }); The trouble is, this callback function is never called in Internet Explorer ...

302 Moved Temporarily 15ms

i have following php code if(mail($ToEmail, $Subject, $Content, $Headers) == false) { echo "Error While Sending Email to : ".$ToEmail; }else{ echo "Email Send Successfully to: ".$ToEmail; ; } i call this php code from jquery like this var uemail="[email protected],[email protected],gty@doma...

jQuery selector for inputs with square brackets in the name attribute

I want to do this: $('input[inputName=someValue]') Except that the name of the input is not 'inputName', it is 'inputName[]'. And this doesn't work: $('input[inputName[]=someValue]') and neither does this: $('input[inputName&#91;&#93;=someValue]') or this $('input["inputName[]"=someValue]') Thanks for any help. EDIT: As som...

jquery media conflict with swfobject

Hi, If I use jquery media plugin WITH swfobject 2.2 I get an 'unknown runtime error' in IE. It works fine in FF and other browsers. If i remove swfobject.js then the media works fine as it loads using simple object/embed tags. But I need to use swfobject as well (for other things). Has anybody come across this or a fix? A. ...

JSON.parse fails in jQuery when PHP response-header contains "application/json"

Hi there, I'm getting a bit of a headache trying to figure this one out. To request some json-data from a PHP-script via Ajax, I'm using the jQuery function: $.ajax({ type: 'GET', cache: 'false', url: ajaxUrl, data: dataString, success: updatePage }); If I don't set content-type in the PHP header to: header('Conte...

How can I reorder a select list on the fly?

In my application, I have an HTML select box from which I remove and add items based on various user actions (the items become available/unavailable). However, I would also like all items to be displayed in preferred order, so every time I return an item to the select list, I need to re-sort in preferred order and select the preferred op...

Validating a .NET 2.0 form with JQuery Validate() issues

I am trying to validate a form in .NET 2.0 using the JQuery Validate() plug-in and it’s not working. I know my Jquery code is working as I set up functions to clear the default text of a text field on focus() and that works as expected. The form.validate() method never seems to get called as I have alert() calls in a custom validation ...

Enlarging two objects at the same time in one animation action ising jQuery

Please look at the following test page : sample page showing two images. You see small images which get a bit enlarged when you move over the image. I have used jQuery to do this, but ran into the following problem. The only way I got the wanted effect was to enlarge the white <div> and making the image a percentage of the encapsulati...

jQuery $(document).ready() not firing after window.location.href

I have two pages, on the first page after an event happens I change the location of the page by using: window.location.href = "/pageb"; On the second page, I have a document ready event that doesn't fire when coming from the page above. The ready event works when the page is browsed to normally. $(document).ready(function() { a...

jQuery pagination on mutiple locations on the same page not working

So I have the pagination working for one instance on the page, however; it breaks down if you have another instance on the same page. Example: One tab is all white papers and paginated, the next tab is filtered white papers by an industry with pagination. Below that filter box is another box for say datasheets with the same tabbed inte...

DIV dropdown (jQuery)

I'm looking to create a basic DIV based dropdown menu: <ul id="menu"> <li> <a href="#">item 1</a> <div class="submenu">something here</div> </li> <li> <a href="#">item 2</a> <div class="submenu">something else here</div> </li> <li> <a href="#">item 3</a> <div class="sub...

JQuery hide() and checkbox selecting

I've got some strange behaviour happening I can't work out. I've written some code to add some functionality to a list containing labels and checkboxes. If the user has javascript enabled, I want the checkboxes to be hidden and for the labels to become clickable and change their appearance to indicate whether or not they have been select...

Jquery Image Mapping

The idea is I am designing a monitoring system for for several geographic locations. It is annoying that user problems, accounts are seperate from network problems etc etc. Engineers are dealing with just networks but have little insight to the locations. So I want to make a visual understanding of this... I had trouble getting an easy...