[jQuery] Re: Getting href value

2007-04-26 Thread Klaus Hartl


Karl Swedberg schrieb:
Hey, if you're impressed by that, you should see my Tabs plugin! 


Cool! I'm using it all of the time ;-)


-- Klaus


[jQuery] Re: plugin sizes, part 2

2007-04-26 Thread Klaus Hartl


Ariel Jakobovits schrieb:

What I meant to ask before I submit hastily was whether all the feature 
requests we, I included, are sending to the plugin developers are bloating the 
plugins?

(sorry for 2 emails)



Yes, they do. I'm experiencing exactly the same with Tabs and especially 
with Thickbox Reloaded... In the end one has to carefully decide what 
ise useful and what is too special.



-- Klau


[jQuery] Does addClass overwrite property

2007-04-26 Thread joomlafreak

I have a very basic question. If I use addClass, will it overwrite a
css property.
Say for example I use

$(".div1").click(funtion(){
$(this).addClass("div_active")
});

The div1 had css property background-color set to white and in the
class div_active background property is black.

Will the addClass make the background of div1 black.
I could not do it and it seems the only property that changes is the
one not defined previously in .div1.
Is there a way to achieve it.

Thanks



[jQuery] plugin sizes, part 2

2007-04-26 Thread Ariel Jakobovits

What I meant to ask before I submit hastily was whether all the feature 
requests we, I included, are sending to the plugin developers are bloating the 
plugins?

(sorry for 2 emails)




[jQuery] plugin sizes

2007-04-26 Thread Ariel Jakobovits

Is anyone else concerned by the fact that the datepicker plugin, which I love 
and appreciate, is 32K? unpacked, of course, but that's half the size of jQuery 
itself.

What figures are people shooting for for the size of their javascript download?






[jQuery] Re: Ajax application history

2007-04-26 Thread Sean Catchpole


Nathan,

A long time ago I made a simple proof of concept script on this:
http://www.sunsean.com/Jistory/

~Sean


[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread Allan Mullan


Because then we'd be up to jQuery v1024 or something silly like that, 
having minor releases means that any major changes make a bigger impact. 
It's a good way to keep everything in perspective also (you can tell 
that something reasonable must've happened between 0.3 and 1.0, same 
with 1.0 to 1.1 (the last big change)


My 2c worth :-)
Allan


Ariel Jakobovits wrote:

just wondering, why not call it jquery 2.0? what's with all this 1.0, 1.1, 
1.1.3?

- Original Message 
From: John Resig <[EMAIL PROTECTED]>
To: jquery-en@googlegroups.com
Sent: Thursday, April 26, 2007 7:21:37 PM
Subject: [jQuery] Re: Estimated 1.1.3 release date?


  

John! Wow :) Did not expect you to chime in on this!



No problem - I'm busy at the moment, but I still like to watch out for
meta-problems (site issues, releases dates, etc.)

  

First thing's first... I bought your book "Pro Javascript
Techniques" (published 2006?).. and my respect and recognition for
your talent has skyrocketed since. jQuery itself demonstrates very
clearly that you are skilled, but after even starting to read that
book I was very pleasantly surprised. No fluff, no mess... just right
into the JS goodness :).



Exactly. I hate books that nuts around talking about "The History of
JavaScript" and "this is how you use document.write". I'm a
programmer, I want code :-) (Especially code that is still relevant.)
Glad you're enjoying it, though!

  

Now back to the original topic lol.. glad to hear 1.1.3 will be out
soon. Hope things are not getting too stressful over there.

Looking forward to more jQuery releases! Have a good one.



Yeah, things are less than ideal right now - however I really want to
squeeze some time in and get the last changes into this release.
There's speed improvements across the board (faster selectors and
faster animations) along with a bunch of bug fixes. Not too shabby for
a point release. I just have to stomp some final bugs then we can move
ahead and release the alpha. (Just need to find a moment to clear my
head.)

--John



  


[jQuery] Re: Pause Plugin- why it does not work for me

2007-04-26 Thread Matt Stith


i believe the pause plugin broke around v1 of jQuery.

On 4/26/07, joomlafreak <[EMAIL PROTECTED]> wrote:


Hi James
Thanks for your reply but it seems your method also does not work.

By following your method, if I want to change the css property of an
element after 4 seconds I would be writing it like this

$("#indic").pause(4000).css("display","block");

but this changes the style right away.


On Apr 26, 8:29 pm, James  Thomas <[EMAIL PROTECTED]> wrote:
> I haven't used Pause but I took a look at the code and it looks like
> you use it in a chain, like this:
>
> $
>
('#navig_item_text').removeClass('navig_item_active').pause(3000).slideUp('slow');
>
> It's how it appears to me (may be wrong in my interpretation though).
>
> Also, it appears that type is an optional parameter that you specify
> (it defaults to "fx" if you don't) that you can use for identification
> if you want to unpause stuff.
>
> James
>
> On Apr 26, 4:21 pm, joomlafreak <[EMAIL PROTECTED]> wrote:
>
> > I am trying to use the pause plugin by Mr Howard like this
>
> > $("#navigblock .navig_item:eq("+curritem
> > +")").removeClass("navig_item_active");
> >   pause(3000);
> > $(".navig_item_text").slideUp("slow");
>
> > and I have included the plugin in head of my page but still it keeps
> > giving me this error pause is not defined in firebug.
>
> > Also in unpause what is meant by type?
> > The documentation is so little that I could not understand it
> > properly. Actually it must be very simple to use I guess and thats why
> > there is not much documentation.
>
> > Can someone please shower some light on my poor understanding of this
> > beautiful piece of code?




[jQuery] Re: Pause Plugin- why it does not work for me

2007-04-26 Thread joomlafreak

Hi James
Thanks for your reply but it seems your method also does not work.

By following your method, if I want to change the css property of an
element after 4 seconds I would be writing it like this

$("#indic").pause(4000).css("display","block");

but this changes the style right away.


On Apr 26, 8:29 pm, James  Thomas <[EMAIL PROTECTED]> wrote:
> I haven't used Pause but I took a look at the code and it looks like
> you use it in a chain, like this:
>
> $
> ('#navig_item_text').removeClass('navig_item_active').pause(3000).slideUp('slow');
>
> It's how it appears to me (may be wrong in my interpretation though).
>
> Also, it appears that type is an optional parameter that you specify
> (it defaults to "fx" if you don't) that you can use for identification
> if you want to unpause stuff.
>
> James
>
> On Apr 26, 4:21 pm, joomlafreak <[EMAIL PROTECTED]> wrote:
>
> > I am trying to use the pause plugin by Mr Howard like this
>
> > $("#navigblock .navig_item:eq("+curritem
> > +")").removeClass("navig_item_active");
> >   pause(3000);
> > $(".navig_item_text").slideUp("slow");
>
> > and I have included the plugin in head of my page but still it keeps
> > giving me this error pause is not defined in firebug.
>
> > Also in unpause what is meant by type?
> > The documentation is so little that I could not understand it
> > properly. Actually it must be very simple to use I guess and thats why
> > there is not much documentation.
>
> > Can someone please shower some light on my poor understanding of this
> > beautiful piece of code?



[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread Ariel Jakobovits

just wondering, why not call it jquery 2.0? what's with all this 1.0, 1.1, 
1.1.3?

- Original Message 
From: John Resig <[EMAIL PROTECTED]>
To: jquery-en@googlegroups.com
Sent: Thursday, April 26, 2007 7:21:37 PM
Subject: [jQuery] Re: Estimated 1.1.3 release date?


> John! Wow :) Did not expect you to chime in on this!

No problem - I'm busy at the moment, but I still like to watch out for
meta-problems (site issues, releases dates, etc.)

> First thing's first... I bought your book "Pro Javascript
> Techniques" (published 2006?).. and my respect and recognition for
> your talent has skyrocketed since. jQuery itself demonstrates very
> clearly that you are skilled, but after even starting to read that
> book I was very pleasantly surprised. No fluff, no mess... just right
> into the JS goodness :).

Exactly. I hate books that nuts around talking about "The History of
JavaScript" and "this is how you use document.write". I'm a
programmer, I want code :-) (Especially code that is still relevant.)
Glad you're enjoying it, though!

> Now back to the original topic lol.. glad to hear 1.1.3 will be out
> soon. Hope things are not getting too stressful over there.
>
> Looking forward to more jQuery releases! Have a good one.

Yeah, things are less than ideal right now - however I really want to
squeeze some time in and get the last changes into this release.
There's speed improvements across the board (faster selectors and
faster animations) along with a bunch of bug fixes. Not too shabby for
a point release. I just have to stomp some final bugs then we can move
ahead and release the alpha. (Just need to find a moment to clear my
head.)

--John





[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread John Resig



John! Wow :) Did not expect you to chime in on this!


No problem - I'm busy at the moment, but I still like to watch out for
meta-problems (site issues, releases dates, etc.)


First thing's first... I bought your book "Pro Javascript
Techniques" (published 2006?).. and my respect and recognition for
your talent has skyrocketed since. jQuery itself demonstrates very
clearly that you are skilled, but after even starting to read that
book I was very pleasantly surprised. No fluff, no mess... just right
into the JS goodness :).


Exactly. I hate books that nuts around talking about "The History of
JavaScript" and "this is how you use document.write". I'm a
programmer, I want code :-) (Especially code that is still relevant.)
Glad you're enjoying it, though!


Now back to the original topic lol.. glad to hear 1.1.3 will be out
soon. Hope things are not getting too stressful over there.

Looking forward to more jQuery releases! Have a good one.


Yeah, things are less than ideal right now - however I really want to
squeeze some time in and get the last changes into this release.
There's speed improvements across the board (faster selectors and
faster animations) along with a bunch of bug fixes. Not too shabby for
a point release. I just have to stomp some final bugs then we can move
ahead and release the alpha. (Just need to find a moment to clear my
head.)

--John


[jQuery] Re: Getting href value

2007-04-26 Thread Karl Swedberg

On Apr 26, 2007, at 8:20 PM, Klaus Hartl wrote:

Huh? Why not?
Works for me. See it in action:
http://test.learningjquery.com/context.html
;-)



Wow! Thanks Karl, I always thought the context argument has to be a  
jQuery object or a DOM element... This is also what's documented in  
the API docs.


So: six eyes are two too much I guess :-)


-- Klaus


Hey, if you're impressed by that, you should see my Tabs plugin!

Oh... wait... that's YOUR Tabs plugin.

Never mind. :)


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







[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread MikeR

John! Wow :) Did not expect you to chime in on this!

