[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-16 Thread Gilles (Webunity)

> I turned around the redirect issue by making sure that I return data
> to the plugin and use the severData callback to invoke an ajax reload
> of the div containing the uploaded picture.

Oke ;)


> The format for passing additional parameters is a simple object in the
> form of { name: "value", name: "value"}.
> When you use GET as method, the parameters are properlly added to the
> query string and everything works just fine.
>
> The crashing of Firefox 3.0.4 on Mac is due to passing the additional
> form parameters in POST rather than GET.
>
> In fact, passing additional parameters as POST does not work in any
> browsers and platforms. The request is badly constructed. The parm
> name is well passed as form-data name but the value is badly converted
> to string and shows in the request body as [object Object]. Maybe an
> issue in the AS constructing the request ?

Hmm, i'll have to investigate that, but i am rather busy atm.


> Using GET, I managed to make the plugin work for me with a single
> instance for a while than suddenly it stopped working again. I can't
> figure out why. The log shows that the plugin initializes correctly,
> handle all events properly up to and including fileUploadStarted. The
> upload takes place, the backend script executes properly, the image is
> loaded and updated in the DB, the backend script ends properly and
> returns data to the browser. But the swf movie seems to be dead. It
> does not trigger any event after fileUploadStarted : none of the
> fileUploadProgress, fileUploadCompleted, fileUploadError,
> fileUploadCancelled, queueCancelled, queueCompleted events.

What flash version are you using? Did you try to upgrade it to the
latest version?


> I also found that the plugin does not behave right if you have
> multiple instances of it on the same page. I have rewritten the js
> part of the plugin to take advantage of jquery.ui.widget and I will
> send it privately to you if you wish. It works now as I expected with
> as many instances of the plugin as you like, each with its own
> settings and callbacks. The only thing that woul be nice to have is
> the extension of the logging facility to display the plugin instance
> that triggers the events.

I absolute did NOT want the plugin to be dependent on jQuery.ui, so if
you can rewrite it so it doesn't use any other jQuery stuff i would be
happy to give you the credits for it and include the fix in the code.


> I am still stuck with the swf movie not triggering the events after
> fileUploadStarted. Not being familiar with  swf development, I don't
> know if you have additional debugging facilities to identify what
> would cause the swf movie not to trigger the events.

Working on that also.



