[Proto-Scripty] Sortable is undefined

2009-07-07 Thread kevin
Hi. I just downloaded 1.8.2 and was attempting to use Sortable. I think I have it right, but I get the error Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/ 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR

[Proto-Scripty] Animated Ajax Record Deletion

2009-07-07 Thread David Behler
Some time ago I came across the blog of David Walsh and his article on Animated Ajax Record Deletion Using MooTools (http://davidwalsh.name/ animated-ajax-record-deletion-mootools). Sadly he uses MooTools and not Prototype. But as I'm more and more trying to create my own classes based on

[Proto-Scripty] Re: How to display the waiting image

2009-07-07 Thread anthony
PHP is the backend. On Jul 6, 5:15 pm, G. Sharon Yang okghy...@gmail.com wrote: That's called processing bar. Depending on your back-end, you write sth in java or php, or other server language, or simply using flash to show the status. what do you use in your back-end? -Sharon On Mon,

[Proto-Scripty] Re: Sortable is undefined

2009-07-07 Thread kevin
It doesn't seem to matter if I'm using relative or absolute paths. I know the file is being included as I can put an alert which comes up on the page load. Kevin On Jul 7, 10:06 am, Narendra sisodiya naren.sisod...@gmail.com wrote: I think your src url is not valid. check the same. It is

[Proto-Scripty] select option by value

2009-07-07 Thread Martín Marqués
I'm trying to select an option from a select, but by value, and not by index. I'm trying like this: function selectOptionByValue(selectID,valor){ var found = false; var i = 0; while(!found iselectID[0].options.length){ if(selectID[0].options[i].value == valor) {

[Proto-Scripty] Re: select option by value

2009-07-07 Thread Matt Foster
You could use many of the enumerable methods, this seems a bit verbose but gets the job done. Enumerable.find will iterate over the collection until the iteration function returns a value of true. I could have used each, but potentially would have iterated more than necessary, as we'd really

[Proto-Scripty] Re: select option by value

2009-07-07 Thread webbear1000
I'm pretty rubbish at picking other people's code apart but this might work better ... selectID[0].options[i].selected = (selectID[0].options[i].value == valor); break; On Jul 7, 9:58 pm, Martín Marqués martin.marq...@gmail.com wrote: I'm trying to select an option from a select, but by value,

[Proto-Scripty] Any way to access class attributes when using 'each' to iterate over an array?

2009-07-07 Thread David Behler
Why does this work: var Deletr = Class.create({ initialize: function(options) { var list = new Array(); $$('a.deletr').each(function(element) { list.push(element); }); } }); But this does not? var Deletr =

[Proto-Scripty] Re: problem with library Window 1.3 overflow

2009-07-07 Thread Miguel Beltran R.
,onBeforeShow : function(){Dialog.closeInfo();} I change to this and work fine ,onShow: function(){ Dialog.closeInfo(); console.log($(vId+_ventana_content)); $(vId+_ventana_content).setStyle({overflow: 'auto'}); }

[Proto-Scripty] Re: How to display the waiting image

2009-07-07 Thread G. Sharon Yang
I think Nich gave a very good answer. Just use animated gif or flash, otherwise, program it in PHP. I had experience with a simple progress bar using jsp and servlet, but not with PHP. -S. On Tue, Jul 7, 2009 at 6:59 AM, anthonymrsmi...@gmail.com wrote: PHP is the backend. On Jul 6, 5:15