jquery

Update to Easy Slider 1.7 made all my JQuery code stop working.

I'm pretty novice as a JQuery user goes. I've got some experience implementing different plugins but would be lost trying to customize my own. I can't share the exact site details with you due to a NDA, so I hope someone can give me a little help. I've got a project due today (Just HTML/CSS/JQuery). It has a lightbox, show/hide login m...

Replace a dropdown list in the last row of a table with text

I have an html table and in one column i have dropdown select. i would like a selector to get a handle to the dropdown in the last row of the table and change it to just regular text (using the value in the select). here is the tricky part, in some cases the last row will not have a dropdown and it will just be text in this cell and in...

jQuery - Trigger Popup w/out Click

I have this at above the body tag in my page -- <script type="text/javascript"> $(document).ready(function() { $('#button').popupWindow({windowURL:'http://something',centerBrowser:1,width:400,height:300}); }); </script> Is there a way to make this popup happen without the user actually clicking a button -- programm...

Reference HTML Elements by name (with square brackets in them) via javascript

Hey everyone, I am trying to hide/show different html elements (div, etc...) based on whether a checkbox is checked or if a specific value is chosen from a dropdown box. I was wondering if someone can help me out. The html element is defined along the lines of this (below), and i'm not sure how to reference it by name with brackets in it...

Effect of adding excessiv ID's on html / js rendering performance

A project I'm currently working currently has about 10 ULs, each which will have anywhere from 10-50 elements in them. Its been proposed that each of those elements have a unique ID specified to it that we will use to update content with via Javascript. This seems like a large number of IDs to add to a page, but each field will have ...

How do I extend this javascript to change the class of two elements in one onclick?

Cletus helped my with this really sweet code yesterday: http://stackoverflow.com/questions/2063122/what-javascript-object-am-i-looking-for-click-a-button-it-stays-bold-till-the-n This takes the class of my li and changes the class. It works great! I'm wanting to extend this so it will also change the class within the a in the li. How ...

jQuery 1.4 breaks my program

Hi, I am pulling html from my database with a jquery ajax request. However, if there is a single quote ('), I get a parsing error. Regular quotes work fine ("). For example, in my database I have: style=font-family:"times' new roman" (I put the ' in there after times for testing). With the ' gone it works... I start the request: ...

JQuery Calculation returns NaN

I'm using JQuery Calculation plugin with the following script: function recalc() { jQuery("input[class^=percent]").calc( "(invoice - cost)/invoice * 100", { invoice: jQuery("input[class^=invoice]"), cost: jQuery("input[class^=cost]") }, function...

jquery scrollable issue

Dear All, I am trying to create a scrollable jquery application in which there is an image and some text. I want an image and some text contents I am just getting 1 image and contents(in the below example the contents is in the tag) how can I get the second image and contents by clicking on any arrow. Below is the code. All your he...

Animating Height of Parent Hides Select Options

When I focus on a select box I want the hidden tooltip to appear. When I click on the select box the animation starts but the option list is hidden. How I get round this? <style> .showme {display:none;} li {height:25px;background:red; } select{z-index:100;} p{margin:0px;padding:0px;} </style> <script type="application/javascript"> $(do...

JQuery autocomplete doesn't work...

I am using the autocomplete functionality from JQuery and am having a small problem. I have a div element with some text and a variable number of input boxes that have autocomplete functionality. When a user clicks on the text in the div element, the input boxes are removed. Clicking on the text toggles between showing the input boxes...

Rails ajax background requests

I have a remote_form which works 100% When a user clicks submit, it goes out grabs so data from the db or data scraped from another website, and updates the page seamlessly... The problem I'm having now, is that I'd like to do the same thing, but do it without having the user click the submit button with an onload event. I think I'm ...

Capture text including line breaks, whitespace from DOM in jQuery?

Suppose I have the following HTML on the page: <div id="Test"> One Two </div> and this jQuery: var contents=$("div#Test").html() In Chrome and Firefox, the resulting string contents includes line breaks - that is, between "One" and "Two" there's character code 10. In IE, though, it seems to collapse any white space and line feeds t...

How does one optimize performance when creating or removing dozens of divs with JQuery?

Background: In the current project I am working on, I have created a jquery plugin that creates a draggable 'google-maps'-esque map, made up of many tiles. Similar to how google map works, but without the zoom at this point. This map plugin creates and destroys 10-20 <div> tiles per mouse being dragged one tile length using jQuery's $(...

whats wrong with the script?

can figure out whats wrong? always returns faluire function addItem() { var rowCount = $('#grid').getGridParam('records'); var lastRow = $('#grid').getRowData(rowCount - 1); var newRow = lastRow; newRow.Id = "0"; newRow.Person = ""; newRow.Date = ""; v...

can you remove one array from another in javascript or jquery

i have a three arrays in javascript var array1 = new Array (1,2,3,4,5); var array2 = new Array ("a", "b", "c", "d", "e"); var array3 = new Array ("a", "c", "d"); and i basically want to: Create a new array with array2 minus items in array3. So it should result in var array4 = new Array {"b", "e"}; Create another array with the cor...

Access Dropdown Box Value When changed via JQuery

Hey, can you help me figure this out? I need to hide/show a div based on a dropdown box (the dropdown box only has a name, no id). If the value of the dropdown box is 2, it needs to be shown and for anything else it needs to be hidden. Here is what I have so far, but it doesn't seem to work (I tried using similar code on a checkbox and i...

jquery ready not waiting for plugins to finish loading

The following gwt jsni method code only "works" when I have firebug open, I presume because its slowing down the page rendering long enough for the external js files to finish loading. What am I doing wrong that its not waiting for the jquery plugin to finish loading before attempting to execute? private native void makeHtml(Element ...

How Can You Remove Unnecessary HTML elements with jQuery?

In wikispaces, they use one of two HTML elements as buttons in a wikispace. Here they are... <button name="lock" type="submit" class="btn"><span><span>Lock Topic</span></span></button> Or... <a onclick="jQuery(this).parents('form').submit();" class="btn"><span><span>Search Posts</span></span></a> <a class="btn primary" id="newPostT...

does javascript have an exists() or contains() function for an array

or do you just have to do a loop and check each element ? ...