[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-15 Thread Gilles (Webunity)

I found this on another site:


We use the Flash uploader MultiPowUpload (http://www.element-it.com/
MultiPowUpload.aspx) and Nirvanix HTTP upload. To register new uploads
we use the forwardingurl to forward to a script on our site.

Nirvanix makes a 303 redirect to the forwarding URL with only a header
and no content. The problem is that Flash on Mac needs at least one
char in the response content to accept it as a response and make the
redirect - meaning upload on Mac is not working on our site.

Can we in any way get just a single char in return when using the
forwardingURL to fix this problem?
-

Maybe that helps with your issue 4?
http://developer.nirvanix.com/forums/p/467/1634.aspx


[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-15 Thread Gilles (Webunity)

Although i do appreciate your feedback, do you have any idea how i can
fix the problems?
As far as i see it now, there is only the crashing issue?

Thanx
Gilles

On 15 dec, 08:16, rernens  wrote:
> Thanks Gilles for your reply and for the plug in.
>
> I have continued researching where the problem might be and found the
> following that might help :
>
> 1. plugin works in IE7, Firefox 3.04 Windows and Safari 3 but fails in
> Firefox 3.04 MacOS where Firefox crashes immediately after the log
> displays the message "file upload started".
>
> 2. additional parms should be passed as a javascript object which
> works fine in GET mode but seems buggy in POST mode.
> In this case the form data are badly built. While the parms names are
> propertly extracted from the parms object, the parms value are
> improperly extracted and show [object Object] rather than the real
> value.
>
> 3. multiple must be passed as "true" or "false" not "1" or "0" or
> false or true. Your documentation was clear and I missed it.
>
> 4. the plugin hangs anyway in all working platforms if the backend
> script issue a redirect.
>
> Hope it helps
>
> On 12 déc, 13:03, "Gilles (Webunity)"  wrote:
>
>
>
> > Hi Guys,
>
> > Sorry for the late update. Although everybody is using it (since i got
> > 20mb of uploaded files) almost nobody is telling "thanx", but that's
> > oke, i expected that.
>
> > I got some time to fix some issues and answer some questions:
>
> > > 1.  multiple: false through settings while building
> > > theuploaderdoes not work. setMultiple(false) does the job.
>
> > You should pass "multiple" as a string. "1" turns it on, the rest
> > should turn it off, can you recheck?
>
> > > 2. I can't get the plugin to properly talk to my webserver. The
> > > backend script gets invoked but the plugin immediately returns "upload
> > > cancelled" state without waiting for the backend script to end. I have
> > > tested with a very simple backend script that does nothing but
> > > returning some data. (might be related to my kind of server 4DWeb
> > > server with Active4D ?)
>
> > Can't help you on that one, are you behind a proxy? Flash still
> > doesn't like that..
>
> > > 3. when sending data to the server with the object what format does
> > > the object use ? Is it a serialization of the data in the form of
> > > [{field: "fieldName", value: "fieldData"}, ...] or in the form of
> > > {fieldName: "fieldData", ...}. Having not got to that stage yet, I
> > > have not figured out so I am asking.
>
> > Actualy i can't help you on that one, as far as i know it are all
> > basic objects. Also the request is constructed using basic Flash
> > methods, so it should not pose any problems. I have put up the php
> > source file so you can see how i handle the files.
>
> > > Move to Flash Player 10 just to see if it would change something.
> > > No changes.
> > > Firefox 3 crashes.
> > > It seems that the plugin does not handle properly the 404 return code
> > > from the server.
> > > Will try on Windows with firefox and IE7 and 8.
>
> > Here on windows with Firefox 2 and 3.04 all works fine. Also IE6 and 7
> > work flaweless... Maybe a proxy? Also, make sure you use the logging
> > functions, it could help you.- Tekst uit oorspronkelijk bericht niet 
> > weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -


[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-12 Thread Gilles (Webunity)

Sample backend:
http://jQuery.webunity.nl/jQuery.uploader/js/sample_backend.phps


[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-12 Thread Gilles (Webunity)

Hi Guys,

Sorry for the late update. Although everybody is using it (since i got
20mb of uploaded files) almost nobody is telling "thanx", but that's
oke, i expected that.

I got some time to fix some issues and answer some questions:


> 1.  multiple: false through settings while building
> the uploader does not work. setMultiple(false) does the job.

You should pass "multiple" as a string. "1" turns it on, the rest
should turn it off, can you recheck?


> 2. I can't get the plugin to properly talk to my webserver. The
> backend script gets invoked but the plugin immediately returns "upload
> cancelled" state without waiting for the backend script to end. I have
> tested with a very simple backend script that does nothing but
> returning some data. (might be related to my kind of server 4DWeb
> server with Active4D ?)

Can't help you on that one, are you behind a proxy? Flash still
doesn't like that..


> 3. when sending data to the server with the object what format does
> the object use ? Is it a serialization of the data in the form of
> [{field: "fieldName", value: "fieldData"}, ...] or in the form of
> {fieldName: "fieldData", ...}. Having not got to that stage yet, I
> have not figured out so I am asking.

Actualy i can't help you on that one, as far as i know it are all
basic objects. Also the request is constructed using basic Flash
methods, so it should not pose any problems. I have put up the php
source file so you can see how i handle the files.


> Move to Flash Player 10 just to see if it would change something.
> No changes.
> Firefox 3 crashes.
> It seems that the plugin does not handle properly the 404 return code
> from the server.
> Will try on Windows with firefox and IE7 and 8.

Here on windows with Firefox 2 and 3.04 all works fine. Also IE6 and 7
work flaweless... Maybe a proxy? Also, make sure you use the logging
functions, it could help you.


[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-07 Thread Gilles (Webunity)

> One question.  Your docs and examples don't ever mention, that I can
> tell, how the data is handed off to the backend script.  Are the
> images just going to be in the $_FILES global (to give a PHP example)?

Yes, i did not include any information about the backend script used,
since each and every file upload example allready has this, for
example; swfupload has it, but also fancyupload has some good
examples.

@Alexandre:
> Also, a question: does your plugin returns the created file name (in case of
> serverside rewriting, for example, to avoid file duplication ?) i personally
> never found an easy way to tackle this using flash to upload files. And it's
> my main gripe against them.

Thanx for the mentioning of the 404!. As you can see in the second
demo;
- You select a file (which is uploaded automatically)
- The server gets that file, and saves it as a NEW filename (so your
backend can do whatever you want with the file)
- And you can send the data back to flash, as i do by telling the
location of the new image file.

I hope this answers your questions.




[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-01 Thread Gilles (Webunity)

Guys, a lot of views and no reply's... Thats not fair to me ;)

On Nov 28, 3:17 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> Short memo;http://jQuery.webunity.nl/
>
> Check it out, 2 demo's online!
>
> -- Gilles


[jQuery] jQuery.uploader released: Flash based jQuery uploader

2008-11-28 Thread Gilles (Webunity)

Hi guys,

Short memo;
http://jQuery.webunity.nl/

Check it out, 2 demo's online!

-- Gilles


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-11-10 Thread Gilles (Webunity)

Going to squash the latest bugs today, if i got my VPC up and running
so i can use visual studio to debug IE6. Got my SharePoint
certification last week so that week was crazy ;)

On Nov 9, 4:12 pm, Crazy-Achmet <[EMAIL PROTECTED]> wrote:
> Hey Gilles,
>
> how is it going? Is there something to see? ;)


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-11-03 Thread Gilles (Webunity)

uuhm.. yep. ;)

On Nov 2, 8:33 pm, Jörg Battermann <[EMAIL PROTECTED]> wrote:
> You've meant November, right? Just checking :)
>
> On Nov 1, 1:01 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
>
>
>
> > I expect to release around 8 september
>
> > On Oct 31, 2:09 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
>
> > > p.s. at this time, IE seems a bit buggy, have to fix that before i
> > > release any code.
> > > I am also using some PNG files right now, which i have to change into
> > > transparent gifs (IE).
>
> > > On Oct 31, 2:08 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
>
> > > > Expect something in the next couple of days. I want to have the api
> > > > docs setup good this time.
>
> > > > On Oct 30, 1:41 pm, "Olivier Percebois-Garve" <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > Hi
>
> > > > > any chance to see the work in progress ? demo, (even partially buggy) 
> > > > > ? svn
> > > > > ?
>
> > > > > Olivier
>
> > > > > On Tue, Oct 28, 2008 at 10:25 AM, Crazy-Achmet
> > > > > <[EMAIL PROTECTED]>wrote:
>
> > > > > > I'm really lookin forward to the new version!!!
>
> > > > > > It's awesome that you're still workin' on it! ;)- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-11-01 Thread Gilles (Webunity)

I expect to release around 8 september

On Oct 31, 2:09 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> p.s. at this time, IE seems a bit buggy, have to fix that before i
> release any code.
> I am also using some PNG files right now, which i have to change into
> transparent gifs (IE).
>
> On Oct 31, 2:08 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
>
> > Expect something in the next couple of days. I want to have the api
> > docs setup good this time.
>
> > On Oct 30, 1:41 pm, "Olivier Percebois-Garve" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hi
>
> > > any chance to see the work in progress ? demo, (even partially buggy) ? 
> > > svn
> > > ?
>
> > > Olivier
>
> > > On Tue, Oct 28, 2008 at 10:25 AM, Crazy-Achmet
> > > <[EMAIL PROTECTED]>wrote:
>
> > > > I'm really lookin forward to the new version!!!
>
> > > > It's awesome that you're still workin' on it! ;)- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-10-31 Thread Gilles (Webunity)

p.s. at this time, IE seems a bit buggy, have to fix that before i
release any code.
I am also using some PNG files right now, which i have to change into
transparent gifs (IE).

On Oct 31, 2:08 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> Expect something in the next couple of days. I want to have the api
> docs setup good this time.
>
> On Oct 30, 1:41 pm, "Olivier Percebois-Garve" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi
>
> > any chance to see the work in progress ? demo, (even partially buggy) ? svn
> > ?
>
> > Olivier
>
> > On Tue, Oct 28, 2008 at 10:25 AM, Crazy-Achmet
> > <[EMAIL PROTECTED]>wrote:
>
> > > I'm really lookin forward to the new version!!!
>
> > > It's awesome that you're still workin' on it! ;)- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-10-31 Thread Gilles (Webunity)

Expect something in the next couple of days. I want to have the api
docs setup good this time.

On Oct 30, 1:41 pm, "Olivier Percebois-Garve" <[EMAIL PROTECTED]>
wrote:
> Hi
>
> any chance to see the work in progress ? demo, (even partially buggy) ? svn
> ?
>
> Olivier
>
> On Tue, Oct 28, 2008 at 10:25 AM, Crazy-Achmet
> <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > I'm really lookin forward to the new version!!!
>
> > It's awesome that you're still workin' on it! ;)- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-10-24 Thread Gilles (Webunity)

Another update:
- Started working on the demo's; squatting some final bugs and then
all i have to do is rebuild the demo's.
- Luckily i've documented the JavaScript extensivly so documentation
will be quick.

-- Gilles

On Oct 22, 8:28 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> Yes that will be possible with my new version and is default
> implemented. I shall see if i can make a demo for that.
>
> On 21 okt, 22:59, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote:
>
> > hi Gilles,
>
> > i was about to take the same path: convert YUIuploaderinto jquery for the
> > new version of jquploader, because it's simply the best implementation i've
> > seen so far (kuddos to yahoo). i'll be very interested with what you come up
> > with.
> > There is one issue i still lack for a good answer, i'd be interested in your
> > opinion: say you want to control the uploaded file 's name, for example so
> > that it does not erase an existing file with the same name: then the
> > serverside script woudl produce a unique file name, according to a given
> > logic (timestamp appended, etc), or simply to avoid empty spaces or quote
> > characters in the name. Is it actually possible that the flash file returns
> > the serverside-generated file name ?
>
> > thanks,
>
> > Alexandre
>
> > On Tue, Oct 21, 2008 at 8:55 PM, Gilles (Webunity) <[EMAIL PROTECTED]>wrote:
>
> > > Update: Most of the callbacks have been implemented; Actionscript
> > > (Flash) work seems to be done; yet i did all my work without
> > > debugging. Tomorrow i have to add maybe 3 or 4 events / log messages
> > > and then i can start building ;)
>
> > > -- Gilles
>
> > > On Oct 20, 7:52 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> > > > Guys;
>
> > > > A lot (8) people have allready asked me if i was going to fix the mess
> > > > Adobe made and my answer is yes, i am working on it. This post is to
> > > > assure you that the jQuery Flash baseduploaderi wrote in 2006 has
> > > > been revived.
>
> > > > The project will no longer be based on swfupload, since i added way to
> > > > much code of my own into it. The new version is (looseley) based upon
> > > > YUIuploadercomponent, and off course i've taken a peek to see what
> > > > FancyUpload does in their code. To be honest; they are both very good
> > > > products and both have their pro's and con's. I am hoping to create a
> > > > project which will be the best of both worlds and more (currently,
> > > > approx. 80% code is my own work)
>
> > > > I've allready put about 10 hours of work in the new jQuery upload
> > > > plugin (which was originally hosted onhttp://uploader.webunity.nl/)
> > > > but unfortunately it is not finished yet. Since i based the startcode
> > > > (e.g. how to create an AS3 movieclip) on YUI, I must abide by their
> > > > license, which is BSD. Theuploaderplugin (Javascript) is going to be
> > > > included as full source, but the Actionscript file is going to be
> > > > precompiled. This is due to the fact that i simply put to much work in
> > > > it.
>
> > > > Some stuff that i added;
> > > > - A lot more and consistant event handlers
> > > > - A lot more and better logging
> > > > - Multiple simultanous (!!) uploads
>
> > > > And, ported from my old version:
> > > > - Queue managemen
> > > > - Max file size
> > > > - Max queue size
> > > > - Max queue count
>
> > > > The idea is to even make it possible to add files while you are
> > > > allready uploading; sort of background file transfer so to say.
>
> > > > Anyway; i'll hope to finish the Actionscript code tomorrow evening (it
> > > > is now 20:00 here) and the demo's the day after that. Basically; by
> > > > the end of the week you should have some working examples.
>
> > > > Thank you for al your wonderfull feedback
>
> > > > -- Gilleshttp://www.webunity.nl/-Tekst uit oorspronkelijk bericht niet 
> > > > weergeven -
>
> > - Tekst uit oorspronkelijk bericht weergeven -


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-10-22 Thread Gilles (Webunity)

Yes that will be possible with my new version and is default
implemented. I shall see if i can make a demo for that.

On 21 okt, 22:59, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote:
> hi Gilles,
>
> i was about to take the same path: convert YUI uploader into jquery for the
> new version of jquploader, because it's simply the best implementation i've
> seen so far (kuddos to yahoo). i'll be very interested with what you come up
> with.
> There is one issue i still lack for a good answer, i'd be interested in your
> opinion: say you want to control the uploaded file 's name, for example so
> that it does not erase an existing file with the same name: then the
> serverside script woudl produce a unique file name, according to a given
> logic (timestamp appended, etc), or simply to avoid empty spaces or quote
> characters in the name. Is it actually possible that the flash file returns
> the serverside-generated file name ?
>
> thanks,
>
> Alexandre
>
> On Tue, Oct 21, 2008 at 8:55 PM, Gilles (Webunity) <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > Update: Most of the callbacks have been implemented; Actionscript
> > (Flash) work seems to be done; yet i did all my work without
> > debugging. Tomorrow i have to add maybe 3 or 4 events / log messages
> > and then i can start building ;)
>
> > -- Gilles
>
> > On Oct 20, 7:52 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> > > Guys;
>
> > > A lot (8) people have allready asked me if i was going to fix the mess
> > > Adobe made and my answer is yes, i am working on it. This post is to
> > > assure you that the jQuery Flash based uploader i wrote in 2006 has
> > > been revived.
>
> > > The project will no longer be based on swfupload, since i added way to
> > > much code of my own into it. The new version is (looseley) based upon
> > > YUI uploader component, and off course i've taken a peek to see what
> > > FancyUpload does in their code. To be honest; they are both very good
> > > products and both have their pro's and con's. I am hoping to create a
> > > project which will be the best of both worlds and more (currently,
> > > approx. 80% code is my own work)
>
> > > I've allready put about 10 hours of work in the new jQuery upload
> > > plugin (which was originally hosted onhttp://uploader.webunity.nl/)
> > > but unfortunately it is not finished yet. Since i based the startcode
> > > (e.g. how to create an AS3 movieclip) on YUI, I must abide by their
> > > license, which is BSD. The uploader plugin (Javascript) is going to be
> > > included as full source, but the Actionscript file is going to be
> > > precompiled. This is due to the fact that i simply put to much work in
> > > it.
>
> > > Some stuff that i added;
> > > - A lot more and consistant event handlers
> > > - A lot more and better logging
> > > - Multiple simultanous (!!) uploads
>
> > > And, ported from my old version:
> > > - Queue managemen
> > > - Max file size
> > > - Max queue size
> > > - Max queue count
>
> > > The idea is to even make it possible to add files while you are
> > > allready uploading; sort of background file transfer so to say.
>
> > > Anyway; i'll hope to finish the Actionscript code tomorrow evening (it
> > > is now 20:00 here) and the demo's the day after that. Basically; by
> > > the end of the week you should have some working examples.
>
> > > Thank you for al your wonderfull feedback
>
> > > -- Gilleshttp://www.webunity.nl/- Tekst uit oorspronkelijk bericht niet 
> > > weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -


[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-10-21 Thread Gilles (Webunity)

Update: Most of the callbacks have been implemented; Actionscript
(Flash) work seems to be done; yet i did all my work without
debugging. Tomorrow i have to add maybe 3 or 4 events / log messages
and then i can start building ;)

-- Gilles

On Oct 20, 7:52 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> Guys;
>
> A lot (8) people have allready asked me if i was going to fix the mess
> Adobe made and my answer is yes, i am working on it. This post is to
> assure you that the jQuery Flash based uploader i wrote in 2006 has
> been revived.
>
> The project will no longer be based on swfupload, since i added way to
> much code of my own into it. The new version is (looseley) based upon
> YUI uploader component, and off course i've taken a peek to see what
> FancyUpload does in their code. To be honest; they are both very good
> products and both have their pro's and con's. I am hoping to create a
> project which will be the best of both worlds and more (currently,
> approx. 80% code is my own work)
>
> I've allready put about 10 hours of work in the new jQuery upload
> plugin (which was originally hosted onhttp://uploader.webunity.nl/)
> but unfortunately it is not finished yet. Since i based the startcode
> (e.g. how to create an AS3 movieclip) on YUI, I must abide by their
> license, which is BSD. The uploader plugin (Javascript) is going to be
> included as full source, but the Actionscript file is going to be
> precompiled. This is due to the fact that i simply put to much work in
> it.
>
> Some stuff that i added;
> - A lot more and consistant event handlers
> - A lot more and better logging
> - Multiple simultanous (!!) uploads
>
> And, ported from my old version:
> - Queue managemen
> - Max file size
> - Max queue size
> - Max queue count
>
> The idea is to even make it possible to add files while you are
> allready uploading; sort of background file transfer so to say.
>
> Anyway; i'll hope to finish the Actionscript code tomorrow evening (it
> is now 20:00 here) and the demo's the day after that. Basically; by
> the end of the week you should have some working examples.
>
> Thank you for al your wonderfull feedback
>
> -- Gilleshttp://www.webunity.nl/


[jQuery] jQuery Uploader Flash player 10 fix

2008-10-20 Thread Gilles (Webunity)

Guys;

A lot (8) people have allready asked me if i was going to fix the mess
Adobe made and my answer is yes, i am working on it. This post is to
assure you that the jQuery Flash based uploader i wrote in 2006 has
been revived.

The project will no longer be based on swfupload, since i added way to
much code of my own into it. The new version is (looseley) based upon
YUI uploader component, and off course i've taken a peek to see what
FancyUpload does in their code. To be honest; they are both very good
products and both have their pro's and con's. I am hoping to create a
project which will be the best of both worlds and more (currently,
approx. 80% code is my own work)

I've allready put about 10 hours of work in the new jQuery upload
plugin (which was originally hosted on http://uploader.webunity.nl/)
but unfortunately it is not finished yet. Since i based the startcode
(e.g. how to create an AS3 movieclip) on YUI, I must abide by their
license, which is BSD. The uploader plugin (Javascript) is going to be
included as full source, but the Actionscript file is going to be
precompiled. This is due to the fact that i simply put to much work in
it.

Some stuff that i added;
- A lot more and consistant event handlers
- A lot more and better logging
- Multiple simultanous (!!) uploads

And, ported from my old version:
- Queue managemen
- Max file size
- Max queue size
- Max queue count

The idea is to even make it possible to add files while you are
allready uploading; sort of background file transfer so to say.

Anyway; i'll hope to finish the Actionscript code tomorrow evening (it
is now 20:00 here) and the demo's the day after that. Basically; by
the end of the week you should have some working examples.

Thank you for al your wonderfull feedback

-- Gilles
http://www.webunity.nl/


[jQuery] Re: Uploader 0.9 beta

2008-03-02 Thread Gilles (Webunity)

Plugin will be ready in 2 to 3 weeks, have some seminars i have to
attend, sorry.

--- Gilles


[jQuery] Re: Uploader 0.9 beta

2008-02-14 Thread Gilles (Webunity)

Well to be honest, currently the code is a bit of a mess. Do a view-
source on the demo and you see that you have to pass in everything in
the constructor.

What i want to do, if that is oke with you guys, that you can do
something like this:

oUploader = new Uploader('moviename');
oUploader.browse(); // To start a browse dialog
oUploader.onFileProgress(function() {..}); // To assign the callback
function when there is file progress

This makes much more sense (OO-Wise) and i think is very good for the
codebase. It will be slightly larger, but so much better to
understand. After all, i do not make it a secret that i based my
original code on SWFUpload, fixing some of their bugs. They haven't
been sitting still and they gave me some new ideas to pounder about. I
think i will release the Javascript code for sure, but the Flash code
will be precompiled, since i have put to much work in it myself.

I am thinking about creating 2 versions, one for jQuery and one for
Ext. Not that i am switching to Ext, not at all (but i want to keep my
possibilitys open..)

Next update? Dunnow, have to code first


[jQuery] Re: Uploader 0.9 beta

2008-02-14 Thread Gilles (Webunity)

P.s. i have tons of new ideas to make the usage of the Flash Uploader
(A LOT) easier, but this will be incorporated in V1.5.

-- Gilles

On 14 feb, 10:24, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
> Allright, i have made some changes to the backend and uploader so that
> it has some more stabillity.
>
> To answer your question Benjamin, each "progress" callback function
> passes an object with this 
> information:http://docs.jquery.com/UI/Uploader/callbacks/fileProgress#tOptions
>
> In this option array, 2 more objects are 
> found:http://docs.jquery.com/UI/Uploader/DataObject#toptions(file
> information)http://docs.jquery.com/UI/Uploader/ProgressObject#toptions(progress
> information)
>
> Using the information found there, you could create everything you
> want.
>
> Please note; in order to implement this, you NEED both javascript and
> backend knowledge. I simply cannot answer all support questions for
> which answers can be found in the docs.


