[jQuery] Zebra table with hidden rows
I'm using the following code to style a table: $("table.xy tr:nth-child(odd)").addClass("odd"); But before doing that I'm hiding some rows: $("tr#xy").hide(); Now the zebra pattern isn't working any more (it's an abnormal zebra), of course. How to apply the zebra-stuff just to the visible rows? -- View this message in context: http://www.nabble.com/Zebra-table-with-hidden-rows-tf4030892s15494.html#a11450217 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] mootools accordion, all items closed at page load?
Hi! I need to use mootools accordion, but just with 1 item... so, it would be nice to have it closed when pages loads... Do you have any idea about how to achieve this? (I am stupid using javascript... :( ) TIA, and sorry for the bad english :) luciano
[jQuery] Problem with a possible race condition
Hi folks, I'm having a problem that I hope someone out here can help me solve. I'm using thickbox to popup a dialog that asks a user for one piece of information in a text box. I want to set focus to that text box once the dialog is on screen, but I seem to be running into a race condition (*I think*). As the dialog is popping up I get an error that says focus cannot be set because the item is either invisible or not of the type that accepts focus. I've got the instruction in the $(function(){});
[jQuery] XML parsing problem
Hi everyone, I'm trying to build a tempalte engine based on jQuery. XML grammer is chosen as the flow controlling work. Naturally I want to use jQuery to parse XML doc, but the result is disappointing. For example: $('<for> <if><a/><img/></if><while/><div><img/></div></for>') it returns: [for, p, while, div] I went back to the source code and found jQuery uses regex to do the parsing work. I understand it's good for high speed breadth first scaning. My argument is that if we can use DOMParser in
[jQuery] question about Firebug...
<!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.16441" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=937055416-05072007><FONT face=Arial size=2>I see that FB has a console...is it possible to print variables to this console as my JS code progresses?</FONT></SPAN></DIV> <DIV> </DIV> <DIV align=left><SPAN style="FONT-SIZE: 14px"><B><FONT face="Century Gothic"> <DIV align=left><SPAN
[jQuery] Multiple-select-box: set multiple to false
I'm trying to set a multiple-select-box to multiple=false, but neither $("select[@name=field4]").multiple = false; nor $("select[@name=field4]").attr('multiple',''); nor $("select[@name=field4]").attr('multiple','false'); nor $("select[@name=field4]").removeAttr('multiple'); works. Has anybody an idea? -- View this message in context: http://www.nabble.com/Multiple-select-box%3A-set-multiple-to-false-tf4030118s15494.html#a11447655 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] attaching events to large table
I have a table that has 1,000 rows and I'm trying to bind a function to the click event of each row. This can be quite slow the way I'm currently doing it. Here is an example my my current process: this.find(settings.selector).click(function(){selectRow(this);}); function selectRow(row){ if(row && !jQuery(row).is("."+settings.selectedClass)){ table.find(settings.selector +"."+settings.selectedClass).removeClass(settings.selectedClass); jQuery(row).addClass(settings.selectedClass);
[jQuery] Need help with JQuery + Prototype integration
Greetings; I am having a bit of trouble getting JQuery 1.1.2 and Prototype 1.5.0 to play nice with each other. Here is my page (abbreviated) and script with JQuery alone. HTML: <html> <head> ... <script language="JavaScript" type="text/javascript" src="/design/en/ javascript/finest200706/jquery-latest.js"></script> <script> jQuery.noConflict(); </script> </head> <body> ... <div id="mainNav"> <ul id="menu"> <li> <a href="/solutions">Solutions</a> <ul> <li> <a class="" href="/solutions/your_needs">Your
[jQuery] Problem with .text() ??
Live Example: http://rcs-comp.com/code_examples/text_function_bug/ I have some code that has a three column table in it. When the user updates some number values in one of the two columns, I have some JS that sums those columns and updates the value in the third column with that info. When updating the third column, which his a TD element, I tried to use text() to do it: var total = col1Total + col2Total; $('#wi_medical_total').text(total); However, that did not work because the text in the cell
[jQuery] Form submit problem when dealing with more than 1 form
http://groups.google.com/group/jquery-en/browse_thread/thread/0d8bdb224df6ff02 So, is no one interested in this 2 forms on one page thing?
[jQuery] Using part of JQuery
Hi all, I've been moving from Prototype to jQuery and absolutely love it. Thanks a lot for all the excellent work guys! I just want to ask if I can build my custom jQuery js file for my specific need just like how mootools allow developer to select and download certain modules. I know that jQuery size is already very small but it is still quite large in my current project (The size of everything after being gzipped is around 8kb). I just need to use jQuery's selector and element/css manipulation
[jQuery] Setting Default Submit Button For Forms
Have you ever seen this done with an entire form, instead of just a single input element? I would like to be able to do something like: $ ('#my_form').defaultButton('#btn_submit').cancelButton('#btn_cancel'); I found a plugin on the JQuery list that did this for an input element, but not the whole form. The only other option I could think of would be to create a plug-in that did a DOM traversal through the form, looking for INPUT elements, and then adding some kind of key binding on each element
[jQuery] tabs plugin help
Hi everybody I'm using Klaus' tabs plugin and was wondering how to return or pull out information like attribute values from the clicked tab. Is anything like this possible? $("#mycontainer").tabs({ onClick: myFunction(args) }); Sorry if that's unclear. I can think of a slightly longer way to do things by finding the currently selected tab but was hoping there's a more elegant solution. Nice plugin by the way Klaus! Rob
[jQuery] Is it possible to show elements that is not CSS display:none;?
Hi all! Is it possible to show elements that is not CSS display:none;? In my case I'm showing some pictures and I don't like that the browser only downloads the pictures when I show them through jQuery. I would prefer if the browser downloaded all the pictures and then I would show them though jQuery. I know I can do it by changing the CSS instead of using show(), animate, slideDown etc. But I like the easing effect and I'm not sure of to achieve that by setting css. Any ideas to a workaround or
[jQuery] Opposite of .append
Hi, guys I tried to use the .append function on a mouseover event, but I can't find a way to un-append the text I added on mouseout. Am I missing something obvious? Thx Arno
jQuery 1.1.3.1
Hi Everyone - This is a quick bug fix release for jQuery 1.1.3. About six major issues popped up after the 1.1.3 release that we deemed important enough to resolve immediately, with a follow-up release. The full list of resolved issues can be found here: http://dev.jquery.com/report/16 You can download the release from the jQuery Google Code page: Uncompressed: http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.1.3.1.js Compressed: http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.1.3.1.pack.js
[jQuery] Websnapr using jQuery
A long shot. Is there a plugin that can put bubbles on a page and position them correctly, based on the mouse position? Like the Websnapr preview service? <a href="http://www.websnapr.com/previewbubble/">http://www.websnapr.com/previewbubble/ </a> All I've found is the link-preview: <a href="http://www.frequency-decoder.com/2006/10/25/link-preview-v2/">http://www.frequency-decoder.com/2006/10/25/link-preview-v2/</a> But it's not based on jQuery.
[jQuery] Basic Example not working
I have the following code in my file, the src for the jquery file is correct. I view the page in the browser and it just goes to the jQuery page, no alert box. Any idea why this is happening? <html> <head> <script type="text/javascript" src="jquery-1.1.3.js"></script> <script type="text/javascript"> $("a").click(function(){ alert("ahh"); return false; }); </script> </head> <body> <a href="http://jquery.com/">jQuery</a> </body> </html>
[jQuery] Syntax for selecting a form element named 'foo[0]'?
Greetings; I have a form on my page that contains two select fields. They are setup like this: <form id="myForm"> <select onchange="_hs_swapOptions(this.form, 'categoryID', 0);" name="categoryID[0]"> <option value="12">hello</option> <option value="11">world</option> </select> <select name="categoryID[1]"> <option value="22">foo</option> <option value="21">bar</option> </select> </form> I've tried various permutations to be able to grab the values from the two selects with no success.
[jQuery] Any official documentation for selectors extension?
Hello, Following yesterday's discussion about my :containsExactly() filter, I would like to know if there is any official documentation about selectors extension. I found this e-mail in the archives: <http://www.mail-archive.com/discuss@jquery.com/msg15863.html> This is the interesting extract: "You can use the variables 'a' for the element being considered, 'm [3]' for whatever was in parentheses in the selector (as in the '2' in 'nth(2)' ), 'i' for the index of the element being considered, and
[jQuery] opacity in IE6.0 not works with jquery-1.1.3
following is a simple, the opacity does not works in IE6.0. Is this a bug, or should I use other expressions? <html> <head> <script type="text/javascript" src="/js/jquery/jquery-1.1.3.js"></script> <!--<script type="text/javascript" src="/js/jquery/jquery-1.1.2.js"></script>--><!-- this works--> <script> function test(){ $("<div>").css({ position: "absolute", top: 0, left: 0, opacity: 0.5, width: 100, height: 100, backgroundColor: "red"}) .appendTo(document.body).text("hihi") } $(test) </script>
[jQuery] PACKER3 issues
Dear list, this has been fixed in latest jquery svn, but still need fixing in the form and metadata plugins. - eval("data = " + data); + data = eval("(" + data + ")"); related to: Ticket #1298 http://dev.jquery.com/ticket/1298 I've had quite some code break using packer3 shrink option, watch out.. Thank you and have a great day! -will
[jQuery] Toggle element based on value
Hi, How do I toggle a div based on the div's value? Example: The site I am working on has multiple blog posts per page. Under each post is a menu. One of the menu items is for emailing the story. Under this there is a div that will display the email form. This div is hidden by default. The link is as follows: # id ?>">Open Email Interface This div is: <div class = "newsitememail" value = "<?php echo $stroy->id ?>"> My logic so far has been to grab the link's id using jquery and then display the appropriate
[jQuery] How do I return false if no elements found using XPath?
I am trying to find a particular parentElement without knowing the ID. If not I need to find a different element. SO: var parentXpath = "div[@name=contentElement][@id="+obj.id+"]/.. [@name=contentElement]"; if (*noobjectfound*) { find new object } How can I do this?
[jQuery] Problem with WebTrends JS + jQuery in IE 6
Hi all, I have a client that is running WebTrends for a large, enterprise web site. The way WebTrends works is very simple, and similar to many other user-tracking software. There is a chunk of WebTrends JavaScript code (they call it the "SmartSource Data Collector Script"), embedded in the bottom of every page's source code. This script basically just gathers several environment variables and then appends a new <img /> tag to the DOM. The source (src) for the image tag is loaded from a separate
[jQuery] jQuery 1.2 functionality
Hi all! I like jQuery a lot and have used it in couple projects now. But one thing I really don't get is the "slideUp" and "slideDown" functions. Why can't I decide which way the animation goes?? I really think they (the functions) should be more generic. While browsing the road map for jQuery 1.2 I saw the Relative Animations section which is exactly what I want. It would be obvious if slideUp/slideDown uses this new method but wouldn't be nice if there where a shorthand to achieve this? I propose
[jQuery] Can't get hover event to work correctly in IE6
Hey there. I've looked around a bit to see if anybody was having a similar problem, but I couldn't find anything useful. I'm a part-time developer and I don't spend too much time in javascript, much less jquery (I'm a Prototype refugee), so I hope this is my fault and easily fixable. Basically, I have been trying to build out a animated drop-down menu and I have managed to make it work fairly reliably in FF and Safari, but I can't get IE6 to act properly with the jquery .hover event. The menu structure
[jQuery] How do I return false if no elements found using XPath?
var parentDiv = $(div[@name=contentElement][@id="+obj.id+"]/.. [@name=contentElement]); if (!parentDiv) {
[jQuery] can't get hoverTable to work
Could someone look at http://monday6o.org/assign.php and tell me what I have wrong? There is a pause when the page loads so I know the script runs but the rows don't get highlighted when hovered over. In the document <head> I have: <script type="text/javascript" src="/js/jquery.js"></script> <script type="text/javascript" src="/js/jquery.tableHover.js"></script> <script type="text/javascript" src="/js/m6o.js"></script> <script type="text/javascript"> $(document).ready(function() { $('table.ruler').tableHover({})
[jQuery] JQuery Taconite and IE7
I'm still very new at jQuery, but I've been having great success with the jQuery Taconite plugin -- at least until users tried using it on IE instead of Firefox or Safari. The problem I'm having is that the second time I try calling Taconite, IE displays the response page from the server, rather than properly parsing the Taconite commands into the current page. Here's a pared down version of what I'm doing: <script type="text/javascript"> function reorderprod(turl) { $.taconite.debug = true;
[jQuery] library of common needed functions
before using prototype or such frameworks (too big!) are there any other "small" libs with common functions (extending String, Array ... ) like escapeHTML() etc. if i would have to use prototype: i tried this simple thing: <script type="text/javascript" src="prototype/prototype-1.5.1.1.js"></script> <script type="text/javascript" src="jquery-1.1.2.js"></script> <script type="text/javascript"> /**/ $j = jQuery.noConflict(); $j(document).ready(function(){ console.info (String("foo").escapeHTML());
[jQuery] Tooltop opacity in IE
Hi folks, I've some trouble with opacity in IE in relation to the tooltip plugin. So far the plugin used opacity only via stylesheets. The idea to set the opacity via jQuery isn't that non-obvious, but so far I never tried it. Images explain more then words, so please just take a look with IE6: http://fuzz.bassistance.de/tooltip/ -- Jörn Zaefferer http://bassistance.de
[jQuery] jqDnR + jqModal -- dragging causes jump in IE & Safari
I encountered a bug when implementing dragging in a jqModal window via jqDnR. In IE6, IE7 and Safari 2, the modal window would initially jump to the left, partially off screen when starting to drag. This would only happen the first time I tried to drag. After tearing my page down to the basics, I appears to be related to the positioning using percentages (e.g. top: 17%;) I went back to the jqModal download & demo page, and sure enough, the bug is there. Go to example 3A http://dev.iceburg.net/jquery/jqModal/
[jQuery] .change for created select menu
Hi, I hope this isn't a stupid question: I am trying to have a dropdown menu that will create a new dropdown when it's changed. That part works. Then, the second dropdown will create a third dropdown whenever it is changed. That part doesn't work right. $(document).ready(function(){ $('#taglist1').change(function(){ // detect change in menu 1 $('#tagline2').html('<select id = "taglist2"></ select>').addClass('adddrop'); $('#taglist2').addOption('1', 'one'); $('#taglist2').addOption('2', 'two'); //
[jQuery] text() concatenation
Is there optimal way to concatenate separate text nodes returned by text() for several nodes using particular character/string?I'm interested in some kind of text()/js string.join(",") combination,it would be nice to have array of text node values instead of preconcatenated ones from text() function. Thanks.
[jQuery] encoding(charset) problem
Hi, I'm using jQuery 1.1.3 in my AJAX-based game viewer. I download game data through ajax calls. Game data are mostly encoded in gb2312. I currently have a problem: if I don't change the server side setting to send data in gb2312 format, I got unreadable characters on client side. Is it possible to set encoding/charset when I make an ajax call? The reason I don't like to change server side setting is I want to minimize the effort of installing my application to any web site. For those who are interested,
[jQuery] encoding(charset) problem
Hi, I'm using jQuery 1.1.3 in my AJAX-based game viewer. I download game data through ajax calls. Game data are mostly encoded in gb2312. I currently have a problem: if I don't change the server side setting to send data in gb2312 format, I got unreadable characters on client side. Is it possible to set encoding/charset when I make an ajax call? The reason I don't like to change server side setting is I want to minimize the effort of installing my application to any web site. For those who are interested,
[jQuery] encoding(charset) problem
Hi, I'm using jQuery 1.1.3 in my AJAX-based game viewer. I download game data through ajax calls. Game data are mostly encoded in gb2312. I currently have a problem: if I don't change the server side setting to send data in gb2312 format, I got unreadable characters on client side. Is it possible to set encoding/charset when I make an ajax call? The reason I don't like to change server side setting is I want to minimize the effort of installing my application to any web site. For those who are interested,
[jQuery] Thickbox and AjaxSubmit() problem.... help please ;)
hey im trying to integrate thickbox with submit, im trying to do that once user is click on a button , its opens a thickbox with form, when user fill out the form its vaildate it (with jquery vaildiaton plugin) and then submit it to other page and check if everything is ok (server side php) ive tried to work in 2 methods: 1. iframe: the problem is that once i run this method its not able to run any javascripts and eval() them... 2. ajax: the problem is that once i submit the form, its redirect me
[jQuery] OT: iPhone Offical Docs
Ajaxian's been really kicking butt lately in terms of iPhone news and today they continue with another comprehensive posting about iPhone web development tips. http://ajaxian.com/archives/iphone-web-development-tips-and-official-documentation-released Here are some interesting tidbits from the posting: "How to interact with the apps from JavaScript * Phone call: <a href="tel:1-408-555-5555">1-408-555-5555</a> * Mail: <a href="mailto:frank@wwdcdemo.example.com">John Frank</a> * Google Maps: <a href="http://maps.google.com/maps?q=cupertino">Cupertino</a>"
Next Page