[Proto-Scripty] Re: asynchronous file upload

2009-01-17 Thread Vladimir Tkach
Nice solution for progress bar  ajax upload
Ajax progress indicator with
prototypehttp://teamco-anthill.blogspot.com/2009/01/ajax-progress-indicator-with-prototype.html
src(
http://www.caboo.se/articles/2008/3/27/ajax-progress-indicator-with-prototype
)

Ajax file 
uploadhttp://teamco-anthill.blogspot.com/2009/01/ajax-file-upload.html
Browsers
force us to use file inputs for uploads, which are impossible to style.
Moreover, form-based uploads look obsolete in modern ajax applications. We
can use flash to solve this problem, but javascript works nice too.

View an usage examples for
jqueryhttp://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htmand
prototypehttp://valums.com/wp-content/uploads/ajax-upload/demo-prototype.htmwith
various options.

Download

   - 
jquery.ajax_upload.0.9.jshttp://valums.com/wp-content/uploads/ajax-upload/jquery.ajax_upload.0.9.js
   (7KB)
   - jquery.ajax_upload.0.9.min.js
   http://valums.com/wp-content/uploads/ajax-upload/jquery.ajax_upload.0.9.js
   (3KB)
   - prototype.ajax_upload.0.9.js
   
http://valums.com/wp-content/uploads/ajax-upload/prototype.ajax_upload.0.9.js
   (7KB)
   - 
prototype.ajax_upload.0.9.min.jshttp://valums.com/wp-content/uploads/ajax-upload/prototype.ajax_upload.0.9.js
   (3KB)

http://valums.com/ajax-upload/

-- 
Best Regards,
Vladimir Tkach

+972-54-7574166
tea...@gmail.com

http://teamco-anthill.blogspot.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: IE 8 Beta 2 Overflow Problem

2009-01-17 Thread Uros

Yes, the only one.
I'd really be happy to see a fix for this, project is very important.
Thanks.

On Jan 17, 5:41 am, kangax kan...@gmail.com wrote:
 On Jan 16, 12:22 pm, Uros urospo...@gmail.com wrote:

  Hey, guys!
  I need help and it's very urgent.

  Here's the description of problem.
  I've got one div which has got huge overflow (I made it that way so it
  comes IE7 compatible) and the overflow is hidden by CSS. Now, I want
  to do some some Effect.toggle('blind') on that div. Each browser
  except IE 8 Beta 2, does this normally. But IE 8 (sadly) stretches the
  div all the way down to the end of overflow and blinds it up. I just
  want to make it not stretch down to the end of overflow. IE7
  interprets this OK too, but I don't know what's wrong with IE8. Any
  help?

 Prototype doesn't fully work in IE8 yet. Is this the only issue
 you're facing?

 --
 kangax
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Help me with this

2009-01-17 Thread Colorblind

Hy everyone,

I have the following script :

if (Object.isUndefined(Axent)) { var Axent = { } }
Axent.SelfLabeledInput = Class.create({
initialize: function() {
var labelSelector = arguments[0] || 'label';
$$(labelSelector).findAll(function(l) {return
(l.readAttribute
('for') !== null)}).each(function(l){
l.hide();
$(l.readAttribute('for'))._value =
l.innerHTML;
if ($(l.readAttribute('for')).value.empty())
{
$(l.readAttribute('for')).value = $(l.readAttribute
('for'))._value
}
$(l.readAttribute('for')).observe
('blur',function(e){if
(Event.element(e).value == '') Event.element(e).value = Event.element
(e)._value;});
$(l.readAttribute('for')).observe
('focus',function(e){if
(Event.element(e).value == Event.element(e)._value) Event.element
(e).value = '';});
});
}

});

I want to write a function from this script that when i press the
submit on a form, if an input is focused, it hides/clears it, so it
doesn`t get submitted to the database. Work with the latest Prototype
lib. I don`t know any javascripting so, I need your help !!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] JavaScript performance ebook

2009-01-17 Thread Thomas Fuchs

Hey all!

I've been busy writing on an ebook on JavaScript performance, and I'm  
announcing that we'll soon reach our beta phase! I want to reward the  
list regulars with $5 off the regular price once we're hitting beta--  
just go to http://javascriptrocks.com and sign up for the announcement  
email!