[jQuery] Re: Uploader 0.9 beta

2008-02-14 Thread Gilles (Webunity)


Allright, i have made some changes to the backend and uploader so that
it has some more stabillity.

To answer your question Benjamin, each "progress" callback function
passes an object with this information:
http://docs.jquery.com/UI/Uploader/callbacks/fileProgress#tOptions

In this option array, 2 more objects are found:
http://docs.jquery.com/UI/Uploader/DataObject#toptions (file
information)
http://docs.jquery.com/UI/Uploader/ProgressObject#toptions (progress
information)

Using the information found there, you could create everything you
want.

Please note; in order to implement this, you NEED both javascript and
backend knowledge. I simply cannot answer all support questions for
which answers can be found in the docs.


[jQuery] Re: Uploader 0.9 beta

2008-02-12 Thread Gilles (Webunity)

I'll set up a fourth demo, with total progressbar, also i'll try to
visualise what is going on, on each page by creating a flow diagram...

Oke?


[jQuery] Re: Uploader 0.9 beta

2008-02-12 Thread Gilles (Webunity)

Hehe

Well what you are asking is possible!

The third example, uses sessions and forms. So the form is validated,
and the uploaded files are placed in a session object. (i'll show some
code later on tonight).

There is an event called "queueCompleted", so in that event you could
say:
"Finished uploading, processing thumbnails"

