[jQuery] Wich element triggered an event?
Hi all. I'd like to know if there's a standard, easy way to determine with element triggered an event. I'm pretty sure there is, but can't find it in google. Maybe an atribute in the e parameter received by the function like: $("p").bind( "click", function(e){ console.log(e.TRIGGER); // This trigger attribute of the element e is the one that started the action. } ); So, is there an easy way? Thanks. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] One element, multiple actions
After spending some time with Prototype, I decided to try my hand with jQuery and I think I kind of like it. I think I'll like it even better when it's compatible with (YUI-)ext. Anyway, I'm wondering if it's possible to perform multiple actions on a single element without having to search for it each time. Similar to core js like: with ( document.getElementById ( 'myele' ) ) { /** do stuff */ } I'm wondering if there's a similar syntax within jQuery. I've looked through the docs and the tutorials
[jQuery] Need help placing validation message...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Need help placing validation message...</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Good morning, all</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN
[jQuery] animation bug with absolute positioning?
Hi all, I am experimenting with my Superfish plugin to see how it works with more than two tiers of menu. It does seem to work. However, I seem to have run into a bug or at least a limitation with the animation part of jQuery. Here is a link to my demo page in the making so you can see the bug in action: http://users.tpg.com.au/j_birch/plugins/superfish/ The first nested ul elements (second menu tier) use position absolute and they fadeIn fine. The second nested ul elements (third menu tier) also
[jQuery] need some idea
Hi, I need some idea on how to do this. I have a big user survey form. It has around 25 fields. However, depending on the type of user such as administrator, member, etc...many fields are not required. In my survey form, a user will select "user type" from a select box. My problem: I don't want to scare off users from filling the survey form. Thus, I want to display only the relevant fields depending on the user type they have selected. What I would like to do is to add some script to change method
[jQuery] Easy way to get total line items in carousel?
Is there a built in way to get the total amount of line items in a carousel? Adam -- View this message in context: http://www.nabble.com/Easy-way-to-get-total-line-items-in-carousel--tf3376211.html#a9396115 Sent from the jCarousel mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New plugin: ContextMenu
<!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.16414" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=278191815-09032007><FONT face=Arial color=#0000ff size=2>Travian was pretty fun. A time sink, but enjoyable...especially since all my co-workers also played it.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=278191815-09032007><FONT face=Arial
[jQuery] interface accordion
Folks, How do I set an accordion to not have an open panel when the page loads? The only option I see on the interface doc page is "currentPanel", but assigning it a value of 0 does not do what I want. Any ideas? TIA _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Custome selectors use : as seperator, which is an official character for id's
Hi I wonder why jquery is using the : as seperator for custom selectors as this is just another character which can be used in any element id. In other words this means that for example if I have an id="my:elem" this element is the not selectable like $('#my:id') as the regexp on line 949: re2 = /^([#.]?)([a-z0-9\\*_-]*)/i;) // jquery 1.1.1 does split that and uses the :elem as custom selector. You might now ask why am I using : as element id's. The answer is pretty easy. JSF uses a : to automatically
[jQuery] New plugin: ContextMenu
<!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.16414" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=320545813-09032007><FONT face=Arial color=#0000ff size=2>Good job Chris...</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=320545813-09032007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=320545813-09032007><FONT
[jQuery] Moving DOM elements strings into $(document).ready(function(){
Hi I want move DOM, elements, string. It is a block For Example drupal_add_js(' $(document).ready(function(){ // Ready code here. if ($("#class-box").val() > 0) mod_class_fields($("#class-box").val(), 0); }); function mod_class_fields(class_id, speed) { var cfields; if (speed == null) speed = "slow"; switch (class_id) { case "1": cfields = "mytarget1" break; case "2": cfields = "mytarget2"; break; default: cfields = "<div></div>"; }
[jQuery] interface accordion
<!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.2900.3059" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=274300713-09032007><FONT face=Arial color=#0000ff size=2>If you really wanted to get violent with it, you could comment out these lines: </FONT></SPAN></DIV> <DIV><SPAN class=274300713-09032007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=274300713-09032007><FONT
[jQuery] How do I hook up the "Editable" plug-in to a MySQL DB?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>How do I hook up the "Editable" plug-in to a MySQL DB?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">I don</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">t
[jQuery] jquery tabs and loader div
hey... i want to load content inside tab, and whille that to show "loading" image... i saw the api and i dont success to do it what i did worng in here? ?><link rel="stylesheet" href="<?=$rooturljs?>/tabs2/tabs.css" type="text/css" media="print, projection, screen" /> <!-- Additional IE/Win specific style sheet (Conditional Comments) --> <!--[if lte IE 7]> <link rel="stylesheet" href="<?=$rooturljs?>/tabs2/tabs_ie.css" type="text/css" media="projection, screen" /> <![endif]--> <script src="<?=$rooturljs?>/jquery-1.1.1.js"
[jQuery] Imagebox doesn't work in Safari
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> hi, i have the same bug (in safari). Image loader is displayed... and nothing else : it's blocked. I just posted a bug report. regards, Matthieu <b>---- From:</b> lukas | dressy vagabonds <<a href="mailto:discuss%40jquery.com?Subject=%5BjQuery%5D%20Imagebox%20doesn%27t%20work%20in%20Safari&In-Reply-To="
[jQuery] Track control that starts ajax request to modify on reply
I have a page with a table. Some rows have a particular control; clicking on it sends an ajax request which modifies the database record relating to that particular row. The row is identified in the control's "onclick" by passing the unique identifier to the click handler. I want the response to the request to be able to locate and modify the original control. What are people's opinions on the 'best' way to track which control it is? The ideas I've had are: * Send $(".control_class").index($(this))
[jQuery] How do I hook up the "Editable" plug-in to a MySQL DB?
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style>
[jQuery] Interface Color Picker Plugin...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Helvetica, Arial, sans-serif">Hi again, i modified the interface color picker demo in order to use it as a plugin, and correct some positionning bugs with others browsers (IE6, IE7...) (CSS). You can see the demo here : <a class="moz-txt-link-freetext" href="http://intelliance.fr/jquery/color_picker/">http://intelliance.fr/jquery/color_picker/</a>
[jQuery] Dynamically change Document title
Is there a way to change the title of a document after an ajax Call. I'm using an ajax history system and I would like to view specific document title in the back button list. I've try this but doesn't seem to work : $("title").html("Dynamic Title"); I can see the change in Bugzilla but the browser didn't refresh it. Any Idea ? -- View this message in context: http://www.nabble.com/Dynamically-change-Document-title-tf3373589.html#a9387992 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________
[jQuery] Querying javascript datasources - what factors improve speed/efficiency?
While discussing json support in Cold Fusion with Rey Bango, I had a small flash of insight. It's a pretty easy matter to take a recordset or any other structure, serialize it to JSON format and output that string inside of an eval() directly in the HTML itself. With jQuery and the ready() function when the page loads you could have a client-side dataset ready to go. Why make ajax calls when you can query a client-side datasource for things like an auto-complete list? So the questions are: -- What
[jQuery] Using datePicker as a calendar
Hello, I'd like to use the excellent datePicker plugin to make a bigger calendar that displays summary data from a database for each day in the month. I've got it working for the first month that displays, but I don't know how to display new data when the user clicks on the previous month or next month link. I think what I need to do is either insert a function into datePicker.js that makes an Ajax call, then call that function from the built-in changeMonth function. Or extend jQuery.datePicker with
[jQuery] Matt Krause - table plugins
> Just a general question - How big of a data table is this script effective
[jQuery] Matt Krause - table plugins
Matt, are you reading this list? I am anxiously awaiting the jQuery port of your table filtering/sorting functionality. Is this coming soon? The demos on your site are very very fast and would fit perfectly into a project I'm about to start. -- View this message in context: http://www.nabble.com/Matt-Krause---table-plugins-tf3373162.html#a9386702 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Matt Krause - table plugins
> $("table").mattsTables({ // TableWide options
[jQuery] NEWS: John Resig Discusses Future Proofing JavaScript Libraries
Hi everyone, I just wanted to point you guys to John's recent perspective on leveraging popular JS libraries and their respective test suites to assist Mozilla in building more stable products. This has the added benefit of ensuring that library developers are able to adjust their code based on issues or features. Partial posting on Ajaxian here: http://ajaxian.com/archives/future-proofing-javascript-libraries John's full article here: http://ejohn.org/blog/future-proofing-javascript-libraries/ Also,
[jQuery] Matt Krause - table plugins
> Matt, are you reading this list? Yes.
[jQuery] Problem with validation
Whenever plugin validates the field it creates new label with error <span class="nodeLabelBox repTarget"> JS: $("form").validate({ </span><div style="margin-left: 40px;"><span class="nodeLabelBox repTarget"> focusInvalid: false,</span> <span class="nodeLabelBox repTarget">event: "blur",</span> <span class="nodeLabelBox repTarget">debug: true,</span> <span class="nodeLabelBox repTarget"></span><span class="nodeLabelBox repTarget"> errorPlacement: function(error, id) {</span> <div style="margin-left:
[jQuery] Matt Krause
-- View this message in context: http://www.nabble.com/Matt-Krause-tf3373126.html#a9386627 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] New version of jquery and IE6 bugs
<!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.2900.2180" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=843462623-08032007>I am having major issues with the newer versions of JQuery with IE6. Everything works beautifully in Firefox and IE 7. Jquery 1.04 is stable in IE 6, but jquery1.11+ causes an occasionally crash IE runtime error when using radio buttons that are triggering
[jQuery] New version of jquery and IE6 bugs
Thanks. I might have to do that. Just worried that it will lead to other issues like plugin compatibility, etc. -----Original Message----- From: Andrew Mason [mailto:andrew@katalyst.com.au] Sent: Thursday, March 08, 2007 5:50 PM To: jd1@titleoptions.com; jQuery Discussion. Subject: Re: [jQuery] New version of jquery and IE6 bugs You could use some sort of content negotiation to serve up different versions of jquery depending on browser. Apache has a few different ways of doing this, not sure about
[jQuery] SVN konq test suite
Hi guys, I wrote in a while ago asking about konqueror isssues and someone referred me to a test page where i could check the supported functions etc.. I've been given some time to play around with JQuery. I've checked out the source from SVN and was wondering if the test page was in SVN ? kind regards Andrew M _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] release: Validation plugin beta 1
Hi folks, just released beta 1 of my validation plugin. The list of problem was reduced quite a lot, and currently I have no more outstanding feature requests. Most notable new features: - dependency checking: The required method accepts both jQuery-expressions and functions to compute whether a field is required or not - customizing error message handling: From doing it all yourself (and still delegating to the default handler) to customizing the placement of generated error messages As usual, the
[jQuery] Need help implementing validation...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Need help implementing validation...</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Good morning, all</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN
[jQuery] Autocomplete Plug-In at dyve.net & CF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Autocomplete Plug-In at dyve.net & CF</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Hey, Rey</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">...(or others)</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
[jQuery] Autocomplete Plug-In at dyve.net & CF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Autocomplete Plug-In at dyve.net & CF</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=697020421-08032007><FONT face=Arial color=#0000ff size=2>Dan Switzer has already done this Rick.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=697020421-08032007><FONT face=Arial color=#0000ff
[jQuery] Validation help with Date Selector
I have a form with multiple inputs. One of them using the dateselector plugin. On validation that field gets jumbled up because of the placement of the date icon. What I'm wondering is on just that one field can I set the error message to appear in an alternate location? i.e. - Can I add something to the meta data to tell that one field to post the error message in the #errdiv? <input id="getdate" name="getdate" type="text" class="reg_input {required:true}" style="width:115px;"> <div id="errdiv"></div>
[jQuery] checking created items again via DOM
Hi; I got an interesting problem. I have a code like this: $('.lin').click(function(){ $("#sublevels").append("<span class='lin'>"+split[1]+"</span><br />"); } As you see,I have been adding span tags with class lin when another span tag with class lin was clicked. Problem is created span tags with class link must run this code also when they are clicked because they have the same class name (lin) But they donot work What's the problem? -- View this message in context: http://www.nabble.com/checking-created-items-again-via-DOM-tf3369155.html#a9374259
[jQuery] checking created items again via DOM
You will need to assign the click to the newly created DOM elements. The elements MUST be attached to DOM before you can assign an event otherwise, the event will not be bound. I think this achieves what you want in jQuery plugin format ;) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Recursive Event Assignment</title> <style type="text/css"> .lin
[jQuery] generate folder name
<!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=093465311-07032007><FONT face=Arial size=2>hello!</FONT></SPAN></DIV> <DIV><SPAN class=093465311-07032007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=093465311-07032007><FONT face=Arial size=2>i am creating a form where user enters the name of a new project.
[jQuery] javascript is not executed after post
Hi, I am some problem with jQuery.post(url, parmas)..I use the jQuery.post and after that I get a page which again contains some jquery scripts. But they never get fired up. I can see the javascript using the firebug tool in firefox. Any idea what might be the problem. Regards, Ritesh -- View this message in context: http://www.nabble.com/javascript-is-not-executed-after-post-tf3369161.html#a9374267 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________
Next Page