[jQuery] Bug when overriding links within specific context, using jQuery 1.1.*?
Hi everyone, I have got some trouble getting this snippet of code working in newer versions of jQuery: $(document).ready(function(){ $("p").each(function(){ $(this).load("ajax.php", function(context){ $("a",context).click(function(){ alert("The link is overridden."); return false; }); }); }); }); ajax.asp contains the link, and the site itself contains a . The code above for overriding a link only works well in jQuery
[jQuery] Conditional validation - validator plugin.
I need a way to make a field required based on some other condition. Consider the case of a multi-select for "Job Type": Baker Janitor Fisherman ... Other (please describe) If someone selects "other" the description field should be required, otherwise it's hidden. {required:function(){return some code that returns true or false}} should work. On that note, what happens if you have spaces in the function ( and you must in most cases ) and this metadata block resides in a class attribute? Expandos
[jQuery] jcarousel issue
I am trying to implement a jcarousel element on a page that is not yet public. The example I'm using is the one with dynamic content loading via ajax - http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html . My example_dynamic_ajax.txt file looks like this: http://www.liniverse.com/see.jpg;see| http://www.liniverse.com/me.jpg;me| http://www.liniverse.com/now.jpg;now| The issue is when the page loads, the "alt" text is displayed in the carousel rather than the images. Is this an issue familiar
[jQuery] jqUploader: flash-based file upload
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=671442402-22022007><FONT face=Arial size=2>Hello,</FONT></SPAN></DIV> <DIV><SPAN class=671442402-22022007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=671442402-22022007><FONT face=Arial size=2>my Plugin replacing file input fields with a richer Flash based
[jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?
hey, i got the following code (i fixed the ie6 bugs and stuff) now i need to figure out how can i assign the div the shows errors in each input? i saw the demos but the problem is that i want to control on each div position with my css.. .is that possible ? or anyone can shows me how to do it in diffrent way that i will able to control the positions on each error div? (i mean the "<div id="password-errordiv">please enter password</div>" divs'...) ill be glad if someone will paste me a demo into this
[jQuery] What is the status on the Ext port?
I, like probably everyone else on this list, is anxiously awaiting the port of EXT to jQuery. Is there a timeline for this? I am about ready to rebuild one of my clients sites and would very much like to use the ext components as a base. -- View this message in context: http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How to access contents of frames/iframes with jQuery?
Hi again! (Second question in as many days... I guess I'm the overeager noob. :) ) Last night I watched John Resig's screencast "Hacking Digg with Firebug and jQuery" (<span style="font-style: italic;"> highly</span> recommended, BTW: <a href="http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/ </a> ) and I immediately went to one of my favorite webapps and
[jQuery] finding closest ancestor matching a pattern
Hi, I am trying to find the closest ancestor whose id begins with "childrenTOC". I am invoking the function within the onclick handler of the element with class "toggleStrike". Previously, I was given this code $(this).parents("div[@id^=childrenTOCItem]"); but that seems to return an arrray of elements, and I just want the closest one. Here is the HTML in question ... <div id="childrenTOC10" style="display:block"> <div id="toc11" class="tocItem10-0" style="display:block; margin-left:10px">
[jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?
This is more philosophical than anything, but I was just looking over the metadata, metaobjects and validation plugin and I keep coming back to a question of what is the least of all the evils. -- If I add metadata to a "class" attribute, I risk messing with CSS - classes are for styles. -- If I put metadata in a script tag, it adds weight to the page and the markup is not as clean. -- If I use metaobjects, the resulting document is XHTML compliant but there is a lot of extra coding involved and
[jQuery] Parent and Single Parent Element Selection
Morning, I have a question for the jquery group. My question is - what's the best way to get a single parent element of the current object. Right now I have an html table with multiple rows. In the first TD of each row I have a select list (a dropdown). I have a select() event attached to the option list and when the user selects an option the background color for that row (TR) is changed. (well, actually all TR backgrounds are changing right now that's why I'm writing everyone). So, the only problem
[jQuery] [jQuery date picker]How to keep the input's original length
<style> .data-picker{width:100%;} </style> <table width=100%><tr><td><input class=data-picker></input></td></tr></table> the input.data-picker will be 100%, when I use the jQuery date picker plugin,how to keep the (input.data-picker+a.data-picker) still 100%? ps:I don't want set start date and end date,I want have the "next" and "prev" always,How to do it ? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Slideup/Slidedown issues in IE7
Working on a json/jqpie auto complete sample http://projects.cyberlot.net/jqpie/examples/new.html jQuery 1.1.2 line 2206 Could not get the display property If I change from using Slideup/Slidedown as effect to just hide everything works fine. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] ISO docs for $.fn ?
Hi. I'm just learning about jQuery and finding my way around its documentation. I have not been able to find any documentation on $.fn. In fact in some of the rest of the documentation (e.g. the example code for $.extend given at <font face="Helvetica" size="3"><span style="font-size: 12px;"><a href="http://visualjquery.com/1.1.1.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://visualjquery.com/1.1.1.html</a>, $.fn (or rather jQuery.fn ) without explanation. Actually,
[jQuery] jquery flash sIFR fla file
I am playing around with the flash plugin for jquery trying to get the sIFR woking within a site. I have downloaded the fla file but it does not open in my flash 7 <a href="http://jquery.lukelutman.com/plugins/flash/jfr.fla"> http://jquery.lukelutman.com/plugins/flash/jfr.fla</a> I was hoping that either Luke or someone might be able either send me a fla (that works with flash mx 2004 off list) or provide some instruction on how to customise the sIFR 2 flash files. thanks - S _______________________________________________
[jQuery] Animated More Info.
Take a look how i solve the problem: <script type="text/javascript" src="jquery/jquery.js"></script> <script> $(".name").click(function(){ theParent = this.parentNode; $(".moreinfo", theParent).animate({ height:'toggle'}, "fast"); $(".moreinfo", theParent).load('moreinfo.html'); }); </script> <div id="company-1" class="company"> <h2 class="name">Some Company</h2> <p class="moreinfo">Something about the company </div> <div id="company-2" class="company"> <h2 class="name">Other
[jQuery] onClickOut?
Is there some way of making a bind function so that, one you click away from an element (say drop down menu) it disapears. So say i've clicked a button and a menus poped up, i then taken a look at the menu and i dont need it again, so i click on some other part of the page and the menu hides it self again. Any ideas? -- View this message in context: http://www.nabble.com/onClickOut--tf3341987.html#a9294608 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________
[jQuery] iterating over child elements
Hi, If I find a DIV, through a call var parentDiv = $(this).parents("div:first"); How do I iterate over the child elements of what I found? Better yet, is there a way to print out the child elements and their ID's in one fell swoop? Thanks, - Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Selecting PARENT DIV
How could I get the ID from a parent div of my element? I think that will be the shortest path to do what i need, as described bellow: Example: <div id="1" class="company"> <div class="name">Some Company</div> <div class="moreinfo">Something about the company</div> </div> <div id="2" class="company"> <div class="name">Other Company</div> <div class="moreinfo">Something about the other company</div> </div> I'm trying to do a company list of my city. The ".moreinfo" will be showed when clicked into
[jQuery] onclick functionality
Thanks Karl, that worked perfectly! Cheers, Stella _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] onclick functionality
Hi, I'm new to jQuery so please bear with me if this is a stupid question. I have gone through the tutorials on the site by the way, I just haven't found a solution to it yet. I have a page that is created on the fly using php. On the page there are a variable number of question-answer pairs. Each question and answer is in their own div and have their own unique ids. Using the ready function I've set each answer to be hidden - this was simple because each answer div has the same class. When
[jQuery] $(node).hasClass(...) function
Hi all, I was wondering if somebody would be interested in a hasClass(...) function for jQuery. I would definitely find it useful, and am willing to contribute it. -- Sébastien _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Charting or plotting coming?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] A newbie question abotu jCarousel+jQuery
Hi; I am new in jQuery and also not well in JavaScript enough... I have been developing a modified version of jCarousel plugin of jQuery... I try to tell the problem with code: function loadItemHandler(carousel, start, last, available) { if (available) { // Trigger loaded carousel.loaded(); return; } var cr = carousel; var cid = ''; $("#lin").hover(function() { jQuery(this).css({color:"red",cursor:"pointer"}); }, function() { jQuery(this).css({color:"green",cursor:"pointer"}); } ); $("#lin").click(
[jQuery] How to find some consequent elements
I need to find some consequent elements of one type from some point in DOM.... For example, I have: <div id="start">...</div><input id="id1"/><input id="id2"/><input id="idN"/><div>xxxx</div><input id="out"/> I need to find all inputs (from 1 to N) and not to find input with id="out" if I use $("#start").siblings("input") I will find all inputs including input with id="out" I do not know Id or class of this "wrong"input - so I cannot filter it I need to find ONLY consequent elements of one type...
[jQuery] jQuery Tags Autocomplete
I have a table with tags. Now I downloaded the autocomplete from jQuery plugin Modified Auto-complete by Anjesh Tuladhar, http://just-tech.blogspot.com/2006/12/jquery-tweaking-auto-complete-plugin.html. But I don't understand how to connect these two. First, I have retrieved tags from the table and put them in the list. Now how do I pass this to autocomplete. I am new to javaScript. Thank you. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Packing script
Hello, Maybe off, sorry. I made a little script, and I like to pack it. I try to use the js.jar what is in the svn version of jquery. I try with the next command: java -jar ./build/js.jar ./build/build/pack.js szamolo.js ./szamolo.pack.js But, when I like to use the szamolo.pack.js instead of szamolo.js I get the following error: missing ; before statement Before packing, I put semicolon after every line. How can I pack my script? -- Ámon Tamás http://linkfelho.amon.hu _______________________________________________
[jQuery] got troubled returning combined data: html+javascript
Hi, guys! I've got in 1.html something about $(document).ready(function() { var h = $.ajax({url: "test.html",async: false,dataType:'html'}).responseText; $('body').append(h); });<br clear="all"> test.html contains smth about that Test data <script type="text/javascript"> /*<![CDATA[*/ alert('test'); /*]]>*/ </script> The trouble is: <span style="font-weight: bold;">in firefox returned script <span style="text-decoration: underline;">alerts</span> twice:</span> first on return second on
[jQuery] Some info on the two Require plugins?
There are two Require plugins in the wiki: <a href="http://dev.jquery.com/wiki/Plugins/require">http://dev.jquery.com/wiki/Plugins/require</a> --by Jose Paris <a href="http://dev.jquery.com/wiki/Plugins/requirex"> http://dev.jquery.com/wiki/Plugins/requirex</a> --by Mohd Khairi Lamsah and I'm trying to figure out which is better, if at all. The only real difference I can detect is that Mohd's explicity says it can load plugins in a specified sequence, and with a single statement, whereas Jose's
[jQuery] Re initialise selectables
Hi, i am using ajax to search for users and call the selectables function on the found set afterwards. function makeSelectable(){ $('#mainWindow').Selectable( { accept : 'selectableitem', selectedclass : 'selecteditem', helperclass : 'selecthelper' } ); } Though when i make another search and call Selectables again, i still get the helper class (the div that gets created and shows the nice drag window) but the new found set can't be selected
[jQuery] IE6 + Form Validator bug "object dosent support this property or method"
no one answered me, guess i wrote the subject worng ... please help ... when i run form validator from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ , after putting the uncompressed version, its working fine in ie 7 but in ie 6 its returns me error: (here is the code: http://www.amir.cx/ajax/test3/stable.php ) [you can also get the source zipped there] object dosent support this property or method " line 34 if i just download the files from the site without changes (except of using
[jQuery] Jquery and XSLT
I this weekend I have been play with xsl (xslt) and I was concerned using javascript with it. Is the document load event sent when the xml doc is loaded, or when transformed xml is created by xsl style sheet. I worried about it for a while. But is seems that jquery's .ready works just fine with style sheets. http://www.scottwickham.com/xml/nv2.xml I know I getting to excited with xslt, especially since there in no standard way of using xsl to modify documents that have already been rendered. But
[jQuery] Interface Animation and element positioning
I've been trying to use Interface to animate various elements, specifically using the slide functions. What I would like to do is have a div slide out of the center of the top screen, but the styling I have in place to center the div isn't active during the animation, only after the animation is complete. So, my question is, how do I do get my div centered and continue to stay centered while interface is firing a slide? - jake _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Bind event to radio button group
I'm new to jQuery. I'm trying to bind a function to a group of radio buttons. For example, $("input[@name=rb]").bind("click", function() { alert ('radio button clicked'); } ); should run the function anytime a radio button named 'rb' is clicked but isn't working. Am I approaching this the wrong way, or is my jQuery syntax wrong? Thanks, Brad _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] How to block a function while another finishes? (and pause!)
Thanks to both of you! :) this is exactly what I needed. Question 2: is there a way to pause the slidedown from happening? I notice there's a pause() plugin, I dl'ed that and attempted to chain it such as: target.slideUp("slow", function() { target.children("div.middle").html(stuff).pause(2000).slideDown("slow"); }); But alas, no pause happened. thanks, -kim --- Klaus Hartl <klaus.hartl@stilbuero.de>
[jQuery] FW: Why are my graphics "jumping"?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 12"> <meta name=Originator content="Microsoft Word 12"> <link rel=File-List href="cid:filelist.xml@01C75D79.4DFD2450">
[jQuery] Collapsible Tables
What I'm trying to do. When a thead is clicked I'd like for the tbody row group below it to become visable. So I have a table like this <table> <thead class="rowGroup"><th>First row group</th></thead> <tbody class="hidden"> <tr><td>1st Item in row group 1</td></tr> <tr><td>2nd Item in row group 1</td></tr> </tbody> <thead class="rowGroup"><th>Second row group</th></thead> <tbody class="hidden"> <tr><td>1st Item in row group 2</td></tr> <tr><td>2nd Item in row group 2</td></tr> </tbody> </table>
[jQuery] Event for return key?
Hi there, I'd like to bind a form submit to the return key, but do not know how I could bind a special key instead of the "any-key" event. Is it possible to capture the return key within an input field? I can _not_ use a simple form around it to do so, because I have to work around a CMS that wraps the whole site into a form, which would interfer with user created html forms. Cheers, Arne http://www.arnekolja.com _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] FW: Why are my graphics "jumping"?
Hey Rick, I noticed the jump in IE 6. I assume that is the browser that you are viewing the bug in. At first, I thought you were referring to the slight jitter that occurs while both animations are occurring, which is addressed by John's fix. The bug is actually an IE css bug related to the default browser margins on the ul tags. Rather than using a bottom margin to space the ul's, you should use bottom padding instead. I have posted an example that doesn't jitter in IE 6 with the appropriate css
[jQuery] Pjq Demo
I started working on this a while ago and had another demo up but jquery 1.1.1 made it much easier and Pquery made me realize some people wanted something different This is a simple php handler, it doesn't try to generate javascript for you, honestly if your using jquery you better already be able to write your own javascript ;). The goal is to provide a extremely simple way to call php functions from within javascript and either get data back, inject php generated html or call jquery functions from
[jQuery] :checked and [@checked]
hello people $("input[@checked]") is obsolete and replaced by E:checked isn't it? I ask because http://docs.jquery.com/DOM/Traversing/Selectors still mentions [@checked] in an example -- Fil _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page