[jQuery] Re: New plugin: jquery.smoothDivScroll-0.5.js

2008-10-31 Thread Sam Sherlock
Nice stuff there.  I have been playing around with it I would like to be
able to click on the arrows and advance more rapidly through the
scrollablearea.  Guess this might be going against what your trying to do.

Perhaps also some class should be added so that certain styling is applied
where js is able to run

if some extra options could be specificed when initializing - in some cases
it would be nice to be able display the items in sets of 4 (configurable
rows  columns) perhaps also being able to initialze to a position (like
scrollable plugin see flowplayer example site)

Would be interesting to be able to use this with lazyloading images
(preloading two adhead)

2008/11/1 tkahn <[EMAIL PROTECTED]>

>
> Hi!
>
> My name is Thomas Kahn and this is my first post to this list. I'm a
> web developer working in Stockholm Sweden and I've just started
> developing my my first plugin for jQuery; in fact jQuery is a totally
> new experience for me - I started from scratch a week ago.  :-)
>
> All the info, a demo and the current source code can be found here:
>
> http://www.maaki.com/thomas/SmoothDivScrolling/
>
> All the scrolling plugins that I found on the jQuery website where
> scrolling in "element steps" and I wanted a plugin that would scroll
> smoothly. Since I couldn't find one, I decided to code one myself.
>
> Now I'm releasing somehing that is really a Beta with a big "B". It
> wasn't intended to be released in public in the first place, but when
> I saw that I would save time by developing a plugin for the project
> that I'm currently involved in, I tought I'd share the code hoping
> someone else will find it useful.
>
> All improvements and suggestions are welcome!
>
> /Thomas Kahn
> Web Developer
> Kärnhuset, Sweden
>


[jQuery] Re: remove() Method Causes Flicker in Firefox

2008-10-31 Thread [EMAIL PROTECTED]

Not sure why you would remove the photo... What happens when you hide
it.

On my G4 mac everything looks good except on the photo of "Little Dave
Thompson". It moves up and down as it comes in. No flicker but it
doesn't look right.

I think your problem is related to different dimension in your images.
When you display "Little Dave Thompson" you are removing an image with
different height dimensions. I'd recommend keep heights and widths the
same on all images. No need to remove images either. Just hide them,
check to see if they are there before you load them. (Easy to do in
JQuery)

The website looks great BTW. I have my own band (http://
RodeoClownsBand.com)

Regards,

-b