and do an Ajax call to the backend which generates the thumbnails.

That should do the trick for you.

-- Gilles


[jQuery] Re: Uploader 0.9 beta

2008-02-11 Thread Gilles (Webunity)

http://docs.jquery.com/UI/Uploader

On 11 feb, 14:35, Cloudream <[EMAIL PROTECTED]> wrote:
> Nice work.
>
> Is there any documents? I think i can write an asp (server) demo for
> other developers.
>
> On Feb 11, 3:37 pm, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote:
>
> > Well it is almost finished, my Flash-based file uploader for jQuery.
> > The docs are finished, and the widget itself also. Originally intended
> > to be a part of UI, but since it has no real connection to UI
> > (dependencies and so on) i have decided to release it as a standalone
> > plugin.
>
> > Most of you have seen the demo allready but here it is 
> > again.http://uploader.webunity.nl/
>
> > Originally based upon swfupload, but based on a really old version of
> > swfupload. The version i based the uploader on had:
> > - no callbacks for dialog open/dialog hide
> > - no multiple file selection masks
> > - no filesize limit pre-upload
>
> > I've build all these things into my version, and now they released a
> > new version which also has that... (hmmm)
> > Anyway, since i based my version on theirs it is only fair that they
> > also gather ideas from other sources.
>
> > Let me know if you run into any bugs and i'll try to add the code to
> > SVN later this week.


[jQuery] Uploader 0.9 beta

2008-02-10 Thread Gilles (Webunity)

Well it is almost finished, my Flash-based file uploader for jQuery.
The docs are finished, and the widget itself also. Originally intended
to be a part of UI, but since it has no real connection to UI
(dependencies and so on) i have decided to release it as a standalone
plugin.

Most of you have seen the demo allready but here it is again.
http://uploader.webunity.nl/

Originally based upon swfupload, but based on a really old version of
swfupload. The version i based the uploader on had:
- no callbacks for dialog open/dialog hide
- no multiple file selection masks
- no filesize limit pre-upload

I've build all these things into my version, and now they released a
new version which also has that... (hmmm)
Anyway, since i based my version on theirs it is only fair that they
also gather ideas from other sources.

Let me know if you run into any bugs and i'll try to add the code to
SVN later this week.


[jQuery] Re: Development tool by yahoo for firebug

2007-07-25 Thread Gilles (Webunity)

Yahoo! it's live!

On Jul 25, 3:49 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Guys and Gals,
> Came across this today and found it pretty interesting when looking at some
> of my current projects.  Figured I'd share.
>
> http://developer.yahoo.com/yslow/
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] Re: Thickbox 3 + esc to close window

2007-07-25 Thread Gilles (Webunity)

gjeez ;)

function tbClose(ev) {
  if (ev.which == 27) { .. action .. };
}

Just before you open TB:
jQuery(document).keypress(tbClose);

Just after you close TB:
jQuery(document).unkeypress(tbClose);

You could have figured that out ;)



[jQuery] Re: Thickbox 3 + esc to close window

2007-07-25 Thread Gilles (Webunity)

jQuery(document).keypress(function(ev) {
  if (ev.which == 27) { .. action .. };
});

Which = jQuery assigned crossbrowser keycode.



[jQuery] Re: Does jQuery have function for ajax periodical updater

2007-07-25 Thread Gilles (Webunity)

Yes, i use it on my site:
http://www.webunity.nl/

It is not in SVN:
http://www.webunity.nl/js/framework/periodicalUpdate.js

On Jul 25, 1:06 pm, "Web Specialist" <[EMAIL PROTECTED]>
wrote:
> Makara,
>
> yes! Please look this plugin:
>
> http://jquery.com/plugins/project/spy
>
> Cheers
>
> 2007/7/25, Makara Kao <[EMAIL PROTECTED]>:
>
>
>
> > I just wonder if jquery has function for ajax periodical updater. I
> > mean, for example, for every 5 minutes it loads the Ajax to request
> > the result from the server. Are there any tutorials or solutions? Cos
> > I could hardly find the tutorial about this.
>
> > Thanks in advance.
> > Makara



[jQuery] Re: 3 state buttons - is there a best way

2007-07-25 Thread Gilles (Webunity)

The frontend is 100% css based, the backend 100% javascript and
unobtrusive.. This plugin was not released, but will be rewritten to
be incorporated into the jQuery UI package. I don't know if you can
wait that long however.


On Jul 25, 8:25 am, "Mitchell Waite" <[EMAIL PROTECTED]> wrote:
> That might work but I can't tell from that page if it uses images..
>
> And I could not find the cssHover.js or any examples of how this plug in.
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Gilles (Webunity)
> Sent: Tuesday, July 24, 2007 10:48 PM
> To: jQuery (English)
> Subject: [jQuery] Re: 3 state buttons - is there a best way
>
> http://gilles.jquery.com/cssHover/
>
> something like this?



[jQuery] Re: dev tip: combining JS script files

2007-07-21 Thread Gilles (Webunity)

Well i have to think about that, but i might do some releasing of
code. The advantage i have, is that it runs on my own servers, so i
get to choose the owner ;)

