[jQuery] identify tables with same ID ( duplicate ids)
hi, I have 2 questions here for the group.. 1. Does Jquery have native functions or lib or plugins to support conversion of HTML Table data into XML string ( which can then be sent via AJAX to server for getting a respone) ? 2. If my html page has tables with same ID , how can i obtain a handle to all these tables. Eg. there is html page with 3 tables of which 2 tables have same id. Can i get a handle to these tables using any method like alert($('#Instructions').length); This however give me length
[jQuery] Autogrow Plugin -- Apply to Textareas on When the DOM is Ready
So I'm using the Autogrow Plugin for a number of textareas on a page. However, I would like the change in height to be applied when the DOM is ready for all of the textareas the are loaded with values != "", some with text that easily takes up the default size of the textarea and beyond. Is there is a way to apply the autogrow to resize all the textareas when the DOM is ready? Upon a quick glance at the plugin's code it appears it only works on the currently selected textarea... Thanks!
[jQuery] BBC Site - jQuery
Hi all, The new BBC website is using jQuery - a testament to how great jQuery is! Go team jQuery! http://www.bbc.co.uk Regards Dan
[jQuery] :eq() expects number problem
I'm selecting an item based on using an index. :eq(3) works but if I pass a variable it does not. CODE SNIPPET: function populateSelect(choosenValue) { // Get the optgroup options var choosenOptions = $('#courses optgroup:eq(choosenValue) option'); .... THE FOLLOWING WORKS: $('#courses optgroup:eq(3) option'); DO NOT SEEM TO WORK: $('#courses optgroup:eq("+choosenValue+") option'); // and I don't understand this anyhow or choosenValue = parseInt(choosenValue); $('#courses optgroup:eq(choosenValue)
[jQuery] :first-line workaround?
Hi. Is there some workaround for the unsupported :first-line pseudo- selector to get the first line of text? Even if it involves javascript code. The only thing I can come up with is some overly-complex typographical guesstimate of where the line ends, but that seems fraught with problems. Any help would be appreciated. Thanks. -bill
[jQuery] value attribute update problem
Hello Little problem with value attribute I have some input element where I try to update attributes. Input element before jQuery code: <input type="text" name="test" value="" testparam="" maxlength="10" size="10" /> jQuery code: $("input[name='test']").attr("value","test123"); $("input[name='test']").attr("size","15"); $("input[name='test']").attr("testparam","test123"); But it seems to me that jQuery update in DOM tree only testparam and size attribute because if I look in Firebug then I see following
[jQuery] [validate] Determining form state without displaying error messages
I'm trying to write a custom view for a form which allows the condition of the form to be represented independently of error messages, by updating the class on another element accordingly whenever the form is changed. So, I have the following code: $('#myform').change(function() { switch ($(this).valid()) { case true: $('#formstate').removeClass(); $('#formstate').addClass('ready'); $('#formstate label').text('Form is valid'); break;
[jQuery] Masked plugin - AC000000805UK
Hi all. Masked plugin is awesome. Great. But I found a little "problem": using masked plugin and autotab plugin in the same page make masked plugin to autotab before user enters your data. Please look this example: ... $("#dsZIP").mask("99999-999"); <form .... <input type="text" name="dsZIP" id="dsZIP" size="30" maxlength="9"> In this example when user inserts your first number in that form autotab understand to jump to the next field because dsZIP field is filled(with underscore characters). Anyone
[jQuery] How do you test if hidden or shown in jquery
ok, I have 2 elements that use the .toggle function to hide and show themselves. But I would like, when each is clicked, for it to test if the other element is currently showing and hide it and vice versa. Can someone help me find how to do that? John
[jQuery] Return the checked items from checkboxes plugin
I'm using the checkboxes plugin (http://www.texotela.co.uk/code/jquery/ checkboxes/) and I'd like to pass the id of each checkbox that gets checked to a function. I see that the plugin has an option to "return the checked items:
[jQuery] Marker over static map
Hi Everyone, I have a simple question (but it's hard for me :) ) How can I print a clickable icon/picture over a picture basiccly I'm using mapper.jp (from http://www.netzgesta.de/mapper/) where you can click in each country on the world map and you can direct to another link and so on I want to add a small function where I can also put a small icon over each country (e.g. a country flag) and when a user click on the icon he will get information about each country. is this possible using JQuery ?
properly adjusting radiogroup onchange [SOLVED]
Hi, I'd like to change the selected value of a radiogroup once a certain textfield has been focused. //targetting input with class "field" $('input.field').focus(function () { $(this).parent(). //change value... }); Can anyone help me from here? The idea is that the value in the form actually toggles in the browser.
[jQuery] dblclick function bind and content selection
Hello, I have a function binded on dblClick event of a DIV. When user dblclick on the DIV its content is selected and my function is executed. Is there any solution to avoid content selection on dlbclick ? Thank you. Guillaume.
[jQuery] swap elements visually
Hello friends, i would like to achieve the following effect: given an unordered list of links styled as an horizontal menu. when a link is clicked, it moves to the left-end side of the menu, pushing the other links on its left to the right side of the menu. All my attempts so far failed miserably. Does someone have an idea on how to make it work? Any suggestion welcome... Thank you, Alexandre
[jQuery] challenge: optimize this swap position code !
Dear jqCoder, i, lame Interaction Designer having fun with jquery, challenge your coding skills to optimize (and improve?) the code for this effect ! http://www.pixeline.be/test/swap/ This follows up a previous discussion on how to swap visually two elements in a list so that the clicked one goes to the left and replaces the first element to the clicked one's position. I built this code using the non animated approach of using cloning. (the discussion is here: http://groups.google.com/group/jquery-en/browse_thread/thread/58e43bb2571b9dc1/03809a461174265e
[jQuery] jQuery in Action
So I got this book this past Friday and was like a little kid on Christmas eve. I've been going through the first few chapters and this is clearly one of the most thorough and comprehensive books on jQuery and its functionality. I started using jQuery about 3 weeks ago and am totally hooked. It has made the various jobs and tasks I'm given at work INCREDIBLY easy. With having this book alongside "Learning jQuery" the sky is the limit. Anyone else pick this up yet? Thoughts?
[jQuery] blockUI, select box and IE6
Sorry if this is yet another "WTF is up with IE6" posting.... but here it is anyway... :-) I'm using jquery 1.2.1 and blockUI 1.33. I have a div with a select box in it (in dropdown mode) and am blocking the div (not the whole page). When the block appears, the select box disappears. When the block is removed, the select box disappears. I'm not setting any z-indexes manually. Any tricks to prevent the dropdown from disappearing? It works fine in IE7 and FF2.x. Thx, Jack
[jQuery] Superfish bug in IE 6
Hi group, I have a problem with a superfish menu in IE 6. I am using the horizontal menu with drop-downs. In IE 6, the menu "sticks" to its default position. So, when a user scrolls down, the menu stays in the same place. Can anybody advise me on this? www.novapsychologists.org Thanks in advance Brian Almeter
[jQuery] Adobe AIR v1.0 and jQuery Ajax calls
Hi All, Has anyone done any work with the release version 1.0 of AIR and jQuery - specifically using the jQuery Ajax call (in a sandbox page) ? I've tried it myself in many ways, but just can't seem to get it to actually get the data. The page I have done works perfectly in the browser, and the only bit that seems to fail is the $.ajax() call (or it's 'success' callback - not sure which). The latest 1.2.3 release of jQuery states that it is now compatible with AIR, but to what extent? All the Adobe
[jQuery] ajax and memory growth IE and FF
Hi, I was testing the ajax component (latest build) and found that IE and FF would show a growth in memory (task manager). I made a test (see below) with "normal" XMLHTTP request as a reference which showed no growth at all. (after refresh memory is freed again) The file I loaded was a plain HTML table (no events thus no memory leak; checked with sIEve. Before I go into jquery core to figure out where it stores data: was this already adressed and I missed the thread when searching this group? here
[jQuery] tabs custom animation
Hi, I have a page with tabs that all have different heights (they're images, actually). Switching them causes the text to reflow or 'jump', which isn't a nice effect. Is it possible to create a custom animation for tabs which animates from the current dimensions of a tab to the new dimensions? Thanks, Jeroen Coumans
[jQuery] extracting text not in an element
Does anyone know how to extract text from this, specifically the information following the </b>s: <body bgcolor='white'><pre><b>ZZZZZ Port:</b> ZZZZZZZ---123456-1-1-1-1 <b>TRRD Addr</b>: 00:1b:5b:98:4a:c8 <b>BBOP Id</b>: 3456789087666 </pre> </body> Also, is there a way to put this in an array? Thanks for any help. John
replacing [SOLVED]
Hello, I'm using this function: var date='something'; $('#statisticstype a').attr('href', $(this).attr('href').replace(/#statistics\/([^<]+)\/([^<]+)/,'#statistics/'+date+'/$2')); <div id="statisticstype"> Additional options: <a href="#statistics/all/type:all">All</a> - <a href="#statistics/all/type:songs">Only songs</a> - <a href="#statistics/all/type:albums">Only albums</a> </div> now what I want is to replace only the middle part of link
[jQuery] How to validate form fields using jquery
Hi Friends, I am using CakePHP framework. With that I am using jquery for AJAX calls to my forms. It works perfect for me. Now I want to use the jquery for my form fields validations on client side. I saw a very good plugin at http://bassistance.de/jquery-plugins/jquery-plugin-validation/ . But I don't know how to use this with AJAX. I already tried <script> $(document).ready(function(){ $("#myForm").validate(); }); </script> This also works. But When I implement this with my existing project using
[jQuery] Can not get simple post snippet to work NEWB
$(document).ready(function() { $.post("check.pin.php", [uid: "1"], foobar); } function foobar() { alert("works"); } Returns "missing } after element list" can anyone point out to me whats wrong?
[jQuery] Need to slide a Div containing an image so that it is always on the screen as the user browses a gallery containing many thumbnails
Hi, I am building this website for a client (http://www.melaniepotro.com/ collection.html) and the collection section features many photos. At the moment when a user clicks on a thumbnail the screen suddenly jumps to the top so that the main image can be displayed. This is very annoying for the user when they are trying to view thumbnails found further down the screen because they will have to scroll back down again if they want to view the next one. What i need is a way for the main image to slide
[jQuery] Submitting a Patch
Hi, I was wondering what the process is for patching a bug in jQuery. My guess is to 1) Add a ticket in trac, 2) Come up with a test that shows its broken, 3) Find a fix 4) Submit a patch. I'm not really clear on steps 2 and 4. As far as making a test, should I just come up with the code for one, or actually make a patch for the test file under svn? This will be my first open source contribution, so I'm not familiar with how patch submission works, and how the jQuery project in particular does it.
[jQuery] trigger click in a hyperlink
Hi: Is it possible to do a trigger with a hyperlink? Tanks
[jQuery] Can JQuery do a slider/button like on yui?
Hi, I would like to make a form input field that has a button attached to the side, in-which when the button is clicked, a slider bar appears for a user to slide and change the number value in the form. Basically, I am looking for something like this:http:// developer.yahoo.com/yui/examples/button/btn_example14_clean.html Can jquery easily do this and if so, can someone point me in the correct direction of a tutorial that might help me pursue this. John
[jQuery] UI Datepicker: how do i run custom event when month/year changes
For the life of me, I cannot figure out how to run my own event (in addition to the events to change the calendar) when someone presses "prev", "next", or changes either the month or year select items Any pointers? I have already tried like $(".datepicker_prev > a").bind("click", MyEvent); but it doesn't do anything Thanks in advance
[jQuery] yet another xml question
hi, i believe this is an easy one, but i cannot get my head around it... i have a sample xml file: <projects> <project> <name>first</name> <prod>first</prod> <ag>first</ag> <dir>first</dir> <date>03/25/2008</date> <status>production</status> </project> </projects> $(function() { //$('#update-target a').click(function() { $.ajax({ type: "GET", url: "xml/projects2.xml", dataType: "xml", success: function(xml) { $(xml).find('project').each(function(){ var name = $(this).find('name').text()
[jQuery] problem with tablesorter plugin
i just started using the tablesorter ( http://tablesorter.com/docs/ http://tablesorter.com/docs/ ) and it works well but i have one problem. my table starts out with alternating row colors. but once i sort it by clicking on one for the columns. the row colors get all out of whack. can someone tell me how i can keep the alternating row colors in order after the sort? -- View this message in context: http://www.nabble.com/problem-with-tablesorter-plugin-tp15760660s27240p15760660.html Sent from the
[jQuery] Treeview with checkboxes
I'm using a jquery.treeview as an input device. So I have nodes rendering using <li class="closed"><span class="folder"><input ...type="checkbox" value="32" />DisplayName</span> This works fine *except* that a click on the checkbox also falls into the hit area, so checking or unchecking a folder also expands or collapses the folder. Any way to prevent the checkbox from being included in the hit area? Mike Gunderloy http://afreshcup.com
[jQuery] Will this post work?
Test????
[jQuery] Firefox Only Error..... jQuery is not defined..... jScrollPane.js (line 94)
Hi, I need some help with a website I have recently put online. The address is http://www.pamelaneil.co.uk. I am using jScrollPane and everything works fine in IE6 and IE7, but in Firefox the page just hangs and Firebug shows this error: jQuery is not defined(no name) ()jScrollPane.js (line 94). Strangely when I run it on localhost it works in Firefox, but on the live site it doesn't. I'm really stuck, any help or ideas would be great. Thanks. Here is the JavaScript I'm using: <script type="text/javascript"
[jQuery] Using Toggle for Form hints?
Hi folks. I would like to make my forms a little more functional - by having some "instruction" text that can be toggled visible/invisible. - - - - - - - - - - - - - - - - - - - - - - - - - I have the following code; <script type="text/javascript"> $(document).ready(function(){ $('.noshow').hide(); $('a.toggle').click(function() { $(this).next('span').toggle('fast'); return false; } ); }); </script> ++++ <a href="#" class="toggle" title="Click for more information.">Details<span class="detailsimage"></span></a>
[jQuery] Extending jQuery
I want to learn the ins and outs of jQuery by writing a WYSIWYG editor using jQuery. I'm not sure where to start, though. I can't find a consistent way to extend jQuery. Different libraries do it in different ways. I asked about this once before a long time ago in 2006 on a grid control I created. http://www.mail-archive.com/discuss@jquery.com/msg09124.html Here is my thoughts on an API. I'd like to get your feedback. (The working name of my project is swimlane.) You can create a swimlane object
[jQuery] Flickering in fadeIn, fadeOut functions.
Hi.. I use this method to show the submenus of every button, here u can see a preview in this link http://64.224.178.181/2/home_page.htm anyway, ull notice how the flickering occurs if you move fast ! i set all the submenus with one comon class (buttons), and each submenu items, like for example all the ones under travel, will have an additional class called travel. and then each menu item hovered, will fadeOut all $(.buttons) and fadeIn $(.<it's own name>);... it works fine, but im always stuck
[jQuery] unbinding ajaxXXX events
i could not find any example doing this and digging thorugh the source i hit a dead end somewhere at jQuery.data($.fn, "events") is it possible to remove a ajaxXXX(send/start/success...) that is once bound ? (with regular unbind etc callbacks ?) mg
[jQuery] How to add unique options to select?
Hi, I have a form with a select element that contains province names. If I click a text, an Ajax call rertieves an XML string with all present provinces in the database.I loop over the nodes in the XML and append them to the <select> element. That works. Only, when I click a second time, all the provinces get appended to the select so I end up with duplicate items. So I want to check: if the <select> does _not_ contain an <option> element with the value I currently look at (in the XML node) add it,
Next Page