[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Klaus Hartl


Eridius wrote:


The tabs don't work since they use .eq() function(ofcourse you just need the
1.1 patch js and it works fine)


The reason they don't work is because there is UI Tabs (aka Tabs 3) now 
that works fine with jQuery 1.2 - I'm not planning to update the Tabs 2 
branch any longer.


http://jqueryjs.googlecode.com/svn/trunk/plugins/ui/ui.tabs.js

http://docs.jquery.com/UI/Tabs (documentation not ready yet)


--Klaus


[jQuery] Updated Demos to v1.2

2007-09-12 Thread Glen Lipka
I did some spring cleaning on the demos I have accumulated.
I erased the ones that I couldn't remember what they were demonstrating and
updated the rest to 1.2.
No bugs.  In fact, some issues were resolved.

http://www.commadot.com/jquery/

I also (finally) got around to gzipping my JS files.  Makes a big
difference.

It's nice to actually finish a project, no matter how small it is.
Next thing I want to do is chip in and help write mini-demos for the
1.2documentation wiki.

Glen


[jQuery] Re: hover and hoverIntent

2007-09-12 Thread macgregor

I was having the same issue using the hover function for some
suckerfish drop-down nav tonight. Once I switched to using
the .mouseover and .mouseout events like Dad has above, it worked
properly -- with the status bar showing the links from the nested uls.

On Aug 27, 3:46 pm, Dan Evans [EMAIL PROTECTED] wrote:
 The function it seems like you're writing can be much simpler,
 something like:
 $('#menu li a').mouseover( function(){
 window.status = $(this).attr('href');});

 But that still won't work because the hover function still forces that
 function to return false to prevent the normal browser problems of
 using mouseover/mouseout.

 - Dan

 On Aug 27, 2:30 pm, Dragan Krstic [EMAIL PROTECTED] wrote:

  $(li).bind(mouseover,function(){

  $(this).find(ul li).bind(mouseover,function(){
   window.status = $(this).children(a).attr(href);

  });
  });

  Or

  $(li).bind(mouseover,function(){

  $(this).find(ul li a).bind(mouseover,function(){
   window.status = $(this).attr(href);

  });
  });

  Something like that

  2007/8/27, Dan Evans [EMAIL PROTECTED]:

   That's a good thought. But would I attach that to all links inside of
   the hovered element? In that case wouldn't the code in hover still
   clobber that and prevent it from being executed?
   It won't work if I just put that code inside the hover functions
   because there is no href associated with the element being hovered.
   Just to clarify markup is like:

   ul
   lia href=1.htmlone/a
   ul
   lia href=1a.htmlonea/a/li
   lia href=1b.htmloneb/a/li
   lia href=1c.htmlonec/a/li
   /ul
   /li
   lia href=2.htmlone/a
   ul
   lia href=2a.htmlonea/a/li
   lia href=2b.htmloneb/a/li
   lia href=2c.htmlonec/a/li
   /ul
   /li
   ...
   /ul

   So hover is attached to the outer most li elements and on hover the
   ul inside of that should appear. This works fine except that then
   the links inside don't display in the status bar because of hover. I
   actually notice links such as 1.html and 2.html displaying in the
   status but the sublinks 1a.html, 2a.html, etc. are the ones that
   don't display.

   - Dan

   On Aug 27, 1:55 pm, Dragan Krstic [EMAIL PROTECTED] wrote:
Solution would be:
window.status = $(this).attr(href), I think.

2007/8/27, Dragan Krstic [EMAIL PROTECTED]:

 I noticed that, too. I would give a shot to window.status. It was
   handy
 during href=javascript:; time.

 2007/8/27, Dan Evans [EMAIL PROTECTED] :

  I am wondering if anyone has noticed the issue with jQuery's hover
  function that makes it less than perfect for dropdown menus.
   Normally
  most browsers display the href of the link in the status bar at the
  bottom of the window when a user hovers that link. Because hover
  suppresses the default onmouseover and onmouseout behaviors by
  returning false for them for all children of the hovered element, it
  breaks the default browser feature. Recently a client of mine
  complained about this and I was wondering if anyone else has had
   this
  problem, found a solution or workaround or anything of that sort. My
  first reaction is to say that this is just what you have to trade
   away
  to get a nicer hover event, but obviously it would be great to have
  both.
  Thanks.

 --
 Dragan Krstić krdr
http://krdr.ebloggy.com/

--
Dragan Krstić krdrhttp://krdr.ebloggy.com/

  --
  Dragan Krstić krdrhttp://krdr.ebloggy.com/



[jQuery] Re: hover and hoverIntent

2007-09-12 Thread macgregor

I was having the same issue using the hover function while working on
some
suckerfish drop-down nav tonight. Once I switched to using
the .mouseover and .mouseout events like Dan showed above, it worked
properly -- with the status bar showing the links from the nested
uls.

On Aug 27, 3:46 pm, Dan Evans [EMAIL PROTECTED] wrote:
 The function it seems like you're writing can be much simpler,
 something like:
 $('#menu li a').mouseover( function(){
 window.status = $(this).attr('href');});

 But that still won't work because the hover function still forces that
 function to return false to prevent the normal browser problems of
 using mouseover/mouseout.

 - Dan

 On Aug 27, 2:30 pm, Dragan Krstic [EMAIL PROTECTED] wrote:

  $(li).bind(mouseover,function(){

  $(this).find(ul li).bind(mouseover,function(){
   window.status = $(this).children(a).attr(href);

  });
  });

  Or

  $(li).bind(mouseover,function(){

  $(this).find(ul li a).bind(mouseover,function(){
   window.status = $(this).attr(href);

  });
  });

  Something like that

  2007/8/27, Dan Evans [EMAIL PROTECTED]:

   That's a good thought. But would I attach that to all links inside of
   the hovered element? In that case wouldn't the code in hover still
   clobber that and prevent it from being executed?
   It won't work if I just put that code inside the hover functions
   because there is no href associated with the element being hovered.
   Just to clarify markup is like:

   ul
   lia href=1.htmlone/a
   ul
   lia href=1a.htmlonea/a/li
   lia href=1b.htmloneb/a/li
   lia href=1c.htmlonec/a/li
   /ul
   /li
   lia href=2.htmlone/a
   ul
   lia href=2a.htmlonea/a/li
   lia href=2b.htmloneb/a/li
   lia href=2c.htmlonec/a/li
   /ul
   /li
   ...
   /ul

   So hover is attached to the outer most li elements and on hover the
   ul inside of that should appear. This works fine except that then
   the links inside don't display in the status bar because of hover. I
   actually notice links such as 1.html and 2.html displaying in the
   status but the sublinks 1a.html, 2a.html, etc. are the ones that
   don't display.

   - Dan

   On Aug 27, 1:55 pm, Dragan Krstic [EMAIL PROTECTED] wrote:
Solution would be:
window.status = $(this).attr(href), I think.

2007/8/27, Dragan Krstic [EMAIL PROTECTED]:

 I noticed that, too. I would give a shot to window.status. It was
   handy
 during href=javascript:; time.

 2007/8/27, Dan Evans [EMAIL PROTECTED] :

  I am wondering if anyone has noticed the issue with jQuery's hover
  function that makes it less than perfect for dropdown menus.
   Normally
  most browsers display the href of the link in the status bar at the
  bottom of the window when a user hovers that link. Because hover
  suppresses the default onmouseover and onmouseout behaviors by
  returning false for them for all children of the hovered element, it
  breaks the default browser feature. Recently a client of mine
  complained about this and I was wondering if anyone else has had
   this
  problem, found a solution or workaround or anything of that sort. My
  first reaction is to say that this is just what you have to trade
   away
  to get a nicer hover event, but obviously it would be great to have
  both.
  Thanks.

 --
 Dragan Krstić krdr
http://krdr.ebloggy.com/

--
Dragan Krstić krdrhttp://krdr.ebloggy.com/

  --
  Dragan Krstić krdrhttp://krdr.ebloggy.com/



[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Alexandre Plennevaux

Hey that's indeed possible in my case: i used the pack in 1.1.4 and the min
in the 1.2 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Sepulveda
Sent: mardi 11 septembre 2007 23:09
To: jQuery (English)
Subject: [jQuery] Re: jquery 1.2 feedback


Curious, would the speed increases come from using the minified version
verses the packer version?

On Sep 11, 3:07 pm, Web Specialist [EMAIL PROTECTED]
wrote:
 Hey Rey: what's Purple Include?

 2007/9/11, Alexandre Plennevaux [EMAIL PROTECTED]:



  Rey, let's see if u r really the speedmaster _ like, could you say 
  ten time really fast:  I tweaked the ternary conditions across a 
  same origin dynamic object literal expression while templating the 
  script using Purple Include like techniques  ?

  :D

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of Rey Bango
  Sent: mardi 11 septembre 2007 22:44
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: jquery 1.2 feedback

  Well, if John won't take credit for the speed increases, then, I
WILL

  Yeah, I tweaked the ternary conditions across a same origin dynamic 
  object literal expression while templating the script using Purple 
  Include like techniques.

  That's what sped it up! Enjoy! ;)

  Rey...

  John Resig wrote:
   just wanted to report that i had absolutely not a single issue 
   switching from 1.1.4 to 1.2 and i use tons of plugins.

   The speed gain for me is more obvious with this release than with 
   the move from 1.1.3 to 1.1.4. Also, animations and effects are
smoother.

   Interesting - I've now heard this at least 3 times now - that 
   there have been significant speed ups in 1.2. I find this 
   particularly interesting because I didn't make any intentional 
   speed tweaks - I was purely adding features. I wonder what I 
   changed to cause this to occur!

   Thus, so far so good and congratulation to the whole team for 
   this slick, steel-solid library ! I'm really broke for the 
   moment, but it's been a while i last donated to the project, and 
   as soon as i see an extra, you'll get my renewed thank you in
financial terms.

   :-) Anything is appreciated - thanks!

   --John

  Ce message Envoi est certifié sans virus connu.
  Analyse effectuée par AVG.
  Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 
  10/09/2007
  17:43

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.15/1002 - Date: 11/09/2007
17:46
 



[jQuery] Re: Invitation from Dug Falby ([EMAIL PROTECTED])

2007-09-12 Thread Tane Piper

Wow, I had heard about the Quechup reading your contacts list and
spamming, looks like we've got it here too!


On 12/09/2007, Dug Falby [EMAIL PROTECTED] wrote:
 DugFalby ([EMAIL PROTECTED])

 has invited you as a friend on Quechup...

   ...the social networking platform sweeping the globe



 Go to: http://quechup.com/join.php/aT0wMDAwMDAwMDEwMTkwMjkzJmM9MTAzMzcz to
 accept Dug's invite



 You can use Quechup to meet new people, catch up with old friends,
 maintain a blog, share videos amp; photos, chat with other members, play
 games, and more.

 It's no wonder Quechup is fast becoming 'The Social Networking site to be
 on'



 Join Dug and his friends today:

 http://quechup.com/join.php/aT0wMDAwMDAwMDEwMTkwMjkzJmM9MTAzMzcz

 --

 You received this because Dug Falby ([EMAIL PROTECTED]) knows and
 agreed to invite you. You will only receive one invitation from
 [EMAIL PROTECTED] Quechup will not spam or sell your email address,
 see our privacy policy - http://quechup.com/privacy.php

 Go to
 http://quechup.com/emailunsubscribe.php/ZW09anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20%3D
 if you do not wish to receive any more emails from Quechup.

 --

 Copyright Quechup.com 2007.

 

 Go to
 http://quechup.com/emailunsubscribe.php/ZW09anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20%3D
 if you do not wish to receive any more emails from Quechup




-- 
Tane Piper
http://digitalspaghetti.me.uk

This email is: [ ] blogable [ x ] ask first [ ] private


[jQuery] Superfish updated to work with jQuery 1.2

2007-09-12 Thread Joel Birch

Hi all,

Just a quick note to say that I have updated the Superfish menu plugin
to work with jQuery 1.2. The only change required was changing li[ul]
to li:has(ul) in two places, which was also reported by Sozzi (thanks
Sozzi). The current Superfish version is now 1.3.1. There is also a
link to the older JS file for use with jQuery 1.1.3 to 1.1.4 on my
demo/docs page, which is here:
http://users.tpg.com.au/j_birch/plugins/superfish/

Thanks to John and the amazing jQuery team for your hard work on 1.2!

Joel Birch.


[jQuery] unable to attach events when blockui is active

2007-09-12 Thread Jack Killpatrick


Hi All,

I'd like to use the blockUI plugin to block a div while performing an 
ajax call. In the call, the div that's being blocked gets reloaded. 
Then, before I call unblock, I reattach event handlers (click handlers, 
etc) to the controls in the newly loaded div. Well, I try to, at least. 
When I try to do that, the event handlers do not work (an attached click 
does nothing). I'm guessing that they can't be attached while the div is 
being blocked, but am not sure.


Known issue? Workaround? Thoughts?

I would like to reattach the event handlers before removing the block on 
the div, so that it's ready when unblock is called.


If it helps, I'm doing this before the ajax call:

$('#ml_shippingAddresses').block('h1Saving.../h1', { 
backgroundColor:'white', border: '1px solid silver' });


Then when the ajax call returns I'm repopulating the html inside 
ml_shippingAddresses and reattaching event handlers to DOM nodes in it. 
Then calling:


$('#ml_shippingAddresses').unblock();

Thanks,
Jack




[jQuery] Re: changing the order of alist

2007-09-12 Thread GianCarlo Mingati

Hi Renaud,
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/cycle/na3cycle.html
it works.

Basically just styling the markup in an appropriate way, and using the
jquery.cycle plugin i want to realize a jqueryfied version of
slideshowpro (the flash component).
This is just a test to see if it's possible. And yes, it is.
;-)
GC


On Sep 6, 4:45 pm, Renaud [EMAIL PROTECTED] wrote:
 On 6 sep, 09:02, GianCarlo Mingati [EMAIL PROTECTED]
 wrote:

  ok, it is better to have the images in an array, and then construct
  the list.
  But is there a way with jquery of changing the order of a list?
  GC

 Here is the jQuery method version:

 jQuery.fn.extend({ scramble :  function() {
 var i = this.size();
 if (!i) return this;
 while (--i) {
 var j = Math.floor(Math.random() * (i+1));
 var tmp1 = this.slice(i, i+1);
 this.slice(j, j+1).after(tmp1).insertAfter(tmp1);
 }
 return this;

 }});

 $(document).ready(function() { $('#ul li').scramble(); });

 Renaud Drousies



