[jQuery] Re: Two comments/questions about Jörn's aut ocomplete plugin.

2007-08-01 Thread Dylan Verheul

Hi Carlos,

You're almost there. You need to set cacheLength to a number > 1 (say
10), and you need to set matchSubset to true.

-Dylan

On 8/1/07, chali <[EMAIL PROTECTED]> wrote:
>
> First I've to say that this plugin is a great piece of work and i'm
> using it in many of my projects.
>
> This time I need to implement it with a few modifications.
>
> My first question is:
> Is there a way to trigger a function when no results are found?
> I didn't find it in the documentation. Maybe with a little work on the
> code it's possible
>
> My second question/comment:
> As I handle a large ammount of options, I always use the remote
> results, and I noticed that for example id "foo" returns zero results
> and I type another letter "fooo" another request to the server
> searching for "fooo" is made. Is there a way to avoind this? I've
> tried with the cache options with no luck.
>
> I know that if there's no results on "foo" the logical thing to do is
> stop typing and change foo for other thing, but I'm going to allow the
> visitor to create a new item besides using what's on the database
> already.
>
> Thanks for your help and sorry for my english :)
>
>


[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread John Resig

Very nice - you even added audio! :-)

--John

On 8/2/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
> I made the entire bar a hotlink, added an image and sound.
>
> http://www.whatbird.com/wwwroot/accord.html
>
> This is VERY easy to use.
>
> Oh and don't be mad, I made the easing linear, because, well that bouncing
> is very cool and this is a great example of how it can be used.
>
> But after a while it gets like any over down effect...a bit old.
>
> Still its fantastic!
>
>
>


[jQuery] Re: How to bind a function to all elements?

2007-08-01 Thread Tsz Ming WONG
should be something like that...

jQuery(document).ready(
 function() {
  jQuery("*").css("border", "1px solid red");
 }
);



On 8/2/07, barnezz <[EMAIL PROTECTED]> wrote:
>
>
> Hello
>
> I need to bind an hover function on every element of my page...
>
> but it doesn't work :-(
>
> var allz=document.getElementsByTagName("*");
>
> for(var i=0; i$(allz[ i]).hover(
> function(){
> $(this).css("border","1px solid red");
> },
> function(){
> $(this).css("border","none");
> }
>);
> }
>
> I don't know how to select properly each elements??
>
>


-- 
Best Regards,
tszming


[jQuery] Re: How to bind a function to all elements?

2007-08-01 Thread Erik Beeson
How about:

$('*').hover(...);

Or maybe a little more practical:

$('body *').hover(...);

So you don't get all of the elements in the head.

--Erik


On 8/1/07, barnezz <[EMAIL PROTECTED]> wrote:
>
>
> Hello
>
> I need to bind an hover function on every element of my page...
>
> but it doesn't work :-(
>
> var allz=document.getElementsByTagName("*");
>
> for(var i=0; i $(allz[ i]).hover(
>  function(){
>  $(this).css("border","1px solid red");
>  },
>  function(){
>  $(this).css("border","none");
>  }
> );
> }
>
> I don't know how to select properly each elements??
>
>


[jQuery] SITE SUBMISSION - www.fulltiltpoker.com

2007-08-01 Thread Juha Suni SC
I noticed yesterday that the premiere poker site with all the biggest stars is 
relying heavily on jQuery: http://www.fulltiltpoker.com

They use jQuery 1.1.2 and a bunch of plugins as well, including the Thickbox 3, 
Metadata, Validate, Slider and Media plugins. See 
http://www.fulltiltpoker.com/js/common.en.js for more information. 

-- 
Suni

[jQuery] Re: jTip reload issue

2007-08-01 Thread Karl Swedberg

Hi Chris,

You're probably binding the jtip function to the page only when it's  
initially loaded. You'll probably need to re-bind it after the new  
content has been inserted into the DOM.


Here is a link to to a quick solution:
http://docs.jquery.com/ 
Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_r 
equest.3F


and here is a link to a lengthier discussion:
http://docs.jquery.com/Tutorials:AJAX_and_Events


One caveat: If I recall correctly, the Behaviors plugin doesn't work  
with content that is inserted via ajax (only via DOM manipulation).



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



On Aug 1, 2007, at 10:30 PM, Chris Hall wrote:



Hello all.

I am new to jQuery, and I must say it is FANTASTIC!

I am using jTips and it is working very well, but with one exception.

When my page is intially loaded, everything works great.  However,
when I reload a DIV using AJAX, the jtips in that div do not work.

I have verified the code I am using to reload the div is exactly the
same (for testing, but once this is fixed it will not be).

So for example, when the page is initially loaded I have:

Area description goes here In this area you see test13, test5

And everything works fine.

But after the page has been loaded and I use AJAX to reload that div
with:

Area description goes here In this area you see test13, test5

The jtips do not work.


What am I doing wrong?

And thanks for all your help and your wonderful framework!!!





[jQuery] How to bind a function to all elements?

2007-08-01 Thread barnezz

Hello

I need to bind an hover function on every element of my page...

but it doesn't work :-(

var allz=document.getElementsByTagName("*");

for(var i=0; i

[jQuery] jTip reload issue

2007-08-01 Thread Chris Hall

Hello all.

I am new to jQuery, and I must say it is FANTASTIC!

I am using jTips and it is working very well, but with one exception.

When my page is intially loaded, everything works great.  However,
when I reload a DIV using AJAX, the jtips in that div do not work.

I have verified the code I am using to reload the div is exactly the
same (for testing, but once this is fixed it will not be).

So for example, when the page is initially loaded I have:

Area description goes here In this area you see test13, test5

And everything works fine.

But after the page has been loaded and I use AJAX to reload that div
with:

Area description goes here In this area you see test13, test5

The jtips do not work.


What am I doing wrong?

And thanks for all your help and your wonderful framework!!!



[jQuery] Re: New to jQuery: Problem setting current time to some element

2007-08-01 Thread Nazgulled

Solved:
$("#dateandtime").text(date.toString());



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Sean Catchpole
vi


[jQuery] Re: New to jQuery: Problem setting current time to some element

2007-08-01 Thread Brad Perkins

Try this:

function displayDate(){
  var date = new Date();
  $("#dateandtime").text(date.toString());
}

On Aug 1, 5:56 pm, Nazgulled <[EMAIL PROTECTED]> wrote:
> Hi,
> This is my code:
>
> function displayDate(){
>   var date = new Date();
>   $("#dateandtime").text(date);
>
> }
>
> $(document).ready(function(){
>setInterval('displayDate()', 1000);
>
> });
>
> But it doesn't work, however, if I have this:
> $("#dateandtime").text("some text");
>
> The content of the  element with "dateandtime" id selector will
> change to "some text". I don't understand why it doesn't change when I
> have this:
> $("#dateandtime").text(date);
>
> I'm new to jQuery, please advise... Thanks in advance.



[jQuery] Re: Two comments/questions about Jörn's aut ocomplete plugin.

2007-08-01 Thread Ganeshji Marwaha
i am not sure about the first question. i will allow the plugin author or
someone who has his hands dirty with that plugin code to answer.

as far as second question is concerned, if you set matchSubset to the
appropriate value, then, it should solve your problem. the cache should also
be enabled for this to work i suppose.

-GTG


On 8/1/07, chali <[EMAIL PROTECTED]> wrote:
>
>
> First I've to say that this plugin is a great piece of work and i'm
> using it in many of my projects.
>
> This time I need to implement it with a few modifications.
>
> My first question is:
> Is there a way to trigger a function when no results are found?
> I didn't find it in the documentation. Maybe with a little work on the
> code it's possible
>
> My second question/comment:
> As I handle a large ammount of options, I always use the remote
> results, and I noticed that for example id "foo" returns zero results
> and I type another letter "fooo" another request to the server
> searching for "fooo" is made. Is there a way to avoind this? I've
> tried with the cache options with no luck.
>
> I know that if there's no results on "foo" the logical thing to do is
> stop typing and change foo for other thing, but I'm going to allow the
> visitor to create a new item besides using what's on the database
> already.
>
> Thanks for your help and sorry for my english :)
>
>


[jQuery] Re: FW: [jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread Mitch

If you add height: 300px; to the dl:

dl { width: 300px; height: 300px; }

it will do what I am talking about.

But I bet if I added any new  it would need to be readjusted.
Ouch.






[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread John Resig

On 8/1/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
> Nice update, the DD constant height is great.
>
> However, if you close the top menu the height still collapses. In my Spry
> example
>
> http://www.whatbird.com/wwwroot/Components/Accordion%20Menu.html
>
> they get around that issue by making it so one menu must always remain open.
> Can you see a way to add that restraint?

Yep, done - just a simple if () statement:
http://dev.jquery.com/~john/plugins/accord/

--John


[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread John Resig

Mitch -

I just re-read your post and I think I replied incorrectly. But
following up on it, the revised solution that I posted solves your
problem completely. Let me know if it works for you.

--John

On 8/1/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
> John
>
> Very sweet!
>
> This is almost perfect except for one thing, I think is critical.
>
> Try tripling the number of items in the first menu. When you click menu1 and
> menu2 everything works fine, the height does not change. But when you click
> menu3 the bottom of the menu rises up and the height changes.
>
> This looks strange and gives motion sickness.
>
> Is there a simple way to make the height of the accordion from top to bottom
> a constant like the accordion example link I posted?
>
> I take my hat off for how elegant this little puppy is, most other solutions
> are really complicated.
>
> Mitch
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of John Resig
> Sent: Wednesday, August 01, 2007 4:36 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Hover accordion (as on apple.com)
>
>
> I still see a little bit of flicker in that new code that you posted -
> but I was just able to pull together a demo that works quite nicely.
>
> So here's a new, working, accordion (albeit, a very simple one):
> http://dev.jquery.com/~john/plugins/accord/
>
>
>
>
>
>


[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread John Resig

> I'm sure this will be a huge hit if people are made aware of it. Any
> thoughts about putting it out for others to see? Maybe a blog post or
> something? This is just one more great example of your crescent fresh
> programming skills! Your kick-assity knows no bounds.

I'm a little bit hesitant because I'm 95% certain that I'll be
changing how the step callback works. Right now it's a pixel value (or
a decimal if opacity), but it'll probably become just a decimal in 1.2
(a number 0 to 1, representing how far along the animation is).

I'm sure this will make for a good 1.2 demo though, as it'll actually
make the code for it simpler, I suspect.

--John


[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread John Resig

I think you were using the wrong demo, because I just increased the
number of items in the working demo and it still works wonderfully:
http://dev.jquery.com/~john/plugins/accord/

If you're talking about increasing the number of LI items, no, it
won't work - each of the children have to be a consistent height,
otherwise it won't work. HOWEVER. If you give each DD a universal
height, then it will work. I've updated the demo to add both more
headers and different numbers of items, but with a consistent height.

--John

On 8/1/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
> John
>
> Very sweet!
>
> This is almost perfect except for one thing, I think is critical.
>
> Try tripling the number of items in the first menu. When you click menu1 and
> menu2 everything works fine, the height does not change. But when you click
> menu3 the bottom of the menu rises up and the height changes.
>
> This looks strange and gives motion sickness.
>
> Is there a simple way to make the height of the accordion from top to bottom
> a constant like the accordion example link I posted?
>
> I take my hat off for how elegant this little puppy is, most other solutions
> are really complicated.
>
> Mitch
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of John Resig
> Sent: Wednesday, August 01, 2007 4:36 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Hover accordion (as on apple.com)
>
>
> I still see a little bit of flicker in that new code that you posted -
> but I was just able to pull together a demo that works quite nicely.
>
> So here's a new, working, accordion (albeit, a very simple one):
> http://dev.jquery.com/~john/plugins/accord/
>
>
>
>
>
>


[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Erik Beeson
We use IntelliJ IDEA. I haven't used anything else, so I don't know how it
compares, but it works great for us. When a new developer comes in using
Eclipse, we give them an IDEA license, and they've all eventually converted
:) It even does selector completion in text strings, which is great for
writing jQuery code.

Obviously our server side is all Java :)

--Erik


On 8/1/07, Matt Penner <[EMAIL PROTECTED]> wrote:
>
>
> I've just started developing with jQuery in the last month.  I usually
> use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> much nil as far as intellisense goes.  Mainly all they do is syntax
> highlighting and formatting.
>
> What recommendations on JavaScript editors or IDEs does anyone have?
> Is there something sophisticated enough that can have intellisense
> with jQuery or my own objects in external js files?
>
> Thanks,
> Matt
>
>


[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread Karl Swedberg

John,

Thank you so much for replying to this thread. Your demo looks  
absolutely fantastic!


Justin asked me about this issue a while back on learningjquery.com,  
and I had no idea where to even begin. The problem has been nagging  
at me ever since, but since I didn't have anything helpful to offer,  
I thought I'd keep my mouth shut.


I'm sure this will be a huge hit if people are made aware of it. Any  
thoughts about putting it out for others to see? Maybe a blog post or  
something? This is just one more great example of your crescent fresh  
programming skills! Your kick-assity knows no bounds.


Cheers,

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



On Aug 1, 2007, at 7:36 PM, John Resig wrote:



I still see a little bit of flicker in that new code that you posted -
but I was just able to pull together a demo that works quite nicely.

So here's a new, working, accordion (albeit, a very simple one):
http://dev.jquery.com/~john/plugins/accord/

compare with the old code:
http://dev.jquery.com/~john/plugins/accord/old.html

Just a couple extra lines. There's three problems that had to be
solved, two were CSS, one was jQuery.
1) The "headers" had to have no margins. (When two margins are next to
each other, the margins collapse.
2) The "bodies" had to have no padding. (Unless, of course, you wanted
to animate the padding of the elements as well - but I find it easier
to just make the content inside the bodies have margins/padding).
3) When animating two properties, the numbers weren't being rounded
properly (e.g. body A would be 40.5px (rounded to 40px) and body B
would be 20.5px (rounded to 20px) - causing lots of weird jittering to
occur.

There's a hidden 'step' function in the jQuery animate function
(which, up until this point, I had little use for, and was considering
removing) that you can use to get the current number of pixels
processed for an animation. So you just compute the remainder, and you
get a smooth result.

This technique *requires* that the bodies all have equal heights (and
if you'll notice, in both Rico and Apple.com, they require that as
well) so that it looks smooth.

Additionally, I threw in a fun easing effect to make things nice and
awesome. Let me know what you guys think!

--John

On 8/1/07, Justin Sepulveda <[EMAIL PROTECTED]> wrote:


Finally.  Someone else feels my pain.  I had just posted a message to
this group today about this as well.  I just wish there was an easier
way to remove that flicker/bounce that happens with the jQuery
standard slideUp/slideDown.  Having to call in that many scripts to
get this effect seems pretty un-jQuery.  But nice work!

On Aug 1, 11:18 am, [EMAIL PROTECTED] wrote:

My company redesigns a web site. Our head designer (as apple fan)
decided to put nasty inverted hover accordion on new site. So,
yesterday I started to develop a prototype:http://www.bydot.net/ 
hoveracc/hoveracc_1.htm


Structure is:

  

Naslov stavke 1
  Sadrzaj stavke 1

  
  

Naslov stavke 2
  Sadrzaj stavke 2

  
  
 Naslov stavke 3
  Sadrzaj stavke 3

  
  
 Naslov stavke 4
  Sadrzaj stavke 4

  

where "naslov_stavke" is part that should be hidden or shown, and
"sadrzaj_stavke" is always visible. "Omot" means wrap.
It took me about half an hour to make this piece, but, there's a
flicker that our designer didn't like.
"Never mind if you can do it by jQuery. We will copy from  
apple.com".


Yeah, sure...

So, I spent next 6 hours yesterday and 4 today to find solution.
Actually, my idea was same all the time: to fixate elements by
position: absolute and top property. Here he the list of problems I
had to solve:
1) How to obtain consistency of li elements and children's. I did it
with . In some time of development it was  
crucial to
have this div. Now, it isn't important, but it can help with  
styling.
2) On which container element to position:relative. The best  
solution

is to put on ul element that contains inverted accordion
3) How to remove position and top properties. There's no mention  
about