On 21 jul, 09:14, "Jon Ege Ronnenberg" <[EMAIL PROTECTED]> wrote:
> When you load the script, has nothing to do with the dom. The script can
> modify/alter the dom but the loading sequence is a completely new story. If
> you use the jQuery ready() method, your script will be processed right after
> the dom is loaded and before the images are loaded, which is what you want
> if you want to alter the dom, but don't care about images being shown when
> you do it.
> The scripts you want to put in after the body is script that are not run
> before the user interacts. That does not include behaviors, because you want
> them to work as soon the user e.g. clicks an element (and he/she can do that
> as soon as the page render).
> IMHO you're better of gzipping your files (and of course minimize them) and
> don't put more library (i.e. scripts) than you need.
>
> On 7/17/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
>
> > > > > My understanding is we put script tags in the head so as to not
> > > > > clutter up the body DOM. I don't think it has anything to do with
> > > > > ready(), and I'm pretty sure ready() doesn't require
> > > > > script tags to be in the head...
>
> > > > Yes, but if you put the scripts at the end of the body you don't need
> > > > to use ready(), e.g. that is literally the same as using ready()...
>
> > > So why don't we just always put script tags at the end of the body?
> > > What's the disadvantage of that?
>
> > One disadvantage is that it can lead to sloppy display behavior when the
> > page loads.
>
> > The browser will never start rendering a page while the HEAD is loading.
> > But
> > once it starts loading the BODY, the browser is free to render a partial
> > page any time it feels like it. In practice, this doesn't usually happen
> > unless something causes the page loading to stall. In particular, if there
> > is a script tag that loads an external script, the browser is very likely
> > to
> > render the page using whatever it has available at that point.
>
> > You can see this in action on any typical newspaper site such as
> >www.mercurynews.com. Any time you navigate to a new page, stuff jumps
> > around
> > all over the place while the page loads. This is caused by the script tags
> > that are sprinkled willy-nilly throughout the page.
>
> > A script tag at the very end of the body is less likely to trigger this
> > behavior, but it could still happen if the script modifies DOM elements
> > earlier in the page. The browser reaches the script tag, and while it
> > waits
> > for the external script to load it decides to render what it has so far.
> > Then the script loads and modifies the page, so things jump around when
> > this
> > happens.
>
> > -Mike



[jQuery] Re: find form from input?

2007-07-18 Thread Gilles (Webunity)

ehm.. silly me. I didn't know that there was something like
"this.form".

> By the way, the selector "input.textField" will perform better than just
>   ".textField".

Does that read ':input.textfield' or 'input.textfield' or is there no
difference anymore?
-- Gilles



[jQuery] find form from input?

2007-07-18 Thread Gilles (Webunity)

Let's say i have this construction:








And i have this query
$('.textfield').each(function() { ... });

How do i find the parent form?
a) jQuery('form').contains(this);
b) jQuery(this).parents('form').. ?

What is the best and fastest way?



[jQuery] Re: dev tip: combining JS script files

2007-07-16 Thread Gilles (Webunity)

The filemtime is checked, if there are no differences, the precompiled
files (CSS/JS) are served. Load times are still around 1sec ;)

On Jul 16, 11:23 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Gilles (Webunity) wrote:
> > I've build something similar to this; here's how i did it:
> > on my webserver, there are a bunch of JS and CSS files. During each
> > page load, i create an array of CSS and JS files, which have to be
> > included on that page. Currently i store these in session, but that
> > isn't needed. In the header of the page, i have 2 calls, one to "/
> > framework/load?css/" and one to "/framework/load?js/ > scriptname>". That script ("load" is a PHP file which reads the array,
> > generates a hash out of it, checks to see if the files are modified
> > since the last time they where "build" and if so, recombines all files
> > and minifies them (in case of JS: Packer, in case of CSS: remove
> > newlines, comments and tabs). After compiling it writes the generated
> > file to disk and serves that to the browser. It was a lot of work, but
> > it allows me to keep all original JS and CSS files on the server (=
> > greater maintainability) and improves load times drastically.
>
> > HTH
>
> > -- Gilles
>
> You're saying that is done on each page load. Isn't it better to do that
> once, when deploying the files? How long does it take to merge the files?
>
> --Klaus



[jQuery] Re: dev tip: combining JS script files

2007-07-16 Thread Gilles (Webunity)

I've build something similar to this; here's how i did it:
on my webserver, there are a bunch of JS and CSS files. During each
page load, i create an array of CSS and JS files, which have to be
included on that page. Currently i store these in session, but that
isn't needed. In the header of the page, i have 2 calls, one to "/
framework/load?css/" and one to "/framework/load?js/". That script ("load" is a PHP file which reads the array,
generates a hash out of it, checks to see if the files are modified
since the last time they where "build" and if so, recombines all files
and minifies them (in case of JS: Packer, in case of CSS: remove
newlines, comments and tabs). After compiling it writes the generated
file to disk and serves that to the browser. It was a lot of work, but
it allows me to keep all original JS and CSS files on the server (=
greater maintainability) and improves load times drastically.

HTH

-- Gilles

On Jul 16, 7:55 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Stephan Beal wrote:
> > Hi, all!
>
> > i just wanted to take a moment to share a tip which i don't see used
> > too often on live sites:
>
> > Combine all of your JS scripts into a single file. This helps reduce
> > the load time of the page by reducing the number of separate GET
> > requests.
>
> > In principal you should be able to do the following to combine the
> > files:
>
> > cat file1.js file2.js file3.js > all.js
>
> > but some scripts do not work with this because they are missing a
> > trailing semicolon (shame on them!). A simple workaround is:
>
> > for i in file1.js file2.js file3.js; do
> >   cat $i
> >   echo ';'
> > done > all.js
>
> > If you're using GNU Make to build your project, here's a bit of Make
> > code which does this:
>
> > mega.js.inputs := jquery.pack.js interface.js \
> > jquery.blockUI.pack.js jquery.contextmenu.packed.js \
> > jquery.idTabs.pack.js \
> > jquery.colorPicker.js \
> > jquery.bogoTabs.js
> > $(mega.js.inputs):
> > $(mega.js): $(mega.js.inputs)
> > @echo "Creating $@ ..."; \
> > for i in $(mega.js.inputs); do cat $$i; echo ';'; done > $@
> > # ^ without the extra semicolon, the included file doesn't work
>
> > Obviously, edit $(mega.js.inputs) to suit your project.
>
> That is very reasonable. Here's some information 
> why:http://yuiblog.com/blog/2006/11/28/performance-research-part-1/
>
> If you're on Rails, you can use the AssetPackager plugin that does the
> merging automatically for you depending on the environment.
>
> --Klaus



[jQuery] Re: Selector challenge?

2007-07-13 Thread Gilles (Webunity)

Yeah that was what i finally came up with John, but a reverse search
would be cool (someday) ;)

On 13 jul, 14:51, "John Resig" <[EMAIL PROTECTED]> wrote:
> If that break is guaranteed to be there, then this will work:
> jQuery('.formError:first', this).prev().prev(':input')
>
> --John
>
> On 7/13/07, Gilles (Webunity) <[EMAIL PROTECTED]> wrote:
>
>
>
> > 
> > 
> > 
> > ...
> > 
>
> > As said. in the application i am building iit should find the previous
> > form element, no matter where it is located ;)
>
> > On 13 jul, 12:19, "Juha Suni" <[EMAIL PROTECTED]> wrote:
> > > Gilles (Webunity) wrote:
> > > > Well i've tried that one off course, but the problem is that i don't
> > > > know, how much markup comes before the 
>
> > > > So i tried this as well;
> > > > jQuery('.formError:first', this).prev(':input')
>
> > > > but that doesn't work, even though the docs state it should work.
>
> > > I think that only picks the previous element (whatever it is) and then
> > > filters it out if it is not an input field. So that won't do.
>
> > > It is pretty difficult to answer your question without seeing some sample
> > > html structure. If the input field and the error div are siblings, but are
> > > not siblings to other input fields or errors, then you could propably use
>
> > > jQuery('.formError:first', this).siblings(':input:first') or since there
> > > should be no other inputs on this level of the hierarchy, just use
> > > jQuery('.formError:first', this).siblings(':input)
>
> > > Another easy way would be to modify your PHP code so that it gives a
> > > specific class to the input fields that have an error, and use that to
> > > select them.
>
> > > If those won't do, I'd suggest you post some sample html to work with.
>
> > > --
> > > Suni



[jQuery] Re: Selector challenge?

2007-07-13 Thread Gilles (Webunity)




...


As said. in the application i am building iit should find the previous
form element, no matter where it is located ;)