[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Bernd Matzner


 I'm using Jorn's Form Validation in a monster form. Using jQuery
 1.2minified version returns all validation in =~ 16 sec. Using
 uncompressed
 version returns in 6 sec.

Hi, somewhat unrelated to the thread: 6 or even 16 secs seem like an
eternity. What would be the disadvantages of using server-side
validation in such a case? I'm asking this because I keep wondering if
server-side validation is necessary anyway for non-JS visitors, why
not use Ajax and do the validation on the server and simply display
the errors using JS if available...

Bernd



[jQuery] Re: Visual jQuery

2007-09-12 Thread Dan Atkinson

I'm glad there's still people who appreciate the XML support as well.

Does sound like a while to happen though...

Thanks all the same Jörn.



[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-12 Thread Christof Donat

Hi,

 The end result is probably a net enlargement of included
 JS, IMO.

You can always include the convenience functions in your own code. Then you 
have no net enlargement of code. You even can leave out those you don't 
intend to use reducint the size of the whole js code.

Of course you can say, that this speaks for using no JS library at all, 
because cou can always define all the functions you need in your own code. 
Well the reason for libraries is to safe work. Thus it is allways a ballance 
between including expectedly much used functions and excluding less used. 
More powerful functions are more likely to be used a lot than functions with 
only a single, very special use case.

Based on that I very much appreciate the decissions of the dev team. That way 
leads to a library that is as powerfull as possible by staying as small as 
possible.

There are still some whishes I'd have to make some functions more powerfull. 
specially those are text(), attr() and is(). There was a discussion about 
those functions: 
http://groups.google.com/group/jquery-en/browse_thread/thread/30e8d9ae2fc8b57e/d8cf031c88b1da64?rnum=1
I guess, the core developers did not have the time to join that discussion, 
though I'd appreciate their comments.

Christof


[jQuery] Zope3/JQuery Sprint

2007-09-12 Thread Roger Ineichen

Hi all

I'm a core developer of Zope3 and we organize a Zope3 
Sprint in the Boston Area.

One task whould be to integrate JQuery using JSON RPC. And 
intergrate JSON RPC support for JQuery which JQuery doesn't 
support right now.

We also thinking about to build a Zope3 application server 
release which offers built in JQuery and JSON libraries
ready to use for deveopers.

You can see some early prototyping here:
http://alpha.z3c.org 


Let me know if somebody is interested to join us at the sprint
in Concord, MA, USA.

The sprint starts Monday, September 24, 2007 at 9:00 am EST 
and lasts until Friday, September 28, 2007 in the afternoon.

The goal of the sprint is to work on Zope 3 core packages or 
technologies closely related to it. The topics that we will be 
able to address will heavily depend on the participants.

For more info about the Zope3 sprint:
http://wiki.zope.org/zope3/FoliageSprint

You can read more about Zope3 here:
http://www.zope.org/


Just a general question to all of you; Is anybody using 
JQuery on top of Zope3 or another Python framework?

If yes, we started uploading some JQuery plugin libraries 
to the PyPi:
http://pypi.python.org/pypi?%3Aaction=searchterm=jquery


Regards
Roger Ineichen
_
Projekt01 GmbH
www.projekt01.ch
Boesch 65
6331 Hünenberg
phone +41 (0)41 781 01 78
mobile+41 (0)79 340 52 32
fax   +41 (0)41 781 00 78
email [EMAIL PROTECTED]
_
END OF MESSAGE



[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Aaron Porter
Tom Sieron' wrote:
 On 9/12/07, Justin Sepulveda [EMAIL PROTECTED] wrote:
   
 Curious, would the speed increases come from using the minified
 version verses the packer version?

 

 I've recently stumbled upon such an opinion :
 http://www.julienlecomte.net/blog/2007/08/21/gzip-your-minified-javascript-files/

 Could someone in the know please comment on the possible overhead for
 unpacking and eval'ing mentioned in this article?

 Better to minify or to pack (regarding execution time, not the
 download time and/or bandwidth load)?

   
There is definitely overhead involved in the startup of packed scripts. 
That's the price you pay for the smaller file size. Depending on the 
connection speed it may be faster to use the compressed version.

When you minify you get a smaller file size than the original but not as 
small as the packed version. You don't incur any execution overhead and 
probably get a small performance boost because there is less for the 
JavaScript interpreter to parse. If your server (and the browser) 
supports compression you can get even better performance because the 
decompression is performed by the browser, not the JavaScript interpreter.

After the packed version's initial hit at startup, packed and minified 
versions should perform the same.

Aaron


[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-12 Thread Pyrolupus

Peter,

On Sep 11, 5:57 pm, Peter Bengtsson [EMAIL PROTECTED] wrote:
 Do I need the XPath Compatibility Plugin to do
 $('[EMAIL PROTECTED]file]') or does the deprecation only apply to
 $('[EMAIL PROTECTED]')?

1) It's only deprecated, not removed, so it will continue to work even
without the XPath Plugin.

2) John noted earlier in this thread that the 1.2 implementation just
ignores the @:

On Sep 11, 10:28 am, John Resig [EMAIL PROTECTED] wrote:
 Yep, it's still just deprecated in 1.2. If you provide an extra @, we
 just ignore it and treat it like a normal attribute selector.

Pyro



[jQuery] blockUI scope / $.unblockUI not closing

2007-09-12 Thread Brook Davies
Hello,

 

How can I reference the blockUI window if $.unblockUI will not close it?

 

I am using blockUI and can't get it to close from an event handler within an
object using $.unblockUI. The object that contains the call to  $.unblockUI.
is not the same object that called  $.blockUI(). 

 

Brook

 



[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-12 Thread Joan Piedra
Hi Peter, now you can use simple css selectors for this.
$('input[type=file]')
$('input[type]')

Also, you could use a simple jQuery selector for this, it is supposed to be
easier and faster. http://docs.jquery.com/Selectors
$(':file')

On 9/11/07, Peter Bengtsson [EMAIL PROTECTED] wrote:


 Do I need the XPath Compatibility Plugin to do
 $('[EMAIL PROTECTED]file]') or does the deprecation only apply to
 $('[EMAIL PROTECTED]')?

 /clearly not an XPath wiz

 On 9/11/07, John Resig [EMAIL PROTECTED] wrote:
 
  Hi Everyone -
 
  jQuery 1.2 has been released!
 
  More information (and a jQuery UI sneak peek!):
  http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/
 
  Full release notes and download information:
  http://docs.jquery.com/Release:jQuery_1.2
 
  Enjoy!
 
  --John
 


 --
 Peter Bengtsson,
 work www.fry-it.com
 home www.peterbe.com
 hobby www.issuetrackerproduct.com




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: Learning JQuery book typo: plugins repo URL is 404

2007-09-12 Thread Joan Piedra
Hello,

I believe it's easier to add an insensitive url support/redirection to the
plugin repository than fix a typo bug in a book.
Maybe John and Karl can take a look at this.

PS. Thanks to Karl and Jonathan for such a great book, it's incredibly
awesome and really well written (in both ways: code and grammar ;)


On 9/11/07, Stephan Beal [EMAIL PROTECTED] wrote:


 Hiya!

 i'm not sure where to post bugs related to the Learning jQuery book,
 so i'll drop it here:

 Page 309 says:

 The jquery.com Plugin Repository at http://jquery.com/Plugins/ is a
 great place
 to start when looking for documentation.

 That URL is a 404, though - plugins should be lower-case.

 Perhaps the webmaster can adjust for that, rather than waiting on the
 next edition of the book.

 :)




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: rounded border plugin?

2007-09-12 Thread Matt



On Sep 11, 3:29 pm, Stephan Beal [EMAIL PROTECTED] wrote:
 On Sep 11, 11:14 pm, Matt [EMAIL PROTECTED] wrote:

  Hi All,
  I'm new to JQuery, and relatively new to JS. I noticed there are a few
  plugins for doing rounded corners, but the ones I've seen seem to
  work on background colors only.

 Perhaps this one:

 http://methvin.com/jquery/jq-corner.html

 (You didn't tell us which one(s) you've tried already.)

I have tried that one and the jquery.corner.js plugin. Both seem to
essentially cover the same basis.


  What I would ideally like is to have
  only rounded borders, in which the background and/or border color
  would change if the area inside the border was selected. Is there
  anything like this?

 i'm not real clear what you mean by that. When you say selected, do
 you mean has the input focus or do you mean user dragged the mouse
 over the text, selecting it, or something different?

Yes I meant has the input focus. Sorry i should have been more
specific. An example of what I'm talking about would be here:
http://www.iterating.com/
If you click on Filter By Attribute on the top right, and click edit
for any of the sections. But I would like to use the input focus
instead of an href or button.

Thank you for responding, I really appreciate it.

matt



[jQuery] Re: Using wrap() and then removing the wrapped element without removing the children

2007-09-12 Thread Joan Piedra
Hmm.. Can't you clone the nodes and then just remove the _old_ parent div?

On 9/11/07, Pyrolupus [EMAIL PROTECTED] wrote:


 On Sep 11, 3:03 pm, Brook Davies [EMAIL PROTECTED] wrote:
  Easy Question I think. If I use (from Jquery 1.2):
 
  $(#myElem).wrapAll(div id='myDiv'/div);
 
  To wrap the div 'myDiv' around 'myElem', how can I later remove that div
  without removing the pre-existing myElem and any other contents of that
 div?

 I'm newish to jQuery, so my syntax is not the uberest, but something
 like the following would work:

 $('div#myDiv').after($('div#myDiv').children()).remove()

 In fact, it does work--I just tested it in FireBug.  (I just don't
 know the correct syntax to avoid referring to div#myDiv twice.)

 Pyro




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: Jquery Cheat Sheet

2007-09-12 Thread adrien

Thanks,

Here is the brand new version for the Jquery 1.2 release (because
there is more than on the roadmap!)
PNG http://www.box.net/shared/invpn0ge2k (1024x768px, 469.2 KB)
PDF http://www.box.net/shared/mx1ckj3l2h (A4, 585.0 KB KB)
PSD http://www.box.net/shared/4luxkdm639 (A4 120dpi, 6.5 MB - feel
free to modify it)

You can access all my work about Jquery Cheat sheet on box.net here:
http://www.box.net/shared/8ld3xfa82h

About the plugins Cheat Sheet, I will wait Sunday for the release of
Jquery UI...Should be really Awesome!

Adrien

On 11 sep, 15:24, Benjamin Sterling
[EMAIL PROTECTED] wrote:
 Great work adrien!

 On 9/10/07, adrien [EMAIL PROTECTED] wrote:





  Hi,

  I've just finished to update my work.
  I've read the Jquery 1.2 Roadmap and  take a look again to the Jquery
  1.1.4 release announcement, and have made some changes.
  Deprecated functions are no longer listed on the Sheet.
  Plus I've added some comments and Object properties as Footnotes...
  and some little improvements!

  Links are always the same:

  PNGhttp://www.box.net/shared/suz017p7p3(1024x768px, 442 KB)
  PDFhttp://www.box.net/shared/riknf0ul02(A4, 237 KB)
  PSDhttp://www.box.net/shared/13l8um12b2(A4 120dpi, 5.76 MB - feel
  free to modify it)

  I've seen on box that some of you have downloaded the pdf, please give
  me feedback.

  I'm working on a plugins back page, if you have any comments, you're
  welcome.

 --
 Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] Re: Superfish plugin fix for jQ1.2

2007-09-12 Thread Pyrolupus

On Sep 11, 7:17 pm, Joel Birch [EMAIL PROTECTED] wrote:
 On 9/12/07, sozzi [EMAIL PROTECTED] wrote:

  No biggie but I might as well save someone a few grey hair.

 Hey thanks for working this out for me. I am planning on debugging
 Superfish for jQuery 1.2 very soon so it's nice to know it seems to
 work after that small change. I'm kind of surprised that is the only
 change needed to tell the truth. Thanks.

Joel,

Wanted to highlight one of the other items in case you missed it:

On Sep 11, 4:35 pm, sozzi [EMAIL PROTECTED] wrote:
 After spending 30 minutes ruling out all other possibilities and a few
 broken gt(0) etc..

Sounds like there's the two XPath references PLUS a few gt(0)'s.

Pyro



[jQuery] Re: Visual jQuery

2007-09-12 Thread Pyrolupus

Yeah...but...

We're currently working on new tools to convert the documentation
into the old XML format (so that sites like Visual jQuery can be
updated for 1.2).

It's just what the man said.  I guess it'd be nice for said output to
be generated and then linked on jquery.com, though.

Pyro

On Sep 11, 3:59 pm, JeffG [EMAIL PROTECTED] wrote:
 On Sep 11, 12:07 pm, Stosh [EMAIL PROTECTED] wrote:



  On Sep 11, 11:22 am, Pyrolupus [EMAIL PROTECTED] wrote:

   All documentation has now been moved out of the jQuery internal code
   and onto the jQuery Documentation Wiki. We're currently working on new
   tools to convert the documentation into the old XML format (so that
   sites like Visual jQuery can be updated for 1.2).

   We'll be sure to let everyone know when that move is complete.

   Sounds like it'll take a bit before it's updated.

  What's the rationale here?  Seems like a shame.  When I'm on the road
  traveling and working I don't always have a net connection and love
  being able to just open the source.  I really hope standardize offline
  docs compatible with the wiki become available and a priority.  The
  docs are a big advantage of using jQuery.

 +1, having an xml file of the docs also makes it easier for people to
 support jQuery in things like dashboard widgets and editors like
 Komodo.

 JeffG



[jQuery] jQuery repeater

2007-09-12 Thread Akume

i'm new to Jquery and i'm trying to create a plugin that does
something similar to the way a .NET repeater works.  you supply an
array and a column template and it builds the table accordingly.  i
know that you can create an HTML string, attach events to it, and then
append that string to a div on the page.  similar to:

$(tabletrtd/td/tr/
table).click(dosomething).appendTo(#divOnPage);

however, for my plugin, the column template determines the dynamics of
the table (e.g. whether or not headers or columns are displayed,
styles for a column, hyperlink columns, etc. ).  that being said is
there a more efficient way to implementing this plugin than just
building the HTML string first, and then attaching all my events based
on classes within the HTML string?



[jQuery] Re: Learning JQuery book typo: plugins repo URL is 404

2007-09-12 Thread Pyrolupus

Karl,

I think that part of what Stephen was suggesting is that the webmaster
for jquery.com symlink (or rewrite or whatever) Plugins to
plugins/ so that the URL inside the printed book will work for its
readers.

Pyro

On Sep 11, 8:34 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 Thanks a lot, Stephan, for the note. I will send this on to the
 publisher.

 In the future, you can report errata directly at Packt's web 
 site:http://www.packtpub.com/support/book/jQuery

 Also, I'm keeping an informal list of errata on the book's companion
 site at:http://book.learningjquery.com/forums/

 Cheers,

 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Sep 11, 2007, at 6:02 PM, Stephan Beal wrote:



  Hiya!

  i'm not sure where to post bugs related to the Learning jQuery book,
  so i'll drop it here:

  Page 309 says:

  The jquery.com Plugin Repository athttp://jquery.com/Plugins/
  is a
  great place
  to start when looking for documentation.

  That URL is a 404, though - plugins should be lower-case.

  Perhaps the webmaster can adjust for that, rather than waiting on the
  next edition of the book.

  :)



[jQuery] charset question

2007-09-12 Thread Guoliang Cao

Sorry for resurrecting this post. But I only get a chance to look at
this problem recently again.

I'm hosting my library and game data files on a apache server. Is it
possible to customize ajax request to set request header to accept
GB2312 so that the server will only be serving data files using that
charset? How?

Thank you.
Guoliang

On Jul 5, 11:36 pm, Rhapidophyllum [EMAIL PROTECTED] wrote:
 I think you don't have to change the entire server setting, but header
 information in your individual server responses should be set to gb.

 On Jul 4, 2007, at 11:29 AM, Guoliang Cao wrote:



  Hi,

  I'm using jQuery 1.1.3 in my AJAX-based game viewer. I download game
  data through ajax calls. Game data are mostly encoded in gb2312. I
  currently have a problem: if I don't change the server side setting to
  send data in gb2312 format, I got unreadable characters on client
  side. Is it possible to setencoding/charset when I make an ajax call?
  The reason I don't like to change server side setting is I want to
  minimize the effort of installing my application to any web site.

  For those who are interested, here is my game viewer:
 http://www.daoqigame.com/jsgameviewer/index1.html

  Thank you.

  Guoliang



[jQuery] Re: google reader slick animation using jquery

2007-09-12 Thread Kia Niskavaara


When scrolling, new content is added all the time. But looking at Google Reader 
again, I realize 
that there is no animation involved at all. I was wrong.

But I still think that this could be done in a slicker way. When adding a lot 
of content to a page, 
wouldn't it be nice if the new content would be visible immediately (without 
having to use the 
scrollbar)? Some autoscroll feature. I would like the page to glide into a new 
position.

