[jQuery] [SITE] Site

2008-05-20 Thread Dragan Krstic
http://www.eurovision.tv/ on pages dedicated to each contestant. At least,
they use lyte(light)box and sifr.


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


[jQuery] [SITE] www.velikibrat.co.yu

2008-03-04 Thread Dragan Krstic
The new season of Serbian Big Brother started and they made new site that
uses jquery. I found pngfix, round corners and more

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


[jQuery] Re: say goodbye to sifr

2008-02-11 Thread Dragan Krstic
I will stick with sifr. Microsoft tried their solution for fonts on web, but
without success. Safari doesn't have great share on browser market.

On 10/02/2008, schnuck <[EMAIL PROTECTED]> wrote:
>
>
>
> http://www.appleinsider.com/articles/08/02/07/apples_safari_3_1_to_support_downloadable_web_fonts_more.html
>



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


[jQuery] Re: Simple accordion

2008-01-19 Thread Dragan Krstic
This accordion made lot of buzz few months ago. Search trough group to find
details. This accordion is far from simple, because it is inverted than
normal one. You can steal my code from this one:

http://www.swedbet.eu/help.html

PS: I'm pretty sure that someone from apples web team follow this group.
They improved that bottom left menu after our discussion. ;)

On 19/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Look here is something interesting http://www.apple.com/iphone/ ( left
> bottom)
> I tried to make a script like that., but I have an animating problem.
>
>  "http://www.w3.org/TR/html4/loose.dtd";>
> 
> 
>   http://code.jquery.com/jquery-latest.js";>
>
>   
>   $(document).ready(function(){
> all = $("#all > *");
> all.mouseover (
> function() {
> $(".curent").animate({height:'100px'});
> $(this).animate({height:'200px'});
> all.not(this).attr("class","cel");
> $(this).attr("class","curent");
> }
> );
>
>   });
>   
>   
> .cel {
> background:#7D7D7D;
> height:100px;
> width:100px;
> border:1px solid black;
> }
> .curent {
> background:#969696;
> width:100px;
> border:1px solid black;
> }
>   
> 
> 
> 
> 
> div 1
> 
> 
> div 1
> 
> 
> div 1
> 
> 
> div 1
> 
> 
> 
> 
>
> I want the to have the same height overall.
> Just test the script, and you will know my problem .
> Please Help ME!
>



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


[jQuery] Re: remove a single css-property?

2007-09-05 Thread Dragan Krstic
I think I understand.

When some element is hidden by hide, display: none; is added to inline
style.

In: $('#click').click(function() { $('#test').css('FILTER', '');
$('#test')[0].style.filter = ''; $('#rmvLink1').hide('slow');});
only filter property is removed, and filter is defined in style list

In: $('#click2').click(function() { $('#test2').removeAttr('style');
$('#rmvLink2').hide('slow');});  all inline style(s) are removed but not
styles defined in style list.

I hope I will help you.