On Oct 31, 3:18 pm, Joe <[EMAIL PROTECTED]> wrote:
> Go here:
>
> http://www.theshedbbq.com/dev/franchise/events
>
> Click on one of the rows in the table and you'll see the image fade
> out and then flicker.
>
> var livePhoto = $('img#eventImage');
> livePhoto.fadeOut('fast');
> livePhoto.remove();
>
> Not sure what is causing this but I use
> setTimeout( livePhoto.remove(), 50 but it did not work.
>
> Suggestions?


[jQuery] Re: please check website before launch

2008-10-31 Thread ricardobeat

wow that's way faster. Now the site loads in 5-10 seconds at most. I
didn't have any problems browsing the sets, images were always loaded
ahed. The only issue I found was that the navigation arrow image
didn't appear until all images in the set were loaded.

nice work!

Alexandre Plennevaux wrote:
> hi ricardo,
>
> here is my try at it, let me know if it is better. What i did is :
>
> - load the first image of each set (as it is needed for the hover state)
> - use a "placeholder.gif" file put as src attribute value for all
> images,  the real src being stored as a custom attribute
> (realsrc="http://path/to/my/image.jpg"; ) and on album selection,
> replace each of the album images src attribute with the realsrc value.
>
> http://www.lisapram.com/index.17.php
>
>
> thanks!
>
> alex
>
> On Fri, Oct 31, 2008 at 5:41 AM, ricardobeat <[EMAIL PROTECTED]> wrote:
> >
> > I think a good compromise would be loading only the few first images
> > for each set, an arbitrary number, then load the rest on demand as
> > each set is opened. Simple and effective, without wasting bandwidth,
> > and should be easier to do.
> >
> > On Oct 30, 8:22 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
> > wrote:
> >> @criteriadesign
> >>
> >> " Once you have done that, you just need to load the images in the
> >> background and display a functioning website for the visitor."
> >>
> >> I'm trying to see how i could modify my app so thati t works like this:
> >>
> >> 1/ load the json data
> >> 2/ generate the barcode (a UL with LI's , each LI is a bar that will
> >> contain images)
> >> 3/ when user clicks on a barcode it loads all the images of that album
> >> 4/ when the user is not "active" (meaning he's idle, looking at
> >> pictures) load the other albums' images in the background
> >>
> >> It is part 4 that i'm a bit lost on how to achieve it. Would someone
> >> care to describe how to do that?
> >>
> >> If it may help, i also output the barcode complete html  (UL, LI, and
> >> IMG tags) in a NOSCRIPT tag for those without js, so maybe i can use
> >> those for the background loading?
> >>
> >> On Mon, Oct 27, 2008 at 9:37 PM, Alexandre Plennevaux
> >>
> >> <[EMAIL PROTECTED]> wrote:
> >> > @-b: given the comments above, i intend to implement this background
> >> > image loading. thanks for taking time to review the website and the
> >> > comment!
> >>
> >> > On Mon, Oct 27, 2008 at 9:34 PM, [EMAIL PROTECTED]
> >> > <[EMAIL PROTECTED]> wrote:
> >>
> >> >> I tried loading the site several times and it timed out after loading
> >> >> 88 or 89 images. I was left with a non-functioning web page.
> >>
> >> >> As a veteran software developer, I can assure you that there are
> >> >> compromises you can make that would make the website usable and still
> >> >> deliver the vision of the client.
> >>
> >> >> It appears that you are dealing with a fixed data set. You can derive
> >> >> all UI elements that depend on the full data set offline. Once you
> >> >> have done that, you just need to load the images in the background and
> >> >> display a functioning website for the visitor.
> >>
> >> >> Regards,
> >>
> >> >> -b
> >>
> >> >> On Oct 24, 2:05 pm, pixeline <[EMAIL PROTECTED]> wrote:
> >> >>> Hi mates,
> >>
> >> >>> May i ask you guys to have a look at my latest project,a bit on the
> >> >>> experimental side in terms of UI : a barcode image gallery for a
> >> >>> spanish photographer:  http://www.pixeline.be/test/lisapram/
> >>
> >> >>> Let me know of any bugs you find?
> >>
> >> >>> AFAIK everything should run smooth (except for the long loading time).
> >>
> >> >>> Please indicate your OS platform, browser and hardware specs.
> >>
> >> >>> The initial load time is quite long so stick around please...
> >>
> >> >>> Looking forward to your feedback!
> >>
> >> >>> Thanks a lot,
> >>
> >> >>> Alexandre


[jQuery] Scroll Up Headline Reader ... with reverse button.

2008-10-31 Thread Pixelstuff

I just recently stumbled across jQuery while searching for a method to
scroll some headlines. Not only did I find a nearly perfect solution
but realized jQuery could do half the other things I wanted. All from
the same library.  So I'm impressed.


Anyway, I would like to modify the Scroll Up Headline Reader to back-
up one headline upon a button click, (ie. show the previous headline
that just went by) then refresh the interval. I was thinking I would
need a new function called headline_reverse that would basically do
the opposite of headline_rotate. I'm just having a little bit of
trouble getting my head around the actual calculations it's using to
step through and then reset to the first headline.

For the reverse or previous button I figured I would look for a click
on a "#prev" div and call the headline_reverse function. What I'm not
sure about is if there is a clean way to do this or if I should just
tack it on after the close of the hover call.

I'm also thinking it will only be a simple matter to build a next
button while doing just for niceties with whoever uses these things in
the future. I'm thinking both buttons should reset the timer after
scrolling up or down respectively.

Can anyone help me out with this. I'm not much of a programmer yet.


[jQuery] New plugin: jquery.smoothDivScroll-0.5.js

2008-10-31 Thread tkahn

Hi!

My name is Thomas Kahn and this is my first post to this list. I'm a
web developer working in Stockholm Sweden and I've just started
developing my my first plugin for jQuery; in fact jQuery is a totally
new experience for me - I started from scratch a week ago.  :-)

All the info, a demo and the current source code can be found here:

http://www.maaki.com/thomas/SmoothDivScrolling/

All the scrolling plugins that I found on the jQuery website where
scrolling in "element steps" and I wanted a plugin that would scroll
smoothly. Since I couldn't find one, I decided to code one myself.

Now I'm releasing somehing that is really a Beta with a big "B". It
wasn't intended to be released in public in the first place, but when
I saw that I would save time by developing a plugin for the project
that I'm currently involved in, I tought I'd share the code hoping
someone else will find it useful.

All improvements and suggestions are welcome!

/Thomas Kahn
Web Developer
Kärnhuset, Sweden


[jQuery] Advice on sIEve/Drip

2008-10-31 Thread Jeffrey Kretz
While debugging my application (which makes heavy use of jQuery), after
several hours IE had consumed about 300MB.

 

So I figure I've got some memory leaks.

 

I tried sIEve 0.8 and wasn't able to find anything specific that was leaking
or causing problems.  I tried the system, dragged things around, opened
various popups, etc.  Basically used a while series of functions on the CMS.
No leaks reported at any time.

 

I then pulled up one of heavier js pages and put it auto-refresh for about
10 minutes.  It slowly went from 61MB to 66MB over a 10 minute period.

 

