[jQuery] Calling default form submit; $('#form')[0].submit(); VS $('#form').submit();
> $().ready(function() { > $('#orderForm select').change(function() { > $('#orderForm')[0].submit(); // how about $('orderForm').submit(); ? > }); >}); Every element in the form has a .form property that is the containing form object, so you should just be able to say: this.form.submit(); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery & Safari
Hi all, I'm currently developping a huge web app for a swiss private banking using jQuery. I have to be sure that Safari 1.2 is compatible with what I'm doing and I have to be sure that jQuery is full compatible with this version of Safari. I've searched on the blog, google... and no found this information. Any about the browser supported by jQuery, Safari in particular? Thanks -- Roberto Ortelli http://weblogger.ch _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Reading json strings
<html> <body> Hi folks, I don't understand what I'm doing wrong in the following code (<a href="http://temporarius.massey.ac.nz/json_test.htm" eudora="autourl"> http://temporarius.massey.ac.nz/json_test.htm</a>) where I cannot seem to "harvest" the returned json string. The test json string being returned after the form is submitted is: <pre>{"fields": [{"id": "name", "isValid": false, "message": "Username must be at least 3 characters long"}]} </pre>(there is absolutely no connection to the contents
[jQuery] On Topic: $(...).height() != $(...).css('height')
<a href="http://visualjquery.com">visualjquery.com</a> say about height(): Get the current CSS height of the first matched element. And the example claims it returns something like "14px". It appears to me (in FF2 on winxp anyways), that it returns a number, without the 'px'. Also, sometimes it returns the same value as css('height') (though css(...) DOES return the height with the 'px' part), but when I resize the window, sometimes it returns the wrong size. It isn't a big problem for me as I'm
[jQuery] closure and name conflict
hi, I'm using the closure trick for my plugin which learn from Jorn Zaefferer's tooltip, My plugin structure totally the same with tooltip, and the problem is, I have two plugin(A and B) each of this has a handle. When load these two plugin(Order: A, B) in one page, plugin B will using A.handle instead of B.handle which is wrong. Now I'm prefix them, but I was wondering what is the best way to do this? -- Regards, epaulin _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] jQuery.parse[1]
There is a little bug in jQuery.parse[1]: the white space shortcut is not escaped by an additional backslash. -- View this message in context: http://www.nabble.com/jQuery.parse-1--tf2694789.html#a7515200 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] getScript error
Hi everybody. While developing the PunchCard widget I've found a problem with getScript in IE7. If you are interested in helping me, I've isolated the issue here: http://www.mondotondo.com/aercolino/punchcard/test-getScript-error/ Thanks Andrea -- View this message in context: http://www.nabble.com/getScript-error-tf2652417.html#a7401479 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Correct way to get the nth item?
If your jquery results array is in a variable (to reuse it instead of re-querying over and over again) then what is the best way to get the nth item from it *without modifying the array* ? For instance the following would cause the myElements variable to end up containing only one item! var myElements = $("DIV"); var nthElement = myElements.eq(n); If it wasn't for the variable the options might be: - $("DIV").eq(n) - $("DIV:eq(n)") - $("DIV")[n] (this one is ok if you want the html element, but I
[jQuery] Tabs plugin callbacks - what makes most sense?
Thanks, Klaus! Nice work. I'll fully check it out tomorrow and try to integrate it into my current project. m. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Klaus Hartl Sent: Thursday, November 23, 2006 2:01 PM To: jQuery Discussion. Subject: Re: [jQuery] Tabs plugin callbacks - what makes most sense? Matt Grimm schrieb:
[jQuery] Happy Thanksgiving
To all my friends on the jQuery list, I wanted to wish you a very Happy Thanksgiving. I hope you have a fun and safe holiday. Best wishes, Rey Bango.... PS: If you don't celebrate Thanksgiving, I still wish you a great day! :o) _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] getScript error
> > Why not use document.createElement("script") !?
[jQuery] List items
Hi, I have a number of elements in a list (e.g. list = $(".myClass")). Now I want to access each item of the list randomly. I found two methods eq() and get(). eq() doesn't seem to select a single node in the list, and get() doesn't return jQuery object. For example I couldn't show() a node using (where num is the random item): list.eq(num).show(). I could just do it trough: $(list.eq(num).get()).show() Is there any shortcut? Thanks. _______________________________________________ jQuery mailing
[jQuery] Sortable Trees Progress?
Dear Stefan and Paul, This post is by no means intended to put pressure on you guys as I understand that you are probably quite busy. Having said that, I am quite eager to know if you have any news regarding the sortable tree functionality you mentioned in these posts: http://www.nabble.com/Sortables%2C-new-approach-tf2497066.html#a7008566 http://www.nabble.com/Serializing-Sortables-%28new-approach%29-tf2533400.html#a7058285 I need the above mentioned functionlity for a small file manager I did with
[jQuery] CPAN Modul for jQuery ?
Hello, i've seen a lot of talks about specific programming languages wich might be used with jQuery. An before i came to jQuery, wich i reall LOVE, i've also used from time to time the CPAN Modul for Prototype and the script.aculous extension. So in my mind popped up the Question: Why isn't there a CPAN modul for jQuery ? Is no one aware of this Task ^-^ Well Basicly it just would be a wrapper, but i think for some people this could be very helpful if there're not that familiar with Perl. What do
[jQuery] datePicker plugin - show on input click
At the moment, the date picker plugin (http://kelvinluck.com/assets/jquery/datePicker/) uses an anchor added after the input to show the calendar. What I wanted to do is show it when I clicked on the input instead. Also I think it is good practice to add events after adding an element to the DOM (adding before can cause memory leaks in IE IIRC), so I have made another tweak to do that. The fix is as follows (applied to the uncompressed version): jQuery.fn.datePicker = function(a) { this.each(function()
[jQuery] jQuery Grid
I've created a simple jQuery grid... http://kiloblog.com/2006/11/19/a-grid-in-jquery/ Your thoughts are appreciated. -- Alan Gutierrez - 504 717 1428 - alan@blogometer.com - http://blogometer.com/ Think New Orleans - http://thinknola.com/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] DatePicker plugin: dateFormat enhancement [u]
> It's keLvin but that's OK :) sorry keLvin, mea culpa!
[jQuery] Tabs plugin callbacks - what makes most sense?
I'm a big fan of this idea, Klaus, and even made a first attempt at integrating my own "pre-callback". It's useful to me because I am dynamically loading (via AHAH) the content of each tab and I want the content to load before the tab actually makes the switch. As it is, the tab switches to an empty div (rather unattractive), then the content loads and pushes the div into shape. m. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Klaus Hartl
[jQuery] Tabs: reworked fxAutoHeight, what's next on the list
Hi all, I reworked the automatic height option for the Tabs plugin. It now takes resizing window/text into account to avoid overflowing text in such situations. Thus the height is kind of flexible, but still all tabs share the same height... I also renamed the option to "fxAutoHeight" (camel-case) as suggested on the list once for consistency. If you'd need a constant height you could simply declare one in a style sheet. What's next? I'm going to add a crossfade effect and I will improve the callback
[jQuery] :last-visible :nth-visible-child, etc.
I've come across a number of possible uses for a new :first-visible-child, :last-visible-child, :nth-visible-child, :nth-last-visible-child, etc. The current best way to achieve that effect is: $(expr).each(function() { $("> whatever:visible:last") } for :last-visible-child, for instance. Is there any interest in a plugin that provides dedicated support for those selectors?<br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________
[jQuery] DatePicker plugin: dateFormat enhancement [u]
> and dateSeparator can
[jQuery] DatePicker plugin: dateFormat enhancement [u]
hi community and kevin luck, first i must thank kevin you for his great datepicker. it's really fantastic and fits perfect into my project (even the css :)). but unfortunately he forget the "old world" in his predefiend dateFormats versions. here in swiss, austria, and german is the "." the regular dateFormat separator. so i've changed your plugin a bit and made the formatting/parsing of a date a bit more generic. in detail, i split up the format into the old well known dateFormat and a new dateSeparator.
[jQuery] OT: fQuery
Hi gang, (semi off-topic..) I just released a rather cool bit of PHP code inspired by jQuery. In Drupal (drupal.org, CMS), our form structures (which govern user interaction) are built up as big trees of objects (group boxes, textfields, checkboxes, buttons, etc.). These arrays are a powerful tool to work with, as it becomes easy to insert new features in the middle of a form, for example to add 3rd party modules to the mix. They also help separate structure from user content. Unfortunately, large
[jQuery] OT: fQuery
> From: Steven Wittens
[jQuery] :last-visible :nth-visible-child, etc.
> I've come across a number of possible uses for a new
[jQuery] possible to determine if all $.load() are done?
hi all, I separately load each tab's content after tabs initialized. how could I determine if all tab contents are completely loaded? Regards, - Eric -- - http://www.aiyo.cn - http://www.ifaxian.com - http://groups.google.com/group/nkeric-daily - http://nkeric.3322.org _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] problems with slideUP
Hi i done this little function to dynamicaly fold out comments to a blog but if i say hide comments with the function toggle the comment div dissapears but there is a lot of free space there the "html" below the comment wont slide up How can i fix that? i hope you understand my problem $("a[@name=\'kommentar\']").click(function(e){ e.preventDefault(); var href=$(this).href(); var me = this; $.get(href,function(response) { $(me).parent().append(response).slideDown("slow"); }); $(this).html("hide comments");
[jQuery] Animate: removing inline style breaks for chained animations (Tabs)
Hi all, I found that with the animate function now removing inline styles after the animation is complete that breaks the tabs animations in IE 6/7. You can see that here: http://stilbuero.de/jquery/tabs_test/ Just pick an example with an animation. What happens is that after the hide animation the element shows up for some milliseconds and then gets hidden again via an a attached class. The problem is the time when the inline styles get removed, consider following code: toHide.animate(hideAnim,
[jQuery] Problem with filtering out/changing specific elements
Hi, Ok, here's what I want to do. Let's say this is my html: <div id="item1"> <div class="title">Title 1</div> <div class="desc">Desc 1</div> <div class="msgfooter">Message Footer 1</div> </div> <div id="item2"> <div class="title">Title 2</div> <div class="desc">Desc 2</div> <div class="msgfooter">Message Footer 2</div> </div> ... And this is what I need in a variable: <h1>Title 1</h1> Desc 1 <h1>Title 2</h1> Desc 2 ... What's the best way to do this? Without jQuery I would use regular expressions
[jQuery] Animate question
Hello I can do $("h2").animate({ fontSize: 18 }, 500); to make my <h2> animate to larger, but how can I say '2em' instead of that 18? Does that 18 mean 18px? thanks, Ioannis Cherouvim _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Off topic: which programming language for webdevelopment
To all, First of all: apologies for this non-jquery related question, but since there are many experts in web-development on this list, I dare to ask it anyway. Our company is looking for a way for 'quick' web-development. Small webapps consisting of a few webpages with some minimal database interaction. We currently develop everything in Java (including webapps), but I find the whole cycle of developing, compiling (java class files, EJBs etc), deploying, JNDI setup, db resource setup and recompilation
[jQuery] Off topic: which programming language forwebdevelopment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=843011004-23112006><FONT face=Calibri color=#0000ff>Yes, PHP have the same functionallity:</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=843011004-23112006><FONT face=Calibri color=#0000ff>$var = "array.txt";</FONT></SPAN></DIV> <DIV dir=ltr
[jQuery] Off topic: which programming language forwebdevelopment
> I have one vote against CF. I do know that it is both
[jQuery] Adding elements dinamically and mantain later
<!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>Adding elements dinamically and mantain later</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P ALIGN=LEFT><SPAN LANG="en-gb"><FONT FACE="Calibri">Hi every:</FONT></SPAN></P> <P ALIGN=LEFT><SPAN LANG="en-gb"><FONT FACE="Calibri">I want to add the functionallity in</FONT></SPAN><SPAN
[jQuery] Off topic: which programming language forwebdevelopment
Coldfusion already has a "script" mode, which allows you to write code which appears very similar to PHP, javascript or Perl. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Paul McLanahan Sent: Wednesday, November 22, 2006 4:27 PM To: jQuery Discussion. Subject: Re: [jQuery]
[jQuery] Global ajaxError event
I want to catch the global ajaxError event rather than having to deal with it on each ajax call. However, I don't really need to attach it to any particular element--it's a global handler, after all. So is the general wisdom to just attach it to window or document? Also, none of the global events are passed information on the request that caused the error, which makes it difficult to report any details on the problem. It would be handy if they got the request or at least the error code. _______________________________________________
[jQuery] Disable a form field using jQuery?
I'm running that function I posted earlier. And if it's the incorrect coupon code, the client wants to prevent the form from being submitted until it IS the correct code (or blank). Can someone remind me how I'd render a form unsubmittable using jQuery? <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Form plugin: possible to alter the form after a submit?
I'm using the form plugin and want do to things with the form doing the ajax submit, after the submit has happened. Unlike the option "before:", "after:" doesn't seem to pass the jQuery object. Any way around this? Simplified example using ajaxForm() : var options = { after: function(data){ $(data).insertBefore("THE FORM"); }; $("form.severalForms").ajaxForm(options); Thanks, Anders _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajaxstop() having problems in IE?
Thanks for pointing it out Mike. Weird I couldn't find anything related in the bug list.
[jQuery] Off topic: which programming language forwebdevelopment
Java (IBM's version) is now open source: http://www.itjungle.com/tfh/tfh112006-story02.html Even if Adobe completely kills Coldfusion (which they won't because they're already making BIG plans for the next version (coming out sometime next year). Anyway, even if they do kill CF, there'll be Coldfusion jobs for YEARS to come due to all of the existing websites that use it. Besides, even if Adobe is foolish enough to get rid of CF, SOMEONE would come along and buy it from them. I'm not worried about
Next Page