[jQuery] After some clicking it won't show up
I am busy making something like this: http://juicystudio.com/experiments/numbertransfer.php It is the same but only one thing is different. When I click on another help link the other popup should be gone, but when clicking back on number one it should be visible again. I have this page: http://ischagast.nl/help.html Reproduce bug: - Click number 1 - Click number 2 (this goes ok, number one is gone) - Click number 1 There is the bug I something I don't know how to solve. I want number 1 to be visible
[jQuery] Animating several elements in order
Hi everyone, I'm having the hardest time getting this to work. On a button click, I want to animate every div, one after the other, that is a child of a div with the id "mainpage". This is the code I'm using, but I can't seem to make it function correctly: $("#button").click(function(){ $("#mainpage div").each(function() { this.fadeOut(500).animate({opacity: 0.0}, 500); }); }); Am I on the right track in trying to get each element to begin fading out after the one before it has finished?
[jQuery] Counting Events on a page?
This may not be related to jQuery, but its javascript nonetheless. How would I go about finding out how many events are "listening" on a page. Some of my pages can have many hundreds of events set for various elements (mainly table rows) so I'm going to get some event delegation action happening to ease the load on the browsers. So I want to be able to determine how many event listeners were being created before and after delegation. Also, Ariel Flesler's jQuery.listen plugin seems to be the one
[jQuery] vertical scroll on tbody
HI, all Is that possible, within a table, I can have a tbody with vertical scrolling feature and keep thead fixed with no scrolling? Thank you in advance! Jack
[jQuery] Help. Autocomplete with php/mysql.
Dear all, I am very newbie to Jquery. I have a problem with Autocomplete Jquery plugins. I follow Jquery autocomplete Guide from http://www.pengoworks.com/workshop/jquery/autocomplete.htm But still doesnt work with my implementation. here is my Jquery code and my search.php backend file. http://www.juststored.com/code/9rBXpn Many thank in advance, saya.
[jQuery] .attr not working?
Hello All, I am using a packed version of jQuery 1.2.6 and set up and cannot get .attr to work in a particular context. I have tried a basic test to see if it works, which it does, but does not work in the below example. I am getting a ".attr is not a function" error in Firebug. If you see where Im going wrong, please point me in the right direction. Thanks! <html> <head> <script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script> <script type="text/javascript"> $(document).ready(function()
[jQuery] :has > :hasnot
Hi, i'm looking for a selector which made the inverse of the ':has' selector like ':hasnot' I've x div wich have <h3> or not, and i 'will be aible to catch the div which has not <h3>... Actually i use 2 line to show the div i want (by default, all the div are hide): $('div').css('display','block'); $('div:has(h3)').css('display','none'); and i try to reduce this to one line.... can some one help me please ? thank ps: sorry for my poor english, i'm french -- View this message in context: http://www.nabble.com/%3Ahas-%3E-%3Ahasnot-tp18649257s27240p18649257.html
[jQuery] Highlight table when checkbox is checked
Hello everybody, i'm new if it comes to using any javascript but i'm trying to learn jQuery and i got a question regarding a function, i'm wanting to Highlight the table if the checkbox is clicked and when its not clicked i only want to have the normal background-color. I'm already searching for days and i still dident found the answer.. here is a preview of what i mean: http://panzerkampf.be/phpbb/checkbox.jpg the html code of the checkbox: <!-- IF not topicrow.S_MOVED_TOPIC --><input type="checkbox"
[jQuery] cycle plugin breaks in IE with absolute positioning!
Hi all, I'm using the latest jquery with the amazing cycle plug-in (http:// malsup.com/jquery/cycle/), which allows images and other "Non-Image Content" (see INTERMEDIATE DEMOS #2) to slide/fade/etc. within a box. It claims that the content can contain whatever you wish, which is true for Firefox and every other useful web browser. IE however (all versions as far as I can tell) gets cracked out if there are any absolute positioned divs within the content. The first slide appears, then it hangs. This
[jQuery] $(this) is powerful, but is it a member of the family?
I have two jQuery books and scant coverage of $(this) between them. I need to know if $(this) has parents, children and siblings, and if so how to access them. Here's why... I have a page with six one-line forms on it. I put the forms in divs and hide the divs on page load based on the class of the divs. Each div has an immediate sibling <a> that will toggle the form on a click. It works great if I write a separate function for each div, but I want to combine them into one function, bind that function
[jQuery] parsing xml with jquery adding filter
hello, I'm trying to parse some info from an XML file with a filter to get only one part of a the infos. it doesn't seem to work. can someone help. here is my code: function getImageName(marque) { $.get("xml/listeProduits.xml",{},function(xml){ // Build an HTML string var nom = new Array(); $('marque',xml).filter(function(index) {return $ (this).find("marque").attr("id") == marque}).each(function(i) { nomRef = $(this).find("nom").text();
[jQuery] How to select all tag with certain class
I just want to select all LI with class="highlight-with-red", excluding other tag with class="highlight-with-red" (e.g. P tags). <LI>This is line one <LI class="highlight-with-red">This is line Two <LI>This is line Three <LI class="highlight-with-red">This is line Four <LI>This is line Five <LI class="highlight-with-red">This is line Six <LI class="highlight-with-red">This is line Seven <LI>This is line Eight <LI>This is line Nine <P>This is Para 1</P> <P class="highlight-with-red">This is Para 2</P>
[jQuery] how to make home page like jqueryUI
Hi I just saw the new homepage for jquery UI. I must say it looks fantastic. Long time ago I saw a jquery plugin that does something similar to what they have done for their demo section. Does someone know how to make an app that would replicate their demo section? or maybe a plugin that is out there? http://ui.jquery.com/demos is the link I am talking about. thanks!
[jQuery] Selct Field Change trigger, Multiple is fine .. single not run
Hy .. I try to modify this example: http://docs.jquery.com/Selectors/selected With multile select run ok if I use arrow key to modify the value But the select is: <select name="garden" multiple="multiple"> ... I want single selected value and don't run when I press arrow key .... :(( <select name="garden"> idea? Ciao a tuch from Como/Milan
[jQuery] jqDnR and jqModal - draggable area not working when using ajax
hi i'm using a combination of jqDnR and jqModal to load some content in a draggable modal style window. this content is requested through ajax. everything works fine, using this method: $('#myPopUp').jqm({ajax: 'some-url', trigger: 'a.trigger'}); $('#myPopUp').jqDrag(); the problem is, my content contains some form elements. these form elements need to allow the user to click into them, so that they can start to enter some text. however, because the whole 'window' is draggable, any click event is
[jQuery] jquery 1.2.6 + photoslider
Hi, I use jquery-1.2.6 and photoslider.js from here http://opiefoto.com/articles/photoslider. Works perfectly in FF 2, FF3 and Opera. In IE7 i get a error in jquery-1.2.6.js at line 1120 (NOTE: i only get this error, when using jquery + photoslider.js). I installed the Microsoft Script Debugger, but sincerly i'm not a javascript expert. The code at line 1120 is part of the attr function. Anyone have any ideas what the problem could be? Thanks, Adrian.
[jQuery] for input cloning
Hello all, I have the following thing, I want to create a form page where people (mostly me) can manage the weekly worked hours. I have created a table and within the table I have put input elements. (see example below) When a user using (focus();) any of the input elements in the last table row, I want to copy the whole row and add it below the last row. Although I have it working, it doesn't remove the action from the first row. The copying (in my case cloning) only works on the first row. I think
[jQuery] First jquery use - problem with collapsing treeview
Hi, for my first adventure in jquery, I am attempting to implement the collapsing treeview found at http://be.twixt.us/jquery/treeViewCollapsed.php in an existing site. I created a static test page at http://www.quirky.co.nz/dsales/test.html It is only working partially - the divs of class tvca are not being inserted (dragonfly does not show them in the Dom as it does in the sample page. Dragonfly confirms that the jquery script is being loaded ok, but there are no js errors in the console. Can anyone
[jQuery] getJSON: how to attach failure callback?
Hi! I am working with getJSON to get JSON data via HTTP GET request. It works well, but sometime the server itself fail to get the data (error status returned). In this case the getJSON never get called and the text "loading..." I put in the page just stay there forever (well, until the user tried again). Is there anyway to attach a failure callback to a specific getJSON call? I see there is ajaxError, but how this actually work so I can attach it to a specific getJSON call? Or do you have other
[jQuery] Autocomplete - avoid setting focus again after selection
There's a comment in jquery.autocomplete.cs: // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus Since I needed that option I've added it to my private copy. The changes have been trivial (basically 2 lines added). Should I send it to someone for incorporating it into the next release anyway?
[jQuery] draggable with Air App
Thanks for the twitter link to here, total novice, not sure if its possible:- I've created a simple Air App which already has the draggable function attached to the whole 'page' it inputs div id 'items' into a list, so when the list is created for the end user, I really would like each item to be dragged and dropped to reorder. I cant seem to do this with the draggable function as it already has the whole app applied to it - any pointers would be appreciated. hope that makes sense to someone thanks
[jQuery] trying to get a less choppy drag action (code inside)
I'm happy with my draggable box but its choppy. ANyone know of a strategy to get the box to not lag so much when mouse is moved quickly? If you grab towards the left/right edge, the box ends up moving out of the mouse position, cancelling the drag handler... This is my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <script type="text/javascript" src="jquery-1.2.6.js"></script> <script type="text/javascript"> $(function(){ $('#handle').bind("mousedown",
[jQuery] .animate({ scrollLeft : +10}, 800) - Animation only working once. Help Please.
Hello, I am using $("myimage img").click(function(){ $("#mydiv").animate({ scrollLeft : +10 }, 800); }); The animation is only working once when the image is first clicked. If I click the image again I do not get the animation. Does anyone know why this is. I want to use a scrollLeft and have the animation too. I do not want it just to pop to the next number. Thanks
[jQuery] dynamically load jcaroussel itself
Hi all, I should need to include a jcaroussel inside a google maps infowindow. That is, I just can't initialize them at document.ready() time. What would be the approach for that? I should add different casoussels for each marker (I mean, I should retrieve a list of different pictures from each point). Any hints or example of that? Thank you very much in advance! Josep M
[jQuery] file uploads with progress bars
Hi, Does anyone know of a JQuery plug-in that can do the following, perhaps unreasonable, list of things - AJAX file uploads - Progress bar while upload is happening - ability to catch server response and display a message instead of page refreshing - cancel the AJAX request mid-stream You guys are the best as always, - Dave
[jQuery] [treeview] Adding links when using the async treeview
Hello I know this question must sound really trivial but i just couldn't find anything about it in the docs: How can i assign a link to a leaf (meaning: no children below)? my navigation goes something like year - class - person. when i click on person i want to open a link (in the same page, replacing it). Thanks in advance, Klaus
[jQuery] JS Error on IE
Heres the code. http://paste.pocoo.org/show/80117/ It works on FF but in IE it give an "Invalid Argument" error. and when i tried commenting out lines 6 and 14 the error doesn't show :) need help on this really bad.
[jQuery] jQuery cycle plugin not validating as xhtml
Hi I am having a problem validating the cycle code in my xhtml. This is what I'm using: <div id="s2" class="slideshow"> <img src="support/img/test/test-picture-1.png" alt="test" /> <img src="support/img/test/test-picture-2.png" alt="test" /> <img src="support/img/test/test-picture-3.png" alt="test" /> <img src="support/img/test/test-picture-4.png" alt="test" /> </div> <script type="text/javascript"> $('#s2') .before('<div><div class="slideshowcontrols"> <a href="#" title="Play
[jQuery] Jscroll Scroller stops before the end of the track?
I am very newbie, somehow I managed to put the scroller on my test site. The problem is I can't seem to get the drag button to scroll to the end of the track. It does go to the end of my text (except on Safari)on that page but stops about 2/3rd's the way down. Would appreciate any help I have exhausted my brain. Is there somewhere to set this height. Let me know if you need the link (if it's ok to post a link?) Also new to forums :) Thank You! Lee
[jQuery] Create array based on input value
I am wondering if it is possible to create an array, but the number of array items would depend on the number value in an input box. So, if the user entered 5, it would create: var arr = new Array(6); arr[0] = "Jani"; arr[1] = "Hege"; arr[2] = "Stale"; arr[3] = "Kai Jim"; arr[4] = "Borge"; arr[5] = "Tove"; I am having a hard time understanding how I would do this with jQuery.
[jQuery] Packed version 32 kB
Hi I have made performance test for two independent servers with 3 types of jQuery packages: jQuery 1.2.6 (16kb, Minified and Gzipped) jQuery 1.2.6 (97kb, Uncompressed) jQuery 1.2.6 (30kb, Packed) My tests says that packed version is the slowest one up to 3-4 times. Why is that? What is the reason to use packed version? At JQuery main site they say Packed version is Great for production use. Greetings Michael
[jQuery] An event from the ajax result
Hi All, I'm quite new in JQuery and this mailing list. And want to ask something that I couldn't get the answer yet. I hope someone can help me. I have this HTML link: <a href="#" class="abc">the link</a> And this JQuery. $(".abc").click(function() { $.ajax({ url: "url.php", method: "post", data: "data1=1", success: function(m) { $(".parent_div").append(m); } }); } The Ajax process will result this (the m variable): <a href="#" class=".abc">link 1</a> The question is, how can I make the $(".abc").click()
[jQuery] need some documentation mirror or something
docs.jquery.com is way too unstable to be useful. can we get the documentation grouped into a downloaded file as well? i'd submit a bug but i can't get to the nav.
[jQuery] slideToggle() very jerky
Hello - I am very new to jquery, so maybe I'm doing something wrong. I am trying to create a pretty simple expanding container. This is standard fare, with a title bar, and when you click on the +/- it should expand/collapse the contents of the container. Functionally, the code below is working just fine. My concern is that the movement (in both IE and FF) is jerky. To be more specific, the rollup looks pretty good, but when it expands again, there is a hesitation - it is not smooth. Am I doing something
[jQuery] IE Problem, throws no error dont know what its doing.
I have a small multi-part form (full version at http://liveanime.org/manga/ click the upload manga link") it works in everything but IE (as usual. none of them 6,7,8) And none of them are giving me an error they are just refusing to work. I have trimmed down the code to try and work out where the error is and its not getting past the ajax post of information to the php file which validates the form. As far as i can tell. I cant work out where the error is. Trimmed down version is here = http://liveanime.org/manga/test.html
[jQuery] more jQuerish-way instead of each -> accesing "this" or "self" or "currently mangeld object"
Hello! I need to add autocomplete-functionality to some of my input fields. I can select them via $j("input.acmplajax") -> done The URL for requesting the autocomplete-Filler needs to be different for every input, so I want to refer to the DOM-ID of that input- element, the following works: $j("input.acmplajax").each( function(ind, obj) {$j(obj).autocomplete("/autocont/"+obj.id) } ) But my stomach tells me: there must be some way to write this $j("input.acmplajax").autocomplete("/autocont/"+<how_do_I_access
[jQuery] slow jQuery functionality in IE on Windows
My page: http://dev.theredgroup.us/greenside Please mouseover six graphic 'tiles' on righthand side. Content below changes as well as tile color changes. Problem: IE on Windows has very slow performance, with lag between mouseover of images leading to slow change from gray to color. Firefox Mac/Win and Mac Safari does not show this. I have not tried Mac IE. Any thoughts? The jQuery code that controls this content: $("#tiles a").mouseover(function(){ // get tile filename var newsrc
[jQuery] Augmentation of Object.prototype
Hi everyone, I want to use the code from this page : http://www.coolpage.com/developer/javascript/Correct%20OOP%20for%20Javascript.html to enable true inheritance with JavaScript ... but sadly JQuery doesn't support a such possibility.. Why ? If you take care by using "hasOwnProperty()" when you iterate to an object you will never reach my added functions. Like that : for(var m in o) { if (m.hasOwnProperty()) { // use of m.. } } Or better with a such augmentation ;o) : Object.prototype.each = function(f)
[jQuery] jqModal gallery slideshow
Anyone ever made a gallery slideshow with jqModal? Can anyone recommend a good place to start? Code? Erin
[jQuery] How to cancel an ajax request?
Hi, Not sure if this is possible but wanted to float this out there. Is there a way to cancel an AJAX request once the ball is set in motion? I'm using the "$.ajax" call, not sure if there are parameters I can pass or things I can catch that would help me cancel the request at some later point. Thanks for your input, - Dave
Next Page