First thing's first... I bought your book "Pro Javascript
Techniques" (published 2006?).. and my respect and recognition for
your talent has skyrocketed since. jQuery itself demonstrates very
clearly that you are skilled, but after even starting to read that
book I was very pleasantly surprised. No fluff, no mess... just right
into the JS goodness :).

Now back to the original topic lol.. glad to hear 1.1.3 will be out
soon. Hope things are not getting too stressful over there.

Looking forward to more jQuery releases! Have a good one.


On Apr 26, 5:49 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> I'm hoping soon - I've been quite busy (and sick) - combined with a
> number of personal issues. I wanna finish it up and get it out ASAP
> since there's a number of improvements in this release.
>
> --John
>
> On 4/26/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is there any estimated date range?
>
> > On Apr 26, 2:57 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> > > 1.1.3 alpha should be coming soon. :)
>
> > > --
> > > Brandon Aaron
>
> > > On 4/26/07, MikeR <[EMAIL PROTECTED]> wrote:
>
> > > > Just wondering if anybody knows of an approx. release date for jQuery
> > > > 1.1.3?



[jQuery] Re: Workarounds to IE eventListener issue

2007-04-26 Thread Shelane

So I saw this in the docs:

Note: Avoid using this (.load) to load scripts, instead use
$.getScript. IE strips script tags when there aren't any other
characters in front of it.

So I thought I'd try putting the script at the end of the page that's
being loaded seeing as how there would be "other characters in front
of it" but no joy.  The JavaScript that's in the loaded page doesn't
work.

Is there a way to work around this IE problem?

If not, how do other people manage ajax web apps?  Do you load every
single potentially needed js file in the root page?

Besides, there are things I'd need to have executed on doc ready when
the new page is loaded.

On Apr 26, 1:43 pm, Shelane Enos <[EMAIL PROTECTED]> wrote:
> Does anyone have workarounds to the IE eventListener issue?  I have several
> pages with jQuery code I keep local on the "page" that it's needed on.
> However, if that page is loaded via AJAX, IE simply doesn't execute it.
>
> I can't even get an alert('hello') to work on the loaded page.
>
> I feel a bit desperate right now.  I can't be the only one to load my
> scripts in this fashion, so I hope someone knows a way around it (rather
> than loading all my scripts on the top page).



[jQuery] Re: Pause Plugin- why it does not work for me

2007-04-26 Thread James Thomas

I haven't used Pause but I took a look at the code and it looks like
you use it in a chain, like this:

$
('#navig_item_text').removeClass('navig_item_active').pause(3000).slideUp('slow');

It's how it appears to me (may be wrong in my interpretation though).

Also, it appears that type is an optional parameter that you specify
(it defaults to "fx" if you don't) that you can use for identification
if you want to unpause stuff.

James

On Apr 26, 4:21 pm, joomlafreak <[EMAIL PROTECTED]> wrote:
> I am trying to use the pause plugin by Mr Howard like this
>
> $("#navigblock .navig_item:eq("+curritem
> +")").removeClass("navig_item_active");
>   pause(3000);
> $(".navig_item_text").slideUp("slow");
>
> and I have included the plugin in head of my page but still it keeps
> giving me this error pause is not defined in firebug.
>
> Also in unpause what is meant by type?
> The documentation is so little that I could not understand it
> properly. Actually it must be very simple to use I guess and thats why
> there is not much documentation.
>
> Can someone please shower some light on my poor understanding of this
> beautiful piece of code?



[jQuery] Re: Getting href value

2007-04-26 Thread Klaus Hartl


Karl Swedberg schrieb:


On Apr 26, 2007, at 6:23 PM, Klaus Hartl wrote:



Karl Swedberg schrieb:

Hi Shelane,
Looks like you just forgot the $ or jQuery before the opening 
parenthesis. This should work:

var initlink = $('a', 'div.nav_one_selected').attr("href");
--Karl


This would still not work, but this:

var initlink = $('a', $('div.nav_one_selected')).attr("href");


six eyes are better than two ;-)


-- klaus


Huh? Why not?

Works for me. See it in action:

http://test.learningjquery.com/context.html

;-)



Wow! Thanks Karl, I always thought the context argument has to be a 
jQuery object or a DOM element... This is also what's documented in the 
API docs.


So: six eyes are two too much I guess :-)


-- Klaus






[jQuery] Re: Getting href value

2007-04-26 Thread Karl Swedberg


On Apr 26, 2007, at 6:23 PM, Klaus Hartl wrote:



Karl Swedberg schrieb:

Hi Shelane,
Looks like you just forgot the $ or jQuery before the opening  
parenthesis. This should work:

var initlink = $('a', 'div.nav_one_selected').attr("href");
--Karl


This would still not work, but this:

var initlink = $('a', $('div.nav_one_selected')).attr("href");


six eyes are better than two ;-)


-- klaus


Huh? Why not?

Works for me. See it in action:

http://test.learningjquery.com/context.html

;-)


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





[jQuery] Nested .each functions

2007-04-26 Thread [EMAIL PROTECTED]

i'm currently building an FAQ system using XML and jQuery. So far,
everything is has been great until now. I have an  $.ajax request that
calls to an XML file that contains the questions and answers for a
particular topic. when you click your topic, it loads any tags with
the name "title" into a SPAN in an empty DIV. now i'd like to load all
the tags with the name "answer" into a SPAN below the "title" SPAN.
i'm using a .each function to loop through all the "title" tags, but
it's not working for the "answer" tags. i'd appreciate any help i can
get. thank you!

sample:

$('#cat2top1').click(function(){
$('#faq_content').empty();
$.ajax({
url: 'includes/data/paygo_cat2top1.xml',
type: 'GET',
dataType: 'xml',
error: function(){
alert('Error!');
},
success: function(xmlData){

$(xmlData).find('title').each(function(){
var qtxt = $(this).text();
$(xmlData).find('answer').each(function(){
var atxt = $(this).text();
$('').html(qtxt).fadeIn('fast').appendTo('#faq_content');
$('').html(atxt).fadeIn('fast').appendTo('#faq_content').insertAfter('.question');
});
});
}
});
});



[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread John Resig


I'm hoping soon - I've been quite busy (and sick) - combined with a
number of personal issues. I wanna finish it up and get it out ASAP
since there's a number of improvements in this release.

--John

On 4/26/07, MikeR <[EMAIL PROTECTED]> wrote:


Is there any estimated date range?

On Apr 26, 2:57 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> 1.1.3 alpha should be coming soon. :)
>
> --
> Brandon Aaron
>
> On 4/26/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
> > Just wondering if anybody knows of an approx. release date for jQuery
> > 1.1.3?




[jQuery] Re: behaviors?

2007-04-26 Thread John Resig


.behavior() does not exist - but it could (without too much effort)
the current solution with jQuery is shown in the previous slide (which
is, unfortunately, rather verbose). I hope that it'll exist one day -
I probably should've made that more explicit.

You would, "simply", have to override append/prepend/before/after and
after the injection has occurred, re-run all "behavior"ed expressions.
Of course, you'd also have to cache all expressions for future use
(and that's another nut, entirely). If someone feels compelled, you
can hack on it - otherwise, I may take a stab at it.

--John

On 4/26/07, Starbow <[EMAIL PROTECTED]> wrote:


I was just watching the video of John Resig at Yahoo, and in one slide
he talked about behaviors, as jquery bindings that act like css rules
and apply themselves to html fragments asynchronously loaded into the
page.  The code sample looked like this:

$(document).ready( function() {
  $('li").behavior( "click", function() {
$(this).load("menu.html");
  });
});

Is behavior a special jQuery function, something that is in the works,
or is it just a regular function and the code for it was missing from
the slide set?




[jQuery] Ajax application history

2007-04-26 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)

Hi.

We've learned over time to build in backbutton functionality and
bookmarkability to our DHTML widgets or at least try to ascertain what
our clients will want ahead of time... Just because although people
usually don't think to ask up front, often when they use the application
a bit and they can't bookmark, paste URLs, or use their browser back
button they come back asking for some or all of those.

This library takes a simple approach to creating at least a model that
could be used to address all of those in a coherent way:

http://codinginparadise.org/projects/dhtml_history/README.html

Is there similar thinking in the jQuery world?  I've seen:

http://www.stilbuero.de/jquery/history/

And

http://www.mikage.to/jquery/jquery_history.html

Which I _think_ are more specific and partial solutions, unless maybe
I've missed some documentation for those.

>Nathan


[jQuery] Pause Plugin- why it does not work for me

2007-04-26 Thread joomlafreak

I am trying to use the pause plugin by Mr Howard like this

$("#navigblock .navig_item:eq("+curritem
+")").removeClass("navig_item_active");
  pause(3000);
$(".navig_item_text").slideUp("slow");

and I have included the plugin in head of my page but still it keeps
giving me this error pause is not defined in firebug.

Also in unpause what is meant by type?
The documentation is so little that I could not understand it
properly. Actually it must be very simple to use I guess and thats why
there is not much documentation.

Can someone please shower some light on my poor understanding of this
beautiful piece of code?



[jQuery] Re: selecting a parent

2007-04-26 Thread Josh Nathanson



Does this work?

$(childEl).parents("td:first");


Worked like a charm, thanks!

-- Josh




[jQuery] Background-position-x

2007-04-26 Thread Glen Lipka

How would I change the X axis of background-position only on Firefox?
I need to leave the Y axis alone, and only change the X.

Subliminal message to John Resig of Mozillabackground-position-x is a
good thing.

Glen


[jQuery] Re: selecting a parent

2007-04-26 Thread Joel Birch


On 27/04/2007, at 9:10 AM, Josh Nathanson wrote:

I want to select the first parent of my selection that is a td  
element.  How do I do that?


I don't want parent(), since the number of parents in between may  
vary, or parents(), since I don't want to select ALL the td's that  
are up the hierarchy.  Just the first parent that's a td.


Does this work?

$(childEl).parents("td:first");

Joel.


[jQuery] Re: Autocomplete plugin problem

2007-04-26 Thread Stefan Kilp [sk-software]

Dan,

hope you both fine time to push the autocomplete project.

waiting for the next release :-)

and maybe you put this on the autocomplete wishlist:

at the moment there is a max parameter to indicate how many items will be shown.
if more than max items where found be the query then a "..." or "more" at the 
bottom of the
autocomplete list would be very helpful so that the user knows that more then 
"max items"
are available if he would narrow his search.

example if you type "st" in then single person demo on

http://kilp.net/test/autocomplete/autocomplete-demo.html

the user could assume that the shown hits where the only hits available, but 
this is not true it
is only limited bei max=20,

