jquery

I am new to JQuery and don't know how to do this specific task.

I am currently using this autocomplete plugin. It's pretty straightforward. It accepts a URL, and then uses that data to perform an auto-complete. This is my code to auto-complete it. autocompleteurl = '/misc/autocomplete/?q='+$("#q").val() $("#q").autocomplete(autocompleteurl, {multiple:true}); If someone types "apple", that autoco...

textarea autogrow functionality jitters with every keystroke

I was playing around with the jquery autogrow plugin, which expands the height of the text automatically as the text needs it. The problem is that with every key down, the bottom border of the textarea jitters in a noticeable way. I'm not sure what the problem could be, so I'm going to go out on a limb and post the 132 lines of this GPL ...

jQuery compiled with Google Closure Compiler

Has anyone compiled jQuery against Google's newly-released Closure compiler? There has been reported huge savings in code size. I'm curious what the benefit is if jQuery was compiled with it. ...

Can't get image to appear full size with thickbox jquery

I can't seem to get my image to pop up the actual size when using thickbox. anyone know how to fix this? <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <title>WildFire</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/thickbox.js"></script> ...

Problem with LightBox Jquery

Can't seem to get my lightbox to work. Any ideas? <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" /> <title>WildFire</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/...

How to create album effect like this page with jQuery?

How do I create a photo gallery like the one seen Here? ...

Good solution to the 'preventing default button on form from firing' problem?

I need a solution for the age old problem of a 'default button' firing undesirably. i.e you hit enter in a text box, but there is a submit button on the form that isn't the one you want to fire (or maybe you don't want the form to fire at all). I'm wondering about the following 'solution'. Slightly hacky but should be reliable as far as...

Get position relative to browser window

Hi, I have 2 divs and one is nested in the other. I want to get the child div position relative to browser window. The use case is this: when user scroll down browser, I want to detect the position of the child div and if it is 100px above the bottom of the browser window, I want to fade it out slowly. How do I do that with jQuery? The...

Getting value of an element inside facebox div using jquery

Hello, I have two div tags as shown below on my page. When i reference the value of itemName element,using $('#itemName').val(); which i have in both the divs, i always get the value of the element in the first div which is ""(blank). Is there a way to get the value of the itemName element in the 2nd div i.e. facebox using jquery ? inf...

Get parent of a child element that has a certain class

I have a nested menu like this: <ul id="menu"> <li>Home <ul> <li>New</li> <li class="selected">Open</li> <li>Folder</li> </ul> </li> <li>Another menu <ul> <li>submenu item 1</li> <li>submenu item 2</li> <li>submenu item 3</li> ...

How to get Fullsize & Cycle - JQuery - working together?

Hello all I have a problem implementing too JQuery tools; Cycle and Fullsize (together). I have uploaded an example over at: http://lawrencebrown.eu/jquery/index.html The problem is that only the first image pics up the Full size script, I have bene told by a friend to add the following into code into the cycle script: ?after: functi...

jQuery .submit problem

I'm having a little problem with jQuery: I'm having .submit() defined on a form, when I submit the form by clicking the submit button, the even triggers and things works smoothly, however, when I use document.forms[0].submit(), the event doesn't get triggered, but the form submits!! Is there any reason why? How can I overcome that? ...

jquery AppendTo & Append Error in Firefox

Hi, I am getting a strange error using jQuery 1.3.2 and Firefox. I have created a small popup window for an element and I am using the code var popupWindow = $($('#template')[0].innerHTML).css( 'top', top).css( 'left', left).css( 'position', 'absolute').css( 'opacity', '1'); I then us...

Javascript stop event flow

Hello, first of all sorry for the strange title but I wasn't sure how to call this. I am trying to create a slideshow for images. Actually it's more like a fade in and out show. I could explain the whole thing but I think it's a lot clearer if I just posted my code. var Images = ["images/1.jpg", "images/2.jpg", "images/3.jpg", "images...

Warning: Invalid argument supplied for foreach() in E:\xampp\htdocs\piecework\groupcheck.php on line 2

while ($row= mysql_fetch_array($result, MYSQL_ASSOC)) { $id=$row[id]; $html=<<<html <tr><td> <input style="float:left" type="checkbox" id="$id" name="myBoxes[$id]" value="true"> <span style="float:left">$row[content]</span> <span style="color:black;float:right">$row[submitter]</span></td></tr> html; echo $html; } $html=<<...

jquery easing not working

Below I use the id of a clicked item to tell my function which <div> to animate. However it never seems to animate.... Basically you click and <img> and it uses the ID of that image previewItem to tell what <div> to animate. '#p + previewItem' <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script...

jquery animate to a certain position

Lets say I have a 3 column <table> or <div> with widths of 50% 200px and empty I want to use jQuery to animate a off screen element into view with it's ending location being relative to the left edge of the 2nd column. So say I am viewing page on a large screen and the edge of the second column is 900px from the left side of the windo...

jQuery - How to filter rows onclick?

I'm trying to figure out how to filter a table based on the row class when I click a button. I've been looking at various jquery plugins, but none of them seem to do what I need it to do. Some have textboxes that filter, etc., and I've tried adapting the code but frankly, I'm just making a great big mess... Help? I have a table that l...

Passing selected option in URl to Jquery UI tabs

Is there a way that i can link to a page containing a jquery ui tab set and pass the selected variable in the url link to automatically show a particular tab depending in which link was clicked to reach the page? ...

open external url in div

i want to load contents of external url like (http://www.google.com) into div, i the way which will readable by search engine crawl. in any one of (jquery / ajax / php ) Thanks ...