On 13 jul, 12:19, "Juha Suni" <[EMAIL PROTECTED]> wrote:
> Gilles (Webunity) wrote:
> > Well i've tried that one off course, but the problem is that i don't
> > know, how much markup comes before the 
>
> > So i tried this as well;
> > jQuery('.formError:first', this).prev(':input')
>
> > but that doesn't work, even though the docs state it should work.
>
> I think that only picks the previous element (whatever it is) and then
> filters it out if it is not an input field. So that won't do.
>
> It is pretty difficult to answer your question without seeing some sample
> html structure. If the input field and the error div are siblings, but are
> not siblings to other input fields or errors, then you could propably use
>
> jQuery('.formError:first', this).siblings(':input:first') or since there
> should be no other inputs on this level of the hierarchy, just use
> jQuery('.formError:first', this).siblings(':input)
>
> Another easy way would be to modify your PHP code so that it gives a
> specific class to the input fields that have an error, and use that to
> select them.
>
> If those won't do, I'd suggest you post some sample html to work with.
>
> --
> Suni



[jQuery] Re: Selector challenge?

2007-07-13 Thread Gilles (Webunity)

Well i've tried that one off course, but the problem is that i don't
know, how much markup comes before the 

So i tried this as well;
jQuery('.formError:first', this).prev(':input')

but that doesn't work, even though the docs state it should work.


On 13 jul, 11:30, "Juha Suni" <[EMAIL PROTECTED]> wrote:
> Gilles (Webunity) wrote:
> > Given this query:
> > jQuery('.formError:first', this);
>
> > I basically have this question:
> > How can i find the first input element, before an object?
>
> How about
> jQuery('.formError:first', this).prev();
>
> That should do the trick.
>
> --
> Suni



[jQuery] Selector challenge?

2007-07-13 Thread Gilles (Webunity)

Guys,

I'm redoing some of my old functions. Right now i have a form
validation function (PHP and SmartyValidate) which echoes the
following line of code after an invalid form field:
... message ...

I also have a formReset function, which basicly sets the focus to the
first visible and enabled form field. The code reads like this:
jQuery(":input:visible:enabled:first", this).focus();

where "this" is the form off course.

Here's the challenge.
Instead of simply setting the focus to the first visible and inabled
form element, i want the focus to be on the element which has
formError after it. One can assume that any form error matches both an
enabled and visible field.

Given this query:
jQuery('.formError:first', this);

I basically have this question:
How can i find the first input element, before an object? E.g. is
there a reverse search in jQuery?
And if so, can it be combined into 1 query?

-- Gilles



[jQuery] Re: Slider Example

2007-07-11 Thread Gilles (Webunity)

Glen; take a look at this one:
http://dev.jquery.com/~gilles/slider/

It's broken, but styled ;)

it needs the interface libs but it should run then...


On Jul 12, 5:04 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Does anyone have a version of the Interface Slider on a public site?
> Something tricked out and nicely designed?  Not the demo, one in the wild.
> :)
>
> Glen



[jQuery] Re: PACKER3 issues

2007-07-05 Thread Gilles (Webunity)

Thanx for sharing Will!

On Jul 5, 12:37 am, Will Arp <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> this has been fixed in latest jquery svn,
> but still need fixing in the form and metadata
> plugins.
>
> - eval("data = " + data);
> + data = eval("(" + data + ")");
>
> related to:  Ticket #1298http://dev.jquery.com/ticket/1298
>
> I've had quite some code break using
> packer3 shrink option, watch out..
>
> Thank you and have a great day!
> -will



[jQuery] Re: 1.1.3 and Interface

2007-07-02 Thread Gilles (Webunity)

If you'd read the release notes, you'd see that the interface package
is no longer in development, possibly only bug fixes. The new "UI"
package is going to replace interface in the future.

On Jul 2, 8:08 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> I am thrilled to see the 1.1.3 release.
>
> One question, my main project makes heavy use of Interface.  Is this project
> still being developed?  Can we expect any updates to it?  Or changes that
> take advantage of the 1.1.3 event/animation improvements?
>
> JK



[jQuery] Re: Masked Input Plugin RC3

2007-07-02 Thread Gilles (Webunity)

And also, i would like to see a "thanks" part in your documentation,
for people who submitted bugs, i gave you 2 allready ;)

-- Regards,
Gilles van den Hoven - http://www.webunity.nl

On Jul 3, 2:08 am, Josh Bush <[EMAIL PROTECTED]> wrote:
> I keep coming across a few bugs here and there that need fixing.  I've
> released the 3rd RC for my masked input plugin.  This one has breaking
> changes, so if anyone is using it, please proceed carefully.
>
> Here's what I managed to get into this release.
>
> * BREAKING CHANGE: The mask function has been changed to more closely
> match the style of the jQuery library. Instead of
> calling .maskedinput(), you will need to call .mask(). Additionally
> the .AddMaskDefinition() has been moved to a namespace and renamed.
> Instead, you should make a call to .mask.addPlaceholder().
> * Fixed a bug where the buffer was wiped when text was selected and a
> non-typeable character was pressed.
> * Fixed a bug where the buffer was not cleared, but the text was when
> pressing the escape key.
> * More code cleanup.
>
> Please check it out athttp://digitalbush.com/projects/masked-input-plugin
>
> Thank You
> Josh



[jQuery] Re: NEWS: Ajax Rain: Showcase of Awesome Ajax Controls

2007-06-27 Thread Gilles (Webunity)

Nice website ray!

I wonder if all jQuery plugins there are also on the plugins page

On 27 jun, 19:05, Rey Bango <[EMAIL PROTECTED]> wrote:
> I came across a great link today on DZone.com for Ajax Rain
> (http://www.ajaxrain.com). It has one of the best lists of Ajax widgets
> and controls I've ever seen. The site actually uses jQuery and lists
> quite a number of jQuery plugins. In addition, it lists out controls
> from other libraries and many have amazing capabilities.
>
> With all of the talk about which jQuery plugins to build or use, I
> thought this would be a good list for a jQuery plugin author to look at.
>
> Enjoy.
>
> Rey...



[jQuery] Re: Masked Input Plugin RC2

2007-06-27 Thread Gilles (Webunity)

Nice! However, when you see the mask and press "ESC" the mask also
disappears ;)

On 28 jun, 03:21, Josh Bush <[EMAIL PROTECTED]> wrote:
> Hey there, I'm back at it trying to push to a 1.0 release.  I made
> some code changes, so I would like some verification that all is well
> before I move this to a v1.0 status.
>
> The following is a list of changes for this release.
>  * Now supports user defined placeholder characters by calling
> "$.AddMaskDefinition(char,regex)" .  There is an example on my site.
>  * Fixed a bug where backspace from the first character position
> deleted the mask.
>  * General code cleanup.
>
> Please check it out at:http://digitalbush.com/projects/masked-input-plugin
> orhttp://jquery.com/plugins/project/maskedinput



[jQuery] Re: jQuery solutions needed...

2007-06-26 Thread Gilles (Webunity)

And i am also creating some widgets (including the unobtrusive
combobox) for jQuery

http://groups.google.com/group/jquery-en/browse_thread/thread/4ebf9924c0a33ac4



[jQuery] Re: Draggables in jQuery

2007-06-26 Thread Gilles (Webunity)

Drag yes, drop no ;)

http://dev.iceburg.net/jquery/jqDnR/



[jQuery] Re: New Plugin: HoverAccordion

2007-06-26 Thread Gilles (Webunity)

Nice work, i see some errors however, especially when going from top
to bottom, sometimes the last item does not expand even tough there is
an arrow there.
 -- Gilles

On 26 jun, 13:34, Bernd Matzner <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm really excited: My first try at building a jQuery plugin!
>
> This is another accordion, but in this case, it's designed to open up
> by just moving your mouse over an item, just like on 
> thehttp://www.apple.com/mac/
> website.
>
> Can be used together with the excellent hoverIntent plugin to avoid
> accidentally opening an item.
>
> See
>
> http://berndmatzner.de/jquery/hoveraccordion/
>
> for instructions and examples.
>
> Looking forward to your comments,
>
> Bernd



[jQuery] Re: cssHover rebirth: wuWidgets

2007-06-26 Thread Gilles (Webunity)

What would you like to see (besides some styling) on the textbox?
Datepicker? I could do that, but i'd have to combine it with the
allready existing datepicker plugin and the inputmask plugin. That
combination is golden i think!

I can imagine a dropdown, but i think that requires some more work.
E.g. i could duplicate the one used by Ext, let me know.

p.s. i am not in the market to make an interface pack / EXT pack or
something. Just some lightweight controls that have extended
flexibility.

-- Gilles