Best regards,
Stefan Kilp

> Stefan,
>
> >as i highlight multiple hits (search for "jo ro" in the single person demo)
> >i need to disable jörns
> >markup, but i did not find out how.
> >
> >formatItem: false,
> >
> >did not help. any hit for me?
>
> Last time I checked, disabling the automatically highlighting was still not
> added to the code base. I do know Jörn has some code done that hasn't been
> checked in to the SVN yet.
>
> I'm hoping to have lots of time to help Jörn out with the code this weekend,
> so hopefully it'll be closer to be production ready.
>
> -Dan
>


--
Stefan Kilp
SK-Software, Entwicklung & Beratung

email: [EMAIL PROTECTED]

fon  : +49 6151 93344-0
fax  : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-



[jQuery] selecting a parent

2007-04-26 Thread Josh Nathanson


Hey all,

I want to select the first parent of my selection that is a td element.  How 
do I do that?


I don't want parent(), since the number of parents in between may vary, or 
parents(), since I don't want to select ALL the td's that are up the 
hierarchy.  Just the first parent that's a td.


So like:
 (want to do something to this td)
  (1 to n divs here)
 click me!
  (1 to n closing divs)


I think I need an xpath or something, but I tried some stuff and I'm 
stumped.


-- Josh






[jQuery] Re: Autocomplete plugin problem

2007-04-26 Thread Dan G. Switzer, II

Stefan,

>as i highlight multiple hits (search for "jo ro" in the single person demo)
>i need to disable jörns
>markup, but i did not find out how.
>
>formatItem: false,
>
>did not help. any hit for me?

Last time I checked, disabling the automatically highlighting was still not
added to the code base. I do know Jörn has some code done that hasn't been
checked in to the SVN yet.

I'm hoping to have lots of time to help Jörn out with the code this weekend,
so hopefully it'll be closer to be production ready.

-Dan



[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-26 Thread Karl Swedberg


On Apr 26, 2007, at 6:18 PM, Klaus Hartl wrote:

This will be added as an option in Tabs 3, in the meantime here is  
a demo for mouseover tabs utilizing triggerTab:

http://stilbuero.de/jquery/tabs/mouseover.html

In that demo, after mouseout and a delay of one second the 1st tab  
is activated again (because that was asked for the last time).  
Should be easy to remove that.



-- Klaus


PS: I'm not Karl ;-)


Ha!

Well, all I can say is that I'm flattered someone would attribute the  
plugin to me. You rock, Klaus!



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




[jQuery] Re: behaviors?

2007-04-26 Thread Jonathan Sharp

I think he may be talking about something different, think dynamic events in
the sense that a new list item is added via an ajax call and the click event
is bound to it. No need to re-call the bind to attach the event after the
ajax content has loaded...

$('li").behavior( "click", function() {
  $(this).load("menu.html");
});

Cheers,
-Jonathan


On 4/26/07, Jonathan Chaffer <[EMAIL PROTECTED]> wrote:



On Apr 26, 2007, at 17:18 , Starbow wrote:

> I was just watching the video of John Resig at Yahoo, and in one slide
> he talked about behaviors, as jquery bindings that act like css rules
> and apply themselves to html fragments asynchronously loaded into the
> page.  The code sample looked like this:
>
> $(document).ready( function() {
>   $('li").behavior( "click", function() {
> $(this).load("menu.html");
>   });
> });
>
> Is behavior a special jQuery function, something that is in the works,
> or is it just a regular function and the code for it was missing from
> the slide set?

Looks like a typo for .bind(). This will work:

$(document).ready(function() {
  $('li').bind('click', function() {
$(this).load('menu.html');
  });
});




[jQuery] Re: Autocomplete plugin problem

2007-04-26 Thread Stefan Kilp [sk-software]

Hi Dan,

thanks verys much for your help.

> Stefan,
>
> >i did some test/demos to play with autocomplete plugin.
> >
> > http://kilp.net/test/autocomplete/autocomplete-demo.html
> >
> >i want a kind of highlighted searchresult. for that reason my php script
> >(sever-side) generates data that looks like
> >
> > |  | id1 \n
> > |  | id1 \n
>
> I just looked at the output your server side template is producing and it
> looks like this:
>
> DanielJohns
>
> |Daniel   Johns
>
> |84
>
> All of that should be on a single line. Using a tool like Firebug makes it
> easy to view what you're AJAX calls are returning.

the multiline response was a stupid fault by myself ignoring that my editor has 
\r\n
at the end of every line not \n.

>
> Here's an example of your output:
> http://kilp.net/test/autocomplete/namesearch.php?q=jo&limit=20
>
> Each record should be in the format:
> Daniel Johns|Daniel Johns|84
>
> Also, you're using Joern's version of the plugin, so adding  tags to
> highlight text is going to cause problems (because his code also wraps
> matches in  tags.)
>
as i highlight multiple hits (search for "jo ro" in the single person demo) i 
need to disable jörns
markup, but i did not find out how.

formatItem: false,

did not help. any hit for me?

thanks
stefan
> You'd be better off controlling the way his  tags look via CSS
> styling.
>
> -Dan
>
>


--
Stefan Kilp
SK-Software, Entwicklung & Beratung

email: [EMAIL PROTECTED]

fon  : +49 6151 93344-0
fax  : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-



[jQuery] Re: Getting href value

2007-04-26 Thread Klaus Hartl


Karl Swedberg schrieb:

Hi Shelane,

Looks like you just forgot the $ or jQuery before the opening 
parenthesis. This should work:


var initlink = $('a', 'div.nav_one_selected').attr("href");

--Karl


This would still not work, but this:

var initlink = $('a', $('div.nav_one_selected')).attr("href");


six eyes are better than two ;-)


-- klaus


[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-26 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)

Hi.

Another way to think of it is:

 1. Develop a site that works without JS
 2. Work out ways to enhance each page using JS
 3. step 2 may result in JS users not seeing whole classes of pages, but
you have a fall back at any point.

This discipline may result in a better application design and may result
in a faster site and may give better options for performance
enhancement.  Or not.  It's almost certain to be more accessible and to
provide a better no-js experience.

>Nathan



> -Original Message-
> From: jquery-en@googlegroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth
> Sent: Tuesday, April 24, 2007 8:18 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Best way to determine if a user has 
> Javascript enabled?
> 
> 
> As much as I dislike the idea of having to develop two 
> different sites or, sometimes, just different pages, it seems 
> like that is the only way to accommodate both JS and non-JS users.
> 
> I know jQuery can be used unobtrusively, but in some cases 
> that just doesn't seem to be a workable approach.
> 
> For instance, one use I plan for jQuery is with calendars I develop.
> These are calendars which have one row with columns for date, 
> time, event, and location.  Usually, I put a "details" link 
> on the row for the page to refresh and reveal the details 
> beneath the main row.  That works well, but would be much 
> better with a slide and show jQuery effect.
> 
> However, if JS isn't working, the details for every row in 
> the calendar will be showing and that's a no go.  Perhaps 
> there is a way to cause the calendar to default back to its 
> original functionality with a page refresh.
> Or the alternative is to develop two pages and send the user 
> with JS to the JS page and the non-JS user to the non-JS page.
> 
> Thoughts?
> 
> Rick
> 
> 
> 
> -Original Message-
> From: jquery-en@googlegroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Young 
> -X (natyoung - Artizen at Cisco)
> Sent: Tuesday, April 24, 2007 3:48 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Best way to determine if a user has 
> Javascript enabled?
> 
> 
> Hi.
> 
> There is another surefire solution to getting a site that 
> works with JS and non-js usage, and that is to bifurcate the 
> experience quite early on and send the two sets of users down 
> very different paths.  In that case, JS users see one set of 
> pages and non-js users see another.  
> 
> --->Nathan
> 
> 
> > -Original Message-
> > From: jquery-en@googlegroups.com
> > [mailto:[EMAIL PROTECTED] idea "pages shouoglegroups.com] On Behalf
> Of Rey Bango
> > Sent: Friday, April 20, 2007 7:35 AM
> > To: jquery-en@googlegroups.com
> > Subject: [jQuery] Re: Best way to determine if a user has 
> Javascript 
> > enabled?
> > 
> > 
> > Hi Rick,
> > 
> > Let me summarize what everyone is saying before this turns 
> into a long 
> > thread.
> > 
> > Basically, there's no easy and surefire way of determining if JS is 
> > enabled on the browser. You need to code your forms and 
> pages in the 
> > traditional way that you would any non-JS application. Once 
> you have 
> > those pages working correctly with proper server-side 
> validation and 
> > handling, then you can look at progressive enhancement to 
> extend the 
> > functionality of your pages by leveraging JS, DOM-manipulation and 
> > Ajax.
> > 
> > I realize that you're trying to find a way of doing this from a 
> > server-side perspective but you're going to end up building a 
> > hodge-podge solution that will not be effective. You have 
> some really 
> > sharp people giving you the right advice and since I want you to be 
> > successful, I highly recommend that you follow their suggestions.
> > 
> > This is the *only* surefire way of ensuring that browsers 
> that have JS 
> > disabled will work properly on your site.
> > Otherwise, its a shot in the dark.
> > 
> > Rey...
> > 
> > Rick Faircloth wrote:
> > > That's what's motivating the question.
> > > 
> > > I'm trying to take Progressive Enhancement, as I see it, one step 
> > > further by integrating the enhancement into the server-side
> > process,
> > > where possible and applicable.
> > > 
> > > This part concerns return validation result messages back
> > to the form
> > > page, or rather back to the page itself, since I'm
> > currently posting
> > > the form back to the page its own.
> > > 
> > > If JS is disabled, then I would simply have to refresh the page.
> > > If JS is enabled, then I could use  to place
> > messages on the
> > > page without refresh...if I'm understanding everything correctly.
> > > 
> > > Rick
> > > 
> > 
> 


[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-26 Thread Klaus Hartl


[EMAIL PROTECTED] schrieb:

Is it possible to change Karl's tab plugin to activate the tabs and
their content when rolling over a tab, instead of clicking on it? I
browsed the source and didn't see anything that stuck out as a config
option to change this, and I'd like to avoid changing the core.


This will be added as an option in Tabs 3, in the meantime here is a 
demo for mouseover tabs utilizing triggerTab:

http://stilbuero.de/jquery/tabs/mouseover.html

In that demo, after mouseout and a delay of one second the 1st tab is 
activated again (because that was asked for the last time). Should be 
easy to remove that.



-- Klaus


PS: I'm not Karl ;-)



[jQuery] Re: Cascading Stylesheets presentation tonight

2007-04-26 Thread Christopher Jordan


Andy,

This presentation sounds like it's gonna be great! Will it be recorded so that 
folks can download it later?


Chris

Andy Matthews wrote:
Hey everyone...just wanted to let you know that I'm going to be making a 
presentation on CSS tonight for the Nashville Coldfusion Usergroup. 
here's the details. If you'd like to watch live, use the link at the 
bottom of the email. It will be recorded for later viewing as well.
 
--
 
DATE: April 26, 2007

TIME: 6:30 PM Presentation
PRESENTATION:
Andy Matthews (in person) on CSS & CFM together: Alphabet Soup or Best 
Friends Forever?
 
CSS & CFM together: Alphabet Soup or Best Friends Forever?
Combining the power of Coldfusion with the flexibility and reusability 
of Cascading Stylesheets.
 
In this presentation, Andy will cover the basics of CSS.

-How to set up an efficient stylesheet and avoid a maze of classes and ids
-Define styles once and allow their values to cascade through child elements
-Using Coldfusion to set values in your stylesheet
 
SPEAKER BIO:

http://www.commadelimited.com
 
ACROBAT CONNECT INFORMATION:

This meeting will be broadcast via Connect.
 
http://mmusergroup.adobe.acrobat.com/r78187836/
 
*


 
Andy Matthews

*Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com 
 


--
http://www.cjordan.us


[jQuery] Re: datePicker v2 beta

2007-04-26 Thread Ariel Jakobovits

follow on this drag issue: your's demo behaves OK but mine doesn't, even when I 
have the same options configured. I will play more with it later today.

- Original Message 
From: Kelvin Luck <[EMAIL PROTECTED]>
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 6:34:31 AM
Subject: [jQuery] Re: datePicker v2 beta


On Wed, 25 Apr 2007 13:04:59 +0100, Ariel Jakobovits <[EMAIL PROTECTED]> wrote:

>
> No, really, I mean clickInput: false. if its true, clicking before the drag 
> opens the calendar.
>
> but if it's false, i can't drag to delete a date i put there.
>

Weird! I don't have IE7 here so I can't test but does the same thing happen to 
you here:
http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerTemp.html

As you can see, I've set inputClick:false in this example. Selecting and 
editing the field works fine for me. Setting inputClick:false should be the 
same as not setting it at all by the way - does your problem specifically 
appear when you set inputClick:false?

By the way. did the code for selecting today work for you?





[jQuery] Re: behaviors?

2007-04-26 Thread Jonathan Chaffer


On Apr 26, 2007, at 17:18 , Starbow wrote:


I was just watching the video of John Resig at Yahoo, and in one slide
he talked about behaviors, as jquery bindings that act like css rules
and apply themselves to html fragments asynchronously loaded into the
page.  The code sample looked like this:

$(document).ready( function() {
  $('li").behavior( "click", function() {
$(this).load("menu.html");
  });
});

Is behavior a special jQuery function, something that is in the works,
or is it just a regular function and the code for it was missing from
the slide set?


Looks like a typo for .bind(). This will work:

$(document).ready(function() {
  $('li').bind('click', function() {
$(this).load('menu.html');
  });
});



[jQuery] jQuery Tabs: activate on rollover instead of click?

2007-04-26 Thread litzinger

Is it possible to change Karl's tab plugin to activate the tabs and
their content when rolling over a tab, instead of clicking on it? I
browsed the source and didn't see anything that stuck out as a config
option to change this, and I'd like to avoid changing the core.



[jQuery] Re: TableSorter sorting weird

2007-04-26 Thread Chris W. Parker

On Thursday, April 26, 2007 1:43 PM Chris W. Parker <> said:

> Hello,
> 
> Anyone know how to get the TableSorter plugin to reliably sort short
> dates?

Yeah buddy I do. Don't add extra data to the column you want to sort and
expect it to sort right.

I was adding an img to the end of the date that I am using to delete
individual records. I've moved it into its own column and well... now it
works.


Isn't it great when you answer your own question? ;)


[jQuery] Re: Getting href value

2007-04-26 Thread Karl Swedberg

Not a problem. Stuff like that happens to me all the time! ;-)


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



