[jQuery] Retrieving the parent of a cloned element
I am cloning a set of elements, one of these elements is a button that would delete this set of elements when clicked on. My problem is that I cannot successfully bind a function to the button that does the deleting // JS code $("#add_activity").click(function(){ var maxCount = [1,2,3,4,5]; var suffix = maxCount.shift(); $ ('#activity_container').find(".delete").livequery('click', function(event) { alert($(this).attr("id")); $(this).parent().remove() }); $ ('#activity_value0').clone().find("[id]").andSelf().each(function()
[jQuery] OT: Google autofill(or any others) and form events
I am doing some validation on a form using live validation. One issue that someone brought up is what about autofillers? is thier a way to trigger the event with an autofiller or disable the use of auto filler on that form element? it is a short form so i don't care are disabling that. -- View this message in context: http://www.nabble.com/OT%3A-Google-autofill%28or-any-others%29-and-form-events-tf4498171s15494.html#a12828546 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] jScrollPane.. css blindness?
Hi, with the JscrollPane I try to implement one of the OS css versions and I just can't get the images to show. Somehow I must not understand the CSS interdependencies correctly or I am making a plain stupid mistake. Anything is possible right now.. I have the image files in the right directory, and I think the path is right. If someone has a moment to put a second set of eyes on the page, I would really appreciated it. <a href="http://www.aero-tv.net/index.cfm?do=app.testscrollbox"> http://www.aero-tv.net/index.cfm?do=app.testscrollbox</a>
[jQuery] "each()" and "this" problems
Help! I have been into jQuery for about two weeks but I cannot solve this problem. I am trying to lop "bad" branches off the DOM tree. A bad branch is defined as a branch that does not contain any appropriate anchor address located in "keeplist". I have been able to lop off bad leaves (VERSION 1). However, I have not been able to lop off "bad" branches. VERSION 2 is supposed to lop off the bad branches, but instead it lops off ALL branches. It is as if the "this" provided by "each()" refers to the
[jQuery] Adding :hover css support to IE6 - ie6HoverFix
Hi list, The other day i got feed up with ie6 not having :hover css support so i decided to fix it. Here is a simple script that solves the problem: <a href="http://lovepeacenukes.com/jquery/ie6hoverfix/"> http://lovepeacenukes.com/jquery/ie6hoverfix/</a> /christian
[jQuery] Insert Images from a folder
I would like to insert all of the images from a certain folder in the root of my site into one div on my home page automatically. Is this possible with jQuery and if so how do you do it?
[jQuery] Opacity in Superfish?
Out of simple curiosity, is there any way to set a "degree/level" of opacity with superfish? I'm only asking as you can set the default to hide/show, is there any other options? Thanks in advance! J
[jQuery] jQuery Libary and Superfish collision?
Hey, i set up a webprojekt with the latest jQuery libary. For the menu i decided to work with the superfish menu. As i set up all stuff i saw that these two scripts deactivated themselves. Superfish uses jquery.1.2.1.js and the Libary jquery.js - How can i combinate those two jQuerys? Thank you!
[jQuery] Cycle plugin, pager option bug
First, I have to say this is a great plugin! And I want to use it. But, anyone else noticed a bug in cycle plugin pager option? http://malsup.com/jquery/cycle/pager.html If you click a page - the timeout changes, and the time between slides becomes uneven ... Mike (or anyone), please help!
[jQuery] Superfish pathclass question
Hello, I'm currently using the pathclass version of the JQuery Superfish plugin on a new website I'm building. BETA VERSION: http://www.aceconcrete.com/revised/ The client has requested that the hover effect only happens on the homepage. For the rest of the pages, he wants the dropdown tier navigation to stay current and static, regardless of where the user is moving the cursor. Is there a simple way using either CSS or the superfish.js file to achieve this effect? I realize that this may be an uber-newbie
[jQuery] Windows Optimization Tips
<span style="color: rgb(153, 51, 153); font-weight: bold;"><span style="font-weight: bold;"><a href="http://windowsfreetips.blogspot.com/">http://windowsfreetips.blogspot.com/</a></span> </span>
[jQuery] How to create dom element with a defined behaviour ?
Hello, I found myself adding elements to a page, and then adding behaviour to these elements. What I did was : $('.container').each(function(){ $(this).prepend('<a class="dosomething" href="...'">Do something</ a>') .find(".dosomething").click(function(){return doSomething(this);}); ... It works, but I don't find very elegant this add, search the element I just added and bind the event way. Is there a way to combine properly the prepend and the bind an event steps ? Thanks in advance, X+
[jQuery] Accordion-Like Menu: Setting (and removing) class on active item
Hi I tried to put together an easy accordion-like effect: http://www.smartforce.ch/jquery/ShowHide.html There is one problem: the selected-class will not be removed if all items are closed (again). The class ".selected" should be removed if no div is visible. How do I achieve this? "toggleClass" did not help either. Thank you very much for your help!
[jQuery] Accordion-Like Menu: Setting (and removing) class on active item
Hi I tried to put together an easy accordion-like effect: http://www.smartforce.ch/jquery/ShowHide.html There is one problem: the selected-class will not be removed if all items are closed (again). The class ".selected" should be removed if no div is visible. How do I achieve this? "toggleClass" did not help either. Thank you very much for your help!
[jQuery] Problem with XML :contains('texthere') Selector on IE
Hi, xml: <category> <id>1</id> <title>New Journey</title> <sub_categories> <sub_category> <id>1001</id> <title>Transport Bus Chatswood</title> </sub_category> <sub_category> <id>1002</id> <title>Transport Car Parking</title> </sub_category> <sub_category> <id>1003</id> <title>Transport
[jQuery] Superfish pathclass question
I'm currently designing a new website using the Superfish pathclass navigation system to create breadcrumb functionality. You can view my beta site here: http://www.aceconcrete.com/revised/ This is where the situation becomes unique. The client has requested that (aside from the homepage) that all subpage navigation remain static. In other words, the hovering animation would not function and the "current/active" page breadcrumb would stay put. I'm assuming that this can be accomplished by modifying
[jQuery] jquery 1.2.1 bug (copy iframe data to parent bug)
copy the data in iframe to its parent. It works fine in firefox and opera, bug it can't in ie(both ie6 and ie7). here is the test case. the main html file code : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"> <html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"> <head> <meta
[jQuery] Listbox values > text box
I've some HTML as below. I'm trying to work out a function to transfer the values in the listbox to the text box. So, the value of the hidden box would be 1,2,3 <select id="foo" multiple="multiple" size="6"> <option value="1">Item 1</option> <option value="2">Item 2</option> <option value="3">Item 3</option> </select> <input type="text" id="foo2" /> <input type="button" id="theButton2" value="Test" /> This is what I've got so far, not quite right though. $(function() { $('#theButton2').click(
[jQuery] Cycle plugin, pager option bug
First, I have to say this is a great plugin! And I want to use it. But, anyone else noticed a bug in cycle plugin pager option? http://malsup.com/jquery/cycle/pager.html If you click a page - the timeout changes, and the time between slides becomes uneven ... Mike, please help!
[jQuery] Help me improve my script
Just started with jQuery, absolutely loving it so far! I just have a few questions about what I have written, and if there are better ways of doing things (it all works perfectly). I copied the relevant code to a text file, which can be seen at http://www.doheth.co.uk/files/jqueryhelp.txt It's a fairly simple script for my PHP Contest Scoreboard program that allows the user to add a new "question" to a form. Essentially it just adds a fieldset after the current last one in the form. It also animates
[jQuery] filtering elements
I noticed some example using something like so: data = $(data).not("style, meta, link, script, title"); to filter out thes tags. I tried using this to filter img as well: data = $(data).not("style, meta, link, script, title, img"); and what I noticed is that this doesn't work if the elements are within other elements. For example, I have this simple example: <img src="1"> <div> <img src="2"> </div> <img src="3"> In this case, only img 1 and 3 will be filtered out. img 2 will remain. I am wondering
[jQuery] overide or deleting events
hi i have something like this $('div[@id=customer]').click(function(){ $('div[@id=lookup_customer]').show(); }); and during the user interaction i have something like this $('div[@id=customer]').click(function(){ alert('Lookup customer cant be shown any more.''); }); I was expecting a new behavior when clicking the <div id="customer"> tag, but what happen the two behavior are executing instead of the newer one overiding the older one. How can I achieve this? Thanks james
[jQuery] Mouseover problems with multiple elements
Hi all, I'm looking to replicate this effect: http://themes.wordpress.net/testrun/?wptheme=332 But I'm running into problems using mouseout as it fires every time i go over an element inside the target element, thus making a box that bounces up and down/ shut prematurely etc. Anyone got any ideas?
[jQuery] Problem selecting script and link rel=stylesheet elements from AJAX html-result
Hi, I return HTML as text/html from an AJAX-call, that contains various script and link rel=stylesheet elments: <script type="text/javascript" src="../_javascript/drag-drop-folder- tree.js"></script> <div id="main"> ... </div> I create a jQuery object from the result, whitch seams to work, but when I try to select something I get the error: ret[i].getElementsByTagName is not a function jquery.js (line 1362) r = jQuery.merge( r, ret[i].getElementsByTagName( tag )); My AJAX-callback looks like this.
[jQuery] Accordion-Like Menu: Setting class on active Item
Hi I tried to put together an easy accordion-like effect: http://www.smartforce.ch/jquery/ShowHide.html There is one problem: the selected-class will not be removed if all items are closed (again). The class ".selected" should be removed if no div is visible. How do I achieve this? "toggleClass" did not help either. Thank you very much for your help!
[jQuery] radio button help... script is worng... :(
hey. i got this : http://pastebin.ca/708004 , i want to run a script once radio button is clicked... its not working... anyone can help tell me why? -- View this message in context: http://www.nabble.com/radio-button-help...-script-is-worng...-%3A%28-tf4504714s15494.html#a12847154 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] jquery tablefilter > grouping, sums?
Hi All, Anyone know if the tableFilter plugin ( http://ideamill.synaptrixgroup.com/jquery/tablefilter/tabletest.htm ) can do sums? There are two things that I need for an app: 1. summing (specific) cols in the last row or footer of the table: Category | Number ------------------------ Food | 3 Food | 4 ------------------------ Sum | 7 2. subtotalling cols by "grouping" on specific cols Category | Number ------------------------ Food | 3 Food | 4 ------------------------ Subtotal | 7 ------------------------
[jQuery] Registry Fix for Windows XP
Repair your registry base <a href="http://windowsxpsp2pro.blogspot.com/">http://windowsxpsp2pro.blogspot.com/</a>
[jQuery] I'm not a doctor, but I'm pretty sure this isn't right...
My code is starting to look like this... http://pastie.caboo.se/99522 And I'm pretty sure that's not how it could or should look. Does anyone have any pointers on how one could structure their code? Thanks, much! - Rabbit
[jQuery] Large Project Management
This is a little OT, but not tooo much... I'm curious how others are handling web pages / projects that have large numbers of plugin dependencies. For the app I'm working on, I can foresee needing 20 to 40 js libraries included (mostly jQuery plugins). Luckily most of them are small, but I can't help but think there's a better way than doing 20+ <script src="..."> tags... Related to this, I'm also curious about how you are organizing your directories. I've come up with the following structure that
[jQuery] Opera indexOf support
<span style="font-family: trebuchet ms;">I got a note that someone that my sprites didn't work in Opera. So I fired up my virtual PC and installed Opera.</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;"> jQuery was not the culprit. The problem was that Opera does not support indexOf on an array, just on strings.</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">Info in bottom of this page: <a href="http://www.howtocreate.co.uk/emails/NicolasR.html">http://www.howtocreate.co.uk/emails/NicolasR.html</a></span><br
[jQuery] Plugin to get URL Parameters
<span style="font-family: trebuchet ms;">Is there a plugin to get all of the URL parameters and make them variables? (assuming its not already built in?)<br style="font-family: trebuchet ms;"></span><br style="font-family: trebuchet ms;"> <span style="font-family: trebuchet ms;">Glen</span><br style="font-family: trebuchet ms;">
[jQuery] Inner workings of jQuery
I was wondering if someone could explain a few things about the inner workings of jQuery. Recently I've been doing quite a bit of work with Javascript and decided to make a small library to aid in the validation of form data with the main reason being to simply increase my knowledge/skill with JS. I have also been using jQuery a lot lately and really liked the way you can chain multiple methods together: like this $ ('#id1').click().fadeOut('slow'). I decided to design my library in such a way that
Better alternative to jQuery's innerHTML-like functions?
jQuery's after/before functions accept an HTML string as input. This seems akin to using innerHTML, which I thought was generally frowned upon. Is there a preferred way to add elements to the DOM using jQuery? Also, I was wondering if someone could explain the difference between the filter, find and children functions? It looks like they do the exact same thing. P.S. Nice to see someone setting up a proper forum for jQuery, I'm not a fan of Google Groups myself...
[jQuery] Passing Form Data To Thickbox via CakePHP
I am attempting to write a preview page for a form using Thickbox as the preview window. I want to be able to see the data that's currently in the form without submitting it to the database first. I need to gather up the field data in a javascript call so that I do not have to submit the form, and from there I need to pass the data to a CakePHP page in POST variables. I then have to have the output of all of this displayed in the Thickbox iframe. I can get pieces of this to work, but I simply cannot
[jQuery] Problem to hide and show a <tr>
Hello everybody Here is my jquery code and html table in the following file: http://www.nabble.com/file/p12836268/index.html index.html I have a simple table with id="myt" made with a simple structure: a <tr> row with class "personne" followed by a <tr> row with class "personne_info" then another <tr> row with class "personne" then another <tr> row with class "personne_info" and so on... i'd like to hide all <tr> row with class "personne_info" then if we clique on a tr with class "personne" make
[jQuery] $(document).ready *and* window.onload
Hi, I really need to be able to fire both $(document).ready *and* window.onload in my app. However I find that window.onload doesn't get fired in IE (7) with document.ready any ideas here? weepy *...(
[jQuery] n00b question: how to pass multiple parameters on a href
Hello, I started today with looking at JQuery and trying to learn it. In the past I used an onclick with a function call and then multiple parameters to "do something". If I understand correctly I should now put them in a CLASS and then let Jquery filter on the results. But I dont understand how I now can pass MULTIPLE parameters on the A. I have extended on my question with the code I use on : http://www.cogmios.nl/im-getting-started-with-jquery-20070922.html It would be terrific if someone could
[jQuery] Post to PHP file, update div
I'm trying to figure out something that I know how to do in regular javascript however I've had a heck of a time figuring out how to do in jQuery. <div id="updateme"></div> <form id="form1" onsubmit="return false;"> <input type="text" id="value1"> <input type="submit" id="submit" value="Submit" /> </form> What I want to do is to pass value1 to a PHP file that processes it, then updates the div "updateme" using the data from the PHP file without refreshing the page. It's such a simple concept but
[jQuery] $('#foo') failing
I have a webapp that uses JQuery (version 1.2) for doing javascript DOM manipulation. The webapp works great most of the time. However, we have an easily reproducible bug in which JQuery cannot find a particular DOM object under certain circumstances, even though the DOM object does seem to be there. Even worse, if I try to debug the problem with Firebug, the problem does not happen! The bug happens on all browsers. And it happened with both JQuery 1.1.4 and JQuery 1.2. Currently, the webapp is in
Next Page