On 26 jun, 10:24, weepy <[EMAIL PROTECTED]> wrote:
> how about textbox or dropdown ?



[jQuery] cssHover rebirth: wuWidgets

2007-06-26 Thread Gilles (Webunity)

Oke guys, i thought i'd kick an old topic since i am thinking of
rewriting one of my old plugins a bit to work with the latest version
of jQuery and to incorporate the comments you gave into it.

The original thread is here:
http://groups.google.com/group/jquery-en/browse_thread/thread/f8739f433058e3f4/b6ffee9ecdfb0540

I've renamed the plugin from cssHover to wuWidgets (Webunity Widgets)
since they are more widgets then merely a cssHover-ish implementation.
I will also be adding one new form widget, which i've called the
"Multistate checkbox". The idea for that came from this webpage:
http://www.thinkvitamin.com/features/design/web-app-without-makeup-the-design-iterations-of-teamsnap

Basicly we'll end up with these controls:
- Checkbox
- Radio button
- Button: normal
- Button: toggle button
- Checkbox: normal
- Checkbox: multiple states

All is unobtrusive offcourse.

If you have any other thoughts, please let me know, i'll try to
implement them.

-- Gilles



[jQuery] Re: Attach "success" to jquery.rating

2007-06-25 Thread Gilles (Webunity)

A plugin by John Resig and badly implemented? Hardly i guess.. Try
this, i don't know if that works, but seems more logical to me.
$('form.rating').rating( { success: function() { alert("ASD"); } } );

You could also take a look at:
http://sandbox.wilstuckey.com/jquery-ratings/
http://php.scripts.psu.edu/rja171/widgets/rating.php

Are you sure John made that plugin?



[jQuery] Re: Moving Images as objects

2007-06-25 Thread Gilles (Webunity)

How about the z-index property of CSS?

On 25 jun, 05:50, Jean <[EMAIL PROTECTED]> wrote:
> i thin u can get the position of image1 and use transferTo (interface
> plugin) for move the image2 to the top of image1
>
> On 6/23/07, Paolo <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I have 2 images and 1 button. When I click on the button, I'd like to
> > move image 2 on top of image 2. I know there are some ways of doing
> > this, but they all require the image coordinates. Is there a way to do
> > this at the object level as i don't have coordinates?
>
> > thanks,
> > Paolo
>
> --
>
> []´s Jeanwww.suissa.info
>
>Ethereal Agencywww.etherealagency.com



[jQuery] Re: easing plugin break jQuery, easing plugin needs a small fix

2007-06-24 Thread Gilles (Webunity)

Great, just one of the risks using bleeding edge code ;)




[jQuery] easing plugin break jQuery, easing plugin needs a small fix

2007-06-24 Thread Gilles (Webunity)

The easing plugin breaks jQuery's fadeIn etc, since they default to
"easing.swing" which is not in the easing plugin, but IS in the jQuery
core. So if you also load in jQuery.easing, you'll get a bug ;)

For now, i've duplicated the linear part in jQuery.easing.js, and
renamed that to "swing". jQuery likes that a lot and runs without bugs
now ;)

But to fix it permanently, can someone please add the swing animation
to the easing plugin?

-- Gilles



[jQuery] Re: Is it possible to attach codes to body.onload via document.ready?

2007-06-23 Thread Gilles (Webunity)

As i see your question, i think you mean this:

jQuery(document).ready(function() {
// Assign event to window.onload
jQuery('body').load(function() {
alert('Everything is loaded!');
});
});

On 23 jun, 12:52, howa <[EMAIL PROTECTED]> wrote:
> Hello,
>
> is it possible to attach some codes to the body.onload via
> document.ready, or other methods to attach body.onload?
>
> thanks.



[jQuery] Re: Masked Input Plugin RC1

2007-06-22 Thread Gilles (Webunity)

Josh, one suggestion.

When you take a look at the demo provided by David, you see that when
you click the button, you'll see the current date. When you select the
text, and press [backspace], you'll see a blank field. Only after
entering a valid digit, you'll see the mask appear, if you press
backspace then, the mask appears as you would want it to be. When you
press ESC, after that, the entire field is empty again.

I would like to see that the mask is there, when there is nothing in
the field (e.g. respond to escape key if that is a cross browser
thing). You could do this by using your watermark plugin.

Does the masked text also submit to the backend?

HTH,
Gilles



[jQuery] Use Google Gears to improve the user experience?

2007-06-22 Thread Gilles (Webunity)

I was wondering today, if Google gears (or any other local storage
system) could be used to improve the speed of certain types of pages,
e.g. website galleries..

What i had in mind is this;
- When the user opens a gallery, an xmlhttp request is made that
fetches the gallery contents.
- When the user goes to page 2 of the gallery, the gallery checks (by
xmlhttp) to see if the contents of the gallery was changed in one way
or another (checksum or something like that). Only when the gallery
has changed, a new call is made to the gallery to get the latest
version, otherwise the javascript rebuilds the gallery.

You don't have to use Offline Storage for this, but it could be cool
for repeating visitors...

Could this work?



[jQuery] [off-topic] how do you guys organize your project folders?

2007-06-20 Thread Gilles (Webunity)

Hi guys, i was fiddling today with one of my newer projects, and i was
wondering how you guys organize things.

Right now i have this structure (all based on mainly website
development)

Customer name
--\ 
--\ develop
--\ Assets
--\ Text
--\ 
--\ 
--\ final

This means, that i can have multiple websites under one customer, and
under each website i have a develop folder and a final folder. In the
final folder goes the final product, and i've made space in the
develop folder for each subpage.

The site itself (whether it is a flash site or a static site (= PSD
for design)) goes in the root of the develop folder. The stock
photography and other image related things go under the "Assets"
folder. The site's text goes under the Text folder. I create a
subdirectory in the develop folder for each page that needs some
specific items, such as Flash parts or even a custom Photoshop Job.

Well that is my current project structure, i would love to hear yours,
since i am unsure if mine is as good as it should be :)



[jQuery] Re: New Plugin Repository

2007-06-20 Thread Gilles (Webunity)

Hi guys,

Good work!

Please add these plugins, since they aren't on the list yet:
http://dev.jquery.com/~gilles/cssHover/
http://dev.jquery.com/~gilles/sifr/

Thanx

Gilles



[jQuery] Re: @mike: blockUI fix

2007-06-16 Thread Gilles (Webunity)

Cool! I'll be going to try and rebuild my administration site using
blockUI (with ajax forms) instead of my own submodal (which is not so
widely tested off course). I'll keep you posted

Gilles



[jQuery] Re: @mike: blockUI fix

2007-06-15 Thread Gilles (Webunity)

Great! Make sure you update your own demo page, since it contains a
link to the old "filename" on code.google.com

On 15 jun, 13:34, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Gilles,
>
> Sorry for the confusion.  I renamed the file as Brandon suggested and
> committed that change.  I'm still working on the tab navigation but I
> should have it done today.  There's a little extra work for Opera
> since it won't let you cancel a tab key event.
>
> Mike
>
> On 6/15/07, Gilles (Webunity) <[EMAIL PROTECTED]> wrote:
>
>
>
> > You did not yet commit this did you?
>
> > I still see Version 1.22  (06/08/2007) when i download the file here @
> > work from code.google.com
>
> > -- Gilles



[jQuery] Re: @mike: blockUI fix

2007-06-15 Thread Gilles (Webunity)

You did not yet commit this did you?

I still see Version 1.22  (06/08/2007) when i download the file here @
work from code.google.com

-- Gilles



[jQuery] Re: @mike: blockUI fix

2007-06-14 Thread Gilles (Webunity)

You're welcome.

P.s. there is still one thing i would like to see fixxed, but i can't
do that alone. With the current code (in firefox) you can tab only in
the "popup". However, when that is done, you tab to the address bar,
and then to the google search field, then to the tabs (if you have
more then 1 window open) and then the focus is drawn around the entire
"block" (e.g. the overlay). It would be cool if, in that case, the
focus would go straight to the popup. However, i haven't succeeded in
doing so...



[jQuery] @mike: blockUI fix

2007-06-14 Thread Gilles (Webunity)

Mike, i've seen that you implemented the tab question i asked for.
However, when testing it, i came to the conclusion that you could
still tab out of the element, but not back into it. As i can't access
SVN from work, i thought i'd post the fix here.