On Apr 26, 2007, at 4:45 PM, Shelane wrote:



Yep, I forgot it.  Thought I had it.  Guess I needed extra eyes :-)
Thanks for the indulgence.

On Apr 26, 1:26 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:

Hi Shelane,

Looks like you just forgot the $ or jQuery before the opening
parenthesis. This should work:

var initlink = $('a', 'div.nav_one_selected').attr("href");

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

On Apr 26, 2007, at 4:10 PM, Shelane Enos wrote:




I have this:
Index



I was attempting to read the href of the anchor tag like this:



var initlink = ('a', 'div.nav_one_selected').attr("href");



I also tried
var initlink = ('div.nav_one_selected/a').attr("href");



I get an error like: ('a', 'div.nav_one_selected').attr is not a
function



I'm not sure what I'm doing wrong here.






[jQuery] behaviors?

2007-04-26 Thread Starbow

I was just watching the video of John Resig at Yahoo, and in one slide
he talked about behaviors, as jquery bindings that act like css rules
and apply themselves to html fragments asynchronously loaded into the
page.  The code sample looked like this:

$(document).ready( function() {
  $('li").behavior( "click", function() {
$(this).load("menu.html");
  });
});

Is behavior a special jQuery function, something that is in the works,
or is it just a regular function and the code for it was missing from
the slide set?



[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread MikeR

Is there any estimated date range?

On Apr 26, 2:57 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> 1.1.3 alpha should be coming soon. :)
>
> --
> Brandon Aaron
>
> On 4/26/07, MikeR <[EMAIL PROTECTED]> wrote:
>
>
>
> > Just wondering if anybody knows of an approx. release date for jQuery
> > 1.1.3?



[jQuery] Re: Estimated 1.1.3 release date?

2007-04-26 Thread Brandon Aaron


1.1.3 alpha should be coming soon. :)

--
Brandon Aaron

On 4/26/07, MikeR <[EMAIL PROTECTED]> wrote:


Just wondering if anybody knows of an approx. release date for jQuery
1.1.3?




[jQuery] Re: Draggables: detecting if I'm in a region after stopping

2007-04-26 Thread Dan G. Switzer, II

Dave,

>What is the best way to do this?  I want to check, for a ghosted
>draggable object, that when the user let's go of the draggable (onStop
>event fires), how can I tell if any part of my dragged object
>intersects with another DIV on screen?

That's what the Droppable Interface object is for...
http://interface.eyecon.ro/docs/drop

-Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Estimated 1.1.3 release date?

2007-04-26 Thread MikeR

Just wondering if anybody knows of an approx. release date for jQuery
1.1.3?



[jQuery] Re: Getting href value

2007-04-26 Thread Shelane

Yep, I forgot it.  Thought I had it.  Guess I needed extra eyes :-)
Thanks for the indulgence.

On Apr 26, 1:26 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Shelane,
>
> Looks like you just forgot the $ or jQuery before the opening
> parenthesis. This should work:
>
> var initlink = $('a', 'div.nav_one_selected').attr("href");
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Apr 26, 2007, at 4:10 PM, Shelane Enos wrote:
>
>
>
> > I have this:
> >  > href="/jQuery/pages/index.html">Index
>
> > I was attempting to read the href of the anchor tag like this:
>
> > var initlink = ('a', 'div.nav_one_selected').attr("href");
>
> > I also tried
> > var initlink = ('div.nav_one_selected/a').attr("href");
>
> > I get an error like: ('a', 'div.nav_one_selected').attr is not a
> > function
>
> > I'm not sure what I'm doing wrong here.



[jQuery] Workarounds to IE eventListener issue

2007-04-26 Thread Shelane Enos

Does anyone have workarounds to the IE eventListener issue?  I have several
pages with jQuery code I keep local on the "page" that it's needed on.
However, if that page is loaded via AJAX, IE simply doesn't execute it.

I can't even get an alert('hello') to work on the loaded page.

I feel a bit desperate right now.  I can't be the only one to load my
scripts in this fashion, so I hope someone knows a way around it (rather
than loading all my scripts on the top page).



[jQuery] TableSorter sorting weird

2007-04-26 Thread Chris W. Parker

Hello,
 
Anyone know how to get the TableSorter plugin to reliably sort short
dates?
 
By default it works with dates in a long format (US) like this:
 
April 25, 2007 12:00 Am
 
But it won't work with a short format (out of the box) like:

April 25, 2007
 
However, I did manage to get it to sort with that short date format, but
it seems to be a bit unreliable. For example, I have four rows that are
being sorted like:
 
May 1, 2007
April 15, 2007
April 16, 2007
April 27, 2007
 
Clearly this is wrong and should be:

May 1, 2007
April 27, 2007
April 16, 2007
April 15, 2007

The modification I made was simple. I added a conditional(?) grouping on
the time portion of the regex.

(watch wrap)
Original: (on or around line 510)

/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2})
(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/

Mine:

/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2})(
(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM?$/


It seems to work fine most of the time but on rare occasions I've seen
it act screwy.


Any ideas?



Thanks,
Chris.


[jQuery] Re: Getting href value

2007-04-26 Thread Karl Swedberg

Hi Shelane,

Looks like you just forgot the $ or jQuery before the opening  
parenthesis. This should work:


var initlink = $('a', 'div.nav_one_selected').attr("href");

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



On Apr 26, 2007, at 4:10 PM, Shelane Enos wrote:



I have this:
Index

I was attempting to read the href of the anchor tag like this:

var initlink = ('a', 'div.nav_one_selected').attr("href");

I also tried
var initlink = ('div.nav_one_selected/a').attr("href");

I get an error like: ('a', 'div.nav_one_selected').attr is not a  
function


I'm not sure what I'm doing wrong here.





[jQuery] Cascading Stylesheets presentation tonight

2007-04-26 Thread Andy Matthews
Hey everyone...just wanted to let you know that I'm going to be making a
presentation on CSS tonight for the Nashville Coldfusion Usergroup. here's
the details. If you'd like to watch live, use the link at the bottom of the
email. It will be recorded for later viewing as well.
 
--
 
DATE: April 26, 2007
TIME: 6:30 PM Presentation

PRESENTATION:
Andy Matthews (in person) on CSS & CFM together: Alphabet Soup or Best
Friends Forever? 
 
CSS & CFM together: Alphabet Soup or Best Friends Forever?
Combining the power of Coldfusion with the flexibility and reusability of
Cascading Stylesheets. 
 
In this presentation, Andy will cover the basics of CSS.
-How to set up an efficient stylesheet and avoid a maze of classes and ids
-Define styles once and allow their values to cascade through child elements
-Using Coldfusion to set values in your stylesheet
 
SPEAKER BIO:
http://www.commadelimited.com 
 
ACROBAT CONNECT INFORMATION:
This meeting will be broadcast via Connect.
 
http://mmusergroup.adobe.acrobat.com/r78187836/ 
 

 
Andy Matthews
Senior Coldfusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com  
 


dealerskinslogo.bmp
Description: Windows bitmap


[jQuery] Draggables: detecting if I'm in a region after stopping

2007-04-26 Thread [EMAIL PROTECTED]

Hi,

What is the best way to do this?  I want to check, for a ghosted
draggable object, that when the user let's go of the draggable (onStop
event fires), how can I tell if any part of my dragged object
intersects with another DIV on screen?

Thanks, - Dave



[jQuery] Re: Getting href value

2007-04-26 Thread Mike Alsup

Are you forgetting the $ ?

$('div.nav_one_selected a').attr('href');

Mike

> I was attempting to read the href of the anchor tag like this:
>
> var initlink = ('a', 'div.nav_one_selected').attr("href");
>
> I also tried
> var initlink = ('div.nav_one_selected/a').attr("href");
>
> I get an error like: ('a', 'div.nav_one_selected').attr is not a function

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] Getting href value