What do you think?

(also, I had some typos in my example. it should be 'it' everywere, not '$it'.)

Glen Lipka wrote:
 I use Google Reader, but I don't know which animation you are referring to.
 Can you be more specific?  Thanks,
 
 Glen
 
 On 9/11/07, *Kia Niskavaara * [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 
 How can I achieve a similar animation like the one used in google
 reader?
 
 I have a container and want to append a lot of elements. I'm not
 using jquery at all today and use
 
 for (var i = 0; i  itemlength; i++) {
container.appendChild(items[i]);
 }
 
 All I've achieved is this:
 
 for (var i = 0; i  itemlength; i++) {
var it = $(items[i]);
$it.hide();
$(container).append($it);
$it.show('fast');
// sleep ...
 }
 
 Is this the way to do it? I can't see any animations at all. And
 also all the items get the style
 display: block; when showing them. Is this necessary?
 
 Kia
 
 


[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-12 Thread Sergio Michels
Congratulations!

On 9/11/07, Stephan Beal [EMAIL PROTECTED] wrote:


 On Sep 11, 11:18 pm, John Resig [EMAIL PROTECTED] wrote:
  Only using shallow copy? You're definitely in a very, very, small
  minority, then. What are the use cases for shallow copying a large DOM
  structure, that has a ton of child elements?

 Shallow copying is useful, e.g., when copying images. Granted,
 however, that a deep copy is just as cheap for images because they
 don't have child elements. In my boardgaming interface i use(d)
 shallow clones to copy playing pieces from the piece tray to the
 game board.

  Because we want to move away from one-use specialty methods. arguing
  against the removal would be the same as arguing for the inclusion of
  getIfNotCached or getSynchronous.

 Fair enough.

  I'm confused about your complaint of file size, as well - we're
  literally talking about the difference between:
  $.get(url) and
  $.ajax({url: url, ifModified: true});

 i was assuming that the convenience funcs were removed to save a few
 bytes in the (growing) core. Under that assumption, the extra bytes
 simply moved from the core into the client code. Your justification
 for removing the convenience funcs goes deeper than saving a few bytes
 in the core, though, so my assumption was incomplete/incorrect.

   3) eq()/lt()/gt() are dead. Long live eq()/lt()/gt(). Again, the
 ...
  You don't have to hang on the dev list to be in tune with what's
  happening. These changes were put up on the wiki back in mid-June:
 http://docs.jquery.com/JQuery_1.2_Roadmap

 i was aware they were going away, just not clear about exactly why
 they are going away (other than because you can do the same thing
 with slice [by typing a bit more]).

  That being said, those method - 3 of them - were specialty methods
  that were only capable of performing one task - and they weren't
  terribly good at it either, as they had to interact with the selector
  engine in order to use it (which is, comparably, quite slow). Slice is
  a couple things: 1) Faster. 2) Uses an existing idiom, making it
  easier to use and learn. 3) More Powerful. 4) A reduction of the API.

 All fair enough points, though i would argue that greater-than and
 less-than are more commonly used idioms than slice. Since those
 functions are all long-timers in the API, wouldn't it make sense to
 keep them and reimplement them in terms of slice()? Of the 7 plugins
 i've published, only one of them is incompatible between 1.1 and 1.2,
 and only because lt() and gt() went away. Were it not for that, i
 wouldn't have had to edit any code to accommodate both 1.1 and 1.2.
 (OTOH, the fact that only 1 of 7 plugins uses gt/lt may indicate that
 those funcs are relatively seldom used.)

 With the coming of slice(), there is now a greater discrepancy between
 the functional API and the selectors, because there is no longer a
 symmetry between $(x).gt(2) and $(x:gt(2)), like there was before.
 Now it's $(x:gt(2)) vs $(x).slice(3). The off by one in the
 slice() forces me to stop and think every time i see it.


  No, evalScripts only occurs when when HTML is injected into the DOM
  - so if you load HTML from a remote page, the scripts contained in the
  HTML won't be executed until the HTML is actually inserted into the
  document.

 Excellent :). Thanks for that clarification.





[jQuery] Ajax link in docs for 1.2 crashes IE6

2007-09-12 Thread Eric Crull

Going through the Jquery 1.2 release notes using IE6 I couldn't even
access the page on Ajax.  Everytime I clicked the Ajax Link, the
browser folded like a house of cards.

A second problem exists under clone(true)  found in the Manipulation
link.  The documentation indicates that each cloned button will itself
be clonable.  However, in IE6, the only button that produces another
clone is the first Clone Me! button.  Any subsequent button-clone
does nothing when clicked.



[jQuery] position in selector

2007-09-12 Thread [EMAIL PROTECTED]

I have the following code

