jquery

uploadify and absolute filepaths ?

can anyone with experience of the plugin see anything I'm doing wrong? var SITE_ROOT = 'http://localhost/hf_latest_desktop/'; $("#uploadify").uploadify({ 'uploader' : SITE_ROOT+'st_wd_assets/js/uploadify/scripts/uploadify.swf', 'script' : SITE_ROOT+'st_wd_assets/js/uploadify/scripts/uploadify.php', ...

Display a input type=file over another input type=file

WARNING: Lengthy description coming up! I have written an uploader based upon APC progress uploader for PHP. This works fine and dandy, but the script as a whole (apc etc) is intended to be used only for those with Javascript. To achieve this, I have searched for any input type=file, and replaced these with an absolutely positioned for...

jQuery and Colorbox "Is Not A Function"

Hey you lot, I've been working on integrating Colorbox (a lightbox alternative) into a site. Ok, so my head file is: <head> <script language="javascript" type="text/javascript" src="js/jquery.js"></script></script>- <link type="text/css" media="screen" rel="stylesheet" href="../colorbox/colorbox.css" /> <script type="text/javascript" s...

jQuery accordion - different image for active sections

Hi, I'm using Ryan Stemkoski's "Stupid Simple Jquery Accordion Menu" which is available here: stemkoski.com/stupid-simple-jquery-accordion-menu/ Here is the javascript $(document).ready(function() { //ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING) $('.accordionButton').click(function() { //REMOVE THE ON CLASS...

JQuery going through a set of UL and dynamically set ids incremently on each one

I have an unordered list which contains serveral items called 'oListItems' the UL has a class but no id. The class OuteroListItems contains many of oListitems oList.AppendFormat("<ul class='OuteroListItems'>"); oList.AppendFormat("<li>"); oList.AppendFormat("<ul class='oListItems'>"); oList.Appen...

search submitbutton in all forms with textareas with jquery

Hi there i'm working on a ff-plugin which searchs a webpage for all textareas and places a warning before the submit button. my code looks like this var submitWarning = content.document.createElement("div"); submitWarning.innerHTML = "Fancy Message"; $('textarea', window.content.document).each(function() { var form = $(this, windo...

How to make a tree view from MySQL and PHP and jquery

hey guys i need to show a treeview of my categories , saved in my mysql database . Database table : table : cats : columns: id,name,parent problem is in php part : //function to build tree menu from db table test1 function tree_set($index) { global $menu; $q=mysql_query("select * from cats where parent='$index'")...

Select All CheckBoxes in GridView ASP.NET using JQuery

I have checkBoxes in my Gridview templete columns called "Category A" and "Category B". I want Select-All functionality, i.e. when the user checks the Select-All check Box in category A column, all the checkboxes must get checked under that column. Same for Category B. I am trying with the code below. The problem with my code is, it sel...

Parsing a JSON feed from YQL using jQuery

I am using YQL's query.multi to grab multiple feeds so I can parse a single JSON feed with jQuery and reduce the number of connections I'm making. In order to parse a single feed, I need to be able to check the type of result (photo, item, entry, etc) so I can pull out items in specific ways. Because of the way the items are nested withi...

jquery - Select no children

given the html: <div> <span class="a">a <span class="b">b</span> </span> <div> Is it possible to just select the first span and not it's children? Calling $('div span.a').text() prints the 'b' in the child node as well as the 'a' ...

onHide() type event in jQuery

Does anyone know of an onHide() event or something similar in jQuery? I tried: $(this).bind('hide', function(){ console.log('asdasda') }) But apparently that doesn't work. Edit: Just to clarify, it's being hidden using CSS display:none. I'm aware of the callback function but as I'm not hiding it (the CSS is) I can't use it....

Stop jQuery animations stacking

I have an Options box that hovers in the top right of the webpage. It's opacity is set to 10% so as not to be obstructive to users. When they hover over (mouseenter) it I use jQuery to fade it in and slidedown the content (and the reverse on mouseout). If they do this repeatedly though the animation stacks up and you can sometimes be ...

jquery overlay plugin that allows one to change the dimensions from flash?

I need a overlay plugin that plays swf files. I also want the ability to change the dimensions of the overlay box after a button click. So the plugin needs to be able to do that. ...

convert javascript comma separated string into an array

I have a comma separated string that I want to convert into an array so I can loop through it. Is there anything built-in to do this? ...

JavaScript find box

I'd like to duplicate the find feature (Ctrl-F in Firefox) for my users. In other words, a text box that as the user types, it finds the first occurrence of that text, and if they press "Next", it highlights the next occurrence and moves the page if necessary. I'm thinking the search input would have to be in a div that remained fixed, ...

Using argument (this) passed via element eventhandler

Hey guys, I want to use the argument I pass (this) in a JS function and treat it as an jQuery variable. Example: <script> function useMe(obj){ $(obj).val(); ... ... ... } </script> <select id="selectid" onChange="useMe(this)"> <option>......</option> </select> Is there a possibility to treat the passed argument as ...

Show image very slowly ... after page is completely loaded.

Show image very slowly ... after page is completely loaded.... That is , fade in Effect for the image, but this image should show very slowly page load is completed.... ...

jquery datepicker flicker issue

Hi, When I enable following options changeMonth: true, changeYear: true, clicking on button/input field causes whole or a part of page to clicker. It happens only in FF. Any idea what is going on? Thanks, Pawel ...

jQuery delegates with plugins

Hello, jQuery delegates are great, especially when using with table row click events. I was wondering if it's possible to use delegates with plug-ins as well? For example if I attach elastic plug-in to every text area, I would do: $("textarea").elastic(); But how would I attach this plug-in using delegate? ...

jQuery .width() and .height() strange behaviour

Why in the following code .height() returns 95 rather than 100, while .width() returns 200 as expected ? I work with Firefox 3.6.3. HTML: <table><tr> <td id="my"></td> </tr></table> <div id="log"></div> CSS: #my { border: 5px solid red; } JS: $("#my").width(200).height(100); $("#log").append("Width = " + $("#my").width() + ...