The book it self is framework agnostic-- you can use the tips and  
techniques for all sorts of JavaScript. We're concentrating on serving  
JavaScript right, including how to know when/where/from where/when not  
to serve it, all the gritty details on caching, minifying,  
concatenating plus of course on the language itself, for example how  
to avoid 'slow script' errors from pesky long-running loops.

You didn't understand half the concepts in the previous paragraph? No  
problem-- thats what ebook is for. :) My wife Amy Hoy (her  
script.aculo.us effects cheat sheet was downloaded 750k times!)  
guarantees that all the concepts will be easy to understand. You won't  
have excuses for slow running apps anymore after this! :)

http://javascriptrocks.com

Best,
Thomas

--
Thomas Fuchs
tho...@script.aculo.us
http://script.aculo.us/thomas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Help me with this

2009-01-17 Thread kangax

On Jan 17, 1:18 pm, Colorblind dust_...@yahoo.com wrote:
 Hy everyone,

 I have the following script :

 if (Object.isUndefined(Axent)) { var Axent = { } }
 Axent.SelfLabeledInput = Class.create({
         initialize: function() {
                 var labelSelector = arguments[0] || 'label';
                 $$(labelSelector).findAll(function(l) {return
 (l.readAttribute
 ('for') !== null)}).each(function(l){

Why not just - `$$('label[for]')`?

                     l.hide();
                         $(l.readAttribute('for'))._value =
 l.innerHTML;
                         if ($(l.readAttribute('for')).value.empty())
 {
                 $(l.readAttribute('for')).value = $(l.readAttribute
 ('for'))._value

Executing `$(l.readAttribute('for'))` more than once seems
unnecessary. Why not save it in a variable?

             }
                         $(l.readAttribute('for')).observe
 ('blur',function(e){if
 (Event.element(e).value == '') Event.element(e).value = Event.element
 (e)._value;});
                         $(l.readAttribute('for')).observe
 ('focus',function(e){if
 (Event.element(e).value == Event.element(e)._value) Event.element
 (e).value = '';});
                 });
         }

 });

 I want to write a function from this script that when i press the

You want to write a function from this script. What does that mean?

 submit on a form, if an input is focused, it hides/clears it, so it
 doesn`t get submitted to the database. Work with the latest Prototype

You can't really track focused elements using native DOM methods.
Instead, you can observe all of the elements for focus/blur events and
mark them as focused accordingly. You can then check which element
is currently focused right before submitting a form.

[...]

--
kangax
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Help me with this

2009-01-17 Thread Colorblind

Called on form submit, clear all labels so they don't accidentally get
submitted to the server
Something like that

On Jan 18, 1:33 am, kangax kan...@gmail.com wrote:
 On Jan 17, 1:18 pm, Colorblind dust_...@yahoo.com wrote:

  Hy everyone,

  I have the following script :

  if (Object.isUndefined(Axent)) { var Axent = { } }
  Axent.SelfLabeledInput = Class.create({
          initialize: function() {
                  var labelSelector = arguments[0] || 'label';
                  $$(labelSelector).findAll(function(l) {return
  (l.readAttribute
  ('for') !== null)}).each(function(l){

 Why not just - `$$('label[for]')`?

                      l.hide();
                          $(l.readAttribute('for'))._value =
  l.innerHTML;
                          if ($(l.readAttribute('for')).value.empty())
  {
                  $(l.readAttribute('for')).value = $(l.readAttribute
  ('for'))._value

 Executing `$(l.readAttribute('for'))` more than once seems
 unnecessary. Why not save it in a variable?

              }
                          $(l.readAttribute('for')).observe
  ('blur',function(e){if
  (Event.element(e).value == '') Event.element(e).value = Event.element
  (e)._value;});
                          $(l.readAttribute('for')).observe
  ('focus',function(e){if
  (Event.element(e).value == Event.element(e)._value) Event.element
  (e).value = '';});
                  });
          }

  });

  I want to write a function from this script that when i press the

 You want to write a function from this script. What does that mean?

  submit on a form, if an input is focused, it hides/clears it, so it
  doesn`t get submitted to the database. Work with the latest Prototype

 You can't really track focused elements using native DOM methods.
 Instead, you can observe all of the elements for focus/blur events and
 mark them as focused accordingly. You can then check which element
 is currently focused right before submitting a form.

 [...]

 --
 kangax
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---