2007-04-26 Thread Shelane Enos

I have this:
Index

I was attempting to read the href of the anchor tag like this:

var initlink = ('a', 'div.nav_one_selected').attr("href");

I also tried
var initlink = ('div.nav_one_selected/a').attr("href");

I get an error like: ('a', 'div.nav_one_selected').attr is not a function

I'm not sure what I'm doing wrong here.



[jQuery] cant get autocomplete to work

2007-04-26 Thread bdee1

i have been tryign for a while to get autocomplete to work on a page
of my internal website with no success.  i have used it before on
other sites but for some reason i can't get it to work here:

i know that the autoComplete_PhoneList.cfm and
autoComplete_docsearch.cfm files return valid xml data.

below is my code - can anyone help??


http://www.w3.org/1999/xhtml";>


Sunnyview Rehabilitation Hospital Intranet












  
  
  



//whenthe DOM is ready (page is loaded)
$(document).ready(function() {
//autocomplete for Document Search on index.cfm
$('#autocomplete1').Autocomplete(
 {
 source: 'autocomplete_docSearch.cfm',
 delay: 50,
 fx: {
 type: 'slide',
 duration: 100
 },
 autofill: false,
 helperClass: 'autocompleter',
 selectClass: 'selectAutocompleter',
 minchars: 1
 }
 );

// Autocomplete for Phone List Search
$('#autocompletePhone').Autocomplete(
 {
 source: 'autocomplete_PhoneList.cfm',
 delay: 50,
 fx: {
 type: 'slide',
 duration: 100
 },
 autofill: false,
 helperClass: 'autocompleter',
 selectClass: 'selectAutocompleter',
 minchars: 1
 }
 );

});





.autocompleter
{
border: 1px solid #6FBEFF;
width: 250px;
background-color: #EFF8FF;
}
.autocompleter ul li
{
padding: 2px 10px;
white-space: nowrap;
font-size: 11px;
}
.selectAutocompleter
{
background-color: #6FBEFF;
}














  
http://sunweb";>Home
http://sunweb/calendar";>Reserve Projector
Lunch Menu
http://sunweb/forums/viewforum.php?f=36";>Suggestion
Box

Education
  
















  
  
    


  
Last Name
First Name
  
    


  
  
  Sort by Department  Print This List  http://sunweb/
index.cfm?page=pagerlist">Pager List









Departments
http://sunweb/helpdesk";>Helpdesk
Phone 
List


What's 
New
Contact
Search
Intranet Tools



System Alerts














http://sunweb/backend/docs/Tobacco%20Free%20Environment
%20Campaign/Website%20Article%20-%20Tobacco-free.doc">
http://sunweb/backend/docs/Tobacco%20Free%20Environment
%20Campaign/Website%20Article%20-%20Tobacco-free.doc">Tobacco Free
InitiativeClick for More Information








http://www.google.com/custom";>



http://www.google.com/search";>



http://sunweb;AWFID:a2c3369fb180cb19;";
/>







  
  
Reserve Projector | Lunch Menu | http://sunweb/
suggestions">Suggestion Box | Departments | Helpdesk | http://sunweb/forums/viewforum.php?
f=13">HospitalTalk

What's New | Directory | Privacy Notice | Contact
  






[jQuery] Re: Line Wrap on Multiple Select Box

2007-04-26 Thread Ⓙⓐⓚⓔ

Sharan, I think the right way to code long lines is by inserting the return
where you want it.

Administration, Management,
 Marketing,
Realty Etc.

If a simple style like

option{white-space:pre}

works well enough for you (firefox likes it) you are done, otherwise you'll
have to re-code the  to an equivalent tag using a plugin. (which
Glen mentioned)

On 4/26/07, Sharan <[EMAIL PROTECTED]> wrote:



Yes Glen,
  here is the page which i m talking about :
http://akswebsolutions.com/projects/jobsfed3/index3.html

At the bottom under the occupations title you can see three select
boxes. now i can't increase their width but some entries may be longer
than the width of the select box. So i want that the longer entries
automatically wrap, so that the visitor can see the complete option.

Sharan.

On Apr 26, 10:12 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Could you post an example?
>
> Glen
>
> On 4/26/07, Sharan <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
> >  This isn't jquery specific. But is there any way to wrap the long
> > option in a multiple select box using javascript or any other way.
> > Even if this is not possible then what is the best way to show the
> > long options (using tooltip etc.) ? as they get cut off if the width
> > is defined.
>
> > Sharan.





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: Autocomplete plugin

2007-04-26 Thread Jörn Zaefferer


Jeff Fleitz schrieb:

$(this).next().val( data[i] ) worked Jörn, thanks.
  

Cool.

Any idea how I would make this work when the multiple attribute is
used? Right now it will return only the last value selected.  It would
be nice to capture all of the ids, delimited using the same
multipleSeparator value that the text area uses.
  
Thats a bit trickier. As you noticed, the event is called for each 
selected value. The second autocomplete in the demo appends the 
associated values to a different input one by one. In case the plugin 
handles that directly, how should it work like?


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Autocomplete plugin

2007-04-26 Thread Jeff Fleitz

$(this).next().val( data[i] ) worked Jörn, thanks.

Any idea how I would make this work when the multiple attribute is
used? Right now it will return only the last value selected.  It would
be nice to capture all of the ids, delimited using the same
multipleSeparator value that the text area uses.

Jeff


> Try $("#suggest2+pk").val( data[1] ) or $(this).next().val( data[i] );
> And first check if the "#suggest2+pk" selector really selects your
> hidden input.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de



[jQuery] Re: Line Wrap on Multiple Select Box

2007-04-26 Thread Glen Lipka

In Firefox you can put "white-space: normal" on the  tag.
Couldn't seem to figure it out in IE.

Maybe take a look at EXT's combobox.
http://www.extjs.com/deploy/ext/examples/form/combos.html

Check the plugins on jquery.com to see if someone made a multiple select box
replacement.

Hope this helps a little.

Glen

On 4/26/07, Sharan <[EMAIL PROTECTED]> wrote:



Yes Glen,
  here is the page which i m talking about :
http://akswebsolutions.com/projects/jobsfed3/index3.html

At the bottom under the occupations title you can see three select
boxes. now i can't increase their width but some entries may be longer
than the width of the select box. So i want that the longer entries
automatically wrap, so that the visitor can see the complete option.

Sharan.

On Apr 26, 10:12 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Could you post an example?
>
> Glen
>
> On 4/26/07, Sharan <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
> >  This isn't jquery specific. But is there any way to wrap the long
> > option in a multiple select box using javascript or any other way.
> > Even if this is not possible then what is the best way to show the
> > long options (using tooltip etc.) ? as they get cut off if the width
> > is defined.
>
> > Sharan.




[jQuery] Re: jQuery include plugin

2007-04-26 Thread Tsz Ming WONG


Hello,

If you want to extend your plugin, you might find dojo's
implementation is a very good reference:

dojo.hostenv.loadUri: Loads JavaScript from a URI

and

don't forget dj_global.eval() as Christof explained.

all from: http://dojotoolkit.org/api


--
Best Regards,
tszming

On 4/26/07, pdp <[EMAIL PROTECTED]> wrote:


I thought that you may find this plugin interesting:

http://www.gnucitizen.org/projects/jquery-include/



[jQuery] Re: Viewing all handlers bound to an element?

2007-04-26 Thread Brandon Aaron


jQuery stores the handlers on the element in an expando property. You
can loop through this property to see which handlers are there.

var element = $('#someElement')[0];
for ( var type in element.$events )
   for ( var handler in element.$events[type] )
   console.log( 'type: ' + type + ' handler: ' + handler );

Note that in older versions of jQuery the $events expando is actually
just events (without the $).

As a side note you might find this short post interesting:
http://www.learningjquery.com/2007/03/selecting-elements-by-properties-and-dom-expandos

--
Brandon Aaron

On 4/26/07, Starbow <[EMAIL PROTECTED]> wrote:


Does anyone know if there is an easy way to see what handlers are
attached to a given element?

thanks,
-tao




[jQuery] Re: Line Wrap on Multiple Select Box

2007-04-26 Thread Sharan

Yes Glen,
  here is the page which i m talking about :
http://akswebsolutions.com/projects/jobsfed3/index3.html

At the bottom under the occupations title you can see three select
boxes. now i can't increase their width but some entries may be longer
than the width of the select box. So i want that the longer entries
automatically wrap, so that the visitor can see the complete option.

Sharan.

On Apr 26, 10:12 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Could you post an example?
>
> Glen
>
> On 4/26/07, Sharan <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
> >  This isn't jquery specific. But is there any way to wrap the long
> > option in a multiple select box using javascript or any other way.
> > Even if this is not possible then what is the best way to show the
> > long options (using tooltip etc.) ? as they get cut off if the width
> > is defined.
>
> > Sharan.



[jQuery] Viewing all handlers bound to an element?

2007-04-26 Thread Starbow

Does anyone know if there is an easy way to see what handlers are
attached to a given element?

thanks,
-tao



[jQuery] Re: Show and Hide DIV

2007-04-26 Thread Sean Catchpole


On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

No need to store anything in a variable.  That gets murky.  Just hide
them all via a selection on class and then show the one you want after
that.  Then you need not remember anything about state.