2007/9/5, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
>
> On 5 Sep., 15:00, "Dragan Krstic" <[EMAIL PROTECTED]> wrote:
> > $(".class").css("propertyName","");
>
> Hi again *g*
> perhaps i wasn't precision enough. I won't reset the style-property.
> That is already done by »show()«. I need to remove the property at
> all.
>
> i made a little demo, to show the what i mean:
> http://schep.de/test/test-case/
>
> button1 (#test) will after a click never occure again. The inline-
> style »filter: ;« isn't removed.
> button2 (#test2) is ok, but i've to remove the whole inline-style.
>
> Do you understand what i mean?
>
> greetings
> Patric
>
>


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


[jQuery] Re: jQuery Merchandise for Sale. Help Support the Project

2007-09-05 Thread Dragan Krstic
Where can I buy Energy Dome cap?

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


[jQuery] Re: remove a single css-property?

2007-09-05 Thread Dragan Krstic
$(".class").css("propertyName","");

2007/9/5, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
>
> is there any solution to remove a single css-property?
> i've the problem, that .show() leaves >>filter: ;<< in the inline-style
> (MSIE).
> now i want to remove only this property, but only this and not e.g.
> the whole inline-style (.removeAttr('style')).
> is there a plugin or a core feature, which can help me?
>
> greetings
> Patric
>
>
> >
>


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


[jQuery] Re: Slide UP plugin?

2007-09-05 Thread Dragan Krstic
There is. Look at Interface effects slide/blinds.  If that doesn't help you
(as I have similar problem), try this:

Set container position attribute to position: relative, and overflow: hidden
Hidden part (which will be displayed during resize of container) will have
following css:

position: absolute;
bottom: 15px; /* or any value that you need*?

This will be do the trick.

2007/9/5, Andy Matthews <[EMAIL PROTECTED]>:
>
>
> I have some content that will be pinned to the bottom of the page.
> When a button inside this container is clicked, I'd like to container
> to expand vertically upwards. Is there such a plugin? If not, does
> anyone have a quick suggestion of how I might got about doing
> something like this?
>
>


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


[jQuery] Re: [jQuery][SITE] Spoted in the wild http://www.muzejistorijejugoslavije.org.yu/index.php

2007-09-01 Thread Dragan Krstic
2007/9/1, Rey Bango <[EMAIL PROTECTED]>:
>
>
> Dragan,
>
> I have to tell you that when I first looked at the url, I could swear
> this was a spam message. :)


 From me? No way.

Any way, it is museum dedicated to preserve memories to former Yugoslavia.
It is biggest museum in Serbia (by square meters of space).  Over
200.000objects were categorised into 20 collections. The Museum is
still in
development, and their focus is now on exhibitions of contemporary art and
history of Yugoslavia.

Site itself uses tabs, thickbox and some of effects. It is made by
Focusagency.info/, and their site uses jquery too.


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


[jQuery] [jQuery][SITE] Spoted in the wild http://www.muzejistorijejugoslavije.org.yu/index.php

2007-09-01 Thread Dragan Krstic
This is one of the most significant institution in Serbia. They use tabs and
thickbox


[jQuery] Re: height of div

2007-08-30 Thread Dragan Krstic
In this situations, I prefer to use dimension plugin. It is quite charming
to use it.

2007/8/30, b0bd0gz <[EMAIL PROTECTED]>:
>
>
>
> Thanks for the quick reply, still getting a height value of zero I'm
> afraid,
> any other ideas?
>
> b0bd0gz
>
>
>
> Try this:
>
> $('#content').load('home.html', function(){
>   $(".seperator").height( $(this).height() );
> });
>
> --John
> --
> View this message in context:
> http://www.nabble.com/height-of-div-tf4352381s15494.html#a12402042
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


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


[jQuery] Re: hover and hoverIntent

2007-08-27 Thread Dragan Krstic
$("li").bind("mouseover",function(){

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

});

Or

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

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

});

Something like that

2007/8/27, Dan Evans <[EMAIL PROTECTED]>:
>
>
> That's a good thought. But would I attach that to all links inside of
> the hovered element? In that case wouldn't the code in hover still
> clobber that and prevent it from being executed?
> It won't work if I just put that code inside the hover functions
> because there is no href associated with the element being hovered.
> Just to clarify markup is like:
>
> 
> one
> 
> onea
> oneb
> onec
> 
> 
> one
> 
> onea
> oneb
> onec
> 
> 
> ...
> 
>
> So hover is attached to the outer most  elements and on hover the
>  inside of that should appear. This works fine except that then
> the links inside don't display in the status bar because of hover. I
> actually notice links such as "1.html" and "2.html" displaying in the
> status but the sublinks "1a.html", "2a.html", etc. are the ones that
> don't display.
>
> - Dan
>
> On Aug 27, 1:55 pm, "Dragan Krstic" <[EMAIL PROTECTED]> wrote:
> > Solution would be:
> > window.status = $(this).attr("href"), I think.
> >
> > 2007/8/27, Dragan Krstic <[EMAIL PROTECTED]>:
> >
> >
> >
> >
> >
> > > I noticed that, too. I would give a shot to window.status. It was
> handy
> > > during href="javascript:;" time.
> >
> > > 2007/8/27, Dan Evans <[EMAIL PROTECTED] >:
> >
> > > > I am wondering if anyone has noticed the issue with jQuery's hover
> > > > function that makes it less than perfect for dropdown menus.
> Normally
> > > > most browsers display the href of the link in the status bar at the
> > > > bottom of the window when a user hovers that link. Because hover
> > > > suppresses the default onmouseover and onmouseout behaviors by
> > > > returning false for them for all children of the hovered element, it
> > > > breaks the default browser feature. Recently a client of mine
> > > > complained about this and I was wondering if anyone else has had
> this
> > > > problem, found a solution or workaround or anything of that sort. My
> > > > first reaction is to say that this is just what you have to trade
> away
> > > > to get a nicer hover event, but obviously it would be great to have
> > > > both.
> > > > Thanks.
> >
> > > --
> > > Dragan Krstić krdr
> > >http://krdr.ebloggy.com/
> >
> > --
> > Dragan Krstić krdrhttp://krdr.ebloggy.com/
>
>


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


[jQuery] Re: hover and hoverIntent

2007-08-27 Thread Dragan Krstic
Solution would be:
window.status = $(this).attr("href"), I think.

2007/8/27, Dragan Krstic <[EMAIL PROTECTED]>:
>
> I noticed that, too. I would give a shot to window.status. It was handy
> during href="javascript:;" time.
>
> 2007/8/27, Dan Evans <[EMAIL PROTECTED] >:
> >
> >
> > I am wondering if anyone has noticed the issue with jQuery's hover
> > function that makes it less than perfect for dropdown menus. Normally
> > most browsers display the href of the link in the status bar at the
> > bottom of the window when a user hovers that link. Because hover
> > suppresses the default onmouseover and onmouseout behaviors by
> > returning false for them for all children of the hovered element, it
> > breaks the default browser feature. Recently a client of mine
> > complained about this and I was wondering if anyone else has had this
> > problem, found a solution or workaround or anything of that sort. My
> > first reaction is to say that this is just what you have to trade away
> > to get a nicer hover event, but obviously it would be great to have
> > both.
> > Thanks.
> >
> >
>
>
> --
> Dragan Krstić krdr
> http://krdr.ebloggy.com/




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


[jQuery] Re: hover and hoverIntent

2007-08-27 Thread Dragan Krstic
I noticed that, too. I would give a shot to window.status. It was handy
during href="javascript:;" time.

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


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


[jQuery] Re: Release: Accordion 1.5

2007-08-27 Thread Dragan Krstic
Hi Jorn,

Well, so far that was intended to be a feature, not a bug. The
> combination of long-running animations with hover is annoying, right.
> But it is also annoying when the accordion keeps changing on each mouse
> move, even when you didn't intend to get a different chunk. "Fixing" it
> isn't difficult, but it is difficult to decide what the right fix
> actually is. Your help is appreciated.
>

In my Inverse Accordion script, I'm caching last hovered item. So, when
animation is finished, I run animation again on last hovered element if
mouse is still over it.

Inverted accordion worked on same way as your for some time. After I posted
my script, guys from apple.com implemented my solution.

Conclusion: apple.com guys are on out list!
-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-25 Thread Dragan Krstic
I find slice very useful method.

 I just wanted to post a little tutorial about selecting a range of
elements, but now, there's no need for that. No more filter().filter().
(beside that I made keyboard shortcut for that snippet).

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


[jQuery] Problem with easing function was: accordion adventures

2007-08-21 Thread Dragan Krstic
I'm writing inverted hover accordion plug in. In order to fully reproduce
Apple.com menu, easing function is essential. I'm using easing function
copied from Interface. That easing function causes menu to jumps. In plain
version (non-plugin) this function behaves nicely.

Any clues, please?

plugin: http://www.bydot.net/iccordion/
original: http://www.bydot.net/hoveracc/
>
>
-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Accordion adventures

2007-08-20 Thread Dragan Krstic
Due to popular demand (Mikael ;) )  I decided to rewrite my invert accordion
script into plug in.
Original code is on
http://www.bydot.net/hoveracc/
But,
First incarnation of script (ver 0.0.1) shows old problem. Accordion is
dancing.
Demo can be found on: http://www.bydot.net/iccordion/

PS What you think about name iCcordion from Inverted Accordion, also "i" is
connection to Apple as they inspired me to make it

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


[jQuery] Re: simple menu - hover issue

2007-08-20 Thread Dragan Krstic
Your problem is quite usuall. Go to plugin page and download hoverIntent
plugin. It will help you. Search trough list if you want to know more about
this bug.

And, welcome to the list!
-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: [NEWS] Paul Bakaus on Ajaxian

2007-08-20 Thread Dragan Krstic
If I'm not wrong, same technice is used in Jorn's accordion plugin. Still.
congrats on feature!

2007/8/20, Paul Bakaus <[EMAIL PROTECTED]>:
>
>
> Thanks guys! :)
> And this 3 days after I set up my blog :P
>
> On Aug 20, 3:52 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> > Excellent! Way to go, Paul!
> >
> > Also, check out Paul's very cool demo, Comic Strip Navigation:
> http://www.paulbakaus.com/lab/navigation/comicstrip/
> >
> > --Karl
> > _
> > Karl Swedbergwww.englishrules.comwww.learningjquery.com
> >
> > On Aug 20, 2007, at 9:29 AM, Rey Bango wrote:
> >
> >
> >
> > > jQuery team member and jQuery UI team lead Paul Bakaus got some
> > > great press from Ajaxian for his blog posting "Advanced ternary
> > > conditions in JavaScript". Check it out:
> >
> > >http://ajaxian.com/archives/fun-with-ternary-operators
> >
> > > Direct link to Paul's posting:
> >
> > >http://paulbakaus.com/2007/08/17/advanced-ternary-conditions-in-
> > > javascript/
>
>


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


[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-18 Thread Dragan Krstic
I'm always for separating thing. Maybe, this would be nice:

Function my_f(arg1,arg2,arg3)
{
 //code
}

$("...").click().f_call("my_f",{arg1: "arg1",arg2: "arg2",arg3: "arg3"});

or similar.

Maybe, plug in mechanism can be extended to do this stuff.

John, for us who prefer
$(...).bind("click",f(){});

over
$(...).click();

how to to rewrite:
$(...).onclick().toggle().end();


[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Dragan Krstic
Of course, but I'm in favor of lt gt eq. Maybe 'cause I learned FORTRAN on
college ;)

2007/8/17, Erik Beeson <[EMAIL PROTECTED]>:
>
>
> > $("p:gt(4)").show().gt(10).css("color","red");
> >
> > Or, if you need to operate multiple time on same collection:
> >
> > var my_coll = $("p");
> > my_coll.gt(3).css("color","red");
> > my_coll.lt(3).css("color","blue");
> >
> > This stuff cannot be done by solely in selector expression.
>
> I'm pretty sure this can be done with filter. In fact, a cursory test
> with firebug on jQuery.com suggests it can:
>
> >>> $('p');
> [p, p, p.surprise, p, p.download_link, p.download_link, p, p, p]
> >>> $('p:gt(2)');
> [p, p.download_link, p.download_link, p, p, p]
> >>> $('p:gt(2)').gt(4);
> [p]
> >>> $('p:gt(2)').filter(':gt(4)');
> [p]
>
> I'm all in favor of removing gt/lt/eq in favor of the selector version
> with filter.
>
> --Erik
>



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


[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Dragan Krstic
2007/8/16, Glen Lipka <[EMAIL PROTECTED]>:
>
> As a non-programmer, (HTML/CSS only) I understand lt() and gt() mainly
> because of < and >.
> I think those are very easy.  The place I get confused a little is when
> you can say $("p:gt(4)") and $("p").gt(4) and get the same thing.  Why
> both?  I suppose the answer is "because some people like it one way and some
> the other".


I like this methods and I'm using them a lot. They are very handful when I
must to do some operation on subset of elements:

$("p:gt(4)").show().gt(10).css("color","red");

Or, if you need to operate multiple time on same collection:

var my_coll = $("p");
my_coll.gt(3).css("color","red");
my_coll.lt(3).css("color","blue");

This stuff cannot be done by solely in selector expression.

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


[jQuery] Re: Resig's Accordion Lite

2007-08-07 Thread Dragan Krstic
Still, there is issue with callback when using step functions


[jQuery] Re: New Plugin: HoverAccordion

2007-08-06 Thread Dragan Krstic
@Mikeal
Sorry Mikael. My script use step function in .animation() method. John
informed us not to use this function, because it will be changed in version
1.2. So, if you like it, you can customize my script. I would be glad to
help you.

2007/8/6, mikael <[EMAIL PROTECTED]>:
>
>
> Dragan - why do you have to wait for 1.2? I'm really excited about
> your plugin and can't wait to see the final result that works like
> Apples all the way. It's very nice work you are doing - keep it up!
>
> /Mikael
>
> On Aug 5, 6:53 pm, "Dragan Krstic" <[EMAIL PROTECTED]> wrote:
> > @Bernd
> > I see... I'm thinking about plugin that handles both scenarios, but it
> must
> > wait for jQuery 1.2.
> >
> > --
> > Dragan Krstić krdrhttp://krdr.ebloggy.com/
>
>


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


[jQuery] Re: New Plugin: HoverAccordion

2007-08-05 Thread Dragan Krstic
@Bernd
I see... I'm thinking about plugin that handles both scenarios, but it must
wait for jQuery 1.2.

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


[jQuery] Re: New Plugin: HoverAccordion

2007-08-05 Thread Dragan Krstic
Of course, you can look at my example, witch more reasambly Apple.com menu.
It's not plugin, but I'll make it soon
http://www.bydot.net/hoveracc/hoveracc_4.htm


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


[jQuery] Re: Jquery Vs. Prototype

2007-08-04 Thread Dragan Krstic
BMHO, jquery is easier to learn and doesn't extends native JS objects. jQ
people is more enthusiatsic about library they use. Also, jQuery put
standards in speed, documentation and support. By introducing jQuery, John
forced other folks to improve their libraries.  And comunity is very
devoted, too.


2007/8/5, John Resig <[EMAIL PROTECTED]>:
>
>
> > I can see the benefit of this being that you only include the methods
> you need and there is no bloat.
>
> That's precisely why. Here's examples of everything that you mentioned:
>
> disable:
> $("input").attr("disabled","disabled");
>
> enable:
> $("input").attr("disabled","");
>
> findFirstElement:
> $("form :input:first")
>
> focusFirstElement:
> $("form :input:first").focus();
>
> getElements:
> $("form :input")
>
> getInputs:
> $("form :input")
>
> request:
> (via Form plugin)
> $("form").ajaxSubmit()
>
> reset:
> $("form").reset()
>
> serialize:
> $("form :input").serialize()
>
> serializeElements:
> $("form :input").serialize()
>
> Obviously there are philosophical differences at play - but the fact
> all of these things exist (or are easily accessed via a plugin) just
> shows how powerful and extensible jQuery is.
>
> Of course, I'm quite biased in this matter, but I'm really proud of the
> library.
>
> > But I just recently read that you can get a compressed prototype library
> down to 26k - so isn't that almost the same as jQuery?
>
> Just to clarify: These custom compressed versions of Prototype are not
> official, nor are they supported. The Prototype team just says to use
> them at your own risk. All compressed builds of jQuery are built and
> supported by the jQuery team (of which, jQuery is around 20k -- and
> yet still includes animations, meaning that you don't need the
> overhead of Scriptaculous either, which is another 15k).
>
> --John
>
> On 8/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I am trying to decide on a JS framework for my website and I am
> > looking at jQuery and prototype. While, I understand there are many
> > philisophical differences between the implementations, it looks like
> > to me one of the big differences are all of the new functions
> > available in prototype.
> >
> > What I am curious about, is does jQuery have support for these things
> > or in jQuery are you basically expected to use the easy access to DOM
> > objects to create the functionality you need as you go.
> >
> > For example, in prototype, adds these methods to the form element
> > (http://www.prototypejs.org/api/form
> > ):
> >
> > disable enable findFirstElement focusFirstElement getElements
> > getInputs request reset serialize serializeElements
> >
> > Does jQuery have anything similar? In jQuery would you just write
> > these yourself? I can see the benefit of this being that you only
> > include the methods you need and there is no bloat. But I just
> > recently read that you can get a compressed prototype library down to
> > 26k - so isn't that almost the same as jQuery?
> >
> > I guess I am just looking for a reason to use jQuery vs. Prototype and
> > an argument about why I don't need all those (useful?) methods
> > available in prototype? Anyone?
> >
> >
>



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


[jQuery] Re: Resig's Accordion Lite

2007-08-04 Thread Dragan Krstic
This is accordion for showin', man!

2007/8/4, Dan G. Switzer, II <[EMAIL PROTECTED]>:
>
>
> Mitchell,
>
> >Hi John
> >
> >I set up your menu so its as close to the one from Adobe as I could,
> given
> >my meager knowledgebase.
> >
> >Adobe
> >http://www.whatbird.com/wwwroot/Components/Accordion%20Menu.html
> >
> >Resig
> >http://www.whatbird.com/wwwroot/Components/Accordion%20Menu_Resig.html
> >
> >There are two things missing from Resig I would love to see. Maybe others
> >won't care about these.
> >
> >1.  Adobe changes color when you click on the accordian, and gives it
> >focus. That's a nice thing. Click outside and it loses focus and goes
> page
> >to the default colors.
> >
> >2.  I could not figure out how to use other easing effects, which would
> >make it more flexible. I do see how to control the duration.
> >
> >I moved the css into an external sheet along with the JS.
> >
> >Regardless you have created an amazing plug in and I urge you to continue
> >to work on it. I've looked at a ton of accordions and this one makes the
> >others look like dark stuff that smells funny. The official jQ accordian
> is
> >the pits IMHO.
>
> I threw together a really quick plug-in based on John's code and your
> example. I also addressed the issues you list above.
>
> http://www.pengoworks.com/workshop/jquery/resig_accordion.htm
>
> I changed a few things about the CSS declarations and the plug-in is based
> on John's original code--so I take no credit for that.
>
> Just thought it looked like something to do while drinking a few
> Michelobs.
>
> Click the "Toggle Easing" to see a different "Easing" algorithm at work.
> Not
> all of the algorithms provide a very good effect, so be careful with the
> easing you test.
>
> Also, instead of placing an onclick event to handle sound, I added an
> onSelected event handler you use to attach an additional "onclick" effect.
>
> I debated getting rid of the need for the anchor tag altogether inside the
>  element, but decided the  element allowed for good unobtrusive
> behavior.
>
> Obviously, this is a very basic plug-in.
>
> -Dan
>
>


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


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

2007-08-03 Thread Dragan Krstic
I added some styling to inverted accordion and changed functionality a
little bit. Now there's no need hoverIntent plugin. Still there's some
styling issues in IE6

It can be found on: http://www.bydot.net/hoveracc/hoveracc_4.htm

@John
Why callback in animation method doesn't work when using "step" function?

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


[jQuery] Re: Resig's Accordion Lite

2007-08-03 Thread Dragan Krstic
In my inverted hover, I copy-pasted easing function from Interface.

2007/8/3, Mitchell Waite <[EMAIL PROTECTED]>:
>
>  Hi John
>
>
>
> I set up your menu so its as close to the one from Adobe as I could, given
> my meager knowledgebase.
>
>
>
> Adobe
>
> http://www.whatbird.com/wwwroot/Components/Accordion%20Menu.html
>
>
>
> Resig
>
> http://www.whatbird.com/wwwroot/Components/Accordion%20Menu_Resig.html
>
>
>
> There are two things missing from Resig I would love to see. Maybe others
> won't care about these.
>
>
>
> 1.  Adobe changes color when you click on the accordian, and gives it
> focus. That's a nice thing. Click outside and it loses focus and goes page
> to the default colors.
>
> 2.  I could not figure out how to use other easing effects, which would
> make it more flexible. I do see how to control the duration.
>
>
>
> I moved the css into an external sheet along with the JS.
>
>
>
> Regardless you have created an amazing plug in and I urge you to continue
> to work on it. I've looked at a ton of accordions and this one makes the
> others look like dark stuff that smells funny. The official jQ accordian is
> the pits IMHO.
>
>
>
> Mitch
>
>
>



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


[jQuery] Re: Good Javascript editor or IDE?

2007-08-03 Thread Dragan Krstic
HomeSite anyone? It is shame that Macromedia totally ignored. They didn't
put anything new for more than 5 yrs. Yeah, it still lives in  Dreamweaver
coding enviroment, and when I'm using DW, 90% of time I spent there.

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


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

2007-08-02 Thread Dragan Krstic
Last version of inverted accordion on:
http://www.bydot.net/hoveracc/hoveracc_3.htm
Enjoy...

2007/8/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
>
>
> > @John
> > One more thing.  I'm getting a serious amount of JavaScript errors,
> > the same error repeated over and over.  It seems to happen when i
> > click on a tab while another tab is open.
> >
> > jquery.js (line 321)
> > too much recursion
> > [Break on this error] fn.constructor != Array && /function/i.test( fn
> > + "" );
>
> It happens when you click on header during animations. Take a look on
> 3) in my previous post. Browser cannot handle so many recursions
>
>
>


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


[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Dragan Krstic
2007/8/2, Alexandre Plennevaux <[EMAIL PROTECTED]>:
>
>
> Have you actually tried to read mootools documentation? It's very
> technical
> IMHO.


Yes, I did, but it cannot provide kick start as jQuery documentation. I have
feeling mootool docs is oriented only to experienced users.

Jquery documentation 's layout may not be the sexiest, but it performs quite
> well in terms on how it is structured, written and how helpful and
> concise.
> Yes, in terms of docs too, less is sometimes more.
>
> I do wish it was more like php 's online docs, with (moderated) users
> feedback, tip and tricks for each function.


Me too. Even offline version is sufficient for great range of tasks.

Cheers,
>
> alex
>
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of fatihturan
> Sent: jeudi 2 août 2007 10:18
> To: jQuery (English)
> Subject: [jQuery] Do you think jQuery's documentation is enought?
>
>
> What do you think about this question? Do you think jQuery's documentation
> is enought? Personally i think jQuery's documentation isn't enought.
>
> So i'm looking to http://docs.mootools.net/";>MooTools
> documentation and http://demos.mootools.net/";>demos
> then i'm looking to http://docs.jquery.com/";>jQuery's
> documentation  (dude where is demos? xD)  comparing both
> documentations
> and thinking jQuery's documentation isn't enought.
>
> However, i want to know what do you think about this situation...
>
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.476 / Base de données virus: 269.11.0/929 - Date: 31/07/2007
> 17:26
>
>
>


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


[jQuery] Re: Do you think jQuery's documentation is enought?

2007-08-02 Thread Dragan Krstic
I think it is enough for start. jQuery is much easier to learn and examples
on jQuery much more understandable and useful than mootools,dojo or
prototype.

But, jQuery have some undocumented features.

For any advanced use, documentation is never enough, but jQuery api stands
out.


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


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

2007-08-02 Thread Dragan Krstic
@John
Why callback doesn't work with "step" function"?

Anyway, "step" function opens whole new field of synchronized animations.


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


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

2007-08-02 Thread Dragan Krstic
@All:

Ok. Here's a final solution for inverted hover accordion. hoverIntent plug
in is must. Structure is same as I posted earlier. Later during I will
upload it on web.

var radi1 = true;
var kd_opened;
var to_hide;
var height_op;

jQuery.easing.easeout = function(p, n, firstNum, delta, duration)
{
return -delta * ((n=n/duration-1)*n*n*n - 1) +
firstNum;
}

function otvoriSliku()
{

if(!$(this).siblings(".naslov_stavke").is(":visible") && radi1 )
{

radi1 = false;
to_hide = $(this).siblings(".naslov_stavke");
to_hide.show().height(0);

kd_opened.animate({height:"hide"},
{step: function(n){
to_hide.height(Math.ceil(height_op-n));
if(n == 0){kd_opened = to_hide;radi1 =
true;}
},
duration: 500,
easing: "easeout"
});
}
}
$(document).ready(function()
{
kd_opened = $(".naslov_stavke:first");
height_op = kd_opened.height();

$(".naslov_stavke:not(:first)").hide();

$(".sadrzaj_stavke").hoverIntent({
sensitivity: 1,
interval: 50,
over: otvoriSliku,
out: function(){}
 });

});


Easing function is taken from Interface. Differences from  John's script
are:
1) John calculate height of opened "headers" before each animation. This
script calculates only once, on the beginning, to save some CPU cycles
2) Before animation, height of hidden "header" must be set to 0. This is
because of differences in behavior of inverted and real accordion.
3) In John script, if you try to click on "header" during animation, script
becomes nasty. Putting whole animation script in If(radi1) and checking with
if(n == 0){kd_opened = to_hide;radi1 = true;} I prevented run of new
animation before old one is finished.

@John:
You are such inspiration! Thanks man! Or: Hvala ti puno za sve , on my
native (Serbian)


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

2007-08-02 Thread Dragan Krstic
First to thanks all on replays. I knew that my solution is not perfect, and
I hoped that someone will find better solution (secretly John).

@Justin

We all fill the pain. My knowledge of jQuery still have boundaries, trick is
to find way how to jump over it.

@John, Mitch
This looks and feels better than my solution. I knew that Apple use same
heights, but that was "too" easy ;). Now I'll try to your accordion
transform to inverted one.

John, you prove me that jQuery have some secret possibilities that aren't
documented (otherwise, they will not be secret :) ).

One more thing: In hours of desperation, I tried to make it by mootools. I
found mootools is much harder to learn. Last year I spent 3 hours from first
opening of jQuery.com until I made tabbed navigation with content loaded via
ajax.


[jQuery] Re: Help Test jQuery 1.1.3

2007-05-21 Thread Dragan Krstic

2007/5/21, Brandon Aaron <[EMAIL PROTECTED]>:



Do you know what version/rev of the dimensions plugin you are using?
What browser(s) are you having problems with?



I'm not quite sure. I'm using striped off version. File is created on
January,18th. In firebug I'm getting the following:
headlines[0].left is not a function  http://ci/ (line 63)anonymous
http://ci/ (line 63)
anonymousjquery.js (line 3307)
anonymousjquery.js (line 3332)
anonymousjquery.js (line 1344)

Everything worked well with jquery1.1.2. You can see it live on
http://www.bydot.net/
--
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: Help Test jQuery 1.1.3

2007-05-21 Thread Dragan Krstic

I have a problems with dimensions plugin. width and height couldn't be read


[jQuery] Re: MooTools 1.1

2007-05-09 Thread Dragan Krstic

But, all the demos are outside of jquery site, which doesn't have good
effect. Then, there's that nasty two bugs: event overloading (especially
during hovering) and quirky animation in FF.



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