At no point during the auto-refresh, or during the other stages when I was
actually using the system, dragging things around, etc. were any specific
leaks reported.

 

Are there other actions I can take to track down the problem?

 

I noticed that sIEve/Drop hasn't been updated in over 2 years, so I'm
guessing it's not a maintained project.  Is there a better alternative?

 

JK



[jQuery] Re: jQuery based Media Player - streaming today!

2008-10-31 Thread Brice Burgess

Hah! Well it turns out that the CDN crapped out and the streaming crew
is forced use a WMP stream -- all good except that the player I
provided was compiled (packed) without Windows Media Support! So; it
looks like the player will arise another day. In the meantime I'll be
cleaning things up, writing more documentation and skins, and gearing
up for a more public release. Feel free to email if you'd like to take
a peek at the code.

~ Brice


On Oct 31, 5:37 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I'm happy to announce that a unique jQuery based media player is going
> > to be serving up a stream of the Widespread Panic concert from Voodoo
> > Fest in Nawlins. Entertainment for the masses this evening. If you're
> > around the computer, please stop on by and witness some of this up &
> > coming technology;
>
> >http://widespreadpanic.com/halloween.php
>
> Congratulations on getting this out, Brice!  I've been looking forward
> to seeing what you've been up to.  I took a peak at digomePlayer.js
> and I thought, "Wow, Brice is concise!"   Then I realized the code was
> packed.  :-)


[jQuery] Re: jQuery based Media Player - streaming today!

2008-10-31 Thread Brice Burgess

Hah! Well it turns out that the CDN crapped out and the streaming crew
is forced use a WMP stream -- all good except that the player I
provided was compiled (packed) without Windows Media Support! So; it
looks like the player will arise another day. In the meantime I'll be
cleaning things up, writing more documentation and skins, and gearing
up for a more public release. Feel free to email if you'd like to take
a peek at the code.

~ Brice


On Oct 31, 5:37 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I'm happy to announce that a unique jQuery based media player is going
> > to be serving up a stream of the Widespread Panic concert from Voodoo
> > Fest in Nawlins. Entertainment for the masses this evening. If you're
> > around the computer, please stop on by and witness some of this up &
> > coming technology;
>
> >http://widespreadpanic.com/halloween.php
>
> Congratulations on getting this out, Brice!  I've been looking forward
> to seeing what you've been up to.  I took a peak at digomePlayer.js
> and I thought, "Wow, Brice is concise!"   Then I realized the code was
> packed.  :-)


[jQuery] Re: jQuery based Media Player - streaming today!

2008-10-31 Thread Mike Alsup

> I'm happy to announce that a unique jQuery based media player is going
> to be serving up a stream of the Widespread Panic concert from Voodoo
> Fest in Nawlins. Entertainment for the masses this evening. If you're
> around the computer, please stop on by and witness some of this up &
> coming technology;
>
> http://widespreadpanic.com/halloween.php

Congratulations on getting this out, Brice!  I've been looking forward
to seeing what you've been up to.  I took a peak at digomePlayer.js
and I thought, "Wow, Brice is concise!"   Then I realized the code was
packed.  :-)


[jQuery] click

2008-10-31 Thread blasto333

I am having an odd behavior when calling click() on a checkbox [2] vs
manually checking a checkbox [1].



function checkbox_click(event)
{
event.stopPropagation();
do_email(enable_email.url);
if($(event.target).attr('checked'))
{

$(event.target).parent().parent().find("td").addClass('selected');
}
else
{
$(event.target).parent().parent().find("td").removeClass();
}
}


1. $('#sortable_table tbody :checkbox').click(checkbox_click);
2. $("#sortable_table tbody tr").click(function(event)
{
$(this).find(":checkbox").click();
});


#1 calls the function checkbox_click when a checkbox inside a table is
clicked. Is a checkbox is checked after the click occurs,$
(event.target).attr('checked') is TRUE.

#2 is called when a row in the table is clicked. It then finds the
checkbox inside the row and clicks it. This causes checkbox_click to
be fired, but ,$(event.target).attr('checked') is FALSE.

How can I get the same result from each function?




[jQuery] Re: Using taconite to append javascript and stylesheets

2008-10-31 Thread Bob Schellink


Hi Ricardo,

ricardobeat wrote:


This works though: $('head')[0].appendChild($('')[0])


Thanks, that is pretty slick. Much better than the approach I took of tracking scripts by appending place holder tags in head.

Just to summarize, my approach to ensure javascript and stylesheet resources are only loaded once, is to validate against guard functions before appending the resource.

An example guard function:

/*
 * This function checks if the given script already exists in the
 * document head section. It uses the following two rules:
 *
 * External scripts are checked against their 'src' attribute.
 * Inline scripts are checked against their 'id' attribute.
 *
 * @param script is a