[Proto-Scripty] Re: Songbird.
On Jan 29, 2:36 am, Simon hs767...@gmail.com wrote: Has anyone managed to get prototype running in Songbird yet? It is based on a Gecko renderer (like Firefox) but prototype seem not to run on it? Describe seem not to run on it. -- 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] prototype not working with rails 2.2.2 ?
Hi, i made an application using rails and prototype and all worked fine... But today i upgraded rails to 2.2.2 and from that moment when i open the webpage with firefox it gives me an error like object is null and some prototype helpers doesn't work at all as for example the observe_field... Can anyone help me? Thanks, Riccardo --~--~-~--~~~---~--~~ 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] trigger a 'change' event for a 'select' element
I need to trigger a 'change' event for a 'select' element. alert($($(elem).parentNode)); // shows [Object HTMLSelectElement] $($(elem).parentNode).fire('change'); // How do I indicate which option value to change to ? But the fire() doesnt work. But no JS errors either. this.settings.each(function(element){ Event.observe(element, 'change', this.configure.bind (this)) }.bind(this)); configure: function(event) { alert(event); var element = Event.element(event); this.configureElement(element); }, If the fire() worked,then alert(event); would've shown something. --~--~-~--~~~---~--~~ 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 with autocompleter
thanks a lot for you replay disccomp, now it works, i think that i was correct, because i only change the libraries for that one that you put in the replay,my doubt is that in the past i was usig this libraries in order to implement dependent selects and it works perfectly, now i need to check my libraries, thanks again eulerss --~--~-~--~~~---~--~~ 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: trigger a 'change' event for a 'select' element
Hi, The documentation of Element#fire (here[1]) actually makes a point of saying that it can't be used to fire native events. [1] http://prototypejs.org/api/element/fire HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 29, 3:18 pm, Anjanesh anjanesh.for...@gmail.com wrote: I need to trigger a 'change' event for a 'select' element. alert($($(elem).parentNode)); // shows [Object HTMLSelectElement] $($(elem).parentNode).fire('change'); // How do I indicate which option value to change to ? But the fire() doesnt work. But no JS errors either. this.settings.each(function(element){ Event.observe(element, 'change', this.configure.bind (this)) }.bind(this)); configure: function(event) { alert(event); var element = Event.element(event); this.configureElement(element); }, If the fire() worked,then alert(event); would've shown something. --~--~-~--~~~---~--~~ 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: trigger a 'change' event for a 'select' element
On 29 Jan 2009, at 16:18, Anjanesh wrote: I need to trigger a 'change' event for a 'select' element. alert($($(elem).parentNode)); // shows [Object HTMLSelectElement] $($(elem).parentNode).fire('change'); // How do I indicate which option value to change to ? But the fire() doesnt work. But no JS errors either. From http://prototypejs.org/api/element/fire : Element#fire does not support firing native events. All custom event names must be namespaced (using a colon). This is to avoid custom event names conflicting with non-standard native DOM events such as mousewheel and DOMMouseScroll. What you want to to, is set the selectedIndex value from the select element as is documented at http://www.w3schools.com/htmldom/dom_obj_select.asp selectedIndex needs to be an integer. If you want to select it by value, then you'll need to loop the values and when you find the right one, check what index it has (selectedIndex is a getter and a setter) and set it to that index. Best regards Peter De Berdt --~--~-~--~~~---~--~~ 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 with autocompleter
i was checking my example and i think that it doesn't work propertly, for instance, if i type p all options appears, like alve alvr .. per par por ... zer zae and must appear the options that start with p, isn't it? here is my code form name=tarifas method=post table cellspacing=0 cellpadding=0 border=0 tr td width=70 class=texto4cliente:/td td width=200 input type=text id=autocomplete name=autocomplete_parameter/ span id=indicator1 style=display: none img src=/images/spinner.gif alt=Working... / /span div id=autocomplete_choices class=autocomplete/div /td /tr /table script type=text/javascript new Ajax.Autocompleter(autocomplete, autocomplete_choices, li.php, { paramName: value, minChars: 2, indicator: 'indicator1' }) /script /form eulerss On 29 ene, 09:27, eulerss eulers...@hotmail.com wrote: thanks a lot for you replay disccomp, now it works, i think that i was correct, because i only change the libraries for that one that you put in the replay,my doubt is that in the past i was usig this libraries in order to implement dependent selects and it works perfectly, now i need to check my libraries, thanks again eulerss --~--~-~--~~~---~--~~ 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: Ajax.InPlaceCollectionEditor seems to be broken in 1.8.2
On Jan 29, 6:56 am, joe t. thooke...@gmail.com wrote: i'm using unmodified 1.8.2 and the IPCE works fine with Firefox 3. IE is a totally different story, and damn me for not testing, thinking existing functionality wouldn't get broken with upgrades... IE doesn't display the SELECT control at ALL. -joe t. Did you try my 2 examples on FF3? Doesn't work for me on my Vista machine: http://sammysolutions.com/debugging/ajax/scriptaculous/sheeteditor-test-182.htm http://sammysolutions.com/debugging/ajax/scriptaculous/sheeteditor-test-182-fixed.htm Only have issues with the version where the value is not the same as the Option itself: select name=mySelect1 option value=123Volvo/option option value=345Saab/option option value=456Mercedes/option option value=678Audi/option /select Thanks for the input and if you manage to fix the IE issue, I'd appreciate if you can post it here. Cheers, Gunter --~--~-~--~~~---~--~~ 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: How to make the effect persist in the application
Hi , thanks for the suggestions guys I got around it by writing timer in Java and have the effect in inside the Timer Can u provide somelinks to other effects other than provided on Sciptalicious Demo Page Thanks Ajay --~--~-~--~~~---~--~~ 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: How to make the effect persist in the application
google is your friend On Thu, Jan 29, 2009 at 6:56 PM, programmerajay programmera...@gmail.com wrote: Hi , thanks for the suggestions guys I got around it by writing timer in Java and have the effect in inside the Timer Can u provide somelinks to other effects other than provided on Sciptalicious Demo Page Thanks Ajay -- Lars Schwarz Heiligengeiststr. 26 26121 Oldenburg T 0441 36110338 M 0151 1727 8127 W www.bitrocker.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: help with autocompleter
hi Lars, for example if i want pulling data from a database, you said that something like this: or when pulling data from a database using something like WHERE field LIKE '$searchterm' $searchterm is what i type un the input?? and i need to get this value, like this $searchterm=$_REQUEST['id'];?? and in my function ajax.autocompleter, it doesnt change? script type=text/javascript new Ajax.Autocompleter(autocomplete, autocomplete_choices, li.php, { paramName: value, minChars: 2, indicator: 'indicator1' }) /script and finally if in my function with ajax, if I put minChars: 2, automatically when i type 2 characteres, the query on the database will run and return the result? thanks in advance On 29 ene, 10:11, Lars Schwarz lars.schw...@gmail.com wrote: you need to filter your result list (which was static in your last post) of course... something like: function autocomplete($needle,$haystack) { $html = 'ul class=autocomplete id=list'; foreach($haystack as $straw) { if($needle != '' stristr($straw, $needle)) { $html .= 'li class=autocomplete'.$straw.'/li'; } } $html .= '/ul'; echo $html; } or when pulling data from a database using something like WHERE field LIKE '$searchterm' hth: lars On Thu, Jan 29, 2009 at 5:08 PM, eulerss eulers...@hotmail.com wrote: i was checking my example and i think that it doesn't work propertly, for instance, if i type p all options appears, like alve alvr .. per par por ... zer zae and must appear the options that start with p, isn't it? here is my code form name=tarifas method=post table cellspacing=0 cellpadding=0 border=0 tr td width=70 class=texto4cliente:/td td width=200 input type=text id=autocomplete name=autocomplete_parameter/ span id=indicator1 style=display: none img src=/images/spinner.gif alt=Working... / /span div id=autocomplete_choices class=autocomplete/div /td /tr /table script type=text/javascript new Ajax.Autocompleter(autocomplete, autocomplete_choices, li.php, { paramName: value, minChars: 2, indicator: 'indicator1' }) /script /form eulerss On 29 ene, 09:27, eulerss eulers...@hotmail.com wrote: thanks a lot for you replay disccomp, now it works, i think that i was correct, because i only change the libraries for that one that you put in the replay,my doubt is that in the past i was usig this libraries in order to implement dependent selects and it works perfectly, now i need to check my libraries, thanks again eulerss -- Lars Schwarz Heiligengeiststr. 26 26121 Oldenburg T 0441 36110338 M 0151 1727 8127 Wwww.bitrocker.com- Ocultar texto de la cita - - Mostrar texto de la cita - --~--~-~--~~~---~--~~ 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: prototype not working with rails 2.2.2 ?
I'm not familiar with the Rails upgrade process for an app, but did the Prototype code get updated within your public directory? On Jan 29, 4:40 am, riky riccardo.roa...@gmail.com wrote: Hi, i made an application using rails and prototype and all worked fine... But today i upgraded rails to 2.2.2 and from that moment when i open the webpage with firefox it gives me an error like object is null and some prototype helpers doesn't work at all as for example the observe_field... Can anyone help me? Thanks, Riccardo --~--~-~--~~~---~--~~ 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: Rerouting Events
That's what I meant about it being uneven in browsers. IE will appear to do it, but then the resulting file won't actually upload. Safari works perfectly. I still haven't worked it all out. Walter On Jan 29, 2009, at 1:12 PM, solidhex wrote: Yes, that's actually exactly what I tried. But it didn't seem to do anything for me in FF3 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---