That takes more processing time, and for only a tiny fraction of the
vast memory, one can speed the process by storing the last showed div.
Consider if there were 1000 links, then storing the div is faster. But
alas, hiding them all each time is safer when considering simultaneous
clicks.

~Sean


[jQuery] Re: Show and Hide DIV

2007-04-26 Thread [EMAIL PROTECTED]


No need to store anything in a variable.  That gets murky.  Just hide
them all via a selection on class and then show the one you want after
that.  Then you need not remember anything about state.

-khoker



On Apr 26, 10:49 am, "Sean Catchpole" <[EMAIL PROTECTED]>
wrote:
> You're on the right track. To only show one at a time, simply store
> the last one open in a variable and close it before opening the new
> one, here's an example:
>
> var currOpen;
> $("scTopNavList a").click(function(){
> if(currOpen) currOpen.hide("fast");
> currOpen = $(this.href);
> currOpen.show("fast");
> return false;
>
> });
>
> ~Sean



[jQuery] Re: Line Wrap on Multiple Select Box

2007-04-26 Thread Glen Lipka

Could you post an example?

Glen

On 4/26/07, Sharan <[EMAIL PROTECTED]> wrote:



Hello,
 This isn't jquery specific. But is there any way to wrap the long
option in a multiple select box using javascript or any other way.
Even if this is not possible then what is the best way to show the
long options (using tooltip etc.) ? as they get cut off if the width
is defined.

Sharan.




[jQuery] Re: datePicker v2 beta

2007-04-26 Thread Jörn Zaefferer


Sam Collett schrieb:

 Positioning may be done with my other plugin (http://
www.texotela.co.uk/code/jquery/below/), which has a bug that I can't
seem to fix - zoom affects positioning if you don't refresh the page
(which incidentally occurs with your plugin as well)
  
Cool, thanks for bringing this up again. Just built it into the 
autocomplete plugin, works great.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Interface: bounce with fixed positioning?

2007-04-26 Thread Jörn Zaefferer


Klaus Hartl schrieb:


Klaus Hartl schrieb:


Hi there,

I wanted to use Interface's bounce effect for a fixed positioned 
element - an element that gets moved into view from the top and than 
bounces a little at the end (like it was falling down).


Unfortunately the effect is messed up for such fixed positioned 
element.  From a quick look it is because of the following line in 
ifxbounce.js:


if (z.oldStyle.position != 'relative' && z.oldStyle.position != 
'absolute') {

z.el.css('position', 'relative');
}

There's no check for "fixed", thus my element gets relative 
positioned when applying the effect.


I could easily fix this, but I don't know which files else I have to 
include? Can anybody help me?


In addition, I think this should go into Interface anyway.

John made a cool effect for a new download manager section that 
bounces down exactly the way I need to have it. Does anybody know if 
this is available somewhere?



Happy coding, in a hurry, Klaus



Found the dependencies section... it's working already... But I'm 
still interested in how the effect for the download manager was done.


Moreover I think it would be useful to be able to specify the number 
of times the element shall bounce. I customized it to 3 for my current 
needs for example.


Should I commit my fix?

I'd find that quite useful.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Show and Hide DIV

2007-04-26 Thread Sean Catchpole


You're on the right track. To only show one at a time, simply store
the last one open in a variable and close it before opening the new
one, here's an example:

var currOpen;
$("scTopNavList a").click(function(){
   if(currOpen) currOpen.hide("fast");
   currOpen = $(this.href);
   currOpen.show("fast");
   return false;
});

~Sean


[jQuery] Re: Obsolete xml data islands

2007-04-26 Thread Sean Catchpole


Hi Dave,

On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Sean, I am fishing...If you are supporting a jQuery app, how much
effort goes into supporting browser changes and incompatibilities?. - Dave


Most of the browser incompatibilities I've had to deal with have been
with CSS not with javascript... however if I've run across something
odd it has been outside of jQuery's control and my own responsibility.
I've been on this mailing list for a long time and the jQuery team is
really good about making sure the core and basic plugins work in all
browsers, and also make an active effort to fix bugs.

Since your fishing, let me bite:
Time is becoming very expensive and jQuery does an excellent job of
minimizing the time spent coding in javascript and hides some of the
ugliness that is inevitable in a cross-browser language.

~Sean


[jQuery] Re: problem with auto submit upload file

2007-04-26 Thread Mike Alsup


I think the change event on the form element is unreliable.  Try
putting your change handler on the file input.

$('#jxbg').change( function() {...


Mike


On 4/26/07, Vaska <[EMAIL PROTECTED]> wrote:


Works fine in FF, Safari...IE doesn't like this...been toying with
this for hours and havne't gotten anywhere with it. Am I missing
something obvious?

It works via an iFrame...

$(document).ready(function()
{
$('#iform').change( function() {
$('#iform')[0].submit();
parent.updating();
});
});

\n";








[jQuery] Re: Show and Hide DIV

2007-04-26 Thread Andy Matthews

One of the problems is that LI tags don't really make good candidates for
showing and hiding like you're trying.

Another problem is that in your code is that you're trying to show/hide an A
tag which is an inline tag. You'd be better off changing your code to
something like this:


Pippo
Pluto


Then working with it. You'll probably get better results.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Massimiliano Marini
Sent: Thursday, April 26, 2007 10:06 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Show and Hide DIV


Hi all,

I'm in this situation :


Pippo
Pluto 

when I click on Pippo I show the div #divPippo e vice-versa with Pluto with
this code (I don't know if is good but it work :) ) : 

 $("a").click(function(){
var div = ($(this).attr("href"));
$(div).show("fast");
return false;
  });

I want this behavior: when I click on Pippo the divPippo must appear but if
another div (example Pluto) is opened it must be closed.

In my example I've reported 2 href (pippo and pluto), but if I want to do
this with a lot of link hows can I do this? Some suggestion? Thanks.

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay





[jQuery] Re: jQuery include plugin

2007-04-26 Thread Christof Donat

Hi,

> I thought that you may find this plugin interesting:
>
> http://www.gnucitizen.org/projects/jquery-include/

Your code creates a script tag via DOM. That does not work on some Safari 
Versions. To get around that you have to use a XMLHttpRequest and eval(), 
which gives you a real pain in your backside with IE (use 
window.executeScript instead of eval, etc.)

If you whant to see a solution that works in most cases, look at 
www.jsPax.org. JsPax is a full package system, but most of its code doesn't 
deal with packages, but with dynamically loading scripts.

Christof


[jQuery] Line Wrap on Multiple Select Box

2007-04-26 Thread Sharan

Hello,
 This isn't jquery specific. But is there any way to wrap the long
option in a multiple select box using javascript or any other way.
Even if this is not possible then what is the best way to show the
long options (using tooltip etc.) ? as they get cut off if the width
is defined.

Sharan.



[jQuery] Show and Hide DIV

2007-04-26 Thread Massimiliano Marini

Hi all,

I'm in this situation :


Pippo
Pluto


when I click on Pippo I show the div #divPippo e vice-versa with Pluto
with this code (I don't know if is good but it work :) ) : 

 $("a").click(function(){
var div = ($(this).attr("href"));
$(div).show("fast");
return false;
  });

I want this behavior: when I click on Pippo the divPippo must appear
but if another div (example Pluto) is opened it must be closed.

In my example I've reported 2 href (pippo and pluto), but if I want to
do this with a lot of link hows can I do this? Some suggestion? Thanks.

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---



[jQuery] jQuery include plugin

2007-04-26 Thread pdp

I thought that you may find this plugin interesting:

http://www.gnucitizen.org/projects/jquery-include/

all this plugin does, is to provide with mechanism for including
external js files.. so you can do stuff like this:

$.include('http://path/to/script1.js');
$.include('http://path/to/script2.js');

$(document).ready(function () {
  // the files are loaded, so now you can use them...
});

$.include('http://path/to/script3.js');
$.include('http://path/to/script4.js');



[jQuery] problem with auto submit upload file

2007-04-26 Thread Vaska


Works fine in FF, Safari...IE doesn't like this...been toying with  
this for hours and havne't gotten anywhere with it. Am I missing  
something obvious?


It works via an iFrame...

$(document).ready(function()
{
$('#iform').change( function() {
$('#iform')[0].submit();
parent.updating();
});
});

name='iform' id='iform'>\n";		








[jQuery] Re: Update on new travel site

2007-04-26 Thread Andy Matthews

Okay...

I played around with the site for a few minutes and it works really well.
I'm using IE7/PC and I noticed a few things that don't look quite right:

Anytime the far right sidebar changes content here's what happens:

1) Existing content fades out
2) Existing content fades back in for about a half second
3) New content suddenly appears.

It seems like you've got something out of order in your code as the center
column works flawlessly. All in all this appears to be a great site and
makes me wish I was in Europe right now riding the rails.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, April 26, 2007 8:45 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Update on new travel site


Ah...never mind. My connection dropped. The site looks awesome! 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, April 26, 2007 8:38 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Update on new travel site


I get a page not found when I click the link:
http://www.trainbreaks.com/

Is that the right one?



 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of withoutwax
Sent: Thursday, April 26, 2007 7:13 AM
To: jQuery (English)
Subject: [jQuery] Re: Update on new travel site


Thanks Mike, I think there are still a few issues to work out with regard to
cross browser compatibility. Hopefully I will get some more feedback form
our Mac/Safari and Opera users this week.

I am also going to be working on improving the site's ability to degrade
gracfully when javascript is turned off. I can see this being quite a
challenge.

On Apr 26, 12:13 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Outstanding!  I love it.
>
> Mike
>
> >https://www.trainbreaks.com







[jQuery] Re: datePicker v2 beta

2007-04-26 Thread Sam Collett

On Apr 25, 3:47 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote:
> I only just received this email even though it looks like it was sent 
> yesterday... Is anyone else still having issues with the list lagging?
>
>
>
> > Looking good. Lots of examples - although it would be nice to have
> > some CSS samples as well (or 'style packs' - Outlook 2003, Google
> > Calendar etc)
>
> Yeah - that would be nice... If anyone wants to contribute some I'll gladly 
> add them in :)
>
This is what I am working on:
http://www.texotela.co.uk/datePicker.css

Not used on the TexoTela site, but used internally.
>
>
> > Just need a time picker to complement it.
>
> > I have worked on one (http://www.texotela.co.uk/code/jquery/
> > timepicker/), but am unsure how to scroll to the currently selected
> > time (like how it does in Google calendar when creating an event) as
> > well as some other bugs (one of which can be fixed if I used the
> > dimensions plugin).
>
> Cool - the timepicker looks nice... Are you working on it now? I'm sure I saw 
> the link through the google groups interface earlier and it looked completely 
> different. It was using a select element then? And now you are creating some 
> divs?

