Re: [Proto-Scripty] multipart/form-data upload via ajax

2013-04-26 Thread Wojtek Zadora
Try this solution: http://www.webtoolkit.info/>Ajax file upload http://www.webtoolkit.info/ajax-file-upload.html Anyone have any idea how to do a file upload using ajax? If I do this using the normal submit it works just fine but having it call the dosubmit function and I get the f

Re: [Proto-Scripty] как создавать в классе правильно частные и публичные методы и свойства

2013-01-07 Thread Wojtek Zadora
Sorry, one not so small mistake: should be function initialize() { this.test = 'I am public'; } this is public of course I read and understand a lot of russian but I'd rather not try to write it. Hope answer in english will be of any help to you. To have private functions a

Re: [Proto-Scripty] как создавать в классе правильно частные и публичные методы и свойства

2013-01-07 Thread Wojtek Zadora
I read and understand a lot of russian but I'd rather not try to write it. Hope answer in english will be of any help to you. To have private functions and properties you need to use clousure like this: var AClass = Class.create((function() { var _stat = 'I am static private'; function

Re: [Proto-Scripty] equal height problem with nested divs in product grid

2012-07-25 Thread Wojtek Zadora
In case you would like to make equal columns heigt with pure css only try to modify/add your css this: #products-list-view div.products-grid > div { padding-bottom: 500px; margin-bottom: -500px; } Should do what you want. -wz Hello Everybody, I have an equal-height problem I want to

Re: [Proto-Scripty] Move sortables with javascript?

2012-05-22 Thread Wojtek Zadora
I do not know if my advice will be valuable for you but I would avoid sorting divs with javascript. I think better way is to read the cookie in php and render a page with divs in order according to cookie data. Difficulty of that task is probably determinded by the way you render you html pages.

Re: [Proto-Scripty] stupid checkbox question

2012-04-27 Thread Wojtek Zadora
$(cbValue).checked returns boolean (true|false) and you compare it to string: if( cbState == "checked" ) simply strState = (cbState == true) ? "checked" : "unchecked"; -wz Try it passing cb1 into a function as cbValue and then $(cbValue).checked... On

Re: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-27 Thread Wojtek Zadora
Sorry for the mess I produced. Of course all this stuff with _checked array is not necessery if you want send AjaxRequest immediatly after checkbox click - just extract the clicked item and send all needed data including checkbox state as you do. -wz Hi I wrote a routine (not sure if it fit

Re: [Proto-Scripty] stupid checkbox question

2012-04-26 Thread Wojtek Zadora
Well, I tested it and in my case having value="1" id="cb1"> console.log($('cb1').checked); -> returns false console.log($('cb1').readAttribute('checked')); -> returns null While console.log($('cb2').checked); -> returns true console.log($('cb2').readAttribute('checked')); -> returns checked -

Re: [Proto-Scripty] Effect.SlideDown: the 'afterFinish' callback fires immediately

2012-04-24 Thread Wojtek Zadora
Try this Effect.SlideDown($('floating_basket_wrapper'), { duration: 5, afterFinish: function() { console.log('afterFinish'); } }); -wz Hello, I am using the following code: Effect.SlideDown($('floating_basket_wrapper'), { duration: 5, afterFinish: console.log('afterFinis

[Proto-Scripty] Re: Reference to event

2012-02-09 Thread Wojtek Zadora
Sorry it was stupid question - I may set condition before even creating effect. Sorry - no question -wz Hi Sorry if the subject was ever discussed, but I cannot find any hint for it. My question is as follows: Is there any way to get reference to the Effect from within the callback function?