[jQuery] $(form[@name='xxx']) does not work
hi there. i write some codes like this: <form action="#" method="post" class="form-layout" name="reg">. and in js, I want to do something with submit event, like this: $(form[@name='reg']).submit( function() { ... }); use $(form[@name='reg']) can not work for me. but when i use alert($(form[@name='reg'])) to detect it, it is absolutely exist. my solution is use $(" form.form-layout").submit() . is it different between this two select methods? thanks in advance.<br clear="all"> -- <a href="http://realazy.org">realazy.org</a>
[jQuery] Potential issue with fx in SVN 164
Moved today to SVN #164 to address issues I was having with animation in jquery 1.0a. While this has fixed most of my problems, I am facing a strange behavior still with animations that might be a bug. Fx is issuing display:block first before setting height and/or width to 0 making all animations except "fade" ineffective. Is there something that I am missing in the way animations work ? Thanks for the help. -- Robert Ernens Look2BookOnline® - HCTBA Consulting Tél.: +33.870.58.95.80 GSM : +33.6.11.78.44.68
[jQuery] IE click problem
Anyone have a problem where a function applied by 'click' only works for the first X items and does nothing for the X+1 and beyond? When I refresh the page, this X often changes. I have the code: <code> $(document).ready(function(){ $('img.msug_iconChooser_icon').click(function(){ alert('clicked on '+$(this).get(0).src); }); }); </code> The page contains numerous images (119 to be exact) with the class msug_iconChooser_icon. Clicking on some will show the alert, clicking on others (from
[jQuery] [BUG?] selecting by attribute values - quotes are needed
I was having trouble with the form plugin and while debugging I discovered that quotes are necessary when selecting by attribute values * if * the selection contains more than one item. The following test page shows this more clearly: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script type="text/javascript" src="jquery-v164.js"></script> <script type="text/javascript">
[jQuery] "siblings()" bug?
The siblings() function errors out in firefox with: Error: f has no properties /include/js/3rdParty/jquery-160.js Line: 1626 This is probably simple enough for someone, like John, who familiar enough with the code to validate or throw out w/o example code. So here is a possible one line fix w/o any example code (patch attached): line 870: http://proj.jquery.com/dev/svn/jquery/jquery/jquery.js - siblings: jQuery.sibling + siblings: "jQuery.sibling(a)" You can tickle the bug by sticking
[jQuery] [BUG?] selecting by attribute values - quotes are needed
> I was having trouble with the form plugin and while debugging I > discovered that quotes are necessary when selecting by attribute > values * if * the selection contains more than one item. This W3C page says "Attribute values must be identifiers or strings" so it seems the quotes should be optional for simple names. http://www.w3.org/TR/css3-selectors/#attribute-selectors It looks like the problem is here in .filter(): // Look for something (optionally) enclosed with quotes .replace( 'Q', " *'?\"?([^'\"]*)'?\"?
[jQuery] Slide effect while loading external html
Hi, I am close but no cigar on making this work. I have a section on the homepage of my site that I am loading external html files into. The loading and slide effect work ok, but if the content is different lengths, the div never resets and looks dumb. This is the code I am using... --------------------------------------------------- $(document).ready(function() { $("#tools a").click(function(event){ event.preventDefault(); $("#tools div").slideDown("slow").load(this.href); }); }); I guess I need
[jQuery] sIFR
has anyone implemented sIFR with jquery? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery object map
I wrote a script to recursively walk jQuery object and sub objects and builds a visual map. I thought it might help someone new to jQuery get a nice preview of its functionality. http://www.brainknot.com/code/javascript_sandbox/spyglass/ -- View this message in context: http://www.nabble.com/jQuery-object-map-tf2013072.html#a5532595 Sent from the JQuery forum at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] What happend to set
This is my first time posting to the list, so be gentle :-)
[jQuery] .child() and .children()?
<html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {font-family:Arial; color:windowtext;}
[jQuery] Hidden inline tags blockified when shown
Hello! Two staples in my pre-jquery javascripting were these two functions: function hide(element) { element.style.display = "none"; } function show(element) { element.style.display = ""; } However, when using the jquery $(element).show() and $(element).hide() functions my inline elements turn into block elements. Should I not be using the show/hide functions with inline elements, or is there something I've missed? Thanks for your help, - Magnar _______________________________________________ jQuery
[jQuery] tweenbox - image gallery
>There are some issues w/ the image.complete as-is and I need to figure
[jQuery] Textarea
Hi Im trying to retrieve the contents of a text area using $("#emailsend").click( function(sendmail) { var address=$("#sendmailad").text(); var messagetext=$("#message").text(); alert(messagetext); where #message is the text area. All i get is the initial contents of the area, not the revised contents. Any ideas? -- View this message in context: http://www.nabble.com/Textarea-tf2009415.html#a5520526 Sent from the JQuery forum at Nabble.com. _______________________________________________ jQuery mailing
[jQuery] Beginner Question
Hi, I'm new to jQuery and I have a beginner question: How would I do something like tgis with jQuery? var strFormVarName = 'xyz'; document.getElementById('data_' + strFormVarName).innerHTML = strValue; Michael _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] issue with clone function.
Hi, I am about to develop some pages using the clone plugin as described http://john.jquery.com/jquery/test/clone.html but I am getting errors when I click the add row button. Here is the firebug error list a has no properties jquery-svn.js (line 1633) anonymousjquery-svn.js (line 1633) anonymousclone.html (line 12) anonymousclone.html (line 19) anonymousjquery-svn.js (line 1741) Also how do I get to the previous row after you find the last row with $("#source tr:last") Thanks. Gordon. BTW is this
[jQuery] user class definition breaking $
Hello, For some reason my custom Transition class file is breaking JQuery's $ function. On http://alzonline.phhp.ufl.edu/ I have custom "nice titles" for some of the links on the right (eg. Links). This is done with JQuery and this short script: http://alzonline.phhp.ufl.edu/jtip2.js The problem occurs here: http://alzonline.phhp.ufl.edu/?st=1 This page also includes http://alzonline.phhp.ufl.edu/transition.js which defines my Transition class. Once this executes, $("#sideBar li a") can no longer
[jQuery] Convert these lines to jQuery?
I wondered if someone could help me convert these lines to jQ? var f = document.gridfinder; (the name of the form) f.submit(); ------ $(item).style.background = color; (I'm passing in 'item' as an argument) $(item).focus(); ------ $('#panel'+panelNum).style.display = 'block'; I'm trying to convert some existing code over to jQuery. I think it might have to do with the .attr method but I'm not sure how to call it. Thanks in advance. <!----------------//------ andy matthews web developer certified
[jQuery] can not access elements' properties any more?
But I'm sure your real question is, why is this inside each() not the same as this inside after() :) Inside the after() method, this refers to the this variable from the containing block, which is your function. The each() method takes a function and - according to the comment in the source :) - executes the function within the context of each element, therefore this inside .each(function() {... refers to each DOM node you found with $() one by one. Hope that was understandable, hum, not so easy
[jQuery] can not access elements' properties any more?
hi. use $() to select elements, why its properties are not able to access anymore? for exsample: ( #f-name is an input element ) alert(document.getElementById("f-name").type); alert($("#f-name").type); line 2 will return undefined. perhaps it is jQuery's limited? IMHO, if line 2 can work, jQuery will be more powerful.<br clear="all"> -- <a href="http://realazy.org">realazy.org</a> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] unsetting a css property
Hi, How do I unset a CSS property I've set with the css method? .css('property', '') throws an error. — poni _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Is there a good Date/Time picker for Jquery?
It must let you pick the date and time. Cheers.<br clear="all"> -- **** Ivan Quintero _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Using jQuery to make server calls when radio button is clicked
<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:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face
[jQuery] bug: hover over table cells containing form elements
hi! This is actually a firefox bug: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=208427">https://bugzilla.mozilla.org/show_bug.cgi?id=208427</a>. It has been there for 3 years or so. This happens because firefox has not implemented the abstraction properly. When you try to find the parent of any form element, a exception is thrown. This happens here because jQuery has a property of traversing up the DOM and seeing if the mouse is still in parent element. (All this is my interpretation and
[jQuery] bug: hover over table cells containing form elements
If you hover over a table cell with a select dropdown, mouseout fires in Internet Explorer 6. If you hover over a cell with an input element, you get a permission denied error in Firefox. Can't upload file at the moment, so here is the sample test case: <html> <head> <title>Hover test</title> <script type="text/javascript" src="jquery-svn.js"></script> <script type="text/javascript"> $(document).ready( function() { $("table").find("td").css({padding : "20px", width: "200px"}).hover(
[jQuery] Beginner Question
> var strFormVarName = 'xyz'; > $('#data_'+strFormVarName).html(strValue); Oops, take this version :) _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $(this) problem
hi, John. When function something, $(this) is using frequently. What make me confusing is that $() doesn't support such as $(this + "tag") or $(this > "class") or $(this/div) forms. What can I do now is abusing find(), I think that is not a elegent way. So can I request this feature? That is to say, can you make "this" as a seletor ( sorry, I can not descript it in JS term, I am a CSS coder)? regards. p.s. Hope you could understand my poor English, sorry for that too. :)<br clear="all"> --
[jQuery] Beginner Question
Hi Michael,
[jQuery] jQuery selector puzzle
Anyone up for a puzzle? I'm attempting to write a jQuery (version 1a) selector to apply a class to every A element which has a sibling UL within a particular structure: http://www.ollicle.com/eg/jquery/puzzle1.html. Had my hopes set on a relative xpath http://proj.jquery.com/docs/Base/Expression/XPath/ but have been unable to find a combination that works. The tricky bit appears to be limiting the depth to the direct children of the li. Any suggestions? _______________________________________________
[jQuery] checking jquery get status
Hi, if I call a servlet like $.get("myServlet", function(results) { alert(results); } And if the servlet has a problems and does RequestDispatcher rd = request.getRequestDispatcher(<error page>); rd.forward(request, response); I can detech the error from the returned html, is it possible to determine what error page was requested? Is there a way to look at the request object from jquery? I want to forward to that error page. Thanks _______________________________________________ _______________________________________________
[jQuery] tabbed - accordion
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt;
[jQuery] tweenbox - image gallery [u]
yea, all the errors are because of the image.complete checks that i'm doing havn't been tested. I posted this pre-maturely last night to get some help figuring out how to debug the image.complete, which Avi gave me a suggestion for, so i'm going to fix it today. Will
[jQuery] tweenbox - image gallery [u]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR> <STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
[jQuery] Detecting AJAX failure
If my connection drops in the middle of an AJAX request, I get error messages that look like this: [Exception... "Component returned failure code: 0xFDECAF (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" ... location: "JS frame :: ...jquery.js :: anonymous :: line 1486" data: no] Is it possible to catch and handle these exceptions with jQuery? Thanks, Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] tweenbox - image gallery [u]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2873" name=GENERATOR> <STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
[jQuery] [PLUGIN] $().serialize
This plugin accepts a jQuery object containing form object and spits back a query string containing the values of the items passed, if any. <span style="font-family: courier new,monospace;"> jQuery.fn.serialize = function() { </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> var array = new Array;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> this.each(function() {
[jQuery] Included ASP pages
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Included ASP pages</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=250430420-26072006><FONT face=Arial color=#0000ff size=2>Your best bet is to view source on your generated page, then double check the path to jQuery located therein. It's likely that path is incorrect. I've found that once jQuery is installed
[jQuery] tweenbox - image gallery
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] Included ASP pages
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1"> <TITLE>Included ASP pages</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=2 FACE="Arial">I am putting the jquery library in the "root" script that calls other scripts (#include files) to fill in content channels.</FONT></P> <P><FONT SIZE=2 FACE="Arial">I want to
[jQuery] AHAH possible?
--
Next Page