$('a').click(function() {
console.log('anchor'+ pos+' in page);
});

I'd like to be able to get the matched position number (pos) of each
element found, so if my page has 5 anchor tags, if i click on the
first a element in the page, its pos would be 1 (or 0), etc.



[jQuery] newbie: how can I get the # of options in a SELECT element?

2007-09-12 Thread Ojas

Using jQuery, how can I get the following value?

document.myForm.mySelectElement.options.length



[jQuery] Page Reload On Link Click

2007-09-12 Thread Dave

I've been following several tutorials, trying to learn JQuery and I've
been having some difficulty with what should be a trivial task.  When
I click a link to activate something like a div toggleing in and out
of site, I get jumped to the top of the page.  Also, my functions
don't seem to be working.  Can somebody help me with this?

a href=# class=comment_toggle[show comments]/a
script type=text/javascript
$(document).ready(function(){

$(a.comment_toggle).click(function(){$(div.comment).toggle();
return false;});
});
/script
div class=commentHere is the comment/div

CSS
.comment {
display: none;
border: 1px black solid;
}



[jQuery] BlockUI - IE does not interpret JS script

2007-09-12 Thread boomroker

Hi guys, been using Jquery a bit for my dashboard website at my work
just to add eye candy and such...
This is the first time I have run into an IE bug...

What happens is that once a table get loaded with my code it shows the
correct colours in Firefox on both windows and linux but does not
interpret the JS in the file that I load when I open it with IE.

Here is the code.

Thank you for any and all help

Marius

THE JS SNIPPET

$('#cserver').click(function() {
$.blockUI.defaults.pageMessage = h1Please wait.../
h1;
$.extend($.blockUI.defaults.overlayCSS, { backgroundColor:
'#fff' });
$.extend($.blockUI.defaults.pageMessageCSS, { color:
'#000', backgroundColor: '#fff' });
$.blockUI();
setTimeout($.unblockUI, 2000);

  $(#contentArea).load(rpc.php?o=+7+);

==THE PHP FILE (rpc.php)==

?php
$cOption = $_GET['o'];
$videowall_source = ;

switch($cOption) {
case 1:
$videowall_url = stats.html;
$fp = fopen($videowall_url, r) or die(The Information 
couldn't be
displayed!);
while(! feof($fp))
  {
 $videowall_source = $videowall_source . fgets($fp, 1024);
  } print $videowall_source;

break;

==Stats.html===

script type=text/javascript
$(tr).contains(RUNNING).addClass(green);
$(tr).contains(DOWN).addClass(red);
$(tr).contains(INITIALIZED).addClass(yellow);
$(tr:nth-child(odd)).addClass(odd);

/script

table
trtd id=namemts/tdtd id=statusRUNNING/td/tr
trtd id=nameosagent/tdtd id=statusDOWN/td/tr
trtd id=namevbt/tdtd id=statusRUNNING/td/tr
trtd id=nameccs/tdtd id=statusRUNNING/td/tr
/table



[jQuery] Check it out:download free,stock information,knowledge base,hot videos,hot games and hot tickets...

2007-09-12 Thread joe

Check it out:download free,stock information,knowledge base,hot
videos,hot games and hot tickets...
http://groups.google.com/group/all-good-things/web/very-useful-websites



[jQuery] BlockUI - IE does not interpret JS script

2007-09-12 Thread boomroker

Hi guys, been using Jquery a bit for my dashboard website at my work
just to add eye candy and such...
This is the first time I have run into an IE bug...

What happens is that once a table get loaded with my code it shows the
correct colours in Firefox on both windows and linux but does not
interpret the JS in the file that I load when I open it with IE.

Here is the code.

Thank you for any and all help

Boom

THE JS SNIPPET

$('#cserver').click(function() {
$.blockUI.defaults.pageMessage = h1Please wait.../
h1;
$.extend($.blockUI.defaults.overlayCSS, { backgroundColor:
'#fff' });
$.extend($.blockUI.defaults.pageMessageCSS, { color:
'#000', backgroundColor: '#fff' });
$.blockUI();
setTimeout($.unblockUI, 2000);

  $(#contentArea).load(rpc.php?o=+7+);

==THE PHP FILE (rpc.php)==

?php
$cOption = $_GET['o'];
$videowall_source = ;

switch($cOption) {
case 1:
$videowall_url = stats.html;
$fp = fopen($videowall_url, r) or die(The Information 
couldn't be
displayed!);
while(! feof($fp))
  {
 $videowall_source = $videowall_source . fgets($fp, 1024);
  } print $videowall_source;

break;

==Stats.html===

script type=text/javascript
$(tr).contains(RUNNING).addClass(green);
$(tr).contains(DOWN).addClass(red);
$(tr).contains(INITIALIZED).addClass(yellow);
$(tr:nth-child(odd)).addClass(odd);

/script

table
trtd id=namemts/tdtd id=statusRUNNING/td/tr
trtd id=nameosagent/tdtd id=statusDOWN/td/tr
trtd id=namevbt/tdtd id=statusRUNNING/td/tr
trtd id=nameccs/tdtd id=statusRUNNING/td/tr
/table



[jQuery] Re: position in selector

2007-09-12 Thread Klaus Hartl


[EMAIL PROTECTED] wrote:

I have the following code

$('a').click(function() {
console.log('anchor'+ pos+' in page);
});

I'd like to be able to get the matched position number (pos) of each
element found, so if my page has 5 anchor tags, if i click on the
first a element in the page, its pos would be 1 (or 0), etc.




Ben, try this:

var $anchors = $('a');
$anchors.click(function() {
console.log( $anchors.index(this) );
});


--Klaus


[jQuery] Re: newbie: how can I get the # of options in a SELECT element?

2007-09-12 Thread Sam Collett

That gets all options in all selects, this would be better:

$('#mySelectElement option').length

On Sep 12, 1:14 pm, David Duymelinck [EMAIL PROTECTED] wrote:
 $('select option').length should do it.

 -- david

 Ojas schreef:

  Using jQuery, how can I get the following value?

  document.myForm.mySelectElement.options.length

 --
 David Duymelinck
 
 [EMAIL PROTECTED]



[jQuery] Re: newbie: how can I get the # of options in a SELECT element?

2007-09-12 Thread David Duymelinck


Yes of course i was presuming there was only one select, which makes my 
example correct, but in a real life site you have to use an id .


-- David

Sam Collett schreef:

That gets all options in all selects, this would be better:

$('#mySelectElement option').length

On Sep 12, 1:14 pm, David Duymelinck [EMAIL PROTECTED] wrote:
  

$('select option').length should do it.

-- david

Ojas schreef:



Using jQuery, how can I get the following value?
  
document.myForm.mySelectElement.options.length
  

--
David Duymelinck

[EMAIL PROTECTED]




  



--
David Duymelinck

[EMAIL PROTECTED]



[jQuery] Re: Animation bug in 1.2 (@Brian and @John)

2007-09-12 Thread Wizzud


The code ...

// If a +/- token was provided, we're doing a relative animation
if ( parts[1] )
end = ((parts[1] == - ? -1 : 1) * end) + start;

... is based on the assumption that any value with a leading +/- indicator
is a relative animation. 
Unfortunately this means that it can't (currently!) cope with absolute
animation in a negative range. For example, if you want to animate anything
from currentValue TO -y it will translate that into animate from
currentValue BY -y, simply because of the negative sign in front of y.
With positives, in mathematical terms x (unsigned) is equivalent to +x, so
purposefully inserting a plus sign could be interpreted as a relative
movement as opposed to a positive absolute. However, you can only get
relative changes to be recognised by sending a String, ie. {top:+234} will
be taken as absolute, whereas {top:'+234'} will be taken as relative. This
is because (at least in Firefox!) the number loses the plus sign as being
irrelevant, so conversion to String for pattern recognition of the leading
'+' will never have a leading '+'!

This leaves 2 questions:
1. How do you get around it until it's fixed?
2. How do you fix it?

(1) Work-around. There are 2 ways (I think). 
Either: Try sending the change through as a String with a leading space, eg
instead of animate({marginTop:-2492}), try animate({marginTop:' -2492'}).
(This worked for me in a very simple test)
Or: Translate any absolute movement to a negative position into a relative
movement before calling animate, eg. get current marginTop yourself and work
out the relative change required

(2) Fix. Hmmm. There are undoubtedly lots of possible solutions and I
hesitate to suggest one in favour of any other, but ... seeing as a String
has to be used to get the leading '+' sign recognised, why not make relative
changes be enforced by a double sign.
For example:
animate({top:234}) = absolute change to 234px
animate({top:'+234em'}) = absolute change to 234em
animate({top:-234}) = absolute change to -234px
animate({top:'-234%'}) = absolute change to -234%
animate({top:'++234'}) = relative change by 234px
animate({top:'+-234'}) = relative change by -234px
animate({top:'--234em'}) = relative change by -234em
animate({top:'-+234%'}) = relative change by +234%

[ NB 'double-signing' numbers:
  animate({top:++234}) = javascript error, invalid increment operand
  animate({top:--234}) = javascript error, invalid decrement operand
  animate({top:+-234}) = absolute change to -234px
  animate({top:-+234}) = absolute change to -234px ]

In the above examples, the direction of the first sign doesn't matter - it
could be a '+' or a '-', all it does is indicate that the change is
relative. For that matter, it could be something else, like an 'r' instead
of a +/-, eg animate({top:'r234'}) or animate({top:'r-234'}), but I'm not
sure whether that might not be more confusing. Allowing either a '+' or a
'-' could allow users to more easily apply the 'relative' directive
depending upon how they work out and construct their values.

Anyway, to make this 'double-signing' work would require 2 changes (v1.2
source):
At roughly line 2578...
//  var parts = val.toString().match(/^([+-]?)([\d.]+)(.*)$/),
var parts = val.toString().match(/^([+-]*?)([\d.]+)(.*)$/),
And roughly 2592...
// If 'double-signed', we're doing a relative animation
if ( parts[1] )
//  end = ((parts[1] == - ? -1 : 1) * end) + start;
end = ((parts[1].substr(parts[1].length-1) == - ? -1 : 1) * 
end) +
(parts[1].length1 ? start : 0);

As I stated at the start, this is only a suggestion and may turn out to be
non-viable in the bigger picture - but it does seem to work (bearing in mind
I'm only testing in Firefox!).


bmsterling wrote:
 
 Not sure if this is any more help, but looking at the core around line
 2593,
 it looks like you check for a minus sign and then add that to the start
 position/style and your comments says:
 
 // If a +/- token was provided, we're doing a relative animation
 
 But yet you are not looking, explicitly, for a plus sign.
 
 Well, hope this helps in some way.
 
 On 9/11/07, Benjamin Sterling [EMAIL PROTECTED] wrote:

 Will do, I also just did some testing and it looks like it happens when a
 minus sign is in play.  I will post my findings to the bug report.

 On 9/11/07, John Resig [EMAIL PROTECTED] wrote:
 
 
  Sounds like a true bug. Could you submit a bug report?
  http://dev.jquery.com/
 
  --John
 
  On 9/11/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
   Url in question:
   http://benjaminsterling.com/experiments/jqGalViewV2/
  
   At about line 87 and then again at line 91 I have the following:
  
  
  $holder.animate({marginTop:-($mainImgContainer.height()*index)},'1000',
   opts.tnease);
  
   Depending on the link at bottom clicked, the marginTop gets set to
  what ever
   $mainImgContainer.height()*index adds up to, but with a
   minus infront.  So if you 

[jQuery] [Announce] WYMeditor 0.4 released

2007-09-12 Thread Jean-Francois Hovinne

Hi All,

I'm glad to announce the release of WYMeditor 0.4, a jQuery-based
XHTML editor.

This release includes new XHTML and CSS parsers, and fixes some
outstanding bugs. Thanks to all the contributors who made it possible!

Website: http://www.wymeditor.org/
Download: http://sourceforge.net/project/showfiles.php?group_id=148869

Enjoy,
jf



[jQuery] Re: Page Reload On Link Click

2007-09-12 Thread Wizzud


I don't know if it's just a typo on this post, but you're missing a starting
double-quote in the first statement of your click handler function...

$(a.comment_toggle).click(function(){$(div.comment).toggle();
return false;});

should be

$(a.comment_toggle).click(function(){$(div.comment).toggle();
return false;});



Dave-237 wrote:
 
 
 I've been following several tutorials, trying to learn JQuery and I've
 been having some difficulty with what should be a trivial task.  When
 I click a link to activate something like a div toggleing in and out
 of site, I get jumped to the top of the page.  Also, my functions
 don't seem to be working.  Can somebody help me with this?
 
  # [show comments] 
 script type=text/javascript
 $(document).ready(function(){
 
   $(a.comment_toggle).click(function(){$(div.comment).toggle();
 return false;});
   });
 /script
 div class=commentHere is the comment/div
 
 CSS
 .comment {
   display: none;
   border: 1px black solid;
 }
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Page-Reload-On-Link-Click-tf4428749s15494.html#a12634600
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: [Announce] WYMeditor 0.4 released

2007-09-12 Thread Alexandre Plennevaux

Wow, it 's starting to take nicely shape, i think i'll give it a try soon.
Congratulation jf !

What, as a potential user working in real life scenarios, i would like to
see how flexible it is: for example, a very basic version (like underline,
italic, bold) and a full featured version.
Also, is it possible to skin it?

Would you consider adding these suggestions to the demo page on your site?

Bravo in any case

Alexandre

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jean-Francois Hovinne
Sent: mercredi 12 septembre 2007 13:36
To: jQuery (English)
Subject: [jQuery] [Announce] WYMeditor 0.4 released


Hi All,

I'm glad to announce the release of WYMeditor 0.4, a jQuery-based XHTML
editor.

This release includes new XHTML and CSS parsers, and fixes some outstanding
bugs. Thanks to all the contributors who made it possible!

Website: http://www.wymeditor.org/
Download: http://sourceforge.net/project/showfiles.php?group_id=148869

Enjoy,
jf

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.15/1002 - Date: 11/09/2007
17:46
 



[jQuery] Re: popup div

2007-09-12 Thread Wizzud


You could try something like this...

$('#myTrigger').click(function(){
  $('#myDiv').show();
  $(document).one('click', function(){ $('#myDiv').hide(); return false; });
  return false;
});


james_027-2 wrote:
 
 
 Hi,
 
 I am trying to make a simple div that will pop which will be close
 by just clicking to any part of the page. I have no idea of how to do
 this. I have try something like this
 
 $(document).click(function(e){
 $('[EMAIL PROTECTED]').hide();
 });
 
 
 $(body).click(function(e){
 $('[EMAIL PROTECTED]').hide();
 });
 
 but all my other click function on specific html tag won't work
 anymore, it seems to be overide.
 
 Thanks
 james
 
 
 

-- 
View this message in context: 
http://www.nabble.com/popup-%3Cdiv%3E-tf4420012s15494.html#a12634939
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jquery 1.2 bug -- clone(true) doesn't copy the event in ie(ie6 and ie7)

2007-09-12 Thread Eridius


I am having the same issue with clone(true) not copying tabs 2 events.


张博 wrote:
 
 jquery 1.2 bug -- clone(true) doesn't copy the event in ie(ie6 and ie7)
 
 

-- 
View this message in context: 
http://www.nabble.com/jquery-1.2-bugclone%28true%29-doesn%27t-copy-the-event-in-ie%28ie6-and-ie7%29-tf4426930s15494.html#a12634940
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: [Announce] WYMeditor 0.4 released

2007-09-12 Thread Jean-Francois Hovinne

On Sep 12, 3:44 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 Wow, it 's starting to take nicely shape, i think i'll give it a try soon.
 Congratulation jf !

Thanks!

 What, as a potential user working in real life scenarios, i would like to
 see how flexible it is: for example, a very basic version (like underline,
 italic, bold) and a full featured version.
 Also, is it possible to skin it?

Yes, almost every aspect of the editor is customizable.
Please take a look at the getting started examples included in the
package, and at the documentation, available at:
http://trac.wymeditor.org/trac

 Would you consider adding these suggestions to the demo page on your site?

Hmm, good idea - why not?



[jQuery] jQuery.dequeue is not a function

2007-09-12 Thread Gordon

In a web application I am working on there is a menu that slides down
when you mouseover something and slides back up when you mouseout
again.  If you did this too quickly the result would be that the
animation would bounce up and down quite comically with no way to stop
it other than waiting for the jQuery animation queue to empty
itself.

With jQuery 1.2 it seemed like a solution to this problem was
available, because you can now stop animations.  I tried adding stop()
calls into the code in the belief that aborting the currently
animation before startign a new one would solve my problems.

However, I just got the error message jQuery.dequeue is not a function
http://localhost/js/jquery/interface/interface_drag.js
Line 8

interface_drag.js is basically a barebones version of the jQuery
interface library with just the bare nimimum needed for draggables
built into it.



[jQuery] Re: Animation bug in 1.2 (@Brian and @John)

2007-09-12 Thread John Resig

Hey, thanks for your thoughts. I thought this issue over last night
and have come up with the following solution:

Absolute Animations:
50px
-50px

Relative Animations:
+=50px
-=50px

I'm going to be pushing this live in an update this weekend, so that
it's fixed quickly. (In the future, stuff like this should be brought
up on the jquery-dev list.)

--John

On 9/12/07, Wizzud [EMAIL PROTECTED] wrote:


 The code ...

 // If a +/- token was provided, we're doing a relative animation
 if ( parts[1] )
 end = ((parts[1] == - ? -1 : 1) * end) + start;

 ... is based on the assumption that any value with a leading +/- indicator
 is a relative animation.
 Unfortunately this means that it can't (currently!) cope with absolute
 animation in a negative range. For example, if you want to animate anything
 from currentValue TO -y it will translate that into animate from
 currentValue BY -y, simply because of the negative sign in front of y.
 With positives, in mathematical terms x (unsigned) is equivalent to +x, so
 purposefully inserting a plus sign could be interpreted as a relative
 movement as opposed to a positive absolute. However, you can only get
 relative changes to be recognised by sending a String, ie. {top:+234} will
 be taken as absolute, whereas {top:'+234'} will be taken as relative. This
 is because (at least in Firefox!) the number loses the plus sign as being
 irrelevant, so conversion to String for pattern recognition of the leading
 '+' will never have a leading '+'!

 This leaves 2 questions:
 1. How do you get around it until it's fixed?
 2. How do you fix it?

 (1) Work-around. There are 2 ways (I think).
 Either: Try sending the change through as a String with a leading space, eg
 instead of animate({marginTop:-2492}), try animate({marginTop:' -2492'}).
 (This worked for me in a very simple test)
 Or: Translate any absolute movement to a negative position into a relative
 movement before calling animate, eg. get current marginTop yourself and work
 out the relative change required

 (2) Fix. Hmmm. There are undoubtedly lots of possible solutions and I
 hesitate to suggest one in favour of any other, but ... seeing as a String
 has to be used to get the leading '+' sign recognised, why not make relative
 changes be enforced by a double sign.
 For example:
 animate({top:234}) = absolute change to 234px
 animate({top:'+234em'}) = absolute change to 234em
 animate({top:-234}) = absolute change to -234px
 animate({top:'-234%'}) = absolute change to -234%
 animate({top:'++234'}) = relative change by 234px
 animate({top:'+-234'}) = relative change by -234px
 animate({top:'--234em'}) = relative change by -234em
 animate({top:'-+234%'}) = relative change by +234%

 [ NB 'double-signing' numbers:
   animate({top:++234}) = javascript error, invalid increment operand
   animate({top:--234}) = javascript error, invalid decrement operand
   animate({top:+-234}) = absolute change to -234px
   animate({top:-+234}) = absolute change to -234px ]

 In the above examples, the direction of the first sign doesn't matter - it
 could be a '+' or a '-', all it does is indicate that the change is
 relative. For that matter, it could be something else, like an 'r' instead
 of a +/-, eg animate({top:'r234'}) or animate({top:'r-234'}), but I'm not
 sure whether that might not be more confusing. Allowing either a '+' or a
 '-' could allow users to more easily apply the 'relative' directive
 depending upon how they work out and construct their values.

 Anyway, to make this 'double-signing' work would require 2 changes (v1.2
 source):
 At roughly line 2578...
 //  var parts = val.toString().match(/^([+-]?)([\d.]+)(.*)$/),
 var parts = val.toString().match(/^([+-]*?)([\d.]+)(.*)$/),
 And roughly 2592...
 // If 'double-signed', we're doing a relative animation
 if ( parts[1] )
 //  end = ((parts[1] == - ? -1 : 1) * end) + start;
 end = ((parts[1].substr(parts[1].length-1) == - ? -1 : 1) * 
 end) +
 (parts[1].length1 ? start : 0);

 As I stated at the start, this is only a suggestion and may turn out to be
 non-viable in the bigger picture - but it does seem to work (bearing in mind
 I'm only testing in Firefox!).


 bmsterling wrote:
 
  Not sure if this is any more help, but looking at the core around line
  2593,
  it looks like you check for a minus sign and then add that to the start
  position/style and your comments says:
 
  // If a +/- token was provided, we're doing a relative animation
 
  But yet you are not looking, explicitly, for a plus sign.
 
  Well, hope this helps in some way.
 
  On 9/11/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
 
  Will do, I also just did some testing and it looks like it happens when a
  minus sign is in play.  I will post my findings to the bug report.
 
  On 9/11/07, John Resig [EMAIL PROTECTED] wrote:
  
  
   Sounds like a true bug. Could you submit a bug report?
   http://dev.jquery.com/
  

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-12 Thread John Resig

Christof -

You should bring those points up for discussion again on the
jquery-dev list (they're more relevant now, now that 1.2 is out). The
dev list is the best way to talk with the core developer :-)

--John

On 9/12/07, Christof Donat [EMAIL PROTECTED] wrote:

 Hi,

  The end result is probably a net enlargement of included
  JS, IMO.

 You can always include the convenience functions in your own code. Then you
 have no net enlargement of code. You even can leave out those you don't
 intend to use reducint the size of the whole js code.

 Of course you can say, that this speaks for using no JS library at all,
 because cou can always define all the functions you need in your own code.
 Well the reason for libraries is to safe work. Thus it is allways a ballance
 between including expectedly much used functions and excluding less used.
 More powerful functions are more likely to be used a lot than functions with
 only a single, very special use case.

 Based on that I very much appreciate the decissions of the dev team. That way
 leads to a library that is as powerfull as possible by staying as small as
 possible.

 There are still some whishes I'd have to make some functions more powerfull.
 specially those are text(), attr() and is(). There was a discussion about
 those functions:
 http://groups.google.com/group/jquery-en/browse_thread/thread/30e8d9ae2fc8b57e/d8cf031c88b1da64?rnum=1
 I guess, the core developers did not have the time to join that discussion,
 though I'd appreciate their comments.

 Christof



[jQuery] Re: [Announce] WYMeditor 0.4 released

2007-09-12 Thread Alexandre Plennevaux

One more request: possibility to upload images, within a file browser (boum
boum bang, a full project in itself) !

To keep this feature light, i would be perfectly happy with the
possibility of using an external file manager to feed the textarea with an
image, such as http://thefilebrowser.com/  , having it work nicely with
wymeditor.


Thanks!!


 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jean-Francois Hovinne
Sent: mercredi 12 septembre 2007 14:02
To: jQuery (English)
Subject: [jQuery] Re: [Announce] WYMeditor 0.4 released


On Sep 12, 3:44 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 Wow, it 's starting to take nicely shape, i think i'll give it a try soon.
 Congratulation jf !

Thanks!

 What, as a potential user working in real life scenarios, i would like 
 to see how flexible it is: for example, a very basic version (like 
 underline, italic, bold) and a full featured version.
 Also, is it possible to skin it?

Yes, almost every aspect of the editor is customizable.
Please take a look at the getting started examples included in the package,
and at the documentation, available at:
http://trac.wymeditor.org/trac

 Would you consider adding these suggestions to the demo page on your site?

Hmm, good idea - why not?

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.15/1002 - Date: 11/09/2007
17:46
 



[jQuery] Re: Animation bug in 1.2

2007-09-12 Thread Andy Matthews
I've had the same exact experience. I'm animating the top property of a div,
up into the negative numbers. In 1.1.4 it works just fine, but with 1.2 it
almost doubles the distance.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: Tuesday, September 11, 2007 9:23 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Animation bug in 1.2


Will do, I also just did some testing and it looks like it happens when a
minus sign is in play.  I will post my findings to the bug report.


On 9/11/07, John Resig [EMAIL PROTECTED] wrote: 


Sounds like a true bug. Could you submit a bug report? 
http://dev.jquery.com/

--John

On 9/11/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
 Url in question: 
 http://benjaminsterling.com/experiments/jqGalViewV2/

 At about line 87 and then again at line 91 I have the following:

 $holder.animate({marginTop:-($mainImgContainer.height()*index)},'1000',
 opts.tnease);

 Depending on the link at bottom clicked, the marginTop gets set to what
ever
 $mainImgContainer.height()*index adds up to, but with a 
 minus infront.  So if you click on eight you get -2492.  And when you
 clicked 7, you would get -2136.  In 1.1.3 this worked fine[1].  But with
1.2
 it will just add up the marginTop, so -2492 and -2136 becomes -4628. 

 In an earlier post, John[2] suggested that the animation method only took
in
 integers, so if I do:


$holder.animate({marginTop:parseInt(-($mainImgContainer.height()*index))},'1
000', 
 opts.tnease);

 It should work, but sadly, still adds up.  Is this a true bug, or am I
 missing something?

 [1] http://benjaminsterling.com/experiments/jqGalView
http://benjaminsterling.com/experiments/jqGalView 
 [2]

http://groups.google.com/group/jquery-en/browse_thread/thread/705cd47864c22c
49/485702b3f03547c5#485702b3f03547c5
http://groups.google.com/group/jquery-en/browse_thread/thread/705cd47864c22
c49/485702b3f03547c5#485702b3f03547c5 
 --
 Benjamin Sterling
 http://www.KenzoMedia.com
 http://www.KenzoHosting.com





-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com 


[jQuery] Re: Animation bug in 1.2

2007-09-12 Thread John Resig

I thought this issue over last night and have come up with the
following solution:

Absolute Animations:
50px
-50px

Relative Animations:
+=50px
-=50px

I'm going to be pushing this live in an update this weekend, so that
it's fixed quickly. (In the future, stuff like this should be brought
up on the jquery-dev list.)

--John


On 9/11/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
 Not sure if this is any more help, but looking at the core around line 2593,
 it looks like you check for a minus sign and then add that to the start
 position/style and your comments says:

 // If a +/- token was provided, we're doing a relative animation

 But yet you are not looking, explicitly, for a plus sign.

 Well, hope this helps in some way.


 On 9/11/07, Benjamin Sterling 
 [EMAIL PROTECTED] wrote:
  Will do, I also just did some testing and it looks like it happens when a
 minus sign is in play.  I will post my findings to the bug report.
 
 
 
  On 9/11/07, John Resig [EMAIL PROTECTED] wrote:
  
   Sounds like a true bug. Could you submit a bug report?
   http://dev.jquery.com/
  
   --John
  
   On 9/11/07, Benjamin Sterling 
 [EMAIL PROTECTED] wrote:
Url in question:
http://benjaminsterling.com/experiments/jqGalViewV2/
   
At about line 87 and then again at line 91 I have the following:
   
   
 $holder.animate({marginTop:-($mainImgContainer.height()*index)},'1000',
opts.tnease);
   
Depending on the link at bottom clicked, the marginTop gets set to
 what ever
$mainImgContainer.height()*index adds up to, but with
 a
minus infront.  So if you click on eight you get -2492.  And when you
clicked 7, you would get -2136.  In 1.1.3 this worked fine[1].  But
 with 1.2
it will just add up the marginTop, so -2492 and -2136 becomes -4628.
   
In an earlier post, John[2] suggested that the animation method only
 took in
integers, so if I do:
   
   
 $holder.animate({marginTop:parseInt(-($mainImgContainer.height()*index))},'1000',
opts.tnease);
   
It should work, but sadly, still adds up.  Is this a true bug, or am I
missing something?
   
[1] http://benjaminsterling.com/experiments/jqGalView
[2]
   
 http://groups.google.com/group/jquery-en/browse_thread/thread/705cd47864c22c49/485702b3f03547c5#485702b3f03547c5
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
  
 
 
 
  --
 
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com



 --

 Benjamin Sterling
 http://www.KenzoMedia.com
 http://www.KenzoHosting.com


[jQuery] Re: Error: d[i].getElementsByTagName is not a function

2007-09-12 Thread Giant Jam Sandwich

jQuery version 1.1.4.

XPath plugin?

Boy, I better catch up on any new additions to version 1.2.


On Sep 11, 4:18 pm, John Resig [EMAIL PROTECTED] wrote:
 What version of jQuery - and if you're using jQuery 1.2, do you have
 the XPath plugin included?

 --John

 On 9/11/07, Giant Jam Sandwich [EMAIL PROTECTED] wrote:



  $(//hooks/errors/error,data);

  If my XML contains an error node, everything is okay. If it does not
  contain an error node, I get the following error:

  Error: d[i].getElementsByTagName is not a function

  Shouldn't it just return null?

  Thanks.

  Brian



[jQuery] Re: Animation bug in 1.2 (@Brian and @John)

2007-09-12 Thread Andy Matthews

John...ust to clarify. When you say absolute and relative this is what I
think those mean...?

Absolute = move to X.
Relative = move X to new position.

Is this correct?


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Resig
Sent: Wednesday, September 12, 2007 8:13 AM
To: jquery-en@googlegroups.com
Cc: [EMAIL PROTECTED]
Subject: [jQuery] Re: Animation bug in 1.2 (@Brian and @John)


Hey, thanks for your thoughts. I thought this issue over last night and have
come up with the following solution:

Absolute Animations:
50px
-50px

Relative Animations:
+=50px
-=50px

I'm going to be pushing this live in an update this weekend, so that it's
fixed quickly. (In the future, stuff like this should be brought up on the
jquery-dev list.)

--John

On 9/12/07, Wizzud [EMAIL PROTECTED] wrote:


 The code ...

 // If a +/- token was provided, we're doing a relative animation
 if ( parts[1] )
 end = ((parts[1] == - ? -1 : 1) * end) + start;

 ... is based on the assumption that any value with a leading +/- 
 indicator is a relative animation.
 Unfortunately this means that it can't (currently!) cope with absolute 
 animation in a negative range. For example, if you want to animate 
 anything from currentValue TO -y it will translate that into animate 
 from currentValue BY -y, simply because of the negative sign in front of
y.
 With positives, in mathematical terms x (unsigned) is equivalent to 
 +x, so purposefully inserting a plus sign could be interpreted as a 
 relative movement as opposed to a positive absolute. However, you can 
 only get relative changes to be recognised by sending a String, ie. 
 {top:+234} will be taken as absolute, whereas {top:'+234'} will be 
 taken as relative. This is because (at least in Firefox!) the number 
 loses the plus sign as being irrelevant, so conversion to String for 
 pattern recognition of the leading '+' will never have a leading '+'!

 This leaves 2 questions:
 1. How do you get around it until it's fixed?
 2. How do you fix it?

 (1) Work-around. There are 2 ways (I think).
 Either: Try sending the change through as a String with a leading 
 space, eg instead of animate({marginTop:-2492}), try animate({marginTop:'
-2492'}).
 (This worked for me in a very simple test)
 Or: Translate any absolute movement to a negative position into a 
 relative movement before calling animate, eg. get current marginTop 
 yourself and work out the relative change required

 (2) Fix. Hmmm. There are undoubtedly lots of possible solutions and I 
 hesitate to suggest one in favour of any other, but ... seeing as a 
 String has to be used to get the leading '+' sign recognised, why not 
 make relative changes be enforced by a double sign.
 For example:
 animate({top:234}) = absolute change to 234px
 animate({top:'+234em'}) = absolute change to 234em
 animate({top:-234}) = absolute change to -234px
 animate({top:'-234%'}) = absolute change to -234%
 animate({top:'++234'}) = relative change by 234px
 animate({top:'+-234'}) = relative change by -234px
 animate({top:'--234em'}) = relative change by -234em
 animate({top:'-+234%'}) = relative change by +234%

 [ NB 'double-signing' numbers:
   animate({top:++234}) = javascript error, invalid increment operand
   animate({top:--234}) = javascript error, invalid decrement operand
   animate({top:+-234}) = absolute change to -234px
   animate({top:-+234}) = absolute change to -234px ]

 In the above examples, the direction of the first sign doesn't matter 
 - it could be a '+' or a '-', all it does is indicate that the change 
 is relative. For that matter, it could be something else, like an 'r' 
 instead of a +/-, eg animate({top:'r234'}) or animate({top:'r-234'}), 
 but I'm not sure whether that might not be more confusing. Allowing 
 either a '+' or a '-' could allow users to more easily apply the 
 'relative' directive depending upon how they work out and construct their
values.

 Anyway, to make this 'double-signing' work would require 2 changes 
 (v1.2
 source):
 At roughly line 2578...
 //  var parts = val.toString().match(/^([+-]?)([\d.]+)(.*)$/),
 var parts = val.toString().match(/^([+-]*?)([\d.]+)(.*)$/),
 And roughly 2592...
 // If 'double-signed', we're doing a relative animation
 if ( parts[1] )
 //  end = ((parts[1] == - ? -1 : 1) * end) + start;
 end = ((parts[1].substr(parts[1].length-1) == - ? -1 
 : 1) * end) +
 (parts[1].length1 ? start : 0);

 As I stated at the start, this is only a suggestion and may turn out 
 to be non-viable in the bigger picture - but it does seem to work 
 (bearing in mind I'm only testing in Firefox!).


 bmsterling wrote:
 
  Not sure if this is any more help, but looking at the core around 
  line 2593, it looks like you check for a minus sign and then add 
  that to the start position/style and your comments says:
 
  // If a +/- token was provided, we're doing a 

[jQuery] Re: Error: d[i].getElementsByTagName is not a function

2007-09-12 Thread Giant Jam Sandwich

This however does work:

$(/hooks/errors/error,data);

Although they mean two different things, this will be sufficient for
what I am doing. It might still be good to look into though.

Thanks John.


On Sep 11, 4:18 pm, John Resig [EMAIL PROTECTED] wrote:
 What version of jQuery - and if you're using jQuery 1.2, do you have
 the XPath plugin included?

 --John

 On 9/11/07, Giant Jam Sandwich [EMAIL PROTECTED] wrote:



  $(//hooks/errors/error,data);

  If my XML contains an error node, everything is okay. If it does not
  contain an error node, I get the following error:

  Error: d[i].getElementsByTagName is not a function

  Shouldn't it just return null?

  Thanks.

  Brian



[jQuery] Re: Tablesorter plugin doesn't work properly with 1.2

2007-09-12 Thread Christian Bach

Hi. I have been on vacation the last two weeks. I will be back next
week so expect a patch then. /christian

2007/9/11, dobosgy [EMAIL PROTECTED]:

 I think so, that's why I sent this to the discussion list.
 Maybe he haven't noticed this issue yet by himself. :)

 --
 Thanks,
 Gy

 On Sep 11, 11:00 pm, Brandon Aaron [EMAIL PROTECTED] wrote:
  I think the author is going to release an update that fixes this soon.
 
  --
  Brandon Aaron




[jQuery] Re: Animation bug in 1.2

2007-09-12 Thread Benjamin Sterling
Ok, any future bug issues will be brought up there.

On 9/12/07, John Resig [EMAIL PROTECTED] wrote:


 I thought this issue over last night and have come up with the
 following solution:

 Absolute Animations:
 50px
 -50px

 Relative Animations:
 +=50px
 -=50px

 I'm going to be pushing this live in an update this weekend, so that
 it's fixed quickly. (In the future, stuff like this should be brought
 up on the jquery-dev list.)

 --John


 On 9/11/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
  Not sure if this is any more help, but looking at the core around line
 2593,
  it looks like you check for a minus sign and then add that to the start
  position/style and your comments says:
 
  // If a +/- token was provided, we're doing a relative animation
 
  But yet you are not looking, explicitly, for a plus sign.
 
  Well, hope this helps in some way.
 
 
  On 9/11/07, Benjamin Sterling 
  [EMAIL PROTECTED] wrote:
   Will do, I also just did some testing and it looks like it happens
 when a
  minus sign is in play.  I will post my findings to the bug report.
  
  
  
   On 9/11/07, John Resig [EMAIL PROTECTED] wrote:
   
Sounds like a true bug. Could you submit a bug report?
http://dev.jquery.com/
   
--John
   
On 9/11/07, Benjamin Sterling 
  [EMAIL PROTECTED] wrote:
 Url in question:
 http://benjaminsterling.com/experiments/jqGalViewV2/

 At about line 87 and then again at line 91 I have the following:


  $holder.animate({marginTop:-($mainImgContainer.height()*index)},'1000',
 opts.tnease);

 Depending on the link at bottom clicked, the marginTop gets set to
  what ever
 $mainImgContainer.height()*index adds up to, but with
  a
 minus infront.  So if you click on eight you get -2492.  And when
 you
 clicked 7, you would get -2136.  In 1.1.3 this worked
 fine[1].  But
  with 1.2
 it will just add up the marginTop, so -2492 and -2136 becomes
 -4628.

 In an earlier post, John[2] suggested that the animation method
 only
  took in
 integers, so if I do:


 
 $holder.animate({marginTop:parseInt(-($mainImgContainer.height()*index))},'1000',
 opts.tnease);

 It should work, but sadly, still adds up.  Is this a true bug, or
 am I
 missing something?

 [1] http://benjaminsterling.com/experiments/jqGalView
 [2]

 
 http://groups.google.com/group/jquery-en/browse_thread/thread/705cd47864c22c49/485702b3f03547c5#485702b3f03547c5
 --
 Benjamin Sterling
 http://www.KenzoMedia.com
 http://www.KenzoHosting.com
   
  
  
  
   --
  
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
 
 
 
  --
 
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com




-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: Animation bug in 1.2 (@Brian and @John)

2007-09-12 Thread John Resig

 John...ust to clarify. When you say absolute and relative this is what I
 think those mean...?

 Absolute = move to X.
 Relative = move X to new position.

 Is this correct?

Yep!

--John


[jQuery] Re: [Announce] WYMeditor 0.4 released

2007-09-12 Thread Jean-Francois Hovinne

The file browser is an often requested feature, and we're actually
planning an API to do this sort of things.
Anyway, there's an image gallery implementation example, using
jCarousel and CodeIgniter, available at:
http://trac.wymeditor.org/trac/wiki/Contrib/ImageGalleryExample

I'll take a look at thefilebrowser, which looks interesting.

On Sep 12, 4:24 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 One more request: possibility to upload images, within a file browser (boum
 boum bang, a full project in itself) !

 To keep this feature light, i would be perfectly happy with the
 possibility of using an external file manager to feed the textarea with an
 image, such ashttp://thefilebrowser.com/ , having it work nicely with
 wymeditor.



[jQuery] jQuery and Acceptability

2007-09-12 Thread Benjamin Sterling
Came across this article today and thought it would be useful to those die
hard accessibility guys:
http://alastairc.ac/2007/08/usability-enhancements-with-javascript/

It is not the greatest article, but is uses jQuery and has some good ideas.

-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: bind validation to an ajax included form

2007-09-12 Thread [EMAIL PROTECTED]

Anyone can help me?

Andrea

On 11 sep, 19:24, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 HI,

 I include a form with an ajax call:

 form id=exportRb class=cmxform  method=post
 label for=expMailAddrE-mail/labelinput class=text type=text
 name=expMailAddr value= /
 input type=submit class=submit value=Export/
 /form

 The form is displayed in a thickbox.

 Now I tried to ue the validation plugin(loaded in the calling page)
 adding to form tag:

 onubmit=setValidation(this)

 and with this script inline:

 function setValidation(this){
   $this = this;
   $(this).validate();

 });

 I think to be copletely on a wrong direction.
 Some suggestion.

 Andrea



[jQuery] Re: Error: d[i].getElementsByTagName is not a function

2007-09-12 Thread Karl Swedberg

Hi Brian,

Is hooks the root element of your XML file? If so, then I think it  
makes sense that /hooks works while //hooks doesn't.



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 12, 2007, at 9:39 AM, Giant Jam Sandwich wrote:



This however does work:

$(/hooks/errors/error,data);

Although they mean two different things, this will be sufficient for
what I am doing. It might still be good to look into though.

Thanks John.


On Sep 11, 4:18 pm, John Resig [EMAIL PROTECTED] wrote:

What version of jQuery - and if you're using jQuery 1.2, do you have
the XPath plugin included?

--John

On 9/11/07, Giant Jam Sandwich [EMAIL PROTECTED] wrote:




$(//hooks/errors/error,data);



If my XML contains an error node, everything is okay. If it does not
contain an error node, I get the following error:



Error: d[i].getElementsByTagName is not a function



Shouldn't it just return null?



Thanks.



Brian






[jQuery] .ready(), Rhino and HttpUnit

2007-09-12 Thread Rob Desbois
Hi all,

I'm creating a Web app which uses jQuery, and am unit testing it with
HttpUnit which uses Rhino (the Mozilla JavaScript implementation).

I'm having trouble with $(document).ready(...) causing the tests to crash
with this message:

alert(hi);
 });' failed: TypeError: undefined is not a function. (httpunit; line
 1456))


The whole statement is this:

 $(document).ready(function() {
alert(hi);
 });


Other basic checks are ok, e.g. $(#foo).focus() works perfectly.
Even if I only try to use .ready() after checking that is is defined, I
still get the same result:

 if (typeof $(document).ready === 'function')


I know this is likely to be a Rhino/HttpUnit problem but as I know several
people on this list are familiar with Rhino I wanted to know if anyone's
seen this or has any ideas?
I'm on:
jQuery 1.1.4
HttpUnit 1.6.2

TIA,
--rob

-- 
Rob Desbois
Eml: [EMAIL PROTECTED]


[jQuery] Re: Animation bug in 1.2 (@Brian and @John)

2007-09-12 Thread Gordon

This issue just bit me spectacularally in the backside due to the fact
that I'm trying to scroll one div inside another by adjusting the
inner's div top relative to the container div.  when scrolling right
this value becomes negative and the result is a relative animation
instead of an absolute one as it was under 1.1.x . I like the proposed
+= and -= notation, it makes sense to me.

On Sep 12, 2:12 pm, John Resig [EMAIL PROTECTED] wrote:
 Hey, thanks for your thoughts. I thought this issue over last night
 and have come up with the following solution:

 Absolute Animations:
 50px
 -50px

 Relative Animations:
 +=50px
 -=50px

 I'm going to be pushing this live in an update this weekend, so that
 it's fixed quickly. (In the future, stuff like this should be brought
 up on the jquery-dev list.)

 --John

 On 9/12/07, Wizzud [EMAIL PROTECTED] wrote:



  The code ...

  // If a +/- token was provided, we're doing a relative animation
  if ( parts[1] )
  end = ((parts[1] == - ? -1 : 1) * end) + start;

  ... is based on the assumption that any value with a leading +/- indicator
  is a relative animation.
  Unfortunately this means that it can't (currently!) cope with absolute
  animation in a negative range. For example, if you want to animate anything
  from currentValue TO -y it will translate that into animate from
  currentValue BY -y, simply because of the negative sign in front of y.
  With positives, in mathematical terms x (unsigned) is equivalent to +x, so
  purposefully inserting a plus sign could be interpreted as a relative
  movement as opposed to a positive absolute. However, you can only get
  relative changes to be recognised by sending a String, ie. {top:+234} will
  be taken as absolute, whereas {top:'+234'} will be taken as relative. This
  is because (at least in Firefox!) the number loses the plus sign as being
  irrelevant, so conversion to String for pattern recognition of the leading
  '+' will never have a leading '+'!

  This leaves 2 questions:
  1. How do you get around it until it's fixed?
  2. How do you fix it?

  (1) Work-around. There are 2 ways (I think).
  Either: Try sending the change through as a String with a leading space, eg
  instead of animate({marginTop:-2492}), try animate({marginTop:' -2492'}).
  (This worked for me in a very simple test)
  Or: Translate any absolute movement to a negative position into a relative
  movement before calling animate, eg. get current marginTop yourself and work
  out the relative change required

  (2) Fix. Hmmm. There are undoubtedly lots of possible solutions and I
  hesitate to suggest one in favour of any other, but ... seeing as a String
  has to be used to get the leading '+' sign recognised, why not make relative
  changes be enforced by a double sign.
  For example:
  animate({top:234}) = absolute change to 234px
  animate({top:'+234em'}) = absolute change to 234em
  animate({top:-234}) = absolute change to -234px
  animate({top:'-234%'}) = absolute change to -234%
  animate({top:'++234'}) = relative change by 234px
  animate({top:'+-234'}) = relative change by -234px
  animate({top:'--234em'}) = relative change by -234em
  animate({top:'-+234%'}) = relative change by +234%

  [ NB 'double-signing' numbers:
animate({top:++234}) = javascript error, invalid increment operand
animate({top:--234}) = javascript error, invalid decrement operand
animate({top:+-234}) = absolute change to -234px
animate({top:-+234}) = absolute change to -234px ]

  In the above examples, the direction of the first sign doesn't matter - it
  could be a '+' or a '-', all it does is indicate that the change is
  relative. For that matter, it could be something else, like an 'r' instead
  of a +/-, eg animate({top:'r234'}) or animate({top:'r-234'}), but I'm not
  sure whether that might not be more confusing. Allowing either a '+' or a
  '-' could allow users to more easily apply the 'relative' directive
  depending upon how they work out and construct their values.

  Anyway, to make this 'double-signing' work would require 2 changes (v1.2
  source):
  At roughly line 2578...
  //  var parts = val.toString().match(/^([+-]?)([\d.]+)(.*)$/),
  var parts = val.toString().match(/^([+-]*?)([\d.]+)(.*)$/),
  And roughly 2592...
  // If 'double-signed', we're doing a relative animation
  if ( parts[1] )
  //  end = ((parts[1] == - ? -1 : 1) * end) + start;
  end = ((parts[1].substr(parts[1].length-1) == - ? -1 : 1) 
  * end) +
  (parts[1].length1 ? start : 0);

  As I stated at the start, this is only a suggestion and may turn out to be
  non-viable in the bigger picture - but it does seem to work (bearing in mind
  I'm only testing in Firefox!).

  bmsterling wrote:

   Not sure if this is any more help, but looking at the core around line
   2593,
   it looks like you check for a minus sign and then add that to the start
   position/style and your 

[jQuery] Re: jQuery.dequeue is not a function

2007-09-12 Thread Stephan Beal

On Sep 12, 3:10 pm, Gordon [EMAIL PROTECTED] wrote:
 However, I just got the error message jQuery.dequeue is not a 
 functionhttp://localhost/js/jquery/interface/interface_drag.js
 Line 8

 interface_drag.js is basically a barebones version of the jQuery
 interface library with just the bare nimimum needed for draggables
 built into it.

If we can't see the code, it will be hard to judge where the error is.
Have you got a page where we can see the error in action?




[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Scott Sauyet


Rey Bango wrote:

Well, if John won't take credit for the speed increases, then, I WILL

Yeah, I tweaked the ternary conditions across a same origin dynamic 
object literal expression while templating the script using Purple 
Include like techniques.


That's what sped it up! Enjoy! ;)


But that would have gyred the borogrove by a maximum factor of 1.15 (see 
my published research for details) and we've seen a tove up-tick of at 
least 1.32.  There must be other vorpal factors at work!


  -- Scott



[jQuery] Re: jQuery.dequeue is not a function

2007-09-12 Thread Gordon

Seems to be something caused by an incompatibility with interface.
Once the interface lib and all calls ot it are commented out it
works.

On Sep 12, 3:27 pm, Stephan Beal [EMAIL PROTECTED] wrote:
 On Sep 12, 3:10 pm, Gordon [EMAIL PROTECTED] wrote:

  However, I just got the error message jQuery.dequeue is not a 
  functionhttp://localhost/js/jquery/interface/interface_drag.js
  Line 8

  interface_drag.js is basically a barebones version of the jQuery
  interface library with just the bare nimimum needed for draggables
  built into it.

 If we can't see the code, it will be hard to judge where the error is.
 Have you got a page where we can see the error in action?



[jQuery] Re: position in selector

2007-09-12 Thread Sam Collett

var $a = $('a').click(function() {
  console.log('anchor' + $a.index(this) +' in page');
});

On Sep 12, 7:58 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 I have the following code

 $('a').click(function() {
 console.log('anchor'+ pos+' in page);

 });

 I'd like to be able to get the matched position number (pos) of each
 element found, so if my page has 5 anchor tags, if i click on the
 first a element in the page, its pos would be 1 (or 0), etc.



[jQuery] Re: Using wrap() and then removing the wrapped element without removing the children

2007-09-12 Thread Pyrolupus

On Sep 11, 7:06 pm, Joan Piedra [EMAIL PROTECTED] wrote:
 Hmm.. Can't you clone the nodes and then just remove the _old_ parent div?

Sure, but if I'm not mistaken, using clone() is more expensive:  it
creates copies of everything just to subsequently remove the
originals.  By using children(), we just work with the same number of
DOM elements, just change their root.  (This is based on an untested
assumption that the browser is re-linking existing items, not doing
its own internal clone-then-delete type behavior.)

In either case, though, the old parent div does get removed.

Pyro


 On 9/11/07, Pyrolupus [EMAIL PROTECTED] wrote:

  On Sep 11, 3:03 pm, Brook Davies [EMAIL PROTECTED] wrote:
   Easy Question I think. If I use (from Jquery 1.2):

   $(#myElem).wrapAll(div id='myDiv'/div);

   To wrap the div 'myDiv' around 'myElem', how can I later remove that div
   without removing the pre-existing myElem and any other contents of that
  div?

  I'm newish to jQuery, so my syntax is not the uberest, but something
  like the following would work:

  $('div#myDiv').after($('div#myDiv').children()).remove()

  In fact, it does work--I just tested it in FireBug.  (I just don't
  know the correct syntax to avoid referring to div#myDiv twice.)

  Pyro

 --
 Joan Piedra  ||  Frontend web developerhttp://www.justaquit.com/ ||  
 http://www.joanpiedra.com/



[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-12 Thread Pyrolupus

In testing Chistoph's code, I encountered a separate but possibly
related issue:  serialize() and serializeArray() are returning things
I did not expect for multiple selects.  For the following form:

form id=mydForm
select id=myd name=myd multiple
option value=blackBlack/option
option value=blue selectedBlue/option
/select
/form

Calling  $('form#mydForm').serialize() returns:

myd=0

Am I doing something wrong as well (besides my old-timey no-value
multiple and selected attributes--though proper XHMTL gives the
same result), or should this be posted to -dev as a bug?

Pyro

On Sep 12, 4:20 am, Christoph Roeder [EMAIL PROTECTED]
wrote:
 Hello,

 I'm trying to serialize a form with select-fields defined as multiple,
 e.g.:
 ~
 select multiple=multiple name=test[]
 option value=one selected=selectedOne/option
 option value=twoTwo/option
 option value=three selected=selectedThree/option
 /select
 ~

 When I now try this:

 ~
 $(select).serialize();
 ~

 or this:

 ~
 $(select).serializeArray();
 ~

 I get an empty string resp. array.

 But I should get this:

 ~
 test[]=onetest[]=three
 ~

 resp. this:

 ~
 {
   test: [one, two]}

 ~

 Whats wrong with my code?

 PS: I'm currently using Prototype with PHP in the backend, there it
 just works fine.



[jQuery] Re: .ready(), Rhino and HttpUnit

2007-09-12 Thread Rob Desbois
Ok I've enlightened myself a little: I tried it with jQuery 1.2 and
discovered that the line number changed - it's not a line number in httpUnit
as I thought (understandably I think!) but in jQuery.

In jQuery 1.2 it's line 1613 (but is reported as 1612), which is the else
statement in this part of jQuery.event[add]:

// And bind the global event handler to the element
 if (element.addEventListener)
element.addEventListener(type, handle, false);
 else
element.attachEvent(on + type, handle);


So neither addEventListener nor attachEvent are defined (I change the else
to an else if to check attachEvent - it's undefined).
Seeing as there's been a fair bit of mention of jQuery in Rhino on the list,
I find it hard to believe jQuery won't work with it - so has anyone who's
used Rhino with jQuery seen this, and can anyone help?

thanks,
--rob

On 9/12/07, Rob Desbois [EMAIL PROTECTED] wrote:

 Hi all,

 I'm creating a Web app which uses jQuery, and am unit testing it with
 HttpUnit which uses Rhino (the Mozilla JavaScript implementation).

 I'm having trouble with $(document).ready(...) causing the tests to crash
 with this message:

 alert(hi);
  });' failed: TypeError: undefined is not a function. (httpunit; line
  1456))


 The whole statement is this:

  $(document).ready(function() {
 alert(hi);
  });
 

 Other basic checks are ok, e.g. $(#foo).focus() works perfectly.
 Even if I only try to use .ready() after checking that is is defined, I
 still get the same result:

  if (typeof $(document).ready === 'function')
 

 I know this is likely to be a Rhino/HttpUnit problem but as I know several
 people on this list are familiar with Rhino I wanted to know if anyone's
 seen this or has any ideas?
 I'm on:
 jQuery 1.1.4
 HttpUnit 1.6.2

 TIA,
 --rob

 --
 Rob Desbois
 [EMAIL PROTECTED]



-- 
Rob Desbois


[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread MikeR

Just to add real quick.. I also have not had ANY issues come up with
1.2 yet. Used the compatibility plugin  all is working phenomenally.
Couldn't be happier. Thanks jQuery team!

On Sep 11, 5:26 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 just wanted to report that i had absolutely not a single issue switching from 
 1.1.4 to 1.2 and i use tons of plugins.

 The speed gain for me is more obvious with this release than with the move 
 from 1.1.3 to 1.1.4. Also, animations and effects are smoother.

 Thus, so far so good and congratulation to the whole team for this slick, 
 steel-solid library ! I'm really broke for the moment, but it's been a while 
 i last donated to the project, and as soon as i see an extra, you'll get my 
 renewed thank you in financial terms.

 Alexandre

 Ce message Envoi est certifié sans virus connu.
 Analyse effectuée par AVG.
 Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 10/09/2007 
 17:43



[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-12 Thread Wizzud


Ticket #1600 already raised.


Pyrolupus wrote:
 
 
 In testing Chistoph's code, I encountered a separate but possibly
 related issue:  serialize() and serializeArray() are returning things
 I did not expect for multiple selects.  For the following form:
 
 form id=mydForm
   select id=myd name=myd multiple
   option value=blackBlack/option
   option value=blue selectedBlue/option
   /select
 /form
 
 Calling  $('form#mydForm').serialize() returns:
 
 myd=0
 
 Am I doing something wrong as well (besides my old-timey no-value
 multiple and selected attributes--though proper XHMTL gives the
 same result), or should this be posted to -dev as a bug?
 
 Pyro
 
 On Sep 12, 4:20 am, Christoph Roeder [EMAIL PROTECTED]
 wrote:
 Hello,

 I'm trying to serialize a form with select-fields defined as multiple,
 e.g.:
 ~
 select multiple=multiple name=test[]
 option value=one selected=selectedOne/option
 option value=twoTwo/option
 option value=three selected=selectedThree/option
 /select
 ~

 When I now try this:

 ~
 $(select).serialize();
 ~

 or this:

 ~
 $(select).serializeArray();
 ~

 I get an empty string resp. array.

 But I should get this:

 ~
 test[]=onetest[]=three
 ~

 resp. this:

 ~
 {
   test: [one, two]}

 ~

 Whats wrong with my code?

 PS: I'm currently using Prototype with PHP in the backend, there it
 just works fine.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/jQuery-1.2---Serialize-a-form-as-JSON-tf4428762s15494.html#a12638084
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] [NEWS] I've never seen jQuery described quite like this before....

2007-09-12 Thread Rey Bango


Ben Nadel is a bit of a character and he just described jQuery in a very 
unique way:


http://www.bennadel.com/blog/949-jQuery-1-2-An-Unexpected-Surprise.htm

Rey...


[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Jörn Zaefferer


Bernd Matzner schrieb:
  

I'm using Jorn's Form Validation in a monster form. Using jQuery
1.2minified version returns all validation in =~ 16 sec. Using
uncompressed
version returns in 6 sec.



Hi, somewhat unrelated to the thread: 6 or even 16 secs seem like an
eternity. What would be the disadvantages of using server-side
validation in such a case? I'm asking this because I keep wondering if
server-side validation is necessary anyway for non-JS visitors, why
not use Ajax and do the validation on the server and simply display
the errors using JS if available...
  
Please note that I never even tried to optimize the validation plugin 
for performance. I never had to deal with monster forms, and still 
consider them problematic anyway. But it seems like there are quite a 
few people who have to deal with those monster forms, once I've got a 
testcase setup it should be possible to improve the performance a lot. I 
just have to find the actual bottleneck.


I guess serializing a monster form and sending it via ajax and then 
displaying messages via JS won't be that much faster.


-- Jörn


[jQuery] Re: bind validation to an ajax included form

2007-09-12 Thread Jörn Zaefferer


[EMAIL PROTECTED] schrieb:

Anyone can help me?
  
Keep in mind that the validate()-plugin-call just adds a 
submit-handler. Your attempts added the submit handler on submit, which 
doesn't work. Try adding some code below the form that selects the form 
and calls the validate plugin.


-- Jörn


[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Priest, James (NIH/NIEHS) [C]

 -Original Message-
 From: Rey Bango [mailto:[EMAIL PROTECTED] 
 
 http://ajaxian.com/archives/purple-include-19
 
 Rey...
 
 Web Specialist wrote:
  Hey Rey: what's Purple Include?


Ha! And here I thought you made it up :) 

That looks really cool!

Jim


[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Rey Bango


;)

Priest, James (NIH/NIEHS) [C] wrote:

-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED] 


http://ajaxian.com/archives/purple-include-19

Rey...

Web Specialist wrote:

Hey Rey: what's Purple Include?



Ha! And here I thought you made it up :) 


That looks really cool!

Jim



[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Brandon Aaron
BTW ... the same functionality can now be achieved with jQuery 1.2 and the
update .load() method.
http://docs.jquery.com/Ajax/load#urldatacallback

--
Brandon Aaron

On 9/12/07, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote:


  -Original Message-
  From: Rey Bango [mailto:[EMAIL PROTECTED]
 
  http://ajaxian.com/archives/purple-include-19
 
  Rey...
 
  Web Specialist wrote:
   Hey Rey: what's Purple Include?


 Ha! And here I thought you made it up :)

 That looks really cool!

 Jim



[jQuery] Re: Superfish plugin fix for jQ1.2

2007-09-12 Thread Joel Birch

On 9/12/07, Pyrolupus [EMAIL PROTECTED] wrote:
 Wanted to highlight one of the other items in case you missed it:

 On Sep 11, 4:35 pm, sozzi [EMAIL PROTECTED] wrote:
  After spending 30 minutes ruling out all other possibilities and a few
  broken gt(0) etc..

 Sounds like there's the two XPath references PLUS a few gt(0)'s.

 Pyro

Thanks for the heads up Pyro. There are no gt(0)'s or the like in
Superfish though, so the XPath change has done the job and all is
working better than ever. Thanks again.

Joel Birch.


[jQuery] SUSPECT: RE: [jQuery] [NEWS] I've never seen jQuery described quite like this before....

2007-09-12 Thread Weaver, Scott

This is just to good to keep to ourselves, so I submitted it to Digg :D

http://digg.com/programming/jQuery_1_2_Female_Masturbation_and_the_Vibra
tor_Dilemma

-scott

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Wednesday, September 12, 2007 11:36 AM
To: jQuery Discussion
Subject: [jQuery] [NEWS] I've never seen jQuery described quite like
this before


Ben Nadel is a bit of a character and he just described jQuery in a very

unique way:

http://www.bennadel.com/blog/949-jQuery-1-2-An-Unexpected-Surprise.htm

Rey...


[jQuery] Re: Dynamically loading more content

2007-09-12 Thread Vikas

Bump. Thanks.



[jQuery] jQuery 1.2 seems to break the Treeview plugin

2007-09-12 Thread Alex

I've got a page that is a massive treeview, and when loading jQuery
1.2 mingzipped, the Treeview plugin seems to stop working. No errors
reported in Firebug, and I can't see deprecated functionality in the
plugin.

Original page with 1.1.4.1:   
http://deadguy.reliccommunity.com/treeview_1.1.4.1.html

New page with 1.2 min/gzip:  http://deadguy.reliccommunity.com/treeview_1.2.html

Any ideas?



[jQuery] Re: SUSPECT: RE: [jQuery] [NEWS] I've never seen jQuery described quite like this before....

2007-09-12 Thread Glen Lipka
URL didnt work. :(
Glen

On 9/12/07, Weaver, Scott [EMAIL PROTECTED] wrote:


 This is just to good to keep to ourselves, so I submitted it to Digg :D

 http://digg.com/programming/jQuery_1_2_Female_Masturbation_and_the_Vibra
 tor_Dilemma

 -scott

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rey Bango
 Sent: Wednesday, September 12, 2007 11:36 AM
 To: jQuery Discussion
 Subject: [jQuery] [NEWS] I've never seen jQuery described quite like
 this before


 Ben Nadel is a bit of a character and he just described jQuery in a very

 unique way:

 http://www.bennadel.com/blog/949-jQuery-1-2-An-Unexpected-Surprise.htm

 Rey...



[jQuery] SUSPECT: RE: [jQuery] Re: SUSPECT: RE: [jQuery] [NEWS] I've never seen jQuery described quite like this before....

2007-09-12 Thread Weaver, Scott
It's a long URL.  The truncated portion is on the line below the actual
link.

 

-scott

 



From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Glen Lipka
Sent: Wednesday, September 12, 2007 12:10 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: SUSPECT: RE: [jQuery] [NEWS] I've never seen
jQuery described quite like this before

 

URL didnt work. :(
Glen

On 9/12/07, Weaver, Scott [EMAIL PROTECTED] wrote:


This is just to good to keep to ourselves, so I submitted it to Digg :D

http://digg.com/programming/jQuery_1_2_Female_Masturbation_and_the_Vibra

tor_Dilemma

-scott

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com ] On
Behalf Of Rey Bango
Sent: Wednesday, September 12, 2007 11:36 AM
To: jQuery Discussion
Subject: [jQuery] [NEWS] I've never seen jQuery described quite like
this before


Ben Nadel is a bit of a character and he just described jQuery in a very


unique way:

http://www.bennadel.com/blog/949-jQuery-1-2-An-Unexpected-Surprise.htm

Rey...

 



[jQuery] Re: jQuery 1.2 seems to break the Treeview plugin

2007-09-12 Thread Wizzud


Your path to jquery-1.2.pack.js is returning a 404.


Alex-337 wrote:
 
 
 I've got a page that is a massive treeview, and when loading jQuery
 1.2 mingzipped, the Treeview plugin seems to stop working. No errors
 reported in Firebug, and I can't see deprecated functionality in the
 plugin.
 
 Original page with 1.1.4.1:  
 http://deadguy.reliccommunity.com/treeview_1.1.4.1.html
 
 New page with 1.2 min/gzip: 
 http://deadguy.reliccommunity.com/treeview_1.2.html
 
 Any ideas?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/jQuery-1.2-seems-to-break-the-Treeview-plugin-tf4430385s15494.html#a12639037
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] NSFW: [jQuery] [NEWS] I've never seen jQuery described quite like this before....

2007-09-12 Thread Michael Geary

Be advised that Ben's post may not be entirely safe for work (or home either, 
depending on who is looking over your shoulder)...

 Ben Nadel is a bit of a character and he just described 
 jQuery in a very unique way:
 
 http://www.bennadel.com/blog/949-jQuery-1-2-An-Unexpected-Surprise.htm
 
 Rey...



[jQuery] Re: validate a form included via Ajax

2007-09-12 Thread Flesler

Sorry not actually, I never used live jquery but I know it-s good for
those cases.
I had a situation like yours some time ago, and I solved it with event
delegation, binding to the click or submit event of the (popup)
container. But I wasn't using Thickbox so I' not sure. I checked the
plugin and although it's a great plugin, it doesn't seem to give
callbacks and stuff like that. So, if possible, you must consider
doing it in some other way.
Sorry that's all I can say :)
Good luck.

Ariel

On 11 sep, 17:03, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 HI,

 you have an example?

 Thnaks

 Andrea

 On 11 sep, 13:51, Flesler [EMAIL PROTECTED] wrote:



  maybe using jquery live ?

  On 11 sep, 15:39, [EMAIL PROTECTED] [EMAIL PROTECTED]
  wrote:

   Hi,

   I include a form via Ajax using thickbox like this:

   a class=thickbox href=#application.vPaths.ADMIN#i18n/task.cfm?
   height=200width=300modal=truetask=exportRbmode=formrb=#q.Name[i]#
   title=Confirm export data

   The page called create a dynamic form in the thickbox win.

   Now my problem is validate the form:

   The normal syntax to bind the form to validation:

   $(document).ready(function(){
   $(#addRbItem).validate({
   errorContainer: $(#messageBox1),
   errorLabelContainer: 
   $(#messageBox1 ul),
   wrapper: li,
   
   do not work cause I think page is already loaded and .ready func do
   not work anymore.

   Any suggestion for avoiding an onSubmit= in markup???

   Thanks

   Andrea- Ocultar texto de la cita -

 - Mostrar texto de la cita -



[jQuery] XSL Templating

2007-09-12 Thread [EMAIL PROTECTED]

Is there an option to apply XSL stylesheets to XML recieved via
jQuery.ajax()? I have some templated xml which I'm loading but the
stylesheets don't seem to be applied via an AJAX load. I always
thought this was supposed to be done by the server, but I guess it's
the browser...



[jQuery] Star rating plugin for 1.2?

2007-09-12 Thread Derek Gathright
I've been scouring the internet looking for a star rating plugin for the
latest version of jQuery, but have been unsuccessful.  I really like these,
but they appear to be incompatible with any recent versions.

http://sandbox.wilstuckey.com/jquery-ratings/
http://php.scripts.psu.edu/rja171/widgets/rating.php

I attempted to update the wilstucky.com one for jQuery 1.2, but I'm fairly
new to jQuery and wasn't able to figure out the issues.  I got past
the $form.title()
errors, but I just couldn't figure out why the hell $star.lt()  $star.eq()
weren't functions.  Maybe someone with a bit more experience would be more
successful than me?

On a side note, as I mentioned, I'm new to jQuery.  In fact, my jQuery
expertise goes back a full 24 hours.  The website I'm coding now did use
prototype and scriptaculous, but once I looked at the 1.2 version of jQuery,
I knew I'd found a better solution (for me, anyways).  So I spent the rest
of the day recoding the site for jQuery.  It was this post that convinced me
I needed to change.
http://jquery.com/blog/2006/08/20/why-jquerys-philosophy-is-better/

Anyways, if someone has some suggestions or solutions for the star rating,
that would be much appreciated!

Thanks,
Derek


[jQuery] Re: Star rating plugin for 1.2?

2007-09-12 Thread Karl Swedberg

The .lt() and .eq() -- and .gt() -- methods were removed from 1.2.

If you'd like to try to patch will stuckey's version, you could try  
the following:


line 97:
.slice(0,index).addClass('hover').end();
line 105:
$stars.slice(0,averageIndex).addClass('on').end();
line 108:
$stars.slice(averageIndex,averageIndex 
+1).addClass('on').children('a').css('width', percent + %).end().end 
();


I don't know if there are other issues, but these are the most  
obvious -- and the easiest to change.


Hope that helps.

--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 12, 2007, at 12:19 PM, Derek Gathright wrote:

I've been scouring the internet looking for a star rating plugin  
for the latest version of jQuery, but have been unsuccessful.  I  
really like these, but they appear to be incompatible with any  
recent versions.


http://sandbox.wilstuckey.com/jquery-ratings/
http://php.scripts.psu.edu/rja171/widgets/rating.php

I attempted to update the wilstucky.com one for jQuery 1.2, but I'm  
fairly new to jQuery and wasn't able to figure out the issues.  I  
got past the $form.title() errors, but I just couldn't figure out  
why the hell $star.lt()  $star.eq() weren't functions.  Maybe  
someone with a bit more experience would be more successful than me?


On a side note, as I mentioned, I'm new to jQuery.  In fact, my  
jQuery expertise goes back a full 24 hours.  The website I'm coding  
now did use prototype and scriptaculous, but once I looked at the  
1.2 version of jQuery, I knew I'd found a better solution (for me,  
anyways).  So I spent the rest of the day recoding the site for  
jQuery.  It was this post that convinced me I needed to change.   
http://jquery.com/blog/2006/08/20/why-jquerys-philosophy-is-better/


Anyways, if someone has some suggestions or solutions for the star  
rating, that would be much appreciated!


Thanks,
Derek




[jQuery] Re: XSL Templating

2007-09-12 Thread Sean Catchpole
No, this is not built into jQuery. There is however a plugin that can do
this for you.
http://jquery.com/plugins/project/XSLT

~Sean

On 9/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Is there an option to apply XSL stylesheets to XML recieved via
 jQuery.ajax()? I have some templated xml which I'm loading but the
 stylesheets don't seem to be applied via an AJAX load. I always
 thought this was supposed to be done by the server, but I guess it's
 the browser...




[jQuery] jquery version of YUI Buttons?

2007-09-12 Thread owen

I've searched without success, so I thought I'd ask here: Does anyone
know of a jquery version of YUI's Button component? (http://
developer.yahoo.com/yui/button/) I'm not opposed in principle to using
YUI, but it seems like it would be easier to not have to mix
libraries.

Thanks,

  Owen



[jQuery] Re: [Announce] WYMeditor 0.4 released

2007-09-12 Thread Joan Piedra
Hi Jean-Francois,
I like how this project is getting better and better, I'd love to see a
better support for the latest safari and Opera.

For Alexandre's idea, I'd suggest to wait until this sunday and take a look
at the UI uploader plugin, maybe this could be a useful, to upload images
and files and link them directly in the editor.

Cheers,

On 9/12/07, Jean-Francois Hovinne [EMAIL PROTECTED] wrote:


 The file browser is an often requested feature, and we're actually
 planning an API to do this sort of things.
 Anyway, there's an image gallery implementation example, using
 jCarousel and CodeIgniter, available at:
 http://trac.wymeditor.org/trac/wiki/Contrib/ImageGalleryExample

 I'll take a look at thefilebrowser, which looks interesting.

 On Sep 12, 4:24 pm, Alexandre Plennevaux [EMAIL PROTECTED]
 wrote:
  One more request: possibility to upload images, within a file browser
 (boum
  boum bang, a full project in itself) !
 
  To keep this feature light, i would be perfectly happy with the
  possibility of using an external file manager to feed the textarea with
 an
  image, such ashttp://thefilebrowser.com/ , having it work nicely with
  wymeditor.




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] NEWBIE Question: children() skips first element?

2007-09-12 Thread Brook Davies


Hello,

I am trying to simply grab the children of a div. The markup is:

div id=content
div id=panelPreview class=fieldset_theme  
div id=panelPreview_inner class=hPanel
fieldset  
legend[Section/Panel
Heading]/legend   
/fieldset
/div
/div  
/div

But, what I don't understand is why when I call 

alert($('#content').children().html());

The resulting html starts with  'div id=panelPreview_inner
class=hPanel'

It seems like it is missing the first div after #content? What am I
missing??

Brook 





[jQuery] Re: Using wrap() and then removing the wrapped element without removing the children

2007-09-12 Thread Joan Piedra
:O

I'm not sure about it. But I thought it was faster to clone and then remove,
than move it all.
Thanks for taking your time to explain this.


On 9/12/07, Pyrolupus [EMAIL PROTECTED] wrote:


 On Sep 11, 7:06 pm, Joan Piedra [EMAIL PROTECTED] wrote:
  Hmm.. Can't you clone the nodes and then just remove the _old_ parent
 div?

 Sure, but if I'm not mistaken, using clone() is more expensive:  it
 creates copies of everything just to subsequently remove the
 originals.  By using children(), we just work with the same number of
 DOM elements, just change their root.  (This is based on an untested
 assumption that the browser is re-linking existing items, not doing
 its own internal clone-then-delete type behavior.)

 In either case, though, the old parent div does get removed.

 Pyro

 
  On 9/11/07, Pyrolupus [EMAIL PROTECTED] wrote:
 
   On Sep 11, 3:03 pm, Brook Davies [EMAIL PROTECTED] wrote:
Easy Question I think. If I use (from Jquery 1.2):
 
$(#myElem).wrapAll(div id='myDiv'/div);
 
To wrap the div 'myDiv' around 'myElem', how can I later remove that
 div
without removing the pre-existing myElem and any other contents of
 that
   div?
 
   I'm newish to jQuery, so my syntax is not the uberest, but something
   like the following would work:
 
   $('div#myDiv').after($('div#myDiv').children()).remove()
 
   In fact, it does work--I just tested it in FireBug.  (I just don't
   know the correct syntax to avoid referring to div#myDiv twice.)
 
   Pyro
 
  --
  Joan Piedra  ||  Frontend web developerhttp://www.justaquit.com/ ||
 http://www.joanpiedra.com/




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: New plugin - Lazy Load

2007-09-12 Thread Mika Tuupola



On Sep 7, 2007, at 3:58 PM, Erik Beeson wrote:
Great stuff, as always. I'm looking over the source and had a  
couple of thoughts. It looks like you bind an event handler for  
each matching element, so 100 images will result in 100 event  
handlers firing on every scroll. That seems like it wouldn't scale  
as well as just have one event handler that iterates over the  
elements.


I made some tests and you are absolutely right. Pages with hundreds  
of images this might become performance issue. I already have an idea  
how to solve this. So keep eye on new releases :)


instead of once per element per scroll. In addition, if you knew  
that the images that were being lazy loaded appear on the page in  
the order that they appear on the DOM ( i.e., images further down  
the DOM are also further down the page), as is likely the case in  
most image gallery type settings where this plugin will be most  
useful, you could stop checking images once you found one that was  
below the fold.


Risky assumption but is true in most of cases. Maybe some user  
configurable setting. Have to do some thinking...


--
Mika Tuupola
http://www.appelsiini.net/





[jQuery] Faster then innerHTML

2007-09-12 Thread Felix Geisendörfer

Here is an interesting blog post that I came across:

http://blog.stevenlevithan.com/archives/faster-than-innerhtml

The synopsis basically is that one can gain dramatic speed improvements 
on setting innerHTML when removing items that are going to be 
overwritten using DOM methods before inserting stuff via innerHTML.


I could see how this would be a need addition to jQuery.

-- Felix
PS: If you like regex make sure to subscribe to this guys blog, he has 
some mad skills going on.

--
My Blog: http://www.thinkingphp.org
My Business: http://www.fg-webdesign.de


[jQuery] Re: jquery version of YUI Buttons?

2007-09-12 Thread Joan Piedra
Hmm.. this looks like Nice JForms or jLook to me.

http://www.lexcat.ro/nicejforms/nicejforms.html
http://envero.org/jlook/


On 9/12/07, owen [EMAIL PROTECTED] wrote:


 I've searched without success, so I thought I'd ask here: Does anyone
 know of a jquery version of YUI's Button component? (http://
 developer.yahoo.com/yui/button/ ) I'm not opposed in principle to using
 YUI, but it seems like it would be easier to not have to mix
 libraries.

 Thanks,

   Owen




-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/


[jQuery] Re: Error: d[i].getElementsByTagName is not a function

2007-09-12 Thread Giant Jam Sandwich

Hi Karl,

hooks is the root element. I just assumed that the double forward
slash, which is supposed to find an element from any position within
the DOM, would naturally start at the root node. Is that a wrong
assumption?

Thanks.

Brian


On Sep 12, 9:03 am, Karl Swedberg [EMAIL PROTECTED] wrote:
 Hi Brian,

 Is hooks the root element of your XML file? If so, then I think it  
 makes sense that /hooks works while //hooks doesn't.

 --Karl
 _
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Sep 12, 2007, at 9:39 AM, Giant Jam Sandwich wrote:





  This however does work:

  $(/hooks/errors/error,data);

  Although they mean two different things, this will be sufficient for
  what I am doing. It might still be good to look into though.

  Thanks John.

  On Sep 11, 4:18 pm, John Resig [EMAIL PROTECTED] wrote:
  What version of jQuery - and if you're using jQuery 1.2, do you have
  the XPath plugin included?

  --John

  On 9/11/07, Giant Jam Sandwich [EMAIL PROTECTED] wrote:

  $(//hooks/errors/error,data);

  If my XML contains an error node, everything is okay. If it does not
  contain an error node, I get the following error:

  Error: d[i].getElementsByTagName is not a function

  Shouldn't it just return null?

  Thanks.

  Brian- Hide quoted text -

 - Show quoted text -



[jQuery] Re: Faster then innerHTML

2007-09-12 Thread Sean Catchpole
Excellent, I'll look into this.

~Sean

On 9/12/07, Felix Geisendörfer [EMAIL PROTECTED] wrote:

  Here is an interesting blog post that I came across:

 http://blog.stevenlevithan.com/archives/faster-than-innerhtml

 The synopsis basically is that one can gain dramatic speed improvements on
 setting innerHTML when removing items that are going to be overwritten using
 DOM methods before inserting stuff via innerHTML.

 I could see how this would be a need addition to jQuery.

 -- Felix PS: If you like regex make sure to subscribe to this guys blog,
 he has some mad skills going on.
 --
 My Blog: http://www.thinkingphp.org
 My Business: http://www.fg-webdesign.de



  1   2   >