I really prefer doing a 'return false' instead of throwing exceptions.
It just feels like an incredibly messy way to handle things -
plus it prevents you from writing good one-liners, which makes me sad.
Plus the change is trivial, too:
each: function( obj, fn, args ) {
Is it currently possible for the Interface plugin's Autocompleter to
trap enter key presses so that the highlighted suggestion is selected
per usual but then the form is not submitted? Without using autofill, it
appears that there are two ways to select a suggestion -- clicking with
the mouse and
1) Change the first two return objs to breaks.
Good call, that's much better.
2) Put some curly braces in that code! It is scary the way it is.
Psh. Curly braces are for the weak. :-P
--John
___
jQuery mailing list
discuss@jquery.com
I call it Zen Code. A couple of tenets are:Only use block quotes when necessary
Use assignments in logic expressions, and logic expressions in assignmentsBlairOn 10/12/06, John Resig
[EMAIL PROTECTED] wrote: 1) Change the first two return objs to breaks.
Good call, that's much better. 2) Put some
Well, now I see that the source for the Autocompleter is posted -- it
hadn't been included in the zip download for the last few days so I was
flying blind. The 'protect' method of the iAuto object looks like it
handles the enter key press, but now I can't seem to get the plugin to
work at all. Has
Imagine I have a menu system. You go over with the mouse and a menu
fadeIn then you go down over the menu and over the edge so that the
menu will fadeOut again. But before its faded out you go back up with
the pointer.
The animation will do now two thing. It will fade out but as soon it
there
Onno Timmerman wrote:
A forum and a split up of the mailing list could maybe help. Also more
tutorials would help!
To unsubscribe from the list, check:
http://jquery.com/mailman/options/discuss_jquery.com
If you want it more forum-like, check:
http://www.nabble.com/JQuery-f15494.html
Hi,
I have this simple html code:
--- Start of bugTest.html
html
head
title jQuery Testing /title
script src=jquery.js type=text/javascript/script
script type=text/javascript
function doTest() {
alert( $('#mainContent').children().size() );
alert(
On 11/10/06, John Resig [EMAIL PROTECTED] wrote:
I don't think this is a big problem, we can just rename the form's
serialize method to formSerialize or something like that. It's
unfortunate that two methods of the same name exist and it's better to
fix it now than to perpetuate it. I
Hi All,I have strange problem in this function I wrote:1: function showFlash(text) {2: this.addFlash(text);3: 4: $('#'+this.actualTab).height('265px');5: 6: if (this.Flash
!= '') $('#comment-flash').animate(7: {opacity: 'show'},8: 1500,9: function() {10:
Hi again,thanks David and Sam, the nifty way is a bit different. Nifty uses a additional stylesheet for example, which is chached by the browser, and fewer style properties have to be computed again.Also, it has a lot more options. I you don't have to use transparency for example, your corners
Sanyi, "this" is not the same when you're inside a nested
function.
Add this line of code at the beginning of
showFlash:
var self = this;
And then change "this" to "self", and you'll be in
business. (You can use any variable name instead of "self"; that's just a common
choice.)
Also,
Splitting the code base could make it easier to identify code that is
independent of certain other chunks.
What could help would be a server-side script to which you pass the list of
plugins you want, and that returns it (with proper caching info server- and
client- side).
I'm thinking
thx Mike, I usually do that, but the code was made late on the daybyeOn 10/12/06, Michael Geary [EMAIL PROTECTED]
wrote:
Sanyi, this is not the same when you're inside a nested
function.
Add this line of code at the beginning of
showFlash:
var self = this;
And then change this to self,
I too prefer returning a variable and false is fine by me. It'll just
have to be documented so some programmer out there that returns false
for some reason or another doesn't get really confused.
An example would be a continue style situation:
$(p).each(function() {
// skip this iteration
Paul, nice implementation of nifty inside of jquery. Out of curiosity,
does nifty do rounded corners any differently then Dave's plugin?
http://methvin.com/jquery/jq-corner-demo.html
Dave's does have less code involved, doesn't use the GPL (not sure
if a dual license is possible as it is
It's possible. the solution I came up with was to give the outer
Sortable elements Handles; otherwise I think your guess is correct -
the whole outer container is catching all of your click drag
operations inside of it.
Raziel Alvarez wrote:
Hi all,
I'm using the sortable interface to
Thank Jan. Thats the one I ended up using last night. Worked like a
charm. :o)
Jan Sorgalla wrote:
Rey Bango-2 wrote:
I'm looking for Google suggest style functionality and wanted to know if
there was a plugin or some code that would help with this.
Anyone?
http://www.appelsiini.net/~tuupola/jquery/panview/
When trying to move the image with mouse it disappears. It comes back
when reloading the page. Disappears again when trying to move. Does
panview need some additional CSS or am I just blind?
Basically what I am doing is this:
-cut-
img
On Oct 12, 2006, at 15:56, Mika Tuupola wrote:
When trying to move the image with mouse it disappears. It comes back
when reloading the page. Disappears again when trying to move. Does
panview need some additional CSS or am I just blind?
Seemed to be $(document).ready() vs $(document).load()
I'm having trouble following but you should be sure to use the hover
event $().hover(overFunction, outFunction) instead of a sperate
mouseover and mouseout and there is no need to set display: none or
display:block as the fadeOut and fadeIn methods already do this.
--
Brandon Aaron
On 10/12/06,
In its current form, it would be hard to extract *all* the CSS stuff
out of the jquery.css as most of the css is *set* using attr. However,
I think removing the dependency on attr and moving it into its own
file would be a very good idea. I've started down the path of doing
this ... just not quite
There is actually. Check out the autocomplete plugin. It's nearly identical
to Google's.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-
-Original Message-
From:
Yep, definitely hit up Karl's site. I've found it invaluable myself and
Karl is very knowledgeable in DOM and Jquery. He's a good person to
learn from.
Rey...
Karl Swedberg wrote:
On Oct 12, 2006, at 3:47 AM, Onno Timmerman wrote:
Also more tutorials would help!
Hi Onno,
I
On 10/12/06, Karl Swedberg [EMAIL PROTECTED] wrote:
Any suggestions for other tutorials or offers to write one will be
warmly and gratefully received.
I don't have any ideas for tutorials right now but I would be willing
to write some.
--
Brandon Aaron
A weird thing on
http://blog.mondediplo.net/2006-09-02-Tous-unis-contre-le-fascisme-islamique
I have a script that opens the archives / date blocks when one clicks on
the date.
If I use
.slideDown('slow');
it doesn't slide down 100%, and stops at about 90% (on FF/Mac). I have
Sorry for all the confusion
In my stylesheet, I had position: relative;
attached to my fieldset. This made the forms not transition.
Problem solved,
Roy
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Dumb question,
How do I apply to messages?
Roy
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hi Roy,
Do you mean replying to messages on this list?
Rey...
Kolak Roy M. wrote:
Dumb question,
How do I apply to messages?
Roy
___
jQuery mailing list
Yep, I used that one last night and it worked like a charm. I pulled
back from a cfm query and it worked very nicely. My client was quite
happy. :o)
Rey
Andy Matthews wrote:
The example uses bird names by the way.
Try typing in parrot or finch.
!//--
andy matthews
Here are some ideas for you Brandon:
- Simple to advanced chaining techniques
- Implementing throbbers/indicators
- JSon parsing and usage
- Populating divs or tables (tabular data) from a JSon or XML result set
using JQuery
Rey...
Brandon Aaron wrote:
On 10/12/06, Karl Swedberg [EMAIL
Hey Rey...
I'm going to be using that for a recipe site I'm building. Care to share the
code you used? Did you call a CFC or just a CFM page?
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
Thanks for the response. I'm trying to understand how the sortable handles work but I still don't have a clear idea, and how I can use them to fix the nested sortable problem. A brief explanation would be great.
thanks
On 10/12/06, Bryan Buchs [EMAIL PROTECTED] wrote:
It's possible. the solution
No worries ... next time just post a link to the issue if you can and
it will be easier for us to debug.
--
Brandon Aaron
On 10/12/06, Kolak Roy M. [EMAIL PROTECTED] wrote:
Sorry for all the confusion…
In my stylesheet, I had 'position: relative;' attached to my fieldset. This
made the
Sure man. I'll send it to you off list.
Rey
Andy Matthews wrote:
Hey Rey...
I'm going to be using that for a recipe site I'm building. Care to share the
code you used? Did you call a CFC or just a CFM page?
!//--
andy matthews
web developer
certified advanced
This probably relates to this bug: http://jquery.com/dev/bugs/bug/219/
and possibly this bug: http://jquery.com/dev/bugs/bug/260/
--
Brandon Aaron
On 10/12/06, Fil [EMAIL PROTECTED] wrote:
A weird thing on
http://blog.mondediplo.net/2006-09-02-Tous-unis-contre-le-fascisme-islamique
I have a
Plugins using jQuery instead of $ dont seem to work anymore if using
jquery.js from: http://jquery.com/src/latest/
FireBug spits out jQuery is not defined. Found this while trying to
make tabs and panView work together.
--
Mika Tuupola
http://www.appelsiini.net/~tuupola/
Karl Swedberg-2 wrote:
Any suggestions for other tutorials or offers to write one will be
warmly and gratefully received.
How about a tutorial for beginners on using the form plugins with validation
and a simple server side script for a real world example on how to submit
information ?
Hey, until I become a DOM/JS guru like some of you guys, I'm offering up
anything I can. :o)
Look forward to seeing the tutorial. Be sure to ping Yehdua as well to
get it included in the Visual Jquery magazine.
Rey
Brandon Aaron wrote:
On 10/12/06, Rey Bango [EMAIL PROTECTED] wrote:
-
FYI. I just figured out that the nesting of sortables actually works if you have at least one sortable item inside. It doesn't sound like a good solution but it's something. Oh, and it doesn't let you drop below the default item, just above it.
On 10/12/06, Raziel Alvarez [EMAIL PROTECTED] wrote:
Consider this
ul
lisome menu
ul
lisome submenu/li
lisome submenu/li
lisome submenu/li
lisome submenu/li
/ul
/li
/ul
if I hover and make a fadeOut fadeIn
I can't seem to get it to work in IE7, but this was supposed to do that.
http://interface.eyecon.ro/docs/autocomplete
This one too
http://www.dyve.net/jquery/?autocomplete
On 10/11/06, Rey Bango [EMAIL PROTECTED] wrote:
I'm looking for Google suggest style functionality and wanted to know
Unfortunately, http://jquery.com/src/latest/ doesn't actually return the
lastest jQuery release. It returns svn revision 29 which was before the
days of the jQuery object; jQuery 1.0.2 is based on svn revision 413. To
download the latest stable version of jQuery go to
I expanded on that auto complete a little, because I use xajax
http://www.cyberlot.net/demos/auto_xajax_jquery/
No examples just code, theres a couple fixes in the code to the original
that I meant to submit to the author.
It uses a diffrent data format so instead of having to use # values in
Ohhh... okay I get it now. Just need to implement a timeout. Try
something like this:
var navTimeout = null;
function mouseOver(e) {
if (navTimeout) clearTimeout(navTimeout);
showDropDown();
};
function mouseOut(e){
navTimeout = setTimeout(hideDropDown, 1000);
};
function showDropDown()
Hi Glen,
Thanks for the heads up. I actually used the second option last night
and it worked great. I tested it in IE7 as well and it fired without a
hitch.
Rey
Glen Lipka wrote:
I can't seem to get it to work in IE7, but this was supposed to do that.
On Oct 12, 2006, at 10:34 AM, Brandon Aaron wrote:
On 10/12/06, Rey Bango [EMAIL PROTECTED] wrote:
- Populating divs or tables (tabular data) from a JSon or XML
result set
using JQuery
Ahhh ... that gives me an idea... how to update select elements with
JSON. That seems to come up a lot
On Oct 12, 2006, at 18:04, Blair Mitchelmore wrote:
Unfortunately, http://jquery.com/src/latest/ doesn't actually
return the
lastest jQuery release. It returns svn revision 29 which was before
the
days of the jQuery object; jQuery 1.0.2 is based on svn revision
413. To
download the
On 10/12/06, Karl Swedberg [EMAIL PROTECTED] wrote:
Brandon, That would be GREAT! I'd love to learn how to do that
myself. :) I can set up an author account on the blog for you if
you'd like. Or, you can just send me the tutorial and I'll format it
and post it for you.
Hook it up! Not sure
Hello,The following test code moves 2 form elements from one location in the DOM to another. Both elements retain their state just fine in FireFox, but in IE the current state of the checkbox is lost when the element is moved:
script$(function() { $('#btn').toggle( function() {$('#d1
I like using the forum version of the list at
http://www.nabble.com/JQuery-f15494.html
http://www.nabble.com/JQuery-f15494.html
Rey Bango-2 wrote:
Hi Roy,
Do you mean replying to messages on this list?
Rey...
Kolak Roy M. wrote:
Dumb question,
How do I apply to messages?
come on? someone shouldknow something about this...
badtant wrote:
hi!
i'm trying to use the ajax function loadIfModified to load an extrernal
html-file into a div.
div id=helptext/div
$(#helptext).loadIfModified(help-sida1.html);
in help-sida1.html i have the following code:
Hi,
I am using the http://interface.eyecon.ro/docs/drop JQuery interface plugin
to drag images and drop them in a div.
How could I get the mouse position (event) in the ondrop handler ?
Example:
=
$('#mydiv').Droppable({accept:'myimageclass',ondrop:function(drag)
{
/* How can I access
We just relaunched the Age of Empires III Community website with a new
skin. I used jQuery and the DOM Builder plugin for the navigation and
for the styled HRs. I threw the nav together pretty quick ... so it is
a bit ineffiecient but developer performance was at an all time high
and it works. :)
What's the encoding of the page that you're loading into? Do you have
a demo of the pages in action, so that we can verify the problem?
--John
On 10/12/06, badtant [EMAIL PROTECTED] wrote:
come on? someone shouldknow something about this...
badtant wrote:
hi!
i'm trying to use the
That is correct. I would change /src/latest/ to be current, but there
are lots of people who are loading it dynamically from their web
sites, and I don't want to break their existing code.
For now, the latest version can always be found here:
http://jquery.com/src/jquery-latest.js
Very very nice :-) I'm a huge Age of Empires fan, so this makes me really happy.
--John
On 10/12/06, Brandon Aaron [EMAIL PROTECTED] wrote:
We just relaunched the Age of Empires III Community website with a new
skin. I used jQuery and the DOM Builder plugin for the navigation and
for the
http://www.malsup.com/jquery/form/
Pierre wrote:
Hello,
I have been trying to figure out how I could use the form plugin
(http://jquery.com/dev/svn/plugins/form/form.js). I'm aware of the examples
embedded in the code but I guess this is to advanced for me. Is there
documention for
I often see this in reverse... but your apache server serves page with
1 default character set. you can override this with a meta, but
don't do it unless they are sister sets (iso-8859-*).
I see from your accented vowels, that the characters are UTF, but the
encoding says it's not.
Bite the
On 12/10/06, John Resig [EMAIL PROTECTED] wrote:
That is correct. I would change /src/latest/ to be current, but there
are lots of people who are loading it dynamically from their web
sites, and I don't want to break their existing code.
For now, the latest version can always be found here:
Or, perhaps a parm to turn it *on*, since not breaking on false is the
default right now, and we can avoid busting people's code that way.
Since /maybe/ confusing the code for some developer (who we don't
know) using a strange technique is such a low priority - I think this
should definitely be
Peter Woods schrieb:
What other problems did the second fix (or hack, as it's more aptly
called) cause? Just wondering what sort of things I should test as I
try and find a better solution to it. Any suggestions for
accomplishing the same behavior for the second fix without resorting
to
After adding your hack, the test suite produced tons of errors. I think
it would be best if you just add the fix in your version and run the
test suite against it. With FF and FireBug installed, it should be quite
obvious what exactly is breaking. It's way to much to describe it here.
I just
Todd Menier schrieb:
Hello,
The following test code moves 2 form elements from one location in the
DOM to another. Both elements retain their state just fine in FireFox,
but in IE the current state of the checkbox is lost when the element is
moved:
script
$(function() {
http://host.sonspring.com/dragdrop/
^ See here for example.
I am wondering if / how to use the Interface elements for jQuery to make the list item labeled "Company" able to be draggable / droppable, but only within its containing column.
m2f
On Wednesday 11 October 2006 06:06, Paul Bakaus wrote:
You can check it out here:
http://paul.jquery.com/plugins/nifty/
Paul, FYI: on Konqueror (3.5.2) the part 'taken out' of the rounded corners
becomes black. Because the background is white, the obviously looks pretty
bad. Fixing this is
Nathan Smith wrote:
http://host.sonspring.com/dragdrop/
Hi Nathan!
Change your javascript code to this and try again!
$(document).ready(
function () {
// Save options
hshOptions = {
accept: 'sortableitem',
activeclass: 'background',
On 10/12/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote:
But a quick question, what do you mean with before I found out about
the is method? Can you give an example an how to use this is method?
I added a hasClass method because I needed to check a matched element
to see if it had
Answering my own question...
iAutocompleter now requires iUtil, which is (so far as I can see)
undocumented. Include that other library and the autocompleter works as
expected.
m.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Grimm
Sent:
Hi Karl,
Love your blog! It's made a huge difference in wrapping my head around
jquery.
Some suggestions for tutorials:
* An example of how to use XPATH. The style switcher on Kevin's blog --
http://www.kelvinluck.com/article/switch-stylesheets-with-jquery -- is a
very slick use of XPATH, and
Thanks. Here's what I ended up doing, if anyone's curious. It would be slick if there were some event that gets fired when an element is moved to a different location in the DOM tree so I wouldn't have to keep track of that (there are a few places in my real code where that could happen), but this
Hi,
For any Francophones in the crowd, Fil's site at
http://www.jquery.info/ has some great stuff. Fil and I excanged a
couple emails on this list with regard to translating some of them --
he was all for it -- but fill in busy excuse here.
Here's an outline of some recent stuff there:
*
http://www.cyberlot.net/demos/xajax_jquery_plugin/demo.php
View sources
http://www.cyberlot.net/demos/xajax_jquery_plugin/
Basically jquery.php enables access to all basic methods of jquery that
can be called through direct methods, Will try to run any method you
call, but does an error log on
On 10/12/06, Karl Swedberg [EMAIL PROTECTED] wrote:
Coming soon on learningjquery.com (as soon as I find the time tofinish them) -- multi-level drop-down menus (with delayed hide onmouseout)You should check out the dropdown menu in
The_javascript_Anthology by SitePoint (the first half of chapter
hi,
i have problem when using the center plugin in combination with opera
and a div that has fixed height and overflow:auto; there is a small
opera bug that expands that height to a strange value but that is solved
with a second div style=overflow:hidden inside the parent with fixed
height.
it
I'm no expert, but I don't think 'not' is a perfect inversion of filter. I think it filters out elements that match ANY of the filters, ie it removes elements of type 'div' and elements with the class 'calendar'.Blair
On 10/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,I have this simple
Hi guys today I finally got around to using jQuery today and man do i
love it. wished that I had known about it before I started my last
project. would have saved me a couple of months work.
Ok well back to today
I needed to take a structure (table made of div's) and sort by
alphabetic order
On Oct 12, 2006, at 3:36 PM, Anders Schneiderman wrote:
Some suggestions for tutorials:
* An example of how to use XPATH. The style switcher on Kevin's
blog --
http://www.kelvinluck.com/article/switch-stylesheets-with-jquery --
is a
very slick use of XPATH, and more help for newbies
I've updated the form plugin once again to fix a bug in ajaxSubmit
which I found while unit testing. I thought I'd take this opportunity
to summarize the changes made recently:
1. Incorporated Matt Grimm's optimized serialization code.
2. Defaulted the form method to 'GET' per Klaus's
this is a helluva plugin... totally without html additions, and the
magic just happens!
/*
*
* TableSorter - Client-side table sorting with ease!
*
* Copyright (c) 2006 Christian Bach (http://motherrussia.polyester.se)
* Licensed under the MIT License:
*
I've actually already created the drop-down menu for
the blog post:
http://test.learningjquery.com/dropdown.htm
Nice job, Karl. It looks great.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
On 10/12/06, Karl Swedberg [EMAIL PROTECTED] wrote:
On Oct 12, 2006, at 4:59 PM, Aaron Heimlich wrote:
You should check out the dropdown menu in The JavaScript Anthology
by SitePoint (the first half of chapter 15 and parts of chapter
16). It doesn't use jQuery, but the book is co-authored
Have you already written this?
On Thu, 2006-10-12 at 16:16 -0700, Ⓙⓐⓚⓔ wrote:
this is a helluva plugin... totally without html additions, and the
magic just happens!
/*
*
* TableSorter - Client-side table sorting with ease!
*
* Copyright (c) 2006 Christian Bach
Yes your code is pretty cool and definitely sorts the table by a
specific column. what I was actually talking about was to sort a table
that might or might not have a header / might not even be a table (a
list for example) on a sub element text node value. and you might not
want ot give the user
Not my code, Christian Bach is the father of that code. But I used it
for a cool little sortable table!
On 10/12/06, Adrian Sweeney [EMAIL PROTECTED] wrote:
Have you already written this?
On Thu, 2006-10-12 at 16:16 -0700, Ⓙⓐⓚⓔ wrote:
this is a helluva plugin... totally without html
in my mind a list (ul) is just a table without the headings and only
one field should be easy to create sortable list plugin.
On 10/12/06, Adrian Sweeney [EMAIL PROTECTED] wrote:
Yes your code is pretty cool and definitely sorts the table by a
specific column. what I was actually talking
On Oct 12, 2006, at 7:14 PM, Mike Alsup wrote:
On a final note, I've updated the demo page to include a link to run
the unit tests. If some of you Safari users could run the unit tests
I would appreciate it.
Demo page: http://malsup.com/jquery/form/
Unit test:
If I remember correctly, the new google-group beta can also archive
mailing list. Maybe can setup one there.
On 10/12/06, Raffael Luthiger [EMAIL PROTECTED] wrote:
Jan Sorgalla wrote:
If you want it more forum-like, check:
http://www.nabble.com/JQuery-f15494.html
Can somebody set a link to
I was just reading Jack Slocum's article on easy ways to avoid
javascript leaks
(http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/).
He mentions a FF plugin called the Leak Monitor
(http://dbaron.org/mozilla/leak-monitor/). I just tried this on one
of my web
89 matches
Mail list logo