jquery

jQuery each iteration: every gallery element should have title!

hey guys, simple and annoying question for you, but i need the answer rather quick and i couldn't find a solution. $('.gallery-item .gallery-icon a').each(function(){ $('.gallery-caption').prepend("<span class='imgtitle'>"+$(this).attr("title")+"</span>") }); every gallery-item has a gallery-caption underneath it. i'm iter...

how to show sequential results inside textfield

dear all.I want to use only one textfield for different results. what should I do if I want after pressing a few times a checkbox or another checkbox the results will appear sequentially in the textfield.for example: <input type="checkbox" id="see" value="a"> <input type="checkbox" id="saw" value="b"> <input type="text" id="field"> <in...

Styling highlighted text in incremental search JS

Hello, First StackOverflow question - woo! Quick question about styling this piece of Javascript: //Search $('#search').keydown(function(e) { setTimeout(function() { if ($('#search').val() == '') { $('#history h4').show(); $('#history li li').show(); return; } $('#hi...

Toggle TWO Panels with ONLY ONE VISIBLE Is it possible?

I have two sliding panels. I need ONLY ONE panel open at a time. Right now they can both open. My project link is: link text Here is my code: $(document).ready(function(){ $(".btn-slide").click(function(){ $("#panel_quote").slideToggle("slow"); $(this).toggleClass("closeQ"); return false; }); }); $(document).r...

How to create a grid view in PHP?

How to create a gridview or gallery view with PHP and jQuery? ...

jQuery 1.4.2 IE8 error on page expected ')'

Hi all, I'm having an issue with IE8 (nothing new there). The error I'm getting is not making much sense as it does not occur on FF or Chrome. Here's the code: function remComp(id, trade) { $.ajax({ url: "functions/removePriceSurveyComparison.php", type: "POST", async: true, ...

fadeIn / fadeOut jquery problem with IE7/8 & png

Hey guys, I am trying to make a magnifying glass background when the use hovers over an image that can be enlarged. This is using a blank span and setting its display to none until it is hovered, and having its background be a semi-transparent png with a magnifying glass in the center. This is done using fadeIn / fadeOut and works perf...

What is the best jQuery deep linking / history plug-in ?

I am looking to implement deep linking / back button functionality on a web site that uses jQuery and jQuery UI (tabs, dialogs...). I a new to this so I lack the knowledge to evaluate the different offerings in deep. So far, from what I read on the web, I have narrowed my choice down to jQuery BBQ and the Asual address plugin. Is there ...

Dual listbox, change element not possible

Hello, The code below works fines when I "hardcode" values but when I add the runat="server" with a binding in the code behind (for the sourceList), I can't anymore add/remove element from a list to another via jQuery Any idea ? <div id="Global"> <select size="10" runat="server" style="width:150px;" class="testMe" id="sourceSelect...

jQuery set flash wmode parameter

Hello, Am wondering if there is any jQuery plugin available to change the wmode to transparent at runtime. (Something similar to wibiya) I tried googling, but could not find any exact plugin do to the job. The only resource I found was: http://www.onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/ http://labs.kaliko.com/...

ui-wrapper suddenly gets activated

Hey.. I have a thumbnail and a full size image that i want to load dynamically on my page. The thing is.. if I load the smaller image - ie., the thumbnail - then it shows properly on screen. But if I load the actual full size image, then another div, with a class of ui-wrapper is created around my image. And it would not show the im...

Grab largest image on site given the URL

Given a URL how do I pull the largest image (in terms of image-dimensions) on the site? I am using it to act as the best possible representation of a sites thumbnail. Similar to first thumbnail image when sharing a url on Facebook: http://www.facebook.com/share.php?u=my_website_url The image thumbnail on Facebook in the div: <div cla...

jQuery Zoom Plugin

Hi! My issue is that I'm making a zoom plug in jQuery. The situation is that when I click on smaller picture it gets popup where I can scroll the picture means that i can change its width height on scroll dynamically and can move it means i can change its left n top position dynamically... my problem is that when picture gets popup, movi...

Javascript: Disabling drop-down based on other drop-down

Hi, I have a Javascript function in my website. I don't know Javascript very well but, I want to modify it. This section loads a third drop box, depending on the first two. I want to modify it to disable the third one if the second drop box locatie's value is util. jQuery( function () { jQuery("#util, #loc").change( function() { ...

jQuery resize losing border

Hi everyone! I'm having a few issues with the jQuery UI Resize loosing the border on the textarea I'm resizing (see images). Can you help? Borders showing as intended: Right border hidden: Firebug screenshot: (http://i.imgur.com/TyR43.png) ...

jQuery Tabbed Problem

hey i got a problem ... I want to add the 3rd tab link to other website and when it is clicked it redirects me to the home page first tab. not 3rd tab. here is a example of linking used in the website. <li><a href="#tab1">HOME</a></li> <li><a href="#tab2">About us</a></li> <li><a href="#tab3">services</a></li> and on other we...

Simple jQuery ajax stress test script question

I'm trying to create a simple ajax load test script that dynamically creates divs, runs an external php script and return the result to the created div. I'm trying to figure out how to create a for-loop that creates, say 10 divs and runs the php script for all divs. Preferably so that I can specify which script to run. This is the co...

jQuery UI Autocomplete based function

I have 2 HTML files - file1.html in xyz directory and file2.html in abc directory ... both the directories are at different levels. Now, I have a external JS file in which I have used jQuery UIAautocomplete widget and I have used datasource URL for ajax call as a PHP file say datasource.php ... Here I mentioned data source URL as abso...

jquery list/anchor click strange behaviour ~

JQUERY: <script type="text/javascript"> $(document).ready(function() { $('li.directory > ul').css('display','none'); $('li.directory').click(function () { $(this).toggleClass('expanded'); $('ul', this).slideToggle('slow'); }); }); </script> HTML: markup fixed now for demo <ul> <li class="directory"><a href="#">Paren...

How to get input text value from specific row using Jquery

Hello all this is the page that i currently building: When click Submit, I get the text value in the current row and submitted via jquery ajax. There is no problem for me, but when is I test in another pc in the network there are error message appear (via json). Something like the annual leave and sick leave is undefined. Example of ...