[jQuery] Removing elements
I have a quick, and stupid, question. When I use the remove() method, elements are removed from the DOM, but they still seem to be hanging around in memory. How do I completely destroy an element? Thanks, Larry
[jQuery] tablesorter: sorting every 2nd row
we have a table where every 2nd table-row provides some detailed information on the row above. structure: <table> <tbody> <tr><td>main content ...</td><td> ...</td></tr> <tr class="extended"><td>subcontent ...</tr> and so on ... </tbody> now, I´d like to sort the table without rearranging the tr's with the class extended. is this possible? if yes, how? another solution is to sort the tbodies, but I also don´t know how this should work. any help is much appreciated. thanks, patrick
[jQuery] tr not applying CSS
I have a table that displays n rows based on the records from the database. For a particular row that gets displayed n times, I have assigned a name to the row. The row already has some CSS applied to it. But I want that whenever I take the mouse over the row, the new CC should get applied and the on mouse out the old CSS should reapply. I tried the code as: $("tr[name='myRowName').hover( function() { $(this).addClass("newClass"); }, function() { $(this).removeClass("newClass");
[jQuery] Can UI Sortable create additional levels?
UI Sortable seems a great tool but to be sure it suits my purpose I need to know if it implements the possibility to create further levels, ie if an item is dropped over another item, it would be nested in that one. The demos I've seen don't work that way but it would be a pity (and even a bit absurd) if it couldn't be done. Thanks Nicolas
[jQuery] javascript function causes cluetip to stop working
hi all i'm trying to learn jquery and cluetip and have come across a problem where an extra line of jquery javascript causes cluetip to stop working eg it works if I write <script type="text/javascript"> $(document).ready(function() { $('a.player').cluetip(); }); </script> but if I write <script type="text/javascript"> $(document).ready(function() { $('a.player').cluetip(); try { $("form :input:first").focus(); } catch (exception) { } }); </script> cluetip stops working. There are no javascript errors
[jQuery] fadeTo refiering/flickering when hovering div's element
Hi Everyone, I'm pretty new to jQuery, and my JavaScript sills aren't very good to0, but they're not too bad either. I'm in need to fade a whole div, with couple of input fields, text and images inside it from 50% to 100% opacity. I used simple way to get it: $("div").mouseover( function() { $(this).fadeTo("slow", 1) } ); however this way i get annoying re-fade effect when i move mouse inside that div without leaving it: http://www.adpro.ee/temp/delme.html Is there any way around to make it work
[jQuery] Stupid little game :)
Hi, I did a small game (it was a test for a client), about 6kb of code. http://www.eyecon.ro/slotmachine/ Stefan
[jQuery] Create unique class for links inside the tabs?
Hi Bernd: Thanks for your great work. I'm new to CSS and jQuery, so forgive me if there is an obvious answer to this. I'm trying to replace the inside contents of a tab section with individual links. However, as soon as I throw the <a> tags on something, the link inherits the class of the tab section (with the gray BG and all). How can I inhibit this with link content inside the tabs? Thanks!
[jQuery] Looping ajax requests
Got a problem when looping ajax requests. I have probably made a mistake somewhere but I can't find it. dt=5; for (i=1;i<=dt;i++) { $.ajax({ type: "GET", url: "http://example.com/5740/"+i+"/page.html", dataType: "text", success: function(data){ alert(i); } })}; This alerts "5" 4 times. Interestingly, it correctly gets 4 pages: http://example.com/5740/1/page.html http://example.com/5740/2/page.html http://example.com/5740/3/page.html http://example.com/5740/4/page.html What is the solution? Thanks,
[jQuery] Release: Validation plugin 1.1.2
Hi, I've just release version 1.1.2 of the validation plugin. Hot from the changelog: * Replaced regex for URL method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/iri/ * Improved email method to better handle unicode characters * Fixed error container to hide when all elements are valid, not only on form submit * Fixed String.format to jQuery.format (moving into jQuery namespace) * Fixed accept method to accept both upper and lowercase extensions * Fixed
[jQuery] Displaying HTML via checkbox
I'm probably missing something very simple here... I have a checkbox with the ID of (#pkg). When checked it displays an HTML text field (see if statement). When unchecked, it goes away (look at the else statement) using CSS (display: none). The problem I'm running into, if I re-check the checkbox, it does nothing. It does not display the HTML text field. I would like to redisplay the HTML -- first part of the if statement. What am I doing wrong here? Any help would be great. Code is below. Thanks
[jQuery] trouble with jquery lightbox plugin
i am trying to work with the http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin the overall effect is working well but for some reason is is not showing any of the images. at the top of jquery.lightbox.js file there are some lines that let you configure the path to the images. i don't know if this path is supposed to be relative to the html file or to the js file. i tried both and still the images don't show. what am i missing here? -- View this message in context: http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14421282.html
[jQuery] Need help with birthdate validation
Hello, Awhile ago, I clumsily implemented Jorn's fantastic validation plugin to validate a birthday field. The implementation wasn't hard, but getting the page in general to work how I want is tricky. I'm wondering if anyone has an idea in how I might accomplish these goals: 1. Validate based on DROPDOWNS, not a text input (I tried text input and put clear "MM-DD-YYYY" tags, but people keep doing DD-MM which passes validation but often completely mangles the date due to things like 20-01-1981). So
[jQuery] Binding "this" inside anonymous functions
Hey, jQuery community. I've used MooTools for about a year now, and am experimenting with jQuery to see if I want to convert or not. So far it's great, and I especially enjoy how easy it is to "find things." Here's my first question, though, where MooTools offers a solution that I haven't found in jQuery. Hopefully someone here can help. Let's say I have an anonymous function as a callback. In the case of events, I know that the variable "this" will refer to the object which is being altered. So,
[jQuery] using .load to replace div contents
I'm doing some simple ajax using .load --- clicking on a table row loads some html from an external file into a div. My question - do I need to remove the contents of the div (#myWindow) before loading the new html, or does .load do this? $('.myTrigger).click(function(){ var wf = $(this).attr('id') var details = (wf + '.htm') $("#myWindow").load(details); }); <div class="myTrigger" id="thisOne">Click here</div> <div id="myWindow"> <div>some placeholder content</div> <div>some more placeholder
[jQuery] Interface
Hi Folks sorry if this has been repeated :( but i cant seem to find a specific thread that actually resolves the issue. I am wanting to use the window/ dialog in Interface. Using Interface with JQuery 1.2 seems to come up with problems . The errors i get in when i invoke the window via Firebug is ** jquery.dequeue is not a function! ** followed by a spate of circulatory errors spun off from 'this.options.curAnim has no properties' when i try to minimise or resize the window As it works brilliantly
[jQuery] Sliding Panels Attempt
hey peoples, i suck at javascript, but i am attempting to create a panel slider, similar to what you see at yootheme.com. heres a link to what i have so far <a href="http://http://cyberdesignworks.com.au/labs/panel_slider/ panel_slider.html">http://cyberdesignworks.com.au/labs/panel_slider/ panel_slider.html</a> it needs some serious looking into. i am getting lag in the animation when i mouseover the panels, is there a way to optimise this and anything else i am doing incorrectly? maybe there is
[jQuery] tablesorter - hidden TD's
Does anyone know if it's possible to sort a table, using tablesorter, based on the content inside hidden TD's. I'm trying to write a parser that will make date format dd-mon-yyyy read as dd/mm/yyyy and I'm running out of viable options. If anyone knows if this can be done, I'd sure appreciate a pointer or two. Thanks.
[jQuery] OT: Nashville, TN Flex User Group presents Flex 3 and AIR pre-release tour with Ben Forta
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=198242118-19122007><FONT face=Arial size=2>For any of you that might live in, or around Nashville, TN, the Nashville Flex User Group is hosting the upcoming Flex 3 and AIR pre-release tour with Adobe's<SPAN class=501003018-19122007><FONT color=#0000ff> </FONT></SPAN>Ben
[jQuery] .GetJSON, retrieve a list of key/value from JSON object?
Hi, I have no problem using jSON so far except that I am looking for a way to "browse" the items sent from the server to the client in such fashion: foreach key (keys myJSONobject) { var value = (myJSONobject[keys]) ; } Any hint? Thanks!
[jQuery] Converting XML to a string with jQuery
Hello, I have some data in XML representation that I will need to convert to a string. I tried using XMLSerializer - works great in Firefox, but not in IE: var xmlString = (new XMLSerializer()).serializeToString(xmlData); Is there any way to convert XML to its string representation with jQuery? Or other ways to accomplish this task? Thank you! Steffen
[jQuery] my plugin not working
I am working on an ajaxified paginator plugin using jquery. here is my code: $.paginator = function(options) { this.options = { 'url': null, 'replace_id': null, 'total_items': 0, 'items_per_page': 10, 'total_pages': 0, 'current_page': 1, 'new_page': 1, 'navigator_type': 'numbers' }; $.extend(this.options, options); this.options.total_pages = this.options.total_items / this.options.items_per_page; this.go_to_page(this.options.current_page);
[jQuery] $(document).ready same es Dean Edwards solution
Hello, this is my first post. I'm working with jQuery since a month and I have one problem. The $ (document).ready event doesn't work properly, manly I get the fouc in IE and Opera. As far as I have red the Dean Edwards solution (http:// dean.edwards.name/weblog/2006/06/again/) is implemented in jQuery ($ (document).ready ). For now I'm fixing this issue loading a css dinamically that contains a class to hide the elements that trigger fouc. My main question is, does the $(document).ready include
[jQuery] Autocomplete: matching on only part of the displayed text rather than entire row
I'm working with the jQuery autocomplete plug-in and am trying to implement a search box similar to the "Multiple Birds" input on the following example site: http://dev.jquery.com/view/trunk/plugins/autocomplete/ I haven't been able to figure out how the matching logic is applied only to the bird's name rather than to the entire text string (which also includes the id, or taxonomic name of the bird). For example: Search for "cap" returns: Blackcap (id: Sylvia atricapilla) Search for "syl" returns:
[jQuery] Is JQGrid available
Just started to use jquery and am very impressed. I wanted to look at the jqgrid but the trirand site seems to no longer exist or is down. Is it still available. Thanks Bill
[jQuery] Problem with IE6 - a "click" event doesn't work
Hello, I'm having trouble to make IE accept a "click" event while everythink works fine with Mozilla. Here's a sample of my code : $('#add').click(function(){ $('#spinner').show(); $('#dernier_enregistrement').hide(1000); var type='add'; $('#output1').load('post_form.php', {type:type}, function(){ $('#myForm').ajaxForm(options); $('#myForm').show(); $('#spinner').hide(); }); return false; }); Do you have any idea
[jQuery] Prev Next Arrow Images are not showing in Mozilla Firefox 2.0
<div>Hi All,</div> <div> </div> <div>I've also posted a topic on the group page, but i figured it wouldn't hurt to send an email out as well.</div> <div> </div> <div>I managed to get the jcarousel to work in IE with no problems i did however needed to make some adjustments when it came to Mozilla Firefox.</div> <div> </div> <div>The only problem i got left with is that for some odd reason unknown to me the two arrow images for prev and next are not showing.</div> <div> </div> <div>Please does someone
[jQuery] jquery not working in IE
This particular code in not work IE 6/7 but works in firefox. Can't get a demo up right now but any suggestions are welcomed. <script type="text/javascript"> function ie_fix() { //update filters $('#select_destination_filter').change(function() { //select values var destination_select = $('#destination_filter').val(); var hotel_select = $('#hotel_filter').val(); var travel_week_select = $('#travel_week_filter').val(); $('#select_travel_week_filter').empty();
[jQuery] Cycle plugin and manually generated paging links?
I'm looking to use the excellent Cycle plugin for a product page I'm building. I tried out the pager demo (http://www.malsup.com/jquery/ cycle/int2.html), but had some issues getting it working. I'd like to generate the links myself as I'd like to put some custom title attributes on each link. Is this possible? How do I go about it?
[jQuery] JCarousel prev and next images problem
Hi All, I've mannaged to get it to work perfectly in IE but had to make minor adjustments for Mozilla Fireforx 2.0.0.11. The only problem i still encounter is that for some reason the arrow images for the next and previous do not show. Does anyone have any idea on what can it be and how can solve it? Ciao, Tal.
Events don't work after load content using $.get
Hi everyone, I have an event that is not being listened and I can't figure out why. The thing is that everything is working fine while all my html code is static, but as soon as I modified it with some data pulled from the db, the click() events for the radio buttons doesn't trigger the actions any more. What I'm doing wrong? I leave you part of the code, so you have a better understanding. Thanks The jquery part -------------------- ... // Styles section - Effects $("input[@name='style']").click(function(e){
[jQuery] serializeArray problem with IE7
Hi, I have a following problem, FF2 works fine, IE not: I have a form that is written dynamically on page, by dynamically I mean that form html comes from ajax response like this: function getForm() { $.ajax({ url: actionurl, data: data, success: function(html){ $("#editDiv").empty(); $("#editDiv").html(html); }, type:"POST", cache:false }); return
[jQuery] XUL jQuery-1.2.1 html manipulation issue
jQuery seems to have an issue with manipulating html when in a XUL document. The following code ( yes, the jquery is loaded, hence the alert(jQuery)) crashes somewhere (there is no easy way of including firebug in XUL) when processing the .html or .append functions and blanks out the element. It should change from FOOOOOO to BAAAAAAR when the button is clicked. But as it is, it only clears the target out. This sucks because I would really like to use jQuery in my XUL app for ajax and ui manipulation.
[jQuery] Superfish submenus flowing outside of browser window
Can anyone help me with the Superfish plugin. I absolutely love the way it works. I just have one issue with the submenu appearing outside the browser window. Since my menu is right aligned, and since the submenu does not match the width of the top level menu (because I wanted to keep the top menu tight against the width of the text in each menu link). Here's a screenshot link: http://dev.pureagent.net/overflow_issue.png Thanks, Luke Brookhart
[jQuery] Splitting long lists
I don't know how useful this will be to people, but since I sort of hacked my around it, maybe it'll help someone else. Sorry for the messy code. Sometimes I get long lists foisted upon me whose sole purpose I think are to uglify my nice neat layout. So I started looking in to ways to display a two-column list to cut down on the huge blank space left on the right: http://www.alistapart.com/articles/layeredfudge/ Marking up more than one list using this solution seemed like an awful lot of work, and
[jQuery] passing cookies in drupal modules
I'm using jquery.cookie.js with Drupal 5.5, and am trying to pass a value between some jquery code etween a module I wrote and the rest of the site. I found I could set the cookie in my module, and it would be set correctly the next time I entered the module. But from rest of the site, I don't see the cookie. If I do a dump of my current cookie values when I enter the module, I'm seeing: has_js 1 SESSee9fee6bd0ea8e89bb7b0189ed70ef07 8b8df443d802524079d04a7d391dd278 collapsiblock-block-menu-87 0 collapsiblock-block-menu-97
[jQuery] New Plugin - Table Scroller
This scrolls the tbody part of a table. To use it you have to set up some CSS for the scroll bar and buttons and pass it the size of the scrolled region. There is a simple example at http://ajaxtop.sourceforge.net/tablescroller/example1.html. Any feedback would be appreciated.
[jQuery] IE Problem
I'm having a problem with the jquery.fn.offset = function() in jquery-1.2.1.js using IE 6.0. In trying to step through the code in Visual Studio (not easy), the debugger kept throwing me out of the code at the very top of the function. I finally figured out that in the line var left = 0, top = 0, elem = this[0], results; "this[0]" evaluates to "undefined." I am new to jquery, so I could be doing something wrong, but the code seems to work fine in FireFox. Anyone have any clue what could be causing
[jQuery] Access function outside plugin in jquery.
I need acceess function outside plugin in jquery. How to its possible? $.JQuery.fn.Plugin.function_plugin(); I need help
[jQuery] tricky traversing question
hello, i'm facing a complex traversing question, can you help? I need to know the number of a specific element with class="column" that are BEFORE my selected element. So, say i have this html (see below) and i am in this selection: $('#dsViewport h3').each(function(index){ ... $amountOfColumnsBefore = $(this).prev(".ds-column").length; $url = $(this).href("#"+$amountOfColumnsBefore); }); My method does not work: $amountOfColumnsBefore = $(this).prevAll(".ds- column").length; Here is my html. <div
Next Page