that in documentation
4) How to obtain proper top values for elements that should not  
move.

First, I wanted to do it just for elements that must remain static.
This will be done after each hover. Then, I decided to recalculate
top's for each :

i = 0;
visine = new Array();
$(".sadrzaj_stavke").each(function(){visine[i]=$(this).position 
().top;i

++;});

which gives me wrong results all the time.

In one moment I have two perfectly working scripts, but one  
worked in

up direction, second one in down direction :)
Finally, I decide to put in work original idea to calculate  
top's, and

that's working perfectly (I abandoned this idea because I wanted to
make more flexible script)

Minor problems will be masked with images and css.

This solution can be generally used to solve jQuery animation  
quirks.

It can be found onhttp://www.bydot.net/hoveracc/h

[jQuery] Re: Ajax Setup Questions

2007-08-01 Thread Ganeshji Marwaha
the function is ajaxError() and not error()

-GTG


On 8/1/07, oscar esp <[EMAIL PROTECTED]> wrote:
>
>
> I need to have a global behaviour for ajax call. I have next code:
>
> jQuery().ajaxSuccess(function(request, settings){updateCounter ();});
>
> jQuery().error(function(request, settings){alert('APLICATION ERROR\n
> '+settings.url);});
>
> jQuery.ajaxTimeout(12);
>
>
> - Ajax Success works fine.
>
> - I don't know how provoke and error to execute error function Any
> suggestion?
>
> - TimeOut: When time out event is fired, error function should be
> executed or there is any way to specify which function should be
> fired?
>
> Thanks.
>
>


[jQuery] Re: Anything similar to IE's table.moveRow in jquery?

2007-08-01 Thread Mike Miller

Hi,

Thanks for the tip...the one other question I have related to this
that I need to move these rows in a table that has no id.  The table
does have "form" elements that have id's and I could do something like
this in JS

document.getElementById("formelement").parentNode.parentNode.parentNode
- this gets a ref to the table

Likewise

document.getElementsByTagName("table") and then navigate to the
particular table element I am interested in.

Question now becomes...how do I do either one of those javascript
functions I am familiar with...with jquery/

M

On Jul 31, 2:57 am, Dave Probert <[EMAIL PROTECTED]> wrote:
> Or for more detailed movement:
>   $('tr:eq(3)').insertBefore('tr:eq(1)');
> or
>   $('tr:eq(2)').insertAfter('tr:eq(5)');
> Note: the numbers are the row count - beginning at 0 (zero) for the
> first row.
>
> Lookup the jquery :xxx qualifiers for more options.
>
> On Jul 31, 4:16 am, Mike Miller <[EMAIL PROTECTED]> wrote:
>
>
>
> > Haven't been able to find any documentation so far that talks about
> > how to move rows around with jquery.  Don't really need to sort the
> > whole table...rather I want to move one row to another position.  Can
> > this be done?- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: Two words for Jquery

2007-08-01 Thread polyrhythmic

Haha I agree!  I didn't know how to explain it once I typed it - thank
goodness for Urban Dictionary (?! lol)

On Aug 1, 3:14 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> On the page about crescent fresh it said:
>
>  adj; Of great kick-assity.
> So awesome that there isn't enough letters in the word "Awesome" to explain
> the "Awesome-ness" of said situation.
> I have to start using the term "Of great kick-assity"
>
> Glen
>
> On 8/1/07, polyrhythmic <[EMAIL PROTECTED]> wrote:
>
>
>
> > crescent fresh
> > (http://www.urbandictionary.com/define.php?term=crescent+fresh)
>
> > On Aug 1, 10:50 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> > > super fly.
>
> > > On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
>
> > > > On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> > > > > BJ AJ
>
> > > > > (Before JQuery) (After JQuery)
>
> > > > Meet BJ :-(
>
> > > > Meet AJ :-)
>
> > > > - Richard



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread njsuperfreak

THE IDE ROCKS! I tried the plugin for eclipse and it seems there are a
few glitchs I encountered I totally recomend the IDE great FTP
Support as well, only real thing it lacks is the CSS color visual.

On Aug 1, 4:47 pm, Duncan <[EMAIL PROTECTED]> wrote:
> +1 for Aptana, I use it as a plugin for Eclipse.
>
> On 8/2/07, Mark D. Lincoln <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Matt,
>
> > I just discovered Spket IDE (http://www.spket.com/).  It was recommended by
> > someone on the Ext (http://extjs.com/) forums and so far, I would say it is
> > great!  You can install it as a standalone application or as an Eclipse
> > plug-in.  Needless to say, you need Java installed (version 1.4.2 or
> > higher).  Spket currently supports Ext, jQuery, and YUI with features like
> > code completion.  I tried Aptana a while ago and its support for jQuery was
> > lacking at the time.  This may have changed, but since I found Spket, I am
> > going to stick with it for a while.
>
> > Mark D. Lincoln
>
> > Mark D. Lincoln, Vice President of Product Development
> > Eye On Solutions, LLC
> > (866) 253-9366x101
> >www.eyeonsolutions.com
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Matt Penner
> > Sent: Wednesday, August 01, 2007 2:01 PM
> > To: jQuery (English)
> > Subject: [jQuery] Good Javascript editor or IDE?
>
> > I've just started developing with jQuery in the last month.  I usually
> > use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> > much nil as far as intellisense goes.  Mainly all they do is syntax
> > highlighting and formatting.
>
> > What recommendations on JavaScript editors or IDEs does anyone have?
> > Is there something sophisticated enough that can have intellisense
> > with jQuery or my own objects in external js files?
>
> > Thanks,
> > Matt
>
> --
> Duncan I Loxton
> [EMAIL PROTECTED]



[jQuery] New to jQuery: Problem setting current time to some element

2007-08-01 Thread Nazgulled

Hi,
This is my code:

function displayDate(){
  var date = new Date();
  $("#dateandtime").text(date);
}


$(document).ready(function(){
   setInterval('displayDate()', 1000);
});

But it doesn't work, however, if I have this:
$("#dateandtime").text("some text");

The content of the  element with "dateandtime" id selector will
change to "some text". I don't understand why it doesn't change when I
have this:
$("#dateandtime").text(date);

I'm new to jQuery, please advise... Thanks in advance.



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread polyrhythmic

I develop PHP + HTML + CSS + JS + jQuery, and I use Komodo Edit.  It
has the Mozilla engine, can use firefox extensions, and is free.  It
does not offer debugging for all those languages, but it understands
them well and interestingly I've found the CSS auto-completion to be
the most useful.  You can preview in tab or split-screen, or teach it
to preview a file using a different address, for when I'm running
Apache + PHP and want it to preview through URL rather than
Filesystem.  I hear Firebug is very useful with Komodo Edit but
thankfully development with jQuery is so smooth I rarely have to
debug!  I haven't tried Aptana yet, has anyone tried both and think I
should make the switch?

On Aug 1, 1:47 pm, Duncan <[EMAIL PROTECTED]> wrote:
> +1 for Aptana, I use it as a plugin for Eclipse.
>
> On 8/2/07, Mark D. Lincoln <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Matt,
>
> > I just discovered Spket IDE (http://www.spket.com/).  It was recommended by
> > someone on the Ext (http://extjs.com/) forums and so far, I would say it is
> > great!  You can install it as a standalone application or as an Eclipse
> > plug-in.  Needless to say, you need Java installed (version 1.4.2 or
> > higher).  Spket currently supports Ext, jQuery, and YUI with features like
> > code completion.  I tried Aptana a while ago and its support for jQuery was
> > lacking at the time.  This may have changed, but since I found Spket, I am
> > going to stick with it for a while.
>
> > Mark D. Lincoln
>
> > Mark D. Lincoln, Vice President of Product Development
> > Eye On Solutions, LLC
> > (866) 253-9366x101
> >www.eyeonsolutions.com
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Matt Penner
> > Sent: Wednesday, August 01, 2007 2:01 PM
> > To: jQuery (English)
> > Subject: [jQuery] Good Javascript editor or IDE?
>
> > I've just started developing with jQuery in the last month.  I usually
> > use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> > much nil as far as intellisense goes.  Mainly all they do is syntax
> > highlighting and formatting.
>
> > What recommendations on JavaScript editors or IDEs does anyone have?
> > Is there something sophisticated enough that can have intellisense
> > with jQuery or my own objects in external js files?
>
> > Thanks,
> > Matt
>
> --
> Duncan I Loxton
> [EMAIL PROTECTED]



[jQuery] FW: [jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread Mitchell Waite

John

Very sweet!

This is almost perfect except for one thing, I think is critical. 

Try tripling the number of items in the first menu. When you click menu1 and
menu2 everything works fine, the height does not change. But when you click
menu3 the bottom of the menu rises up and the height changes. 

This looks strange and gives motion sickness.

Is there a simple way to make the height of the accordion from top to bottom
a constant like the accordion example link I posted?

I take my hat off for how elegant this little puppy is, most other solutions
are really complicated.

Mitch
 
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Resig
Sent: Wednesday, August 01, 2007 4:36 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Hover accordion (as on apple.com)


I still see a little bit of flicker in that new code that you posted -
but I was just able to pull together a demo that works quite nicely.

So here's a new, working, accordion (albeit, a very simple one):
http://dev.jquery.com/~john/plugins/accord/






[jQuery] Re: 3D carousel?

2007-08-01 Thread Ganeshji Marwaha
sweet... i guess, adding mouseWheel control should help a great deal as
well... just my 2 cents

-GTG


On 8/1/07, Giuliano Marcangelo <[EMAIL PROTECTED]> wrote:
>
> Franck,
>
> This is excellent...very polished
>
> :-)
>
> On 01/08/07, Franck Marcia <[EMAIL PROTECTED] > wrote:
> >
> >
> > I "up" this thread just to announce the brand new carousel of
> > www.alapage.com,
> > based on the work of Stefan Petre (http://interface.eyecon.ro).
> >
> > Many thanks to Stefan, many thanks to John.
> >
> > Franck.
> >
> > On 9 juil, 14:49, Michael Price <[EMAIL PROTECTED]> wrote:
> > > Fred Janon wrote:
> > > > Has anyone done or know how to do a carousel like the 3D circular
> > > > carousel in Flash inAmazon? It looks pretty cool. Forgive me if the
> > > > link doesn't work for you but the carousel shows the best-seller
> > books
> > > > in a 3D circular carousel.
> > >
> > > >http://www.amazon.com/ref=topnav_gw_/105-7722567-3277224
> > > > 
> > >
> > > Hi Fred,
> > > There's one in the Interface effects library as well:
> > http://interface.eyecon.ro/demos
> > >
> > > You can see it demonstrated from the above link, near the bottom of
> > the
> > > Technical Demos list.
> > >
> > > Regards,
> > > Michael Price
> >
> >
>


[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread John Resig

I still see a little bit of flicker in that new code that you posted -
but I was just able to pull together a demo that works quite nicely.

So here's a new, working, accordion (albeit, a very simple one):
http://dev.jquery.com/~john/plugins/accord/

compare with the old code:
http://dev.jquery.com/~john/plugins/accord/old.html

Just a couple extra lines. There's three problems that had to be
solved, two were CSS, one was jQuery.
1) The "headers" had to have no margins. (When two margins are next to
each other, the margins collapse.
2) The "bodies" had to have no padding. (Unless, of course, you wanted
to animate the padding of the elements as well - but I find it easier
to just make the content inside the bodies have margins/padding).
3) When animating two properties, the numbers weren't being rounded
properly (e.g. body A would be 40.5px (rounded to 40px) and body B
would be 20.5px (rounded to 20px) - causing lots of weird jittering to
occur.

There's a hidden 'step' function in the jQuery animate function
(which, up until this point, I had little use for, and was considering
removing) that you can use to get the current number of pixels
processed for an animation. So you just compute the remainder, and you
get a smooth result.

This technique *requires* that the bodies all have equal heights (and
if you'll notice, in both Rico and Apple.com, they require that as
well) so that it looks smooth.

Additionally, I threw in a fun easing effect to make things nice and
awesome. Let me know what you guys think!

--John

On 8/1/07, Justin Sepulveda <[EMAIL PROTECTED]> wrote:
>
> Finally.  Someone else feels my pain.  I had just posted a message to
> this group today about this as well.  I just wish there was an easier
> way to remove that flicker/bounce that happens with the jQuery
> standard slideUp/slideDown.  Having to call in that many scripts to
> get this effect seems pretty un-jQuery.  But nice work!
>
> On Aug 1, 11:18 am, [EMAIL PROTECTED] wrote:
> > My company redesigns a web site. Our head designer (as apple fan)
> > decided to put nasty inverted hover accordion on new site. So,
> > yesterday I started to develop a 
> > prototype:http://www.bydot.net/hoveracc/hoveracc_1.htm
> >
> > Structure is:
> > 
> >   
> > 
> > Naslov stavke 1
> >   Sadrzaj stavke 1
> > 
> >   
> >   
> > 
> > Naslov stavke 2
> >   Sadrzaj stavke 2
> > 
> >   
> >   
> >  Naslov stavke 3
> >   Sadrzaj stavke 3
> > 
> >   
> >   
> >  Naslov stavke 4
> >   Sadrzaj stavke 4
> > 
> >   
> > 
> > where "naslov_stavke" is part that should be hidden or shown, and
> > "sadrzaj_stavke" is always visible. "Omot" means wrap.
> > It took me about half an hour to make this piece, but, there's a
> > flicker that our designer didn't like.
> > "Never mind if you can do it by jQuery. We will copy from apple.com".
> >
> > Yeah, sure...
> >
> > So, I spent next 6 hours yesterday and 4 today to find solution.
> > Actually, my idea was same all the time: to fixate elements by
> > position: absolute and top property. Here he the list of problems I
> > had to solve:
> > 1) How to obtain consistency of li elements and children's. I did it
> > with . In some time of development it was crucial to
> > have this div. Now, it isn't important, but it can help with styling.
> > 2) On which container element to position:relative. The best solution
> > is to put on ul element that contains inverted accordion
> > 3) How to remove position and top properties. There's no mention about
> > that in documentation
> > 4) How to obtain proper top values for elements that should not move.
> > First, I wanted to do it just for elements that must remain static.
> > This will be done after each hover. Then, I decided to recalculate
> > top's for each :
> >
> > i = 0;
> > visine = new Array();
> > $(".sadrzaj_stavke").each(function(){visine[i]=$(this).position().top;i
> > ++;});
> >
> > which gives me wrong results all the time.
> >
> > In one moment I have two perfectly working scripts, but one worked in
> > up direction, second one in down direction :)
> > Finally, I decide to put in work original idea to calculate top's, and
> > that's working perfectly (I abandoned this idea because I wanted to
> > make more flexible script)
> >
> > Minor problems will be masked with images and css.
> >
> > This solution can be generally used to solve jQuery animation quirks.
> > It can be found onhttp://www.bydot.net/hoveracc/hoveracc_2.htm
> >
> > PS How to start new threads directly from gmail?
>
>


[jQuery] Re: Best (lightest) Accordian Menu PlugIn

2007-08-01 Thread Justin Sepulveda

Haha ... I had this up to show a small bug in the jQuery Fx; I didn't
think people would use it.  I'm glad you found it useful!  I'm in the
middle of setting up a new website with actual documentation and
updated plugins.  The new version will detect the height of each tab
as well as the height of the entire block so you don't have to worry
about setting it in the CSS.  Other than that, i'm keeping it as small/
simple as possible.

On Aug 1, 3:29 pm, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
> I discovered this one the other day and have used it for a project and
> it worked very nicely. Very small js file, snappy, has seemed solid so
> far (about a week of using it):
>
> http://www.robustness.org/dev/jquery/slider/slider-jquery.html
>
> I've looked and tried a number of others, but all seemed a bit ragged or
> had something about them that I didn't like or didn't fit my need, which
> was for a very lightweight control with a reasonable amount of
> configurability.
>
> - Jack
>
> Mitchell Waite wrote:
> > Is anyone aware of a good accordian plugin.
>
> > I have been using the one from Adobe (SPRY) and while its very flexible, it
> > takes a lot of JS and its slow when there are a lot of menu items.
>
> > What happens to mine is when you first load the page the accordian appears
> > completely expanded. See
>
> >http://www.whatbird.com/wwwroot/TAB_SEARCH.html
>
> > I'd appreciate any insights.
>
> > Thanks
>
> > Mitch



[jQuery] Why does this code always delete the last element in the list

2007-08-01 Thread jayturley

no matter which delete button is clicked?

Please ignore the verbose code; it's a result of trying to figure out
what is going on.

Once this list is loaded, whenever I click on any deleteButton, it
sends a post request with the item id of the last item in the list.
Then the last item is deleted from the database and from the DOM.

The first console.log shows the proper item id, when the click handler
is added. But the second console.log shows the last item id added to
the DOM.

I'm guessing it has something to do with the whole thing about
anonymous functions:

$(document).ready(function() {
$('#example').click(myfunction(variable));
});

versus

$(document).ready(function() {
$('#example').click(function() {
myfunction(variable);
});
});

but I just don't see it.

-- problem code begin --

$.getJSON("ajax_test.asp", { mode: 'get' } , function(j){
for (var i = 0; i < j.items.length; i++) {
var itemID = j.items[i].item_id;
var itemVal = j.items[i].item;
var currentItem = '';
currentItem += '' +
itemVal;
currentItem += ' '
currentItem += '';
$('#content p').append(currentItem);
console.log('Adding click handler for: #deleteItemBtn_' +
itemID);
var currentDiv = '#deleteItemDiv_' + itemID;
var currentBtn = '#deleteItemBtn_' + itemID;
$(currentBtn).click(function() {
$.ajax({
beforeSend: function(x) {
console.log('Attempting to delete using button: '
+ currentBtn);
},
type: 'POST',
url: 'ajax_test.asp?' + new Date().getTime(), //
prevent caching in IE
data: {item_id : itemID, mode: 'delete' },
success: function(msg) {
$(currentDiv).remove();
},
});

return false;
});
}
});

Thanks much!

-jay



[jQuery] Re: How to get font size in pixels?

2007-08-01 Thread Luke Lutman

Klaus Hartl wrote:
  > Couldn't you add an element as direct child to the body, for which you
> define:
> 
> position: absolut;
> visibility: hidden;
> height: 1em;
> font-size: 100% !important;
> 
> Then you can just poll the height of that element, e.g. the offsetHeight 
> and get the current pixel value. That would even work if the default 
> size has been changed.
> 
> And it would not only work for the body element, it should work 
> whereever you append that element. The jqem plugin works in a similiar 
> way and I think I have seen something like that somewhere else already, 
> maybe in YUI.

I've run into this before, and came up with pretty much the same 
solution as Klaus:

http://jquery.lukelutman.com/plugins/px/jquery.px.js

which you can call like so:

$('#example').px('font-size');

One known bug is that it won't work for elements that don't accept 
content, like  or .

Cheers,
Luke



[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Olaf Bosch


Klaus Hartl schrieb:

Rey Bango wrote:


Sorry about your back Klaus! :(

If you need help in testing please let me know. Since you may be in
 the code, any chance I can convince you to add some of the 
animation features found in Lightbox 2 
(http://www.huddletogether.com/projects/lightbox2/)? :D


Rey


Thank you Rey!


Ich antworte einfach mal auf deutsch, ist mir einfach zu mühsam das
englisch, und dann versteht mich wohl eh niemand ;) sorry for that.

Ich hab auch ein modifiziertes Lightbox auf einer Seite im Einsatz. Ich
finde es einen schönen Effekt, dass diese Box sich anpasst auf das
nächste anzuzeigende Bild. Also diese Animation wo sich die Box
auseinanderzieht bzw. zusammenschiebt.
IMHO geht das auch einfach einzubauen, du brauchst doch nur das
modal.hide(); weg zu lassen und das dann weiter fürs nächste Bild zu
nutzen, Breite und Höhe des nächsten Bildes ist doch schon bekannt (wenn
mich nicht alles täuscht) dann darauf animieren.
Ich hab das jetzt auch ne Weile versucht hinzubekommen, aber wie's so
ist, es reicht einfach nicht :(

Ich würd zu gerne endlich auf dieser Seite auf JQuery umsteigen, aber
ich will einfach noch warten bis Thickbox reloaded ein bissel stylischer
wird. Auf dem richtigem Weg bist du ja schon :)
Das es jetzt erst mal schon die Bilder an den Screen anpasst ist große
Klasse, du hast ja wohl auch vorgesehen dies beim resizen zu
implementieren, toll!!! Das hat nicht mal huddle :)

But: I had the need for customizing TR in mind from the beginning, 
thus you will be able to do the following:


$('a').thickbox(function() { animate: { animation: { height: 'show' 
}, speed: 1000 } });



If you like, you can test if that works!?


Das hab ich probiert, es ist nicht möglich dies zum laufen zu bekommen.
Es ändert sich einfach nichts. Geendet hat es damit, aber auch ohne Effekt:
// Overide some default values
$.thickbox.defaults({
i18n: { confirm: { what: 'Please confirm', confirm:
'Okay', cancel: 'Back' } },
animate: {animation: { slideDown: 'slow' }, speed:
2000 }
});

Compliments for you and the best Community of the world, leider nicht so
auf deutsch, aber kann ja noch kommen...

--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---


[jQuery] Re: Determine DOM element based on mouse position

2007-08-01 Thread DaveG



oliver wrote:

I think you will need to wrap the paragraphs in some
tag,  or  or something else.  
This approach seems the most doable -- I'd have to wrap the elements 
with jQ. Essentially I'd want to wrap all DOM elements between headers 
in a div tag.


Anyone have suggestions of other more efficient ways to accomplish this?

 ~ ~ Dave


[jQuery] Re: datePicker: How to allow choosing dates in the past?

2007-08-01 Thread Kelvin Luck


Hi,

Very short answer because I'm in a rush... But have you looked at the 
startDate parameter to datePicker? It's covered in the documentation [1] 
although I there isn't a simple example up yet (I'll add it when I have 
a minute or two free). Actually, stop press!! There is an error in the 
documentation of startDate, it expects a String, not a Date. The string 
should be formatted according to your current date format.


If you need to dynamically change the start date try the dpSetStartDate 
method - you can see this in action on the "start and end date pickers" 
example [2].


Hope that helps,

Kelvin :)

[1] 
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/documentation.html
[2] 
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html


Marshall Salinger wrote:

Hello,

I am looking into using the super awesome datePicker v2 
 plug-in by 
Kelvin Luck, for an app that needs to be able to select a range from the 
past to the present. I am not clear on what the easiest way to do this 
is. Any advice is much appreciated.


Thanks,
Marshall


[jQuery] Re: jQuery & Tables

2007-08-01 Thread Allan Mullan

yeah unfortunately that won't work - the input fields need
to be different widths to fit into the table cells... ah
well, might just have to add them manually - bugger :-S

Allan


- Original Message Follows -
> 
> Hey Allan,
> 
> That's strange because it should compute the width and
> return it.
> 
> I'd just make it a fixed width, like 60 pixels or so.
> 
> Pat
> 
> On Aug 1, 2:31 pm, Allan Mullan <[EMAIL PROTECTED]>
> > wrote: Hmmm actually I think this may be something to do
> > with the width not being defined on the table cells - I
> > set it on the first row but then the rest I have left
> the table cells to inherit. >
> > Allan Mullan wrote:
> >
> > > Hey Pat,
> >
> > > Thanks for that, unfortunately howeveer I get a
> > > "e.style.has no properties"... I tried changing it to:
> >
> > >$("td.fillme").each(function() {
> > >$(this).html(' > > class="fillmeInput" value="'+$(this).text()+'"
> > >style="width:'+$(this).width()+'px;">'); });
> >
> > > which works but with completely unexpected results
> > > (http://skorpion.geek.nz/cost_process/test.html)
> >
> > > Seems I underestimated it being such a pain...
> >
> > > Allan
> >
> > > patcoll wrote:
> > >> It'd probably be something like this:
> >
> > >> $("td.fillme").html(' > class="fillmeInput" value="'+$ >> (this).text()+'"
> style="width:'+$(this).width()+'px;">'); >
> > >> This isn't tested but this is the first thing that
> > came to mind. Just >> remember to style the input with
> > class "fillmeInput" with the font >> size, height of the
> text input, a green background, etc. >
> > >> Even better, but this into a function. Then make a
> > function that >> switches it back to just text in the
> > field, saving the changes you >> made. Then have a
> button that toggles the "edit mode" of the table. >
> > >> Maybe that's where you're going with this :-0
> >
> > >> Pat
> >
> > >> On Aug 1, 6:59 am, Allan Mullan
> <[EMAIL PROTECTED]> wrote: >
> > >>> Evening all,
> >
> > >>> I'm trying to get a spreadsheet-like table going
> > >>> (http://skorpion.geek.nz/cost_process) and want to
> > have the green cells >>> populatated with input fields
> > (from there I'm going to work out the >>> math
> > >>> in the red cells).
> >
> > >>> Rather than manually add all the input fields I
> > figured I'd use jQuery >>> to do it, which worked -
> > except I can't seem to get the width part >>> right
> > >>> (I need the width of the input field to be the width
> of the cell). >
> > >>> Anyone got any suggestions? It's late and my mind's
> > gone blank for the >>> moment :-(
> >
> > >>> Thanks in advance,
> > >>> Allan


[jQuery] Re: Best (lightest) Accordian Menu PlugIn

2007-08-01 Thread Jack Killpatrick


I discovered this one the other day and have used it for a project and 
it worked very nicely. Very small js file, snappy, has seemed solid so 
far (about a week of using it):


http://www.robustness.org/dev/jquery/slider/slider-jquery.html

I've looked and tried a number of others, but all seemed a bit ragged or 
had something about them that I didn't like or didn't fit my need, which 
was for a very lightweight control with a reasonable amount of 
configurability.


- Jack

Mitchell Waite wrote:
Is anyone aware of a good accordian plugin. 


I have been using the one from Adobe (SPRY) and while its very flexible, it
takes a lot of JS and its slow when there are a lot of menu items. 


What happens to mine is when you first load the page the accordian appears
completely expanded. See

http://www.whatbird.com/wwwroot/TAB_SEARCH.html

I'd appreciate any insights.

Thanks

Mitch


  





[jQuery] Re: Form plugin returned XMLHttpRequest

2007-08-01 Thread Mike Alsup

That's true.  Form uploads don't actually use the XHR.  A mock one is
created by the form plugin so that all appropriate events can be
simulated, but the "Content-Type" header won't be available.  The
"dataType" settings option drives how the response is handled, so you
might as well use that too, but ultimately you'll need to know what
data type to expect.

Mike

> But it seems not to work when a file is uploaded. Any ideas how to get
> header in that case?
>
> On Jul 25, 12:47 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > You can defined a "complete" handler.  This handler is passed the XHR
> > and status.  For example:
> >
> > > is there a way how to access XMLHttpRequest (it's headers) returned
> > > after submiting ajaxForm?
> >


[jQuery] Re: Two words for Jquery

2007-08-01 Thread Glen Lipka
On the page about crescent fresh it said:

 adj; Of great kick-assity.
So awesome that there isn't enough letters in the word "Awesome" to explain
the "Awesome-ness" of said situation.
I have to start using the term "Of great kick-assity"

Glen

On 8/1/07, polyrhythmic <[EMAIL PROTECTED]> wrote:
>
>
> crescent fresh
> (http://www.urbandictionary.com/define.php?term=crescent+fresh)
>
> On Aug 1, 10:50 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> > super fly.
> >
> > On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote:
> >
> > > > BJ AJ
> >
> > > > (Before JQuery) (After JQuery)
> >
> > > Meet BJ :-(
> >
> > > Meet AJ :-)
> >
> > > - Richard
>
>


[jQuery] Re: Best practices for dynamic form creation?

2007-08-01 Thread jayturley

Holy Pimentoes!

I get it! You just opened up the next level for jQuery for me.
Thanks!!!

-jay

On Aug 1, 2:07 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote:
> On 8/1/07, jayturley <[EMAIL PROTECTED]> wrote:
>
> > currentItem = '  > style="display:inline;">';
> > $('#content p').append(currentItem);
>
> $('')
> .css("display","inline").append(
>   $('')
>   .attr("id",j.items[0].item_id)
> ).click(...).appendTo("#content p")
>
> That's just one of many ways of doing it.
>
> ~Sean



[jQuery] Re: Form plugin returned XMLHttpRequest

2007-08-01 Thread x0nix

Thanks, thats what I was looking for.

But it seems not to work when a file is uploaded. Any ideas how to get
header in that case?

On Jul 25, 12:47 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> You can defined a "complete" handler.  This handler is passed the XHR
> and status.  For example:
>
> $('form').ajaxForm({
>complete: function(xhr, status) {
>  var ct = xhr.getResponseHeader("Content-Type"));
>  alert("content type is: " + ct);
> }
>
> });
>
> Note that this is possible because theformplugin uses the $.ajax
> method under the hood.  Any options that $.ajax supports can be used
> with theformplugin as well.
>
> Mike
>
> On 7/24/07, x0nix <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > is there a way how to access XMLHttpRequest (it's headers) returned
> > after submiting ajaxForm?
>
> > Thanks



[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread skyeflye

Hi Luke,

As you might already know, you can insert Flash, Quicktime, etc. into
a Thickbox today just by using other good plugins such as jMedia. You
would just point Thickbox to a page that used jMedia (or similar)
plugin to show the media.  A PDF file is probably even easier since
you just point an  src  directly to the PDF file and let the
browser do the work.

The challenge (as I recall) is that Thickbox's inbuilt Next/Previous
functionality is currently only employed when it is pointed directly
at image files. So, you can obviously put whatever you want inside a
Thickbox, but the Next/Previous links currently only display for image
files. But there is hope!

A while back, I hacked an old version of the Thickbox script to show a
more complex (formatted) caption in the Thickbox for each photo. The
below site has no Thickbox animation, and there is no jMedia code
inside any Thickbox panel, but there is a simple AJAX call added to my
modified Thickbox plugin that slurps a formatted photo caption into a
scrolling  below each photo when it loads.

http://www.archives.gov/exhibits/twww/

At the above link, jMedia is used on the "Introduction" pane of the
Accordion to present a Flash video. But you have to go to the other
Accordion panels and click on the photo thumbnails to launch the
Thickbox(es).

As an additional example, this site also allows the end user to get a
clean printout of each image and its caption directly from the
Thickbox in a (hopefully) intuitive way. It does this by creating a
"Print Image" button above each photo. A hidden  is created
when the user clicks the "Print Image" button. This hidden  is
directed to load a page containing only the image and its caption, and
a call to print() prompts the user to print as normal. This approach
was (much) easier (for me) than trying to manipulate the existing
elements on the page with CSS to create a sane printout via "File >
Print". (Using "File > Print" with a Thickbox showing is not usually
intuitive for the average user because the browser will (correctly)
print the entire page...everything behind the Thickbox too!).

Anyway, that printing functionality is just another example of putting
"something extra" inside a Thickbox that points to image files and
therefore retains its automatic "Next/Previous" linkage (no animations
though).

I'm really looking forward to Thickbox Reloaded as well!  Thanks a lot
for the SVN links!

Cheers!
-THEO-

P.S. I hope your back feels better soon Klaus. All hail Lord
Ibuprofen! :)







On Aug 1, 1:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Oooh, must try this!
>
> As feature requests go, how about supporting other "file formats" such
> as PDF/WMV/MOV?  I'd surely love to be able to get a PDF to open in a
> thickbox.  These could even be optional modules that can be added if
> the user wants (since not all people will want this).
>
> I love the animation ideas and keeping it like Tabs is a great idea
> IMO.
>
> Now to figure out how to use SVN...
>
> Luke
>
> On Aug 1, 5:26 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > Rey Bango wrote:
>
> > > Hey man! Send me the link to the TR code and I'll drop it into a site
> > > I'm building right now! :D
>
> > > If it can do the animation via your examples, I would ooo happy. :D
>
> > > Rey...
>
> > The latest code is in SVN...
>
> > --Klaus



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread njsuperfreak

Wow that's a fabulious plugin I was using JSEclipse good find!!

On Aug 1, 2:13 pm, "Priest, James (NIH/NIEHS) [C]"
<[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Matt Penner [mailto:[EMAIL PROTECTED]
> > What recommendations on JavaScript editors or IDEs does anyone have?
> > Is there something sophisticated enough that can have intellisense
> > with jQuery or my own objects in external js files?
>
> I use Eclipse/CFEclipse to develop my ColdFusion and have lately been
> playing around with Aptana - works great for my CSS and I noticed it has
> jQuery support I think:
>
> http://www.aptana.com/
>
> Jim



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Duncan

+1 for Aptana, I use it as a plugin for Eclipse.

On 8/2/07, Mark D. Lincoln <[EMAIL PROTECTED]> wrote:
>
> Matt,
>
> I just discovered Spket IDE (http://www.spket.com/).  It was recommended by
> someone on the Ext (http://extjs.com/) forums and so far, I would say it is
> great!  You can install it as a standalone application or as an Eclipse
> plug-in.  Needless to say, you need Java installed (version 1.4.2 or
> higher).  Spket currently supports Ext, jQuery, and YUI with features like
> code completion.  I tried Aptana a while ago and its support for jQuery was
> lacking at the time.  This may have changed, but since I found Spket, I am
> going to stick with it for a while.
>
> Mark D. Lincoln
>
> Mark D. Lincoln, Vice President of Product Development
> Eye On Solutions, LLC
> (866) 253-9366x101
> www.eyeonsolutions.com
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Matt Penner
> Sent: Wednesday, August 01, 2007 2:01 PM
> To: jQuery (English)
> Subject: [jQuery] Good Javascript editor or IDE?
>
>
> I've just started developing with jQuery in the last month.  I usually
> use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> much nil as far as intellisense goes.  Mainly all they do is syntax
> highlighting and formatting.
>
> What recommendations on JavaScript editors or IDEs does anyone have?
> Is there something sophisticated enough that can have intellisense
> with jQuery or my own objects in external js files?
>
> Thanks,
> Matt
>
>


-- 
Duncan I Loxton
[EMAIL PROTECTED]


[jQuery] Re: Two words for Jquery

2007-08-01 Thread polyrhythmic

crescent fresh
(http://www.urbandictionary.com/define.php?term=crescent+fresh)

On Aug 1, 10:50 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> super fly.
>
> On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> > > BJ AJ
>
> > > (Before JQuery) (After JQuery)
>
> > Meet BJ :-(
>
> > Meet AJ :-)
>
> > - Richard



[jQuery] Re: Hover accordion (as on apple.com)

2007-08-01 Thread Justin Sepulveda

Finally.  Someone else feels my pain.  I had just posted a message to
this group today about this as well.  I just wish there was an easier
way to remove that flicker/bounce that happens with the jQuery
standard slideUp/slideDown.  Having to call in that many scripts to
get this effect seems pretty un-jQuery.  But nice work!

On Aug 1, 11:18 am, [EMAIL PROTECTED] wrote:
> My company redesigns a web site. Our head designer (as apple fan)
> decided to put nasty inverted hover accordion on new site. So,
> yesterday I started to develop a 
> prototype:http://www.bydot.net/hoveracc/hoveracc_1.htm
>
> Structure is:
> 
>   
> 
> Naslov stavke 1
>   Sadrzaj stavke 1
> 
>   
>   
> 
> Naslov stavke 2
>   Sadrzaj stavke 2
> 
>   
>   
>  Naslov stavke 3
>   Sadrzaj stavke 3
> 
>   
>   
>  Naslov stavke 4
>   Sadrzaj stavke 4
> 
>   
> 
> where "naslov_stavke" is part that should be hidden or shown, and
> "sadrzaj_stavke" is always visible. "Omot" means wrap.
> It took me about half an hour to make this piece, but, there's a
> flicker that our designer didn't like.
> "Never mind if you can do it by jQuery. We will copy from apple.com".
>
> Yeah, sure...
>
> So, I spent next 6 hours yesterday and 4 today to find solution.
> Actually, my idea was same all the time: to fixate elements by
> position: absolute and top property. Here he the list of problems I
> had to solve:
> 1) How to obtain consistency of li elements and children's. I did it
> with . In some time of development it was crucial to
> have this div. Now, it isn't important, but it can help with styling.
> 2) On which container element to position:relative. The best solution
> is to put on ul element that contains inverted accordion
> 3) How to remove position and top properties. There's no mention about
> that in documentation
> 4) How to obtain proper top values for elements that should not move.
> First, I wanted to do it just for elements that must remain static.
> This will be done after each hover. Then, I decided to recalculate
> top's for each :
>
> i = 0;
> visine = new Array();
> $(".sadrzaj_stavke").each(function(){visine[i]=$(this).position().top;i
> ++;});
>
> which gives me wrong results all the time.
>
> In one moment I have two perfectly working scripts, but one worked in
> up direction, second one in down direction :)
> Finally, I decide to put in work original idea to calculate top's, and
> that's working perfectly (I abandoned this idea because I wanted to
> make more flexible script)
>
> Minor problems will be masked with images and css.
>
> This solution can be generally used to solve jQuery animation quirks.
> It can be found onhttp://www.bydot.net/hoveracc/hoveracc_2.htm
>
> PS How to start new threads directly from gmail?



[jQuery] Re: Two words for Jquery

2007-08-01 Thread Richard D Shank
Glen Lipka wrote:
> Whip it
How fitting :)
>
> On 8/1/07, *Joel Birch* <[EMAIL PROTECTED] 
> > wrote:
>
>
> Insane Fans.
>
> ;)
>
>
> On 01/08/2007, at 11:38 PM, seedy wrote:
>
> >
> >
> > Top Shelf !
> >
> >
> > Alexandre Plennevaux wrote:
> >>
> >>
> >> Juicy & fresh ?
> >>
> >>
> >> -Original Message-
> >> From: jquery-en@googlegroups.com
>  [mailto:jquery- 
> >> [EMAIL PROTECTED] ] On
> >> Behalf Of spinnach
> >> Sent: mercredi 1 août 2007 13:43
> >> To: jquery-en@googlegroups.com 
> >> Subject: [jQuery] Re: Two words for Jquery
> >>
> >>
> >> Jolly good ?
> >>
> >> Tane Piper wrote:
> >>> Bloody Brilliant!
> >>>
> >>> (I wonder how many other 2 word ways there are to describe
> jQuery)
> >>>
> >>> On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]
> > wrote:
>  Here here.
> 
>  - Richard
> 
> 
>  On 8/1/07, kiwwwi <[EMAIL PROTECTED]
> > wrote:
> > jQuery Rocks!!
> >
> > oh... possibly will add two more words;
> >
> > Thank you :)
> >
> > I'm not the best scripter and jquery has simply allowed me to
> > accomplish with my own personal site so much more than I
> would
> > have otherwise attempted.  You people behind jquery are genious
> > and
> > your work is great, thanks.
> >
> > Kiwwwi.
> >
> >
> 
> >>>
> >>>
> >>
> >> Ce message Envoi est certifié sans virus connu.
> >> Analyse effectuée par AVG.
> >> Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date:
> >> 31/07/2007
> >> 17:26
> >>
> >>
> >>
> >>
> >
> > --
> > View this message in context: http://www.nabble.com/Two-words-for-
> > Jquery-tf4199346s15494.html#a11945776
> > Sent from the JQuery mailing list archive at Nabble.com
> .
> >
> >
>
>



[jQuery] Back Button Control and History Plugin

2007-08-01 Thread cfdvlpr

I'm struggling to implement back button control.  I've got several
buttons, variables, divs, and a large json array holding product data
that I need store in the history every time a button is clicked.  The
demo for the history plugin is very simple and it doesn't show how to
do anything as complicated as what I need to do.  Has anyone else
already gone through this and can show me a more complicated working
example from which I can learn?  I'd appreciate that very much.  By
the way, I just got the "Learning Jquery" book today in the mail from
Amazon and if there's anything in the book that you can point me too
that is related to this, please point me to the right page(s).



[jQuery] Re: 3D carousel?

2007-08-01 Thread Giuliano Marcangelo
Franck,

This is excellent...very polished

:-)

On 01/08/07, Franck Marcia <[EMAIL PROTECTED]> wrote:
>
>
> I "up" this thread just to announce the brand new carousel of
> www.alapage.com,
> based on the work of Stefan Petre (http://interface.eyecon.ro).
>
> Many thanks to Stefan, many thanks to John.
>
> Franck.
>
> On 9 juil, 14:49, Michael Price <[EMAIL PROTECTED]> wrote:
> > Fred Janon wrote:
> > > Has anyone done or know how to do a carousel like the 3D circular
> > > carousel in Flash inAmazon? It looks pretty cool. Forgive me if the
> > > link doesn't work for you but the carousel shows the best-seller books
> > > in a 3D circular carousel.
> >
> > >http://www.amazon.com/ref=topnav_gw_/105-7722567-3277224
> > > 
> >
> > Hi Fred,
> > There's one in the Interface effects library as well:
> http://interface.eyecon.ro/demos
> >
> > You can see it demonstrated from the above link, near the bottom of the
> > Technical Demos list.
> >
> > Regards,
> > Michael Price
>
>


[jQuery] Re: 3D carousel?

2007-08-01 Thread Franck Marcia

I "up" this thread just to announce the brand new carousel of www.alapage.com,
based on the work of Stefan Petre (http://interface.eyecon.ro).

Many thanks to Stefan, many thanks to John.

Franck.

On 9 juil, 14:49, Michael Price <[EMAIL PROTECTED]> wrote:
> Fred Janon wrote:
> > Has anyone done or know how to do a carousel like the 3D circular
> > carousel in Flash inAmazon? It looks pretty cool. Forgive me if the
> > link doesn't work for you but the carousel shows the best-seller books
> > in a 3D circular carousel.
>
> >http://www.amazon.com/ref=topnav_gw_/105-7722567-3277224
> > 
>
> Hi Fred,
> There's one in the Interface effects library as 
> well:http://interface.eyecon.ro/demos
>
> You can see it demonstrated from the above link, near the bottom of the
> Technical Demos list.
>
> Regards,
> Michael Price



[jQuery] Re: What does === equate to?

2007-08-01 Thread Michael Geary
Wow, that *is* funny. I must confess that I didn't actually look at the
search results!



  _  

From: Ganeshji Marwaha

funny, both w3schools and javascriotkit (top 2 results for the query
javascript+operators) doesnt seem to have an explanation for !==. ;-)


On 8/1/07, Michael Geary <[EMAIL PROTECTED]> wrote: 


http://www.google.com/search?q=javascript+operators

This will help when you run into !== and wonder what the heck *that* one is.
:-)



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Ganeshji Marwaha
i use IDEA for my server-side development... It is too good for java. I
noticed that it actually had pretty neat support for js and css as well. i
dont know how it compares to other IDEs made specifically for client side
development. But, when i last tried aptana, i didnt get much to leave my
cozy IDEA.

-GTG

On 8/1/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> I use WeBuilder 2007.  Jack Slocum had suggested checking out Idea
> IntelliJ last week at the conference.
>
> Glen
>
> On 8/1/07, Mark D. Lincoln < [EMAIL PROTECTED]> wrote:
> >
> >
> > Matt,
> >
> > I just discovered Spket IDE ( http://www.spket.com/).  It was
> > recommended by
> > someone on the Ext (http://extjs.com/) forums and so far, I would say it
> > is
> > great!  You can install it as a standalone application or as an Eclipse
> > plug-in.  Needless to say, you need Java installed (version 1.4.2 or
> > higher).  Spket currently supports Ext, jQuery, and YUI with features
> > like
> > code completion.  I tried Aptana a while ago and its support for jQuery
> > was
> > lacking at the time.  This may have changed, but since I found Spket, I
> > am
> > going to stick with it for a while.
> >
> > Mark D. Lincoln
> >
> > Mark D. Lincoln, Vice President of Product Development
> > Eye On Solutions, LLC
> > (866) 253-9366x101
> > www.eyeonsolutions.com
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto: [EMAIL PROTECTED] On
> > Behalf Of Matt Penner
> > Sent: Wednesday, August 01, 2007 2:01 PM
> > To: jQuery (English)
> > Subject: [jQuery] Good Javascript editor or IDE?
> >
> >
> > I've just started developing with jQuery in the last month.  I usually
> > use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> > much nil as far as intellisense goes.  Mainly all they do is syntax
> > highlighting and formatting.
> >
> > What recommendations on JavaScript editors or IDEs does anyone have?
> > Is there something sophisticated enough that can have intellisense
> > with jQuery or my own objects in external js files?
> >
> > Thanks,
> > Matt
> >
> >
>


[jQuery] Re: Best practices for dynamic form creation?

2007-08-01 Thread Sean Catchpole
On 8/1/07, jayturley <[EMAIL PROTECTED]> wrote:
> currentItem = '  style="display:inline;">';
> $('#content p').append(currentItem);

$('')
.css("display","inline").append(
  $('')
  .attr("id",j.items[0].item_id)
).click(...).appendTo("#content p")

That's just one of many ways of doing it.

~Sean


[jQuery] Re: What does === equate to?

2007-08-01 Thread Ganeshji Marwaha
funny, both w3schools and javascriotkit (top 2 results for the query
javascript+operators) doesnt seem to have an explanation for !==. ;-)

-GTG

On 8/1/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
> > I...cannot figure how what the heck === is.
>
> I see that Jake answered your question, but just for next time...
>
> You may have tried a Google search for "javascript ===" and been
> disappointed to find it returned no useful results (because Google seems
> to
> ignore the === in the search).
>
> The key thing to know is that ===, like most special symbols in JavaScript
> such as + and -, is an operator. Now you can do a more productive Google
> search:
>
> http://www.google.com/search?q=javascript+operators
>
> This will help when you run into !== and wonder what the heck *that* one
> is.
> :-)
>
> -Mike
>
>


[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Glen Lipka
I use WeBuilder 2007.  Jack Slocum had suggested checking out Idea IntelliJ
last week at the conference.

Glen

On 8/1/07, Mark D. Lincoln <[EMAIL PROTECTED]> wrote:
>
>
> Matt,
>
> I just discovered Spket IDE (http://www.spket.com/).  It was recommended
> by
> someone on the Ext (http://extjs.com/) forums and so far, I would say it
> is
> great!  You can install it as a standalone application or as an Eclipse
> plug-in.  Needless to say, you need Java installed (version 1.4.2 or
> higher).  Spket currently supports Ext, jQuery, and YUI with features like
> code completion.  I tried Aptana a while ago and its support for jQuery
> was
> lacking at the time.  This may have changed, but since I found Spket, I am
> going to stick with it for a while.
>
> Mark D. Lincoln
>
> Mark D. Lincoln, Vice President of Product Development
> Eye On Solutions, LLC
> (866) 253-9366x101
> www.eyeonsolutions.com
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Matt Penner
> Sent: Wednesday, August 01, 2007 2:01 PM
> To: jQuery (English)
> Subject: [jQuery] Good Javascript editor or IDE?
>
>
> I've just started developing with jQuery in the last month.  I usually
> use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> much nil as far as intellisense goes.  Mainly all they do is syntax
> highlighting and formatting.
>
> What recommendations on JavaScript editors or IDEs does anyone have?
> Is there something sophisticated enough that can have intellisense
> with jQuery or my own objects in external js files?
>
> Thanks,
> Matt
>
>


[jQuery] [NEWS] jQuery Books on Dzone

2007-08-01 Thread Rey Bango


Ajax Magazine has a nice writeup on the two latest jQuery books by 
Jonathan Chaffer and Karl Swedberg. Be sure to check it out.


http://ajax.phpmagazine.net/2007/08/two_new_jquery_books_released.html



[jQuery] Re: What does === equate to?

2007-08-01 Thread Michael Geary

> I...cannot figure how what the heck === is.

I see that Jake answered your question, but just for next time...

You may have tried a Google search for "javascript ===" and been
disappointed to find it returned no useful results (because Google seems to
ignore the === in the search).

The key thing to know is that ===, like most special symbols in JavaScript
such as + and -, is an operator. Now you can do a more productive Google
search:

http://www.google.com/search?q=javascript+operators

This will help when you run into !== and wonder what the heck *that* one is.
:-)

-Mike



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Mark D. Lincoln

Matt,

I just discovered Spket IDE (http://www.spket.com/).  It was recommended by
someone on the Ext (http://extjs.com/) forums and so far, I would say it is
great!  You can install it as a standalone application or as an Eclipse
plug-in.  Needless to say, you need Java installed (version 1.4.2 or
higher).  Spket currently supports Ext, jQuery, and YUI with features like
code completion.  I tried Aptana a while ago and its support for jQuery was
lacking at the time.  This may have changed, but since I found Spket, I am
going to stick with it for a while.  

Mark D. Lincoln
 
Mark D. Lincoln, Vice President of Product Development
Eye On Solutions, LLC
(866) 253-9366x101
www.eyeonsolutions.com
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Penner
Sent: Wednesday, August 01, 2007 2:01 PM
To: jQuery (English)
Subject: [jQuery] Good Javascript editor or IDE?


I've just started developing with jQuery in the last month.  I usually
use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
much nil as far as intellisense goes.  Mainly all they do is syntax
highlighting and formatting.

What recommendations on JavaScript editors or IDEs does anyone have?
Is there something sophisticated enough that can have intellisense
with jQuery or my own objects in external js files?

Thanks,
Matt



[jQuery] Re: bookmarklet iframe question

2007-08-01 Thread Geoffrey Knutzen
Yeah, I am using that to manipulate the Iframe. It works like magic. The
page is now on a server where I can't modify it and it is having some
problems.

I am interested in how to create a query to specific elements inside an
iframe. The assumption is that the iframe is already loaded

 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Karl Swedberg
Sent: Wednesday, August 01, 2007 12:37 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: bookmarklet iframe question

 

Hi Geoffrey, 

 

I don't know much about iFrames, but Daemach put together a frameReady
plugin that should point you in the right direction:

 

http://ideamill.synaptrixgroup.com/?p=6





 

--Karl

_

Karl Swedberg

www.englishrules.com

www.learningjquery.com

 





 

On Aug 1, 2007, at 3:26 PM, Geoffrey Knutzen wrote:





I am writing a bookmarklet for my own debugging needs.

I am trying to get the innerHTML (or other properties) for all elements with
a specific classname that are in an Iframe with a specific id.

What is the syntax to do a query like this?

Thanks

-Geoffrey





 



[jQuery] Re: bookmarklet iframe question

2007-08-01 Thread Karl Swedberg

Hi Geoffrey,

I don't know much about iFrames, but Daemach put together a  
frameReady plugin that should point you in the right direction:


http://ideamill.synaptrixgroup.com/?p=6


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



On Aug 1, 2007, at 3:26 PM, Geoffrey Knutzen wrote:


I am writing a bookmarklet for my own debugging needs.



I am trying to get the innerHTML (or other properties) for all  
elements with a specific classname that are in an Iframe with a  
specific id.




What is the syntax to do a query like this?



Thanks

-Geoffrey






[jQuery] bookmarklet iframe question

2007-08-01 Thread Geoffrey Knutzen
I am writing a bookmarklet for my own debugging needs. 

 

I am trying to get the innerHTML (or other properties) for all elements with
a specific classname that are in an Iframe with a specific id.

 

What is the syntax to do a query like this?

 

Thanks

-Geoffrey



[jQuery] Re: jQuery & Tables

2007-08-01 Thread patcoll

Hey Allan,

That's strange because it should compute the width and return it.

I'd just make it a fixed width, like 60 pixels or so.

Pat

On Aug 1, 2:31 pm, Allan Mullan <[EMAIL PROTECTED]> wrote:
> Hmmm actually I think this may be something to do with the width not
> being defined on the table cells - I set it on the first row but then
> the rest I have left the table cells to inherit.
>
> Allan Mullan wrote:
>
> > Hey Pat,
>
> > Thanks for that, unfortunately howeveer I get a "e.style.has no
> > properties"... I tried changing it to:
>
> >$("td.fillme").each(function() {
> >$(this).html(' > value="'+$(this).text()+'" style="width:'+$(this).width()+'px;">');
> >});
>
> > which works but with completely unexpected results
> > (http://skorpion.geek.nz/cost_process/test.html)
>
> > Seems I underestimated it being such a pain...
>
> > Allan
>
> > patcoll wrote:
> >> It'd probably be something like this:
>
> >> $("td.fillme").html('');
>
> >> This isn't tested but this is the first thing that came to mind. Just
> >> remember to style the input with class "fillmeInput" with the font
> >> size, height of the text input, a green background, etc.
>
> >> Even better, but this into a function. Then make a function that
> >> switches it back to just text in the field, saving the changes you
> >> made. Then have a button that toggles the "edit mode" of the table.
>
> >> Maybe that's where you're going with this :-0
>
> >> Pat
>
> >> On Aug 1, 6:59 am, Allan Mullan <[EMAIL PROTECTED]> wrote:
>
> >>> Evening all,
>
> >>> I'm trying to get a spreadsheet-like table going
> >>> (http://skorpion.geek.nz/cost_process) and want to have the green cells
> >>> populatated with input fields (from there I'm going to work out the
> >>> math
> >>> in the red cells).
>
> >>> Rather than manually add all the input fields I figured I'd use jQuery
> >>> to do it, which worked - except I can't seem to get the width part
> >>> right
> >>> (I need the width of the input field to be the width of the cell).
>
> >>> Anyone got any suggestions? It's late and my mind's gone blank for the
> >>> moment :-(
>
> >>> Thanks in advance,
> >>> Allan



[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Rey Bango


Hey Klaus,

There's a file missing for the plugin. The image 
/images/button_close.png is listed in the css but is not actually 
included. Can you email that to me?


Rey...

Rey Bango wrote:




Hey Klaus,

Personal preference tells me that the latter option is much more 
readable so if I had a choice, I would with:


$('a').thickbox(function() {
fxShow: { height: 'show' },
fxSpeed: 1000
});

Rey...

But: I had the need for customizing TR in mind from the beginning, 
thus you will be able to do the following:


$('a').thickbox(function() {
animate: { animation: { height: 'show' }, speed: 1000 }
});

Does that suit your need? Should I use parameters differently? Like:

$('a').thickbox(function() {
fxShow: { height: 'show' },
fxSpeed: 1000
});

That would be similiar to the tabs.


If you like, you can test if that works!?



--Klaus






[jQuery] Re: textarea maxlength plugin

2007-08-01 Thread bdee1


that did the trick - thanks!

spinnach wrote:
> 
> 
> this could be related to the issue i was having with maxlength, try 
> changing the source code to $("[EMAIL PROTECTED]") (with a capitol 
> L), and this.getAttribute('maxLength') ..
> 
> dennis.
> 
> bdee1 wrote:
>> 
>> i have not tried it with an older version of jquery yet but i tried using
>> IE7
>> and the latest version of firefox.  the demo page on your site does work
>> in
>> both browsers but when i uploaded the example page to my site it did not
>> work on textareas.
>> 
>> 
>> Burobjorn wrote:
>>>
>>> Thats strange, could you try to use it with the older included jQuery 
>>> version? Do you get an error? Which browser are you using? Does it work 
>>> in the demo?
>>>
>>> grtz
>>> BjornW
>>>
>>>
>>>
 thanks - thats exactly what i had in mind - downloaded it and tried it
 and it
 works well for text fields but for soem reason it does nto work on
 textareas.  any ideas?  i am using jquery 1.1.3.1



 Burobjorn wrote:
> Yes, I have created such a plugin. Its still in alpha, but do check it
> out:
>
> http://www.burobjorn.nl/code/textlimiter/
>
> All the best,
>
> grtz
> BjornW
>
>
> bdee1 wrote:
>> does anyone know of a jquery plugin that would allow me to set a
>> maxlength
>> attribute on a textarea?
>
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/textarea-maxlength-plugin-tf4193495s15494.html#a11952023
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: What does === equate to?

2007-08-01 Thread Jake McGraw
The "triple equals" is a comparison without type conversion. The following
should fix your code so that fn.apply() never runs with fn is null:
if (fn&&fn.apply(...)) break;

The first part checks if fn is non-null, if it is null or false or 0 or Nan
the second part fn.apply will never run and you won't have that error.

- jake

On 8/1/07, Buzzterrier <[EMAIL PROTECTED]> wrote:
>
>
> I am getting a exception when jquery is processing a successful ajax
> call on line 339 of the most recent release:
>
> if ( fn.apply( obj[i], args || [i, obj[i]] ) === false ) break;
>
> The error is that fn is void, and the onreadystatchange function,
> catches the exception and changes the status from success to an
> error.
>
> I am trying to dissect why this is happening (the responseText is
> fine) and cannot figure how what the heck === is.
>
>


[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Rey Bango




Hey Klaus,

Personal preference tells me that the latter option is much more 
readable so if I had a choice, I would with:


$('a').thickbox(function() {
fxShow: { height: 'show' },
fxSpeed: 1000
});

Rey...

But: I had the need for customizing TR in mind from the beginning, thus 
you will be able to do the following:


$('a').thickbox(function() {
animate: { animation: { height: 'show' }, speed: 1000 }
});

Does that suit your need? Should I use parameters differently? Like:

$('a').thickbox(function() {
fxShow: { height: 'show' },
fxSpeed: 1000
});

That would be similiar to the tabs.


If you like, you can test if that works!?



--Klaus




[jQuery] What does === equate to?

2007-08-01 Thread Buzzterrier

I am getting a exception when jquery is processing a successful ajax
call on line 339 of the most recent release:

if ( fn.apply( obj[i], args || [i, obj[i]] ) === false ) break;

The error is that fn is void, and the onreadystatchange function,
catches the exception and changes the status from success to an
error.

I am trying to dissect why this is happening (the responseText is
fine) and cannot figure how what the heck === is.



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Alex Ezell

+1 for Aptana, quickly becoming a great IDE.

I'm on Mac, so I do most of text-editing in TextMate, but occasionally
I need something more IDE-oriented and pop over to Aptana.

/alex

On 8/1/07, Priest, James (NIH/NIEHS) [C] <[EMAIL PROTECTED]> wrote:
>
> > -Original Message-
> > From: Matt Penner [mailto:[EMAIL PROTECTED]
>
> > What recommendations on JavaScript editors or IDEs does anyone have?
> > Is there something sophisticated enough that can have intellisense
> > with jQuery or my own objects in external js files?
>
> I use Eclipse/CFEclipse to develop my ColdFusion and have lately been
> playing around with Aptana - works great for my CSS and I noticed it has
> jQuery support I think:
>
> http://www.aptana.com/
>
> Jim
>


[jQuery] Re: Behavior plugin doesn't with with $.ajax methods (.load, etc)

2007-08-01 Thread Brandon Aaron
Hey Phillip,

Do you have an example of where it isn't working for you? The behavior will
work once the information is added to the DOM. I've updated my
example/demo/test with an example of using .load.
http://brandonaaron.net/jquery/plugins/behavior/test/test.html

--
Brandon Aaron

On 8/1/07, Phillip B Oldham <[EMAIL PROTECTED]> wrote:
>
>
> Hi all
>
> Just a quick note - the behavior plugin doesn't work with any method
> which fires the $.ajax method - $.load, $.post, $.get, etc. - when
> using the latest jQuery (1.3.1.1).
>
> Thought I'd mention it as the FAQ is a little miss-leading:  docs.jquery.com/
>
> Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.
> 3F>
>
> $('a').behavior('click',fn);
> $('#mydiv').load('my.html');
>
> The above doesn't work.
>
> I modified the test.html file that comes with the plugin to test
> the .load method by loading a second html doc with a div to see
> whether the links were attached, but had no joy.
>
> Reviewing both the plugin and jquery source it seems as though no
> triggers are bound to the .ajax method. I'm not sure whether this is
> because jquery has been refactored, or something else. I tried using
> previous versions (1.1.2, 1.1.1, 1.1) with no luck.
>
> Thought I'd let you guys know, so you can amend the FAQ. Or, if you
> *have* got it working, you might be able to tell me how and make the
> FAQ a little clearer.
>
> Thanks!
>
>


[jQuery] datePicker: How to allow choosing dates in the past?

2007-08-01 Thread Marshall Salinger





Hello,

I am looking into using the super awesome datePicker
v2 plug-in by Kelvin Luck, for an app that needs to be able to
select a range from the past to the present. I am not clear on what the
easiest way to do this is. Any advice is much appreciated.

Thanks,
Marshall




[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Karl Swedberg

On Aug 1, 2007, at 1:02 PM, [EMAIL PROTECTED] wrote:


Now to figure out how to use SVN...



You can grab it from here if you wish:

http://jqueryjs.googlecode.com/svn/trunk/plugins/thickbox_reloaded/


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





[jQuery] Re: jQuery & Tables

2007-08-01 Thread Allan Mullan


Hmmm actually I think this may be something to do with the width not 
being defined on the table cells - I set it on the first row but then 
the rest I have left the table cells to inherit.



Allan Mullan wrote:


Hey Pat,

Thanks for that, unfortunately howeveer I get a "e.style.has no 
properties"... I tried changing it to:


   $("td.fillme").each(function() {
   $(this).html('value="'+$(this).text()+'" style="width:'+$(this).width()+'px;">');

   });

which works but with completely unexpected results 
(http://skorpion.geek.nz/cost_process/test.html)


Seems I underestimated it being such a pain...

Allan


patcoll wrote:

It'd probably be something like this:

$("td.fillme").html('');

This isn't tested but this is the first thing that came to mind. Just
remember to style the input with class "fillmeInput" with the font
size, height of the text input, a green background, etc.

Even better, but this into a function. Then make a function that
switches it back to just text in the field, saving the changes you
made. Then have a button that toggles the "edit mode" of the table.

Maybe that's where you're going with this :-0

Pat

On Aug 1, 6:59 am, Allan Mullan <[EMAIL PROTECTED]> wrote:
 

Evening all,

I'm trying to get a spreadsheet-like table going
(http://skorpion.geek.nz/cost_process) and want to have the green cells
populatated with input fields (from there I'm going to work out the 
math

in the red cells).

Rather than manually add all the input fields I figured I'd use jQuery
to do it, which worked - except I can't seem to get the width part 
right

(I need the width of the input field to be the width of the cell).

Anyone got any suggestions? It's late and my mind's gone blank for the
moment :-(

Thanks in advance,
Allan



  




[jQuery] Re: jQuery & Tables

2007-08-01 Thread Allan Mullan


Hey Pat,

Thanks for that, unfortunately howeveer I get a "e.style.has no 
properties"... I tried changing it to:


   $("td.fillme").each(function() {
   $(this).html('value="'+$(this).text()+'" style="width:'+$(this).width()+'px;">');

   });

which works but with completely unexpected results 
(http://skorpion.geek.nz/cost_process/test.html)


Seems I underestimated it being such a pain...

Allan


patcoll wrote:

It'd probably be something like this:

$("td.fillme").html('');

This isn't tested but this is the first thing that came to mind. Just
remember to style the input with class "fillmeInput" with the font
size, height of the text input, a green background, etc.

Even better, but this into a function. Then make a function that
switches it back to just text in the field, saving the changes you
made. Then have a button that toggles the "edit mode" of the table.

Maybe that's where you're going with this :-0

Pat

On Aug 1, 6:59 am, Allan Mullan <[EMAIL PROTECTED]> wrote:
  

Evening all,

I'm trying to get a spreadsheet-like table going
(http://skorpion.geek.nz/cost_process) and want to have the green cells
populatated with input fields (from there I'm going to work out the math
in the red cells).

Rather than manually add all the input fields I figured I'd use jQuery
to do it, which worked - except I can't seem to get the width part right
(I need the width of the input field to be the width of the cell).

Anyone got any suggestions? It's late and my mind's gone blank for the
moment :-(

Thanks in advance,
Allan



  


[jQuery] Hover accordion (as on apple.com)

2007-08-01 Thread krdr . mft

My company redesigns a web site. Our head designer (as apple fan)
decided to put nasty inverted hover accordion on new site. So,
yesterday I started to develop a prototype:
http://www.bydot.net/hoveracc/hoveracc_1.htm

Structure is:

  

Naslov stavke 1
  Sadrzaj stavke 1

  
  

Naslov stavke 2
  Sadrzaj stavke 2

  
  
 Naslov stavke 3
  Sadrzaj stavke 3

  
  
 Naslov stavke 4
  Sadrzaj stavke 4

  

where "naslov_stavke" is part that should be hidden or shown, and
"sadrzaj_stavke" is always visible. "Omot" means wrap.
It took me about half an hour to make this piece, but, there's a
flicker that our designer didn't like.
"Never mind if you can do it by jQuery. We will copy from apple.com".

Yeah, sure...

So, I spent next 6 hours yesterday and 4 today to find solution.
Actually, my idea was same all the time: to fixate elements by
position: absolute and top property. Here he the list of problems I
had to solve:
1) How to obtain consistency of li elements and children's. I did it
with . In some time of development it was crucial to
have this div. Now, it isn't important, but it can help with styling.
2) On which container element to position:relative. The best solution
is to put on ul element that contains inverted accordion
3) How to remove position and top properties. There's no mention about
that in documentation
4) How to obtain proper top values for elements that should not move.
First, I wanted to do it just for elements that must remain static.
This will be done after each hover. Then, I decided to recalculate
top's for each :

i = 0;
visine = new Array();
$(".sadrzaj_stavke").each(function(){visine[i]=$(this).position().top;i
++;});

which gives me wrong results all the time.

In one moment I have two perfectly working scripts, but one worked in
up direction, second one in down direction :)
Finally, I decide to put in work original idea to calculate top's, and
that's working perfectly (I abandoned this idea because I wanted to
make more flexible script)

Minor problems will be masked with images and css.

This solution can be generally used to solve jQuery animation quirks.
It can be found on http://www.bydot.net/hoveracc/hoveracc_2.htm

PS How to start new threads directly from gmail?



[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Priest, James (NIH/NIEHS) [C]

> -Original Message-
> From: Matt Penner [mailto:[EMAIL PROTECTED] 

> What recommendations on JavaScript editors or IDEs does anyone have?
> Is there something sophisticated enough that can have intellisense
> with jQuery or my own objects in external js files?

I use Eclipse/CFEclipse to develop my ColdFusion and have lately been
playing around with Aptana - works great for my CSS and I noticed it has
jQuery support I think:

http://www.aptana.com/

Jim


[jQuery] Re: Good Javascript editor or IDE?

2007-08-01 Thread Aaron Heimlich
I highly recommend you check out Aptana (http://www.aptana.com)

On 8/1/07, Matt Penner <[EMAIL PROTECTED]> wrote:
>
>
> I've just started developing with jQuery in the last month.  I usually
> use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
> much nil as far as intellisense goes.  Mainly all they do is syntax
> highlighting and formatting.
>
> What recommendations on JavaScript editors or IDEs does anyone have?
> Is there something sophisticated enough that can have intellisense
> with jQuery or my own objects in external js files?
>
> Thanks,
> Matt
>
>


-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com


[jQuery] Good Javascript editor or IDE?

2007-08-01 Thread Matt Penner

I've just started developing with jQuery in the last month.  I usually
use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
much nil as far as intellisense goes.  Mainly all they do is syntax
highlighting and formatting.

What recommendations on JavaScript editors or IDEs does anyone have?
Is there something sophisticated enough that can have intellisense
with jQuery or my own objects in external js files?

Thanks,
Matt



[jQuery] Re: Two words for Jquery

2007-08-01 Thread Jonathan Sharp
super fly.

On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
>
> On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote:
> >
> > BJ AJ
> >
> >
> > (Before JQuery) (After JQuery)
>
>
> Meet BJ :-(
>
> Meet AJ :-)
>
> - Richard
>
>
>


[jQuery] prototype.js and jquery.js conflict problems? (Lightbox and Thickbox) simple?

2007-08-01 Thread Sam England

I will try to be as specific as possible in describing the issue.

I am running both lightbox (which uses prototype and scriptalicious)
and thickbox (which uses jquery.js) on my site.

lightbox 2 works fine.
Lightbox 2:
huddletogether.com/projects/lightbox2/

thickbox is installed but works fine.
Thickbox:
jquery.com/demo/thickbox/

Implementation instructions are on the sites above (respectively). I
have double checked they are both installed correctly, I think they
are!

None of the scripts work when both are installed together, however
this fix is supposed to make them work together without conflict.

http://docs.jquery.com/Using_jQuery_...ther_Libraries

>From the official jquery site.

I have implemented the first fix.

[QUOTE}The jQuery library, and virtually all of its plugins are
constrained within the jQuery namespace. As a general rule, "global"
objects are stored inside the jQuery namespace as well, so you
shouldn't get a clash between jQuery and any other library (like
Prototype, MooTools, or YUI).

That said, there is one caveat: By default, jQuery uses "$" as a
shortcut for "jQuery"
However, you can override that default by calling jQuery.noConflict()
at any point after jQuery and the other library have both loaded. For
example:

Code:

 
   
   
   
 jQuery.noConflict();

 // Use jQuery via jQuery(...)
 jQuery(document).ready(function(){
   jQuery("div").hide();
 });

 // Use Prototype with $(...), etc.
 $('someid').style.display = 'none';
   
 
 
 
This will revert $ back to its original library. You'll still be able
to use "jQuery" in the rest of your application.[/quote]

I am wandering If I have implemented this fix rignt, simply by adding
that script above int he head section of my site.

You may view the source of my site to see if I am going wrong as far
as implementing this fix goes, and to find a solution as to how I can
go about fixing this.

On my site, if you click an image on the folowing page (wait until the
page has fully loaded - it may take a while  ) you will see lightbox 2
working fine.

ivirtuaforums.com/amd-s-direction-and-next-gen-bulldozer-revealed-
t10594.html

If you go to the bottom of the following page page you will see the
text "AJAX Box"
ivirtuaforums.com/advertising.php

This should open the .htm file in thickbox by use of thickbox.js

It fails to do so.

In firefox firebug Im also getting two errors (for examples sake, on
ivirtuaforums.com/advertising.php - but they are on every page of the
site) - I havent a clue where to start as to how to fix them.
These are:

advertising.php (line 55)
Quote:$("someid") has no properties
[Break on this error] $('someid').style.display = 'none';

And
thickbox.js line 21
Quote:$(domChunk) has no properties
tb_init("a.thickbox, area.thickbox, input.thickbox")thickbox.js (line
21)
(no name)()thickbox.js (line 14)
to the wait list jQuery.readyList.push()jquery.js (line 1534)
(no name)()jquery.js (line 1558)
each([function(), function()], function(), undefined)jquery.js (line
339)
ready()jquery.js (line 1557)
[Break on this error] $(domChunk).click(function(){

I know Lightbox and Thickbox can work together - im just not sure how
Im a complete javascript novice as you may have guessed!

Thank you in advance for your help and suggestions,

Kind Regards :)



[jQuery] Best practices for dynamic form creation?

2007-08-01 Thread jayturley

Hi.

New to jQuery, and am playing around with it, building a simple list
application in order to learn how to use the Ajax tools.

Currently, a user can add an element to the list, and it is stored in
the database using Ajax and then added to the DOM on the fly.

The next stage is adding delete buttons to the list elements. Now,
given my approach, it seems that for each list element I will have to:

(1) Write out the delete form on the fly
(2) Find the just-written delete form
(3) Ajaxify the delete from

this seems - well - clunky to me.

The code which adds the list element is right here:

currentItem = ' ';
$('#content p').append(currentItem);

Any suggestions on how this can be done? Or how this can be done
better? My reading suggests that there may be problems searching the
newly manipulated DOM. Is this true?

Thanks a ton!

-Jay Turley



[jQuery] Re: Is there a simple way?

2007-08-01 Thread Mitchell Waite
I wonder why the folks at jQ head quarters don't must make  timer function
so we don't have to play tricks? Seems pretty simple.

 

Thanks for pointing me back to the section you wrote on queued effects. You
know I read this and somehow the chaining escaped me, I think because your
nicely formatted multiline code was not as intuitive to me as when the
functions are all on the same line. When I saw the effects connected by
periods it HIT ME. Maybe that just the way I digest info.

 

The call back example was much harder for me to follow.  I would have liked
to have seen it with an ID name and not "this" and I would have liked a
simpler example where these was not the need for a variable to keep it
stable.

 

It seemed to me that Callbacks deserved much more explanation and hand
holding then 2 pages. More simple examples (like the one you did with the
background color on p 72 to make that actually work would be cool.

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Karl Swedberg
Sent: Wednesday, August 01, 2007 9:03 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Is there a simple way?

 

On Aug 1, 2007, at 2:08 AM, Mitchell Waite wrote:

 

I think your example at learningjquery is really neat but it's a little

obscured by the other neat trick of insert HTML right after a click via

insertion. That in itself deserves its own page but the use of animate as a

delay timer is really awesome. I could not understand the example before I

knew jQuery, but now I can.

 

 

Hi Mitch, 

 

I'm glad you liked that trick! Thanks for the suggestion on writing a
separate article about inserting HTML on the fly. I'll try to write
something up within the next week or so.

 

--Karl

 

p.s. Since I know you own the book, I thought I'd point you to pages 70 - 76
for more information about simultaneous versus queued effects.

 

p.p.s. Thanks for the wonderful review on amazon.com! It's really, really
appreciated.

 

_

Karl Swedberg

www.englishrules.com

www.learningjquery.com

 






 

 



[jQuery] Re: Two words for Jquery

2007-08-01 Thread Richard D. Worth
On 8/1/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> BJ AJ
>
>
> (Before JQuery) (After JQuery)


Meet BJ :-(

Meet AJ :-)

- Richard


[jQuery] Best (lightest) Accordian Menu PlugIn

2007-08-01 Thread Mitchell Waite

Is anyone aware of a good accordian plugin. 

I have been using the one from Adobe (SPRY) and while its very flexible, it
takes a lot of JS and its slow when there are a lot of menu items. 

What happens to mine is when you first load the page the accordian appears
completely expanded. See

http://www.whatbird.com/wwwroot/TAB_SEARCH.html

I'd appreciate any insights.

Thanks

Mitch



[jQuery] Re: Two words for Jquery

2007-08-01 Thread Mario Moura
BJ AJ


(Before JQuery) (After JQuery)

; )

Mario



2007/8/1, Matt Stith <[EMAIL PROTECTED]>:
>
> Ok then
>
> ;)
>
> On 8/1/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
> >
> > On 8/1/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> > >
> > > O rly?
> >
> >
> > Ya rly
> >
> > --
> > Aaron Heimlich
> > Web Developer
> > [EMAIL PROTECTED]
> > http://aheimlich.freepgs.com
>
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Is there a simple way?

2007-08-01 Thread Mitchell Waite

(I'm not sure this got though so excuse me if I am sending it a second time)

Klaus this is FANTASTIC. Its way way way better than settimeout because the
chained list of events is to easy to understand.

I think your example at learningjquery is really neat but it's a little
obscured by the other neat trick of insert HTML right after a click via
insertion. That in itself deserves its own page but the use of animate as a
delay timer is really awesome. I could not understand the example before I
knew jQuery, but now I can.

The key is: animate({ opacity: 1 }, 2000). Which does nothing other change
the opacity of the element its attached to for 2 seconds. The real key for
me was that the effects could be queued.

I knew that if you set things up this way they all happened at the same
time.

$('#spinner').fadeIn('fast')
$('#spinner').animate({ opacity: 1 }, 2000)
$('#spinner').fadeOut('fast')

But did not know chainging them executes them sequentially. That is great to
know and makes things so much easier.

Thanks so much for:

$('#spinner').fadeIn('fast').animate({ opacity: 1 }, 2000).fadeOut('fast');

Mitch

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: Tuesday, July 31, 2007 10:45 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Is there a simple way?


We can use a little trick here (animations are queued):

$('#spinner').fadeIn('fast').animate({ opacity: 1 }, 2000).fadeOut('fast');

Untested.

Technique first seen here:
http://www.learningjquery.com/2007/01/effect-delay-trick


--Klaus



[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread [EMAIL PROTECTED]

Oooh, must try this!

As feature requests go, how about supporting other "file formats" such
as PDF/WMV/MOV?  I'd surely love to be able to get a PDF to open in a
thickbox.  These could even be optional modules that can be added if
the user wants (since not all people will want this).

I love the animation ideas and keeping it like Tabs is a great idea
IMO.

Now to figure out how to use SVN...

Luke

On Aug 1, 5:26 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Rey Bango wrote:
>
> > Hey man! Send me the link to the TR code and I'll drop it into a site
> > I'm building right now! :D
>
> > If it can do the animation via your examples, I would ooo happy. :D
>
> > Rey...
>
> The latest code is in SVN...
>
> --Klaus



[jQuery] Re: Two words for Jquery

2007-08-01 Thread Matt Stith
Ok then

;)

On 8/1/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
>
> On 8/1/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> >
> > O rly?
>
>
> Ya rly
>
> --
> Aaron Heimlich
> Web Developer
> [EMAIL PROTECTED]
> http://aheimlich.freepgs.com


[jQuery] Re: Two words for Jquery

2007-08-01 Thread Aaron Heimlich
On 8/1/07, Matt Stith <[EMAIL PROTECTED]> wrote:
>
> O rly?


Ya rly

-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com


[jQuery] Re: Two words for Jquery

2007-08-01 Thread Matt Stith
O rly?

On 8/1/07, Geoffrey Knutzen <[EMAIL PROTECTED]> wrote:
>
>
> Remember, the two words must be less than a total of 20 characters
> (compressed)
> :)
>
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of David Duymelinck
> Sent: Wednesday, August 01, 2007 6:41 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Two words for Jquery
>
>
> Javascript Effordless (in most cases)
>
> -- David
>
> Tane Piper schreef:
> > Bloody Brilliant!
> >
> > (I wonder how many other 2 word ways there are to describe jQuery)
> >
> > On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
> >
> >> Here here.
> >>
> >> - Richard
> >>
> >>
> >> On 8/1/07, kiwwwi <[EMAIL PROTECTED]> wrote:
> >>
> >>> jQuery Rocks!!
> >>>
> >>> oh... possibly will add two more words;
> >>>
> >>> Thank you :)
> >>>
> >>> I'm not the best scripter and jquery has simply allowed me to
> >>> accomplish with my own personal site so much more than I would
> >>> have otherwise attempted.  You people behind jquery are genious and
> >>> your work is great, thanks.
> >>>
> >>> Kiwwwi.
> >>>
> >>>
> >>>
> >>
> >
> >
> >
>
>


[jQuery] Re: textarea maxlength plugin

2007-08-01 Thread spinnach


this could be related to the issue i was having with maxlength, try 
changing the source code to $("[EMAIL PROTECTED]") (with a capitol 
L), and this.getAttribute('maxLength') ..


dennis.

bdee1 wrote:


i have not tried it with an older version of jquery yet but i tried using IE7
and the latest version of firefox.  the demo page on your site does work in
both browsers but when i uploaded the example page to my site it did not
work on textareas.


Burobjorn wrote:


Thats strange, could you try to use it with the older included jQuery 
version? Do you get an error? Which browser are you using? Does it work 
in the demo?


grtz
BjornW




thanks - thats exactly what i had in mind - downloaded it and tried it
and it
works well for text fields but for soem reason it does nto work on
textareas.  any ideas?  i am using jquery 1.1.3.1



Burobjorn wrote:

Yes, I have created such a plugin. Its still in alpha, but do check it
out:

http://www.burobjorn.nl/code/textlimiter/

All the best,

grtz
BjornW


bdee1 wrote:

does anyone know of a jquery plugin that would allow me to set a
maxlength
attribute on a textarea?











[jQuery] Re: Two words for Jquery

2007-08-01 Thread Geoffrey Knutzen

Remember, the two words must be less than a total of 20 characters
(compressed)
:)


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Duymelinck
Sent: Wednesday, August 01, 2007 6:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Two words for Jquery


Javascript Effordless (in most cases)

-- David

Tane Piper schreef:
> Bloody Brilliant!
>
> (I wonder how many other 2 word ways there are to describe jQuery)
>
> On 8/1/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
>   
>> Here here.
>>
>> - Richard
>>
>>
>> On 8/1/07, kiwwwi <[EMAIL PROTECTED]> wrote:
>> 
>>> jQuery Rocks!!
>>>
>>> oh... possibly will add two more words;
>>>
>>> Thank you :)
>>>
>>> I'm not the best scripter and jquery has simply allowed me to
>>> accomplish with my own personal site so much more than I would
>>> have otherwise attempted.  You people behind jquery are genious and
>>> your work is great, thanks.
>>>
>>> Kiwwwi.
>>>
>>>
>>>   
>> 
>
>
>   



[jQuery] Re: Two words for Jquery

2007-08-01 Thread Matt Stith
I'm Addicted


Coding Revolution


Best Library

I could go on forever

On 8/1/07, kiwwwi <[EMAIL PROTECTED]> wrote:
>
>
> jQuery Rocks!!
>
> oh... possibly will add two more words;
>
> Thank you :)
>
> I'm not the best scripter and jquery has simply allowed me to
> accomplish with my own personal site so much more than I would
> have otherwise attempted.  You people behind jquery are genious and
> your work is great, thanks.
>
> Kiwwwi.
>
>


[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Rey Bango


Gotcha. Let me snag it!

Klaus Hartl wrote:


Rey Bango wrote:


Hey man! Send me the link to the TR code and I'll drop it into a site 
I'm building right now! :D


If it can do the animation via your examples, I would ooo happy. :D

Rey...


The latest code is in SVN...



--Klaus



[jQuery] Re: textarea maxlength plugin

2007-08-01 Thread bdee1


i have not tried it with an older version of jquery yet but i tried using IE7
and the latest version of firefox.  the demo page on your site does work in
both browsers but when i uploaded the example page to my site it did not
work on textareas.


Burobjorn wrote:
> 
> 
> Thats strange, could you try to use it with the older included jQuery 
> version? Do you get an error? Which browser are you using? Does it work 
> in the demo?
> 
> grtz
> BjornW
> 
> 
> 
>> 
>> thanks - thats exactly what i had in mind - downloaded it and tried it
>> and it
>> works well for text fields but for soem reason it does nto work on
>> textareas.  any ideas?  i am using jquery 1.1.3.1
>> 
>> 
>> 
>> Burobjorn wrote:
>>>
>>> Yes, I have created such a plugin. Its still in alpha, but do check it
>>> out:
>>>
>>> http://www.burobjorn.nl/code/textlimiter/
>>>
>>> All the best,
>>>
>>> grtz
>>> BjornW
>>>
>>>
>>> bdee1 wrote:
 does anyone know of a jquery plugin that would allow me to set a
 maxlength
 attribute on a textarea?
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/textarea-maxlength-plugin-tf4193495s15494.html#a11949076
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Klaus Hartl


Rey Bango wrote:


Hey man! Send me the link to the TR code and I'll drop it into a site 
I'm building right now! :D


If it can do the animation via your examples, I would ooo happy. :D

Rey...


The latest code is in SVN...



--Klaus


[jQuery] Fx Bug: SlideUp/SlideDown - Height Toggle - Accordion

2007-08-01 Thread Justin Sepulveda

Compare:
http://openrico.org/demos?demo=accordion (based on Prototype)

To:
http://jquery.bassistance.de/accordion/?p=1.1.2.5 (based on jQuery)

You'll notice the Prototype version does not bounce at all.  The
jQuery version does.  Yes you can set a height so it doesn't effect
the rest of the page, however you'll still see the accordion itself
bounce.  It does this with every effect that toggles the height and I
haven't seen one accordion plugin using jQuery that doesn't bounce.
If you just use Show and Hide, you won't see the bump, but then you
lose the slide effect.

It seems like a small issue, but in every project, i've had to revert
to the Prototype version because the client didn't approve of this
small bumping issue.

The apple site also has a good example of a smooth accordion effect.

Any ideas?



[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Rey Bango


Hey man! Send me the link to the TR code and I'll drop it into a site 
I'm building right now! :D


If it can do the animation via your examples, I would ooo happy. :D

Rey...

Klaus Hartl wrote:


Rey Bango wrote:


Sorry about your back Klaus! :(

If you need help in testing please let me know. Since you may be in 
the code, any chance I can convince you to add some of the animation 
features found in Lightbox 2 
(http://www.huddletogether.com/projects/lightbox2/)? :D


Rey


Thank you Rey!

TR is actually pretty well tested on plazes... :-) and the basic plugin 
itself stable already (apart from a few features I'd like to add due to 
popular demand).


I always found these animations for Lightbox super annoying because I 
have the feeling it takes ages for the box to finally open.


But: I had the need for customizing TR in mind from the beginning, thus 
you will be able to do the following:


$('a').thickbox(function() {
animate: { animation: { height: 'show' }, speed: 1000 }
});

Does that suit your need? Should I use parameters differently? Like:

$('a').thickbox(function() {
fxShow: { height: 'show' },
fxSpeed: 1000
});

That would be similiar to the tabs.


If you like, you can test if that works!?



--Klaus




[jQuery] Re: where is thickbox reloaded ?

2007-08-01 Thread Klaus Hartl


Rey Bango wrote:


Sorry about your back Klaus! :(

If you need help in testing please let me know. Since you may be in the 
code, any chance I can convince you to add some of the animation 
features found in Lightbox 2 
(http://www.huddletogether.com/projects/lightbox2/)? :D


Rey


Thank you Rey!

TR is actually pretty well tested on plazes... :-) and the basic plugin 
itself stable already (apart from a few features I'd like to add due to 
popular demand).


I always found these animations for Lightbox super annoying because I 
have the feeling it takes ages for the box to finally open.


But: I had the need for customizing TR in mind from the beginning, thus 
you will be able to do the following:


$('a').thickbox(function() {
animate: { animation: { height: 'show' }, speed: 1000 }
});

Does that suit your need? Should I use parameters differently? Like:

$('a').thickbox(function() {
fxShow: { height: 'show' },
fxSpeed: 1000
});

That would be similiar to the tabs.


If you like, you can test if that works!?



--Klaus



[jQuery] Re: Animate percentage?

2007-08-01 Thread patcoll

25% of what? specify an item you want the relative width to be, then
replace '25%' with:

($(item).width()*.25)

so you'd get

$('#selectedFormat').animate({marginLeft:($(item).width()*.25)}, 500);

not tested, but seems like it would work.

Pat

On Aug 1, 12:22 am, Kaitlyn2004 <[EMAIL PROTECTED]> wrote:
> This works:
> $('#selectedFormat').animate({marginLeft:50}, 500);
>
> this does't:
> $('#selectedFormat').animate({marginLeft:25%}, 500);
> nor does this:
> $('#selectedFormat').animate({marginLeft:'25%'}, 500);
>
> how do I animate something on a percentage?



[jQuery] Re: Is there a simple way?

2007-08-01 Thread Karl Swedberg

On Aug 1, 2007, at 2:08 AM, Mitchell Waite wrote:

I think your example at learningjquery is really neat but it's a  
little
obscured by the other neat trick of insert HTML right after a click  
via
insertion. That in itself deserves its own page but the use of  
animate as a
delay timer is really awesome. I could not understand the example  
before I

knew jQuery, but now I can.



Hi Mitch,

I'm glad you liked that trick! Thanks for the suggestion on writing a  
separate article about inserting HTML on the fly. I'll try to write  
something up within the next week or so.


--Karl

p.s. Since I know you own the book, I thought I'd point you to pages  
70 - 76 for more information about simultaneous versus queued effects.


p.p.s. Thanks for the wonderful review on amazon.com! It's really,  
really appreciated.


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







[jQuery] Re: FadeTo getting a little crazy

2007-08-01 Thread Joel Birch


On 02/08/2007, at 1:35 AM, Lee wrote:


There are different issues with both Mac and Windows. Lets look at the
mac issue first. Firefox 2.0.0.6 - when you mouse over the 'Related
products' div down the bottom, it calls (via hover) a fadeto 1, then
on mouse out it calls a fadeto 0.4. The problem with firefox on the
mac is that it fades out some of my text too! The text is not in the
div, and it only effects the text shown on the screen, scroll up and
the text that was previously hidden is fine. Some kind of redraw
issue.


This is a Mac Firefox (only Mac) quirk that is currently unavoidable.  
What happens is that as soon as anything on the page has opacity of  
anything other than 1, the text is rendered using a different mode  
which makes it look lighter in weight. Very similar to how text looks  
in Safari when you set a non-detectable text-shadow on it. A  
workaround I have used is to set opacity: .99 on the body element so  
that all text uses the lighter rendering mode all the time and you  
don't get the sudden jump between the two modes. Sometimes it even  
makes the text look better, sometimes not.



The problem on the windows box is slightly different. Also 2.0.0.6, on
win xp, this is an issue I have had before (and never resolved) - same
page, same element, all works as it should, except the div jumps up
2-3 pixels every time I mouse over it.


Not sure about this as I can't test it at the moment. Hopefully  
someone helps you out, or I will look at it tomorrow.


Joel Birch.


  1   2   >