I did change it recently after seeing that others did it and didn't
require scrolling (it wasn't a select, just a div with overflow:
auto). Positioning may be done with my other plugin (http://
www.texotela.co.uk/code/jquery/below/), which has a bug that I can't
seem to fix - zoom affects positioning if you don't refresh the page
(which incidentally occurs with your plugin as well)



[jQuery] Re: Obsolete xml data islands

2007-04-26 Thread [EMAIL PROTECTED]

Sean, I am fishing...If you are supporting a jQuery app, how much
effort goes into
supporting browser changes and incompatibilities?. - Dave

On Apr 26, 12:28 am, "Sean Catchpole" <[EMAIL PROTECTED]>
wrote:
> I'm sorry, what was the question?
>
> ~Sean



[jQuery] Re: blockui message centered to the form element

2007-04-26 Thread Mike Alsup


I don't know how you have it setup, but you should be able to simply
replace the $.blockUI call with a call like $('#myForm').block().

Mike


how do i assign it to some submit button inside of it?
im usign jorn's plugin

> Instead of using $.blockUI you can do this:
>
> $('#myForm').block('Please Wait...');
>


[jQuery] Re: fire script on return values.. how?

2007-04-26 Thread Rob Desbois

Try the following code. It sends the request with item1 set to "value1", and
assumes that the returned data will contain a value named 'return1'.
In the response function you can check the returned data and submit a new
response if required.

// send data:
$.ajax({"type": "POST",
  "url": "foo.php",
  "data": {"item1": "value1"},
  "dataType": "json",
  "success": on_ajax_response});

// called on successful response
function on_ajax_response(json)
{
  alert('return value: ' + json.return1);
}


rob.

On 4/26/07, amircx <[EMAIL PROTECTED]> wrote:




hey
i got a script that returns me on submit ajax json data... somthing like
{status:1,data: loading secound script}
how can i do a script that waits to data to be back and then execute
another
script?

user submit>proccessing data from another php page>return results (if its
status 1 - then run a secound php script ...}
--
View this message in context:
http://www.nabble.com/fire-script-on-return-values..-how--tf3651533s15494.html#a10200072
Sent from the JQuery mailing list archive at Nabble.com.





--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


[jQuery] Re: blockUI plugin blocking form submit on IE 6 & 7

2007-04-26 Thread Mike Alsup


Ugh, that's nasty.  Yes, this is a layout issue with IE due to its
whacky "hasLayout" notion.  The plugin should force that property to
true (so that you don't need an explicit height).  I will make that
change and upload a new version tonight.  In the mean time, you can
replace the "block" method in the plugin with the following:
$.fn.block = function(msg, css) {
   return this.each(function() {
if (!this.$pos_checked) {
   if ($.css(this,"position") == 'static') {
   this.style.position = 'relative';
   this.style.zoom = 1; // force 'hasLayout' in IE
   }
   this.$pos_checked = 1;
   }
   $.blockUI.impl.install(this, msg, css);
   });
};


Thanks for taking the time to put this example together, Stuart.

Cheers.

Mike



element (form in this case) doesn't have a defined width, IE aligns
the top-left corner of the overlay with the top-left corner of the
first child element. Or something like that. In my example, if you
remove the "text-align" style from the H1, the overlay follows it to
the left. Similarly, if you remove the H1 tag altogether, the overlay


[jQuery] Re: Update on new travel site

2007-04-26 Thread Andy Matthews

Ah...never mind. My connection dropped. The site looks awesome! 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, April 26, 2007 8:38 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Update on new travel site


I get a page not found when I click the link:
http://www.trainbreaks.com/

Is that the right one?



 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of withoutwax
Sent: Thursday, April 26, 2007 7:13 AM
To: jQuery (English)
Subject: [jQuery] Re: Update on new travel site


Thanks Mike, I think there are still a few issues to work out with regard to
cross browser compatibility. Hopefully I will get some more feedback form
our Mac/Safari and Opera users this week.

I am also going to be working on improving the site's ability to degrade
gracfully when javascript is turned off. I can see this being quite a
challenge.

On Apr 26, 12:13 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Outstanding!  I love it.
>
> Mike
>
> >https://www.trainbreaks.com






[jQuery] Re: Update on new travel site

2007-04-26 Thread Andy Matthews

I get a page not found when I click the link:
http://www.trainbreaks.com/

Is that the right one?



 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of withoutwax
Sent: Thursday, April 26, 2007 7:13 AM
To: jQuery (English)
Subject: [jQuery] Re: Update on new travel site


Thanks Mike, I think there are still a few issues to work out with regard to
cross browser compatibility. Hopefully I will get some more feedback form
our Mac/Safari and Opera users this week.

I am also going to be working on improving the site's ability to degrade
gracfully when javascript is turned off. I can see this being quite a
challenge.

On Apr 26, 12:13 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Outstanding!  I love it.
>
> Mike
>
> >https://www.trainbreaks.com





[jQuery] Re: Autocomplete plugin problem

2007-04-26 Thread Dan G. Switzer, II

Stefan,

>i did some test/demos to play with autocomplete plugin.
>
>   http://kilp.net/test/autocomplete/autocomplete-demo.html
>
>i want a kind of highlighted searchresult. for that reason my php script
>(sever-side) generates data that looks like
>
> |  | id1 \n
> |  | id1 \n

I just looked at the output your server side template is producing and it
looks like this:

Daniel  Johns

|Daniel Johns

|84

All of that should be on a single line. Using a tool like Firebug makes it
easy to view what you're AJAX calls are returning.

Here's an example of your output:
http://kilp.net/test/autocomplete/namesearch.php?q=jo&limit=20

Each record should be in the format:
Daniel Johns|Daniel Johns|84

Also, you're using Joern's version of the plugin, so adding  tags to
highlight text is going to cause problems (because his code also wraps
matches in  tags.)

You'd be better off controlling the way his  tags look via CSS
styling.

-Dan




[jQuery] fire script on return values.. how?

2007-04-26 Thread amircx


hey
i got a script that returns me on submit ajax json data... somthing like
{status:1,data: loading secound script}
how can i do a script that waits to data to be back and then execute another
script?

user submit>proccessing data from another php page>return results (if its
status 1 - then run a secound php script ...}
-- 
View this message in context: 
http://www.nabble.com/fire-script-on-return-values..-how--tf3651533s15494.html#a10200072
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: plugins page!!!!

2007-04-26 Thread Andy Matthews

I have to agree about the page refresh. There's not THAT many plugins that
we shouldn't be able to read all of them in (just the name and maybe a one
sentence description). Then click that to read the details. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ariel Jakobovits
Sent: Wednesday, April 25, 2007 1:46 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: plugins page


Very nice, but...

1) don't like the page refresh all that much

2) I think we need categories and sub categories, so if the Categories tree
opened, and we had Sub categories that opened, and those refreshed the
page...that would be better.

User Interface is just too broad for the list of things that are in that
category now.


- Original Message 
From: Brandon Aaron <[EMAIL PROTECTED]>
To: jquery-en@googlegroups.com
Sent: Wednesday, April 25, 2007 6:11:38 AM
Subject: [jQuery] Re: plugins page


The new plugins page is located at http://jquery.com/plugins/

I believe it is still a work in progress but plugin devs might want to start
moving their stuff over.

--
Brandon Aaron

On 4/25/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote:
>
> please oh please someone on the jquery committee respond to my claim that
the plugins page is getting crazy.
>
> we need sub categories for the categories.
>
> I am volunteering to work on updating the page according to instructions
that are given to me.
>
>
>




[jQuery] Re: blockui message centered to the form element

2007-04-26 Thread amircx


how do i assign it to some submit button inside of it?
im usign jorn's plugin


malsup wrote:
> 
> 
> Instead of using $.blockUI you can do this:
> 
> $('#myForm').block('Please Wait...');
> 
> and then
> 
> $('#myForm').unblock();
> 
> when you want to remove the block.
> 
> Mike
> 
>> hey... is there a way to display a loading message using blockui or
>> somthing
>> similar that only shows the "loading message" inside the form element and
>> align it to center of the form instad of putting all the screen black ?
>>
>> its looks bad if i got a website of news papaer and i got 4 fields of
>> inputs
>> in the bottom of the page, its black screen my whole website... :P
> 
> 

-- 
View this message in context: 
http://www.nabble.com/blockui-message-centered-to-the-form-element-tf3651315s15494.html#a10200070
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: ANNOUNCE: Another LightBox Option - Interface ImageBox

2007-04-26 Thread Su


Hm. This'll take more poking to make sure, but I think the flash is
/not/ happening in the old Imagebox demo on the Interface site, so
that might be a place to start looking for differences.
I have to look into actually implementing this at the moment, but will
try and have a peek today.

On 4/25/07, Rey Bango <[EMAIL PROTECTED]> wrote:


Yep, I see the flash as well. Not sure what to make of it.

Rey...

Su wrote:
> This is really gorgeous, Rey.
>
> Is anybody else seeing a flash upon loading a new image in Firefox 2?
> I'd thought it was consistent, but it's not, so now I'm just confused.
> So far, I can only see that it never happens on loading the first
> image in a set, only when switching, just not every time.
>
>
> On 4/24/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>> In searching for a LightBox option that was similar to this:
>>
>> http://www.huddletogether.com/projects/lightbox2/
>>
>> I came upon this version which is currently not listed in the plugins
>> section:
>>
>> http://www.intelliance.fr/jquery/imagebox/
>>
>> The animation and navigation differs from ThickBox and the other
>> lightbox plugins currently available and is very smooth overall.
>>
>> The original version was done by Interface developer Stefan Petre and
>> has since received some nice revisions and fixes courtesy of Matthieu
>> Paineau.
>>
>> Definitely take a look at it as it offers a nice UI experience.
>>
>> Rey...
>> --
>> BrightLight Development, LLC.
>> 954-775- (o)
>> 954-600-2726 (c)
>> [EMAIL PROTECTED]
>> http://www.iambright.com
>>
>

--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com



[jQuery] Re: blockui message centered to the form element

2007-04-26 Thread Mike Alsup


Instead of using $.blockUI you can do this:

$('#myForm').block('Please Wait...');

and then

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

when you want to remove the block.

Mike


hey... is there a way to display a loading message using blockui or somthing
similar that only shows the "loading message" inside the form element and
align it to center of the form instad of putting all the screen black ?

its looks bad if i got a website of news papaer and i got 4 fields of inputs
in the bottom of the page, its black screen my whole website... :P