I've tested this on the "simple dialog" example of your site, but
adding this extra line:
jQuery.blockUI.defaults.allowTabToLeave = 0;


// event handler to suppress keyboard/mouse events when blocking
handler: function(e) {
//->Gilles
// Previous "allowTabToLeave" code did not work. You could tab
out, but not tab back in.
// This code works different. If you want to tab, and you aren't
allowed to leave, it sets
// the focus back on the element you are showing.
if (e.keyCode && e.keyCode == 9 && !
$.blockUI.defaults.allowTabToLeave) {
if ($(e.target).parents('div.blockMsg').length > 0) {
return true;
} else {
// For some reason, calling the "focus" function did not
work here.
var v = $(':input:visible:enabled', 
$.blockUI.impl.pageBlock)
[0];
if (v) v.focus();
// Suppress old tabby key
return false;
}
}
//<-Gilles

if ($(e.target).parents('div.blockMsg').length > 0)
return true;
return $
(e.target).parents().children().filter('div.blockUI').length == 0;
},




[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-13 Thread Gilles (Webunity)

I agree with Glenn on this one. I vote for "more speed", we need to
"fight back". Another 5k doesn't matter that much to me or my clients
since all of them have caching on. Maybe an extra plugin?



[jQuery] Re: jQuery Media Plugin

2007-05-23 Thread Gilles (Webunity)

Nice work mike!



[jQuery] Re: jQuery Media Plugin

2007-05-23 Thread Gilles (Webunity)

Nice work mike!



[jQuery] animate broken (e.g. fadeIn(), fadeOut())

2007-05-23 Thread Gilles (Webunity)

I have this code:


And this javascript code:
function teaserHide() {
jQuery('#teaser').fadeOut(1000);
}

function teaserShow() {
jQuery('#teaser').fadeIn(1000);
}

/**
 * Initialize page
 */
jQuery(document).ready(function() {
//
// Start update function
jQuery('#teaser').PeriodicalUpdate({
url: '/framework/teaser',
delay: 1,
delayed: false,
cbStart: function(jqElem) {
teaserShow();
},
cbFinish: function(jqElem) {
setTimeout(teaserHide, 4000);
}
});
});

Basicly what it does is it shows a teaser on my homepage (fading
graphics). All works fine, expect for the fading in and out. Either
the fadein works, or the fadeout works, but not both... Exactly
thesame code worked fine with pre 1.1.

I think it is something in the animate code.. The strange thing is; no
Javascript errors are thrown.



[jQuery] jQuery SVN broken?

2007-05-21 Thread Gilles (Webunity)

Is jQuery under DOS attack again? I've been trying to get the latest
SVN version, but i am unable to do so. I've allready sent John an
email about this, but somehow my account is also "gone". can anybody
help me to fix the SVN connection problems?

Thanx
Gilles



[jQuery] Re: PeriodicalExecutor or $.executeEach

2007-05-08 Thread Gilles (Webunity)

Actually there is allready something called "periodical update"
plugin, you can check that out if you wish..



[jQuery] Re: "Focus" code snippet for: BlockUI, Lightbox, Thickbox, and other windows...

2007-05-07 Thread Gilles (Webunity)

Hi Mike,

It seems that my last reply didn't come through. I wanted to say that
i totally agree that it was a bit "bold" of me.. However, i really
think that a "modal" dialog should prevent all interactivity with the
underlying elements, including focus. Is there any chance that this
can be achieved (by an option or programmaticly)?

Thanx

Gilles



[jQuery] Re: "Focus" code snippet for: BlockUI, Lightbox, Thickbox, and other windows...

2007-05-04 Thread Gilles (Webunity)

On 4 mei, 09:41, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Gilles (Webunity) wrote:
> > Guys,
>
> > It has been a long time since the first blockUI and "window" plugins
> > (e.g. lightbox/thickbox) became available. However, i still didn't see
> > this piece of code in any of these sollutions. All projects have
> > thesame "bug", you can TAB out of the lightbox, to the underlying
> > page. (For a demo, open any project demo page, open the window and hit
> > TAB a few times. Eventually you will "jump" the page to another
> > location.. Not very user friendly...).
>
> > Especially in blockUI this snippet can be usefull:
>
> > /**
> >  * keepFocusInside (The name needs some work)
> >  * Basicly it checks to see if the element which wants to receive
> >focus
> >  * is a direct child of the SOME_ELEMENT you pass. If not, it returns
> > false.
> >  */
> > function keepFocusInside(oEvent, oParent) {
> >if (oElement = oEvent.srcElement || oEvent.target) {
> >return jQuery(oElement).parents(oParent).length;
> >} else {
> >// For all other browsers
> >return true;
> >}
>
> > }
>
> > Usage When the "block" starts:
> > jQuery(document).focus(function(oEvent) { return
> > keepFocusInside(oEvent, SOME_ELEMENT); });
>
> > Usage When the "block" ends:
> > jQuery(document).unfocus(function(oEvent) { return
> > keepFocusInside(oEvent, SOME_ELEMENT); });
>
> > HTH,
>
> > Gilles
>
> Gilles, actually something like that is already integrated in Thickbox
> Reloaded:
>
> function blockKeys(e) {
>  var allowed = $('a, input, select, textarea', modal);
>  for (var i = 0, k = allowed.length; i < k; i++) {
>  if (allowed[i] == e.target) {
>  return true;
>  }
>  }
>  return false;
>  }
>
> As I borrowed that from the BlockUI plugin, it's not correct to state
> any of the solutions you're mentioning are lacking this.
>
> Thanks for sharing anyway!
>
> -- Klaus- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Well, sorry Klaus, but i based this conclusion on this page:
http://malsup.com/jquery/block/#dialog

Show the dialog (in FF 2.0) and start tabbing. You'll soon see that
the focus jumps to the "tabs" on top of the screen. I didn't actually
"look" into the code, so sorry for that remark.

p.s. in your code.. Isn't that lacking the "button" element?

Just thought i'd share my code, and maybe improve that a bit...



[jQuery] "Focus" code snippet for: BlockUI, Lightbox, Thickbox, and other windows...

2007-05-04 Thread Gilles (Webunity)

Guys,

It has been a long time since the first blockUI and "window" plugins
(e.g. lightbox/thickbox) became available. However, i still didn't see
this piece of code in any of these sollutions. All projects have
thesame "bug", you can TAB out of the lightbox, to the underlying
page. (For a demo, open any project demo page, open the window and hit
TAB a few times. Eventually you will "jump" the page to another
location.. Not very user friendly...).

Especially in blockUI this snippet can be usefull:

/**
 * keepFocusInside (The name needs some work)
 * Basicly it checks to see if the element which wants to receive
focus
 * is a direct child of the SOME_ELEMENT you pass. If not, it returns
false.
 */
function keepFocusInside(oEvent, oParent) {
if (oElement = oEvent.srcElement || oEvent.target) {
return jQuery(oElement).parents(oParent).length;
} else {
// For all other browsers
return true;
}

}

Usage When the "block" starts:
jQuery(document).focus(function(oEvent) { return
keepFocusInside(oEvent, SOME_ELEMENT); });

Usage When the "block" ends:
jQuery(document).unfocus(function(oEvent) { return
keepFocusInside(oEvent, SOME_ELEMENT); });

HTH,

Gilles



[jQuery] Re: Keyboard shortcuts

2007-04-20 Thread Gilles (Webunity)

Yes i've ported this to jQuery, i'll add it to SVN tonight. It has
thesame options as the keyboard_shortcuts, but i've improved (cleaned
up) the code a lot. You can bind any combination you want.



[jQuery] Interface "folder-tree" requests

2007-04-13 Thread Gilles (Webunity)

I don't know if Stefan is reading this discussion group, but i have
some questions for him. I was wondering if he wants to change the demo
at:
http://interface.eyecon.ro/demos/drag_drop_tree.html

so that it does the following thing:
- Don't allow LI's to be dragged and dropped BELOW their structure
(e.g. further down in the hierarchy). This gives firefox currently an
error.
- Don't allow items to be dropped on thesame (direct) UL as they are
allready a part of.
- If an item can't be dropped there, show no (or a different) class.

The last thing might require a change of the draggable/droppable
code...?

Thanx
Gilles