[jQuery] Re: Cannot set height or width of div

2007-04-26 Thread Brandon Aaron


.width() and .height() can also set the value.

What is being passed to showAjaxLoader? Could you post an example page
or at least some of the surrounding code?

--
Brandon Aaron

On 4/26/07, Steve Blades <[EMAIL PROTECTED]> wrote:

.width() and .height() are used to get the w and h values. You would use
$([selector]).css("[attr]":"[value]") to set a style value.

Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer


http://blog.cutterscrossing.com

"The best way to predict the future is to help create it"

On 4/26/07, juliandormon <[EMAIL PROTECTED]> wrote:
>
> I am simply trying to set the height and width of a div.
> I have included the dimensions.js file as well a jQuery
>
> I can get the height and width - just cannot set it.
>
> Please help.
>
> //Swaps current div with ajax loader div
> function showAjaxLoader(divToReplace){
> var dtr = document.getElementById(divToReplace);
> var w = $(dtr).width();
> var h = $(dtr).height();
> $('div.ajaxLoader').width(w);
> $('div.ajaxLoader').height(h);
> alert(w + ' ' + h);
> }
>
>
> Also tried this:
>
> //Swaps current div with ajax loader div
> function showAjaxLoader(divToReplace){
> var dtr = document.getElementById(divToReplace);
> var w = $(dtr).width();
> var h = $(dtr).height();
> $('div.ajaxLoader').css('width',w);
> $('div.ajaxLoader').css('height',h);
> alert(w + ' ' + h);
> }
>
>



--
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
---
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present


[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-26 Thread Scott Sauyet


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

Wait, I see what you're saying... the same link would serve both
JS and non-JS users.  How would a link that would work for both
situations be coded?


Seems like you could have two different links:

http://mylink/ajax.cfm
http://mylink/query.cfm

Then you'd set js-on to 'display: none;' by default and then turn it on
with jQuery (and turn off 'js-off').


I would recommend that you don't do this.  Rather, use JS to convert the 
link from one format to the other.  I suggested added "ajax=true" to the 
query parameter, but there are many other ways it could be done.  But if 
you have two links this way, those browsing with a non-standard device 
(non-CSS, non-JS) will have one working and one broken link available... 
not pretty.


  -- Scott



[jQuery] Re: blockUI plugin blocking form submit on IE 6 & 7

2007-04-26 Thread Stuart

Mike, I didn't bother to send you a screenie since I got this example
modified to show the overlay issue. It seems that if the blocked
element (form in this case) doesn't have a defined width, IE aligns
the top-left corner of the overlay with the top-left corner of the
first child element. Or something like that. In my example, if you
remove the "text-align" style from the H1, the overlay follows it to
the left. Similarly, if you remove the H1 tag altogether, the overlay
aligns with the top-left of the table. This behavior is only evident
to me in IE6. It took me several hours of systematically eliminating
CSS styles and page elements in the compiled output of my application
to isolate the behavior and add those conditions to the sample. Why
don't I ever get bored with this stuff? I can simply apply a "width"
style declaration to the form to make it work but that seems "wrong."
Something is telling me that this is the result of a known IE bug but
I can't seem to pull it from memory. It will probably be blatantly
obvious to others.

Thanks again!

http://www.w3.org/
TR/html4/strict.dtd">


blockUI Test




#button { text-align: center; }
#myForm h1 { text-align: center; }


$(function() {
$.blockUI.defaults.elementMessage = "Please Wait...";
$.extend($.blockUI.defaults.overlayCSS, { backgroundColor: '#00f' });
$.extend($.blockUI.defaults.elementMessageCSS, {
 color: '#00a',
 backgroundColor: '#fff',
 border: '2px solid #2f4f4f'

});

$(function () {
$("#myForm").submit(function() {
$(this).block();
setTimeout(test, 1000);
return false;
});

});

function test() {
$("#myForm")[0].submit();

}
} );




   First Name: 
   Last Name: 
   Age: 


blockUI Test
 
 
 First Name
 Last Name
 Age
 
 
 
 
 
 
 









On Apr 25, 8:06 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> > I thank you for providing support for your wonderful plugin. I'll be
> > using this one a lot. Probably even for things it wasn't intended :-)
>
> Well you're already doing that, Stuart!  This is an unusual use-case,
> blocking a page that you are leaving.
>
> > I'm not sure I fully understand the setTimeout() bit.
> > Am I correct in assuming that it is used to allow the plugin to
> > complete the DOM manipulation before the submit event fires?
>
> Yes.  Normally this is not necessary because typically blockUI is used
> during async operations, so the browser (IE) has idle time to fully
> render everything properly.
>
> > Does the plugin remove the blocked element from the DOM
> > when it is blocked or at least sometime during the blocking
> > process?
>
> No.  The blocked element, the form in your case, is not removed from the DOM.
>
> > If you would be so kind as to providing a quick run-down on how
> > the iframe is positioned in your code
>
> The positioning code is browser dependent.  For IE6 (and IE7 in quirks
> mode), style expressions are used.
>
> Mike



[jQuery] blockui message centered to the form element

2007-04-26 Thread amircx


hey... is there a way to display a loading message using blockui or somthing
similar that only shows the "loading message" inside the form element and
align it to center of the form instad of putting all the screen black ?

its looks bad if i got a website of news papaer and i got 4 fields of inputs
in the bottom of the page, its black screen my whole website... :P

anyone did somthing similar?

-- 
View this message in context: 
http://www.nabble.com/blockui-message-centered-to-the-form-element-tf3651315s15494.html#a10199363
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Update on new travel site

2007-04-26 Thread withoutwax

Thanks Mike, I think there are still a few issues to work out with
regard to cross browser compatibility. Hopefully I will get some more
feedback form our Mac/Safari and Opera users this week.

I am also going to be working on improving the site's ability to
degrade gracfully when javascript is turned off. I can see this being
quite a challenge.

On Apr 26, 12:13 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Outstanding!  I love it.
>
> Mike
>
> >https://www.trainbreaks.com



[jQuery] Re: Cannot set height or width of div

2007-04-26 Thread Bish

hi!!

On Apr 26, 6:25 am, juliandormon <[EMAIL PROTECTED]> wrote:
> I am simply trying to set the height and width of a div.
> I have included the dimensions.js file as well a jQuery
>
> I can get the height and width - just cannot set it.
>
> Please help.
>
> //Swaps current div with ajax loader div
> function showAjaxLoader(divToReplace){
> var dtr = document.getElementById(divToReplace);
> var w = $(dtr).width();
> var h = $(dtr).height();
> $('div.ajaxLoader').width(w);
> $('div.ajaxLoader').height(h);
> alert(w + ' ' + h);
>
> }
>
> Also tried this:
>
> //Swaps current div with ajax loader div
> function showAjaxLoader(divToReplace){
> var dtr = document.getElementById(divToReplace);
> var w = $(dtr).width();
> var h = $(dtr).height();
> $('div.ajaxLoader').css('width',w);
> $('div.ajaxLoader').css('height',h);
> alert(w + ' ' + h);
>
>
>
> }- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: Cannot set height or width of div

2007-04-26 Thread Steve Blades

.width() and .height() are used to get the w and h values. You would use
$([selector]).css("[attr]":"[value]") to set a style value.

Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://blog.cutterscrossing.com

"The best way to predict the future is to help create it"


On 4/26/07, juliandormon <[EMAIL PROTECTED]> wrote:



I am simply trying to set the height and width of a div.
I have included the dimensions.js file as well a jQuery

I can get the height and width - just cannot set it.

Please help.

//Swaps current div with ajax loader div
function showAjaxLoader(divToReplace){
var dtr = document.getElementById(divToReplace);
var w = $(dtr).width();
var h = $(dtr).height();
$('div.ajaxLoader').width(w);
$('div.ajaxLoader').height(h);
alert(w + ' ' + h);
}


Also tried this:

//Swaps current div with ajax loader div
function showAjaxLoader(divToReplace){
var dtr = document.getElementById(divToReplace);
var w = $(dtr).width();
var h = $(dtr).height();
$('div.ajaxLoader').css('width',w);
$('div.ajaxLoader').css('height',h);
alert(w + ' ' + h);
}





--
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
---
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present


[jQuery] Re: Several Carousel

2007-04-26 Thread agent2026


Yes, it's possible.  Just give each carousel a unique id.  You can then set
the styles of each individually.

Adam
-- 
View this message in context: 
http://www.nabble.com/Several-Carousel-tf3648594.html#a10197850
Sent from the jCarousel mailing list archive at Nabble.com.



[jQuery] Cannot set height or width of div

2007-04-26 Thread juliandormon

I am simply trying to set the height and width of a div.
I have included the dimensions.js file as well a jQuery

I can get the height and width - just cannot set it.

Please help.

//Swaps current div with ajax loader div
function showAjaxLoader(divToReplace){
var dtr = document.getElementById(divToReplace);
var w = $(dtr).width();
var h = $(dtr).height();
$('div.ajaxLoader').width(w);
$('div.ajaxLoader').height(h);
alert(w + ' ' + h);
}


Also tried this:

//Swaps current div with ajax loader div
function showAjaxLoader(divToReplace){
var dtr = document.getElementById(divToReplace);
var w = $(dtr).width();
var h = $(dtr).height();
$('div.ajaxLoader').css('width',w);
$('div.ajaxLoader').css('height',h);
alert(w + ' ' + h);
}



[jQuery] Re: Interface: bounce with fixed positioning?

2007-04-26 Thread Klaus Hartl


Klaus Hartl schrieb:


Hi there,

I wanted to use Interface's bounce effect for a fixed positioned element 
- an element that gets moved into view from the top and than bounces a 
little at the end (like it was falling down).


Unfortunately the effect is messed up for such fixed positioned element. 
 From a quick look it is because of the following line in ifxbounce.js:


if (z.oldStyle.position != 'relative' && z.oldStyle.position != 
'absolute') {

z.el.css('position', 'relative');
}

There's no check for "fixed", thus my element gets relative positioned 
when applying the effect.


I could easily fix this, but I don't know which files else I have to 
include? Can anybody help me?


In addition, I think this should go into Interface anyway.

John made a cool effect for a new download manager section that bounces 
down exactly the way I need to have it. Does anybody know if this is 
available somewhere?



Happy coding, in a hurry, Klaus



Found the dependencies section... it's working already... But I'm still 
interested in how the effect for the download manager was done.


Moreover I think it would be useful to be able to specify the number of 
times the element shall bounce. I customized it to 3 for my current 
needs for example.


Should I commit my fix?


-- Klaus












  1   2   >