Re: [Proto-Scripty] New Bugfix release 1.7.3
Thanks. Someone know if script.aculo.us will have a new version or update? 2015-10-01 17:22 GMT-05:00 mike: > Great news. Thanks > > 02.10.2015 у 00:54 Jason напісаў: > > > Hi Everyone > > Andrew just tagged and released 1.7.3 > > Read more about it on the blog post > > http://prototypejs.org/2015/09/24/prototype-1-7-3/ > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prototype-scriptaculous+unsubscr...@googlegroups.com. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > Visit this group at http://groups.google.com/group/prototype-scriptaculous > . > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prototype-scriptaculous+unsubscr...@googlegroups.com. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > Visit this group at http://groups.google.com/group/prototype-scriptaculous > . > For more options, visit https://groups.google.com/d/optout. > -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous. For more options, visit https://groups.google.com/d/optout.
[Proto-Scripty] Any pivot table?
Hello list, I want to add some dynamic stuff to a report of a old webapp. The webapp use only prototype (not jQuery) but I can't find any library that can make pivot tables. But for jQuery I found this https://github.com/nicolaskruchten/pivottable So, the questions are: 1.- Someone knows a library that can makes pivot tables? 2.- If not exists some thing like that. I could use the pivot table of jQuery in my page? I have never used before jQuery Regards -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous. For more options, visit https://groups.google.com/d/optout.
Re: [Proto-Scripty] AutoComplete
That's rigth, I'm using another library - AutoComple.js 2013/3/14 Jason Westbrook jwestbr...@gmail.com Hey Walter - I don't think that Miguel is using Scriptaculous Autocomplete, as I can't find the code snippet in the emails - plus I use Scriptaculous Autocomplete with some of my production sites with latest PrototypeJS Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Thu, Mar 14, 2013 at 9:22 AM, Walter Lee Davis wa...@wdstudio.comwrote: Please file an issue on Scriptaculous, then. Scripty 1 should stay in step with Prototype! Walter On Mar 14, 2013, at 11:34 AM, Miguel Beltran R. wrote: I fixed it :D #Walter The problem were here var pos = Position.cumulativeOffset(this.input); pos.push(pos[0] + this.input.offsetWidth); -- HERE STOP In 1.7, the cumulativeOffset function return a Object {top:x, left:y} when in 1.6 returned an array, howerver the object has the toArray function , so I changed it to var pos = Position.cumulativeOffset(this.input).toArray(); #Jason I have checked Script2 but no Script1, the version 2 of autocomplete don't like me. 2013/3/13 Walter Lee Davis wa...@wdstudio.com What do you see in Firebug or Web Inspector's console? Can you please post an example showing your work so far? We will be happy to help, but without setting up a demo locally, it's going to be difficult for us to divine exactly where the problem is. Walter On Mar 13, 2013, at 3:18 PM, Miguel Beltran R. wrote: Hello List!!! I have tried to use AutoComplete 1.2 (1) but it is not working with prototype 1.7. someone know another working library?or tell how fix it The problem that I have is with the position, using Firebug for debug _reposition: function() { if(!this.drawn) return; var pos = Position.cumulativeOffset(this.input); pos.push(pos[0] + this.input.offsetWidth); -- HERE STOP pos.push(pos[1] + this.input.offsetHeight); Element.setStyle(this.selector,{ left: pos[0] + 'px', top: pos[3] + 'px' }); }, (1) http://www.beauscott.com/examples/autocomplete/doc/ns_examples.html -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out
Re: [Proto-Scripty] AutoComplete
I fixed it :D #Walter The problem were here var pos = Position.cumulativeOffset(this.input); pos.push(pos[0] + this.input.offsetWidth); -- HERE STOP In 1.7, the cumulativeOffset function return a Object {top:x, left:y} when in 1.6 returned an array, howerver the object has the toArray function , so I changed it to var pos = Position.cumulativeOffset(this.input).toArray(); #Jason I have checked Script2 but no Script1, the version 2 of autocomplete don't like me. 2013/3/13 Walter Lee Davis wa...@wdstudio.com What do you see in Firebug or Web Inspector's console? Can you please post an example showing your work so far? We will be happy to help, but without setting up a demo locally, it's going to be difficult for us to divine exactly where the problem is. Walter On Mar 13, 2013, at 3:18 PM, Miguel Beltran R. wrote: Hello List!!! I have tried to use AutoComplete 1.2 (1) but it is not working with prototype 1.7. someone know another working library?or tell how fix it The problem that I have is with the position, using Firebug for debug _reposition: function() { if(!this.drawn) return; var pos = Position.cumulativeOffset(this.input); pos.push(pos[0] + this.input.offsetWidth); -- HERE STOP pos.push(pos[1] + this.input.offsetHeight); Element.setStyle(this.selector,{ left: pos[0] + 'px', top: pos[3] + 'px' }); }, (1) http://www.beauscott.com/examples/autocomplete/doc/ns_examples.html -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Proto-Scripty] AutoComplete
Hello List!!! I have tried to use AutoComplete 1.2 (1) but it is not working with prototype 1.7. someone know another working library?or tell how fix it The problem that I have is with the position, using Firebug for debug _reposition: function() { if(!this.drawn) return; var pos = Position.cumulativeOffset(this.input); pos.push(pos[0] + this.input.offsetWidth); -- HERE STOP pos.push(pos[1] + this.input.offsetHeight); Element.setStyle(this.selector,{ left: pos[0] + 'px', top: pos[3] + 'px' }); }, (1) http://www.beauscott.com/examples/autocomplete/doc/ns_examples.html -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Proto-Scripty] Form.serialize for multiple selects broken in 1.7.0.0?
2012/5/3 Jeff Emminger jemmin...@gmail.com When using v1.6.0.2 and serializing a form with a multiple select list, I would get its value like myselect[]=foomyselect[]=bar. In v1.7.0.0 it's posting the value like myselect[]=foo,bar. This does not work properly on the backend (Rails). Is this expected behavior? Attached are test pages. I don't find anything about this behavior, except http://www.w3.org/MarkUp/html-spec/html-spec_2.html#GLOSS17 *form data set* a sequence of *name/value pairs*; the names are given by an HTML document http://www.w3.org/MarkUp/html-spec/html-spec_2.html#GLOSS18 and the values are given by a user. http://lists.w3.org/Archives/Public/ietf-http-wg/2012JanMar/0081.html The spec doesn't seem to speak suggested/valid combinations of verbs and query parameters (please point me to the location if I've missed it). No, it does not. http://tools.ietf.org/html/rfc2396#section-3.4 Within a query component, the characters ;, /, ?, :, @, , =, +, ,, and $ are reserved. It looks like every user-agent can do it in diferents ways -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] uploading a file to a server.
http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/b9c3645c239b10c0?fwc=1pli=1 2012/4/22 Marty Amberg mar...@edenstreet.com Hi all, Quick question. I been trying to get a file to upload to a server via a form ( works great in straight html calling a php program ) using a prototype ajax request. I don't think it can be done and I have tried various ways. If I am wrong and could some one point me in the right directions. Thanks -- EdenStreet Consulting w:978-741-7518 c:978-821-1309 Twitter: martyateden Skype: martyateden -- 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 prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+** unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/prototype-scriptaculous?**hl=enhttp://groups.google.com/group/prototype-scriptaculous?hl=en . -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Re: method ON vs OBSERVE
2011/10/12 T.J. Crowder t...@crowdersoftware.com Hi, On Oct 11, 3:13 pm, Miguel Beltran R. yourpa...@gmail.com wrote: Using prototype 1.7 I try to figure what is better, the new ON method or OBSERVE method but the only thing I found is that ON is better if you wish use an CSS selector and/or stopObserve am I correct? or observe is going to be deprecated? `on` is just like `observe` if you don't pass it a filtering selector (except that it's more indirect; it eventually ends up calling `observe` under the covers), but I can't imagine `observe` is going to be deprecated. Both have mechanisms for stopping event handlers. With `on` you stop it by calling `stop` on the `EventHandler` object it returns to you; with `observe` you call `stopObserving` with the same arguments you gave `observe` (or fewer, if you want to have a broader effect). The claim is that `on` is useful because you don't have to remember the event handler function if you need to stop it later, but since you have to remember the `EventHandler` instance `on` returns to you, I'm not seeing any net benefit in that sense. `on`'s real use is event delegation IMHO. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / 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. Thanks T.J. I was a little worried about if ´observe´ could be deprecated -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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] method ON vs OBSERVE
Using prototype 1.7 I try to figure what is better, the new ON method or OBSERVE method but the only thing I found is that ON is better if you wish use an CSS selector and/or stopObserve am I correct? or observe is going to be deprecated? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Object doesn't support this property or method (LINE17)
Try with cso = $(document.body).cumulativeScrollOffset(); -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Eliminate POST vars before submit
Will be better then if you just send the 15 valid params params = {field1: $F('fielf1'), field2: $F('fielf2') . field15: $F('fielf15')} var rq= new Ajax.request(..., params); Somethig like that. El 1 de agosto de 2011 09:14, Martín Marqués martin.marq...@gmail.comescribió: I have a large form with quite a bunch of pull downs to select. Then a submit button. The thing is that there can be up to 1300 vars, and maybe more in the future, but in every post only 10 or 15 are valid for the program. How can I eliminate them from the list of variables that are finally submitted? -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programador, Administrador -- 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. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Re: Fire and Defer
are you using document.fire or Element.fire? because in your other email you said document.fire Element.fire(element, eventName[, memo[, bubble = true]]) document.fire(eventName[, memo[, bubble = true]]) 2011/7/29 kstubs kst...@gmail.com More on this: I keep getting stuck in: function fire(element, eventName, memo, bubble) { ... if (document.createEvent) element.dispatchEvent(event); STUCK HERE: object doesn't support dispatchEvent else element.fireEvent(event.eventType, event); -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/aw8Cm8tqkhMJ. 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. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Updating Observer through AJAX call
2011/5/29 Kristofer krishop...@gmail.com Hello, I am trying to figure out how to do this properly. I have a site with two dropdown boxes, one for a Color and one for a Size. Using Event.Observe() I attach a listener to both. When one is selected, it performs an AJAX call to update the contents of the other to show sizes or colors available, and there is also another Event.Observe() in the AJAX call so that when the updated field is changed, it updates another element with an Add to Cart link and a price. This works in both IE and Firefox, but Chrome doesn't seem to be listening to the new click event that is attached through the AJAX call. Does anyone have any suggestions as to what I may be missing? are you tried Chrome Developer Tools or Firebug lite? http://getfirebug.com/releases/lite/chrome/ I don't use Chrome, do have something like console errors? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Ajax.Updater stopped working with update to Firefox 4
2011/5/10 Scrooge off...@cachaca.at Hello, I regularly use Ajax.Updater to add rows to tables. As html element to display the result in I use tbody and the server creates a result for the ajax call like trtdsomething etc./td/tr. This worked like a charm for several years now in both, Firefox and IE. Anyway in Firefox 4 it stopped working. It still sends the ajax call to the server and the server processes it (I know this, because the call also should add a row in a database, and this is done as normal) but the result is not shown. If I change the html result element to a div or something else it works again, so it particularly has a problem to display the result in a tbody element. But I just need to have the result as additional table rows, it is just what is semantically correct. The error console of firefox does not show any error. My Ajax-code is pretty standard: function add_orderitem_ajax() { new Ajax.Updater('orderitem', 'http://www.somehost.com/script.php', { method: 'post', parameters: $('productchooser').serialize(true), insertion: Insertion.Bottom, evalScripts: 'true' }); } While 'orderitem' is the id of the tbody tag the result should be displayed in. Does anybody know whether my way of adding additional table rows with ajax is ok? It worked for years but perhaps Firefox now has enforced rules on what is allowed and what not? Or is it a bug? Best Regards, Benedikt. -- 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. do work the same page with FF 3? using Firebug, could you see the answer of the ajax request? and try it in the console $('orderitem').. I had see this problem when the ID is duplicated, could you check it? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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.
Re: [Proto-Scripty] Re: Botones personalizados
2010/7/5 T.J. Crowder t...@crowdersoftware.com In English (Español abajo): * * * * (It's best to post to this list in English, you might use http://translate.google.com to help with translation. My Spanish is very outdated, but hopefully with Google's help I can make myself clear.) caceres, si deseas una lista de javascript en español, busca js-ovillo en googlegroups.com if you want a list of javascript in spanish, search by js-ovillo in googlegroups.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-scriptacul...@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.
Re: [Proto-Scripty] Lightbox-style Progress Indicator
2010/6/4 Jelks jelks.caban...@gmail.com Hoping not to reinvent the wheel, I am looking for a simple Prototype- based progress indicator. I'd like to display One moment please ... with an animated GIF in something lightbox-like (but no Close button) in the center of the screen. It should also do the Lightbox-style setting of the opacity of the page in the background, and the user should not be able to click in that page at all while the box is showing. Anyone currently using such a beast or know of one? Thanks, Jelks maybe you can find it here http://scripteka.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-scriptacul...@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.
Re: [Proto-Scripty] prototype(js) docs
2010/6/2 davidenke david.e...@gmail.com Yeah, http://api.prototypejs.org/ will give you a good documentation about it. In my opinion the old interface (http://www.prototypejs.org/api) is much better and more cheerful. I'm agreed I think is more easy to understand the api old page -- 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-scriptacul...@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.
Re: [Proto-Scripty] HTTP Authentication
Googling http://www.peej.co.uk/articles/http-auth-with-html-forms.html specialy the line this.http.open(get, this.action, false, username, password); All this with javascript pure But prototype looks like have a issue two years ago, but it need test https://prototype.lighthouseapp.com/projects/8886/tickets/585-support-http-basic-authentication-in-ajax 2010/5/3 blawson7 brianleelaw...@gmail.com Can someone show me or point me in the direction of an example/ tutorial for how to send HTTP authentication information along with POST Ajax Request? I've tried passing them as options -- username: USER password: PASSWD Is there something that I'm missing? I am using prototype throughout my code and I'd hate to have to change to jQuery just for this. Thanks! -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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-scriptacul...@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.
Re: [Proto-Scripty] outside the IFRAME
2010/4/30 Hariz Soleminio harriz_solemi...@rocketmail.com Hello, Is this possible I inserted an IFRAME in a page. the i frame i inserted contains HTML with protoype/javascript codes. below is the javascript code Event.observe(document, 'keyup', keyupcheck, false); im observing the window in any keyup events. however it only works within the iframe what if i want it to work outside the i frame? Please help guys. Maybe chaging document for window.something-else With firebug you can look all propierties -- 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-scriptacul...@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.
Re: [Proto-Scripty] Re: FF 3.5, can't parse gzip'd response?
2010/3/5 Hank hankipa...@gmail.com Thanks for the quick response, Jeff! On Mar 5, 7:44 pm, Jeffrey Peck jeff.p...@snet.net wrote: One more question... you are checking t.responseText ... have you tried t.responseXML? - Jeff Yep, doesn't work either, object is null. I do have control over the webservice and will try to disable compression to see if it improves. But long term, this is not what I want -- the XML response can be rather large, and in the above example, compression reduces it from ~12k to 2k. Also, other browsers (ok, only tested Safari so far) seem to have it under control. What I'm surprised about is the fact that I can't find much mentioning of this on the interwebs. Surely most application servers are configured to gzip their output, how come noone has a problem with that?! Cheers, Hank -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. do are you resolved the problem? are you asked in maillist from firefox ? maybe is a problem from TraceMonkey I have curiosity -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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-scriptacul...@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.
Re: [Proto-Scripty] PLease Wait or Loading message
Great!!! I'll use too. I have something like this, but not so complete. Thanks 2010/2/10 Peter De Berdt peter.de.be...@pandora.be On 10 Feb 2010, at 15:20, bill wrote: I have an application that uses Ajax.updater. As it runs over the internet sometimes the response can take 10 seconds, by which time the user thinks that it did not work so I would like to show a message as soon as the link is clicked to fire the Ajax request. I am however befuddled. If I set the innerHTML of the div with the message, it wipes out the form that needs to be sent. If I use onSuccess, it takes too long. Suggestions ? Just copy pasted what we use @ http://pastie.org/818221 We use http://blog.var.cc/static/growl/ to show errors, but you can leave out that section. Just put a div with the loading image somewhere in your document and set its style to display: none;. The code I posted will work for every Ajax request you do, so you have a nice and generic solution there. How you make the loading indicator look is completely up to you. 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- 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-scriptacul...@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] eventlist for 1.6.1
to the friendly person waht made the utility Eventlist on http://eventlist.cms-schulze.de are you release a version working with prototype 1.6.1? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: prevent space bar jump on keypress observe
2009/9/30 Stucture_Ulf maximilian.moulet...@gmail.com I'm using an event observe to catch keystrokes and to add entered characters to a certain div. but i have a problem with the space bar button that causing a jump scroll on the page. looks like this is a browser function, is it possible to catch and prevent? would be grateful for any tips on how to stop this. maybe add the observe to window or document, but how say if the div have the focus? --~--~-~--~~~---~--~~ 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 merge two json objects?
Thanks to both #Mangus and #Alexander Use Object.extend look so easy, what I not believe myself haha 2009/9/12 Alexander Wallace alexmlwall...@gmail.com var object1 = { foo : bar }; var object 2 = { baz : moof }; Object.extend(object1, object2); Object.extend returns the new object1, which now has the attributes { foo : bar, baz : moof }. Be aware that any duplicate value will be overridden by the newer value. On Fri, Sep 11, 2009 at 8:30 PM, Miguel Beltran R. yourpa...@gmail.comwrote: 2009/9/11 DJ Mangus d.man...@gmail.com I've never done this but I'm pretty sure you can use object.extend. http://api.prototypejs.org/language/object.html#extend-class_method but how used? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 merge two json objects?
2009/9/11 DJ Mangus d.man...@gmail.com I've never done this but I'm pretty sure you can use object.extend. http://api.prototypejs.org/language/object.html#extend-class_method but how used? --~--~-~--~~~---~--~~ 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: Using Ajax.Request and evalJS to load functions on the fly
maybe http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically 2009/8/18 Remah donnie.carva...@tfmx.com I am trying to call a JS file using Ajax.Request that will return a javascript function. This function will be used by code taht will be injected into a div. Is this possible? It seems like the function is accessible within the CallBacks of Ajax.Request, but they are not accessible outside. Thanks for your help, Remah -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 sum value from input?
Thanks for the advice. 2009/7/29 T.J. Crowder t...@crowdersoftware.com Hi, That version seems okay, except it parses the number twice (first for isNaN, then again in parseFloat). There's also no need to check for a blank string, '' can't be converted to a number and so parsing it will result in NaN. Also, parseFloat defaults to base 10, so no need for that param (but by all means include it if you think it makes the code clearer). var i; var suma = 0; var valor; for (i = 1; i = 24; i++) { valor = parseFloat($F('quincena_'+ i).strip()); if (!isNaN(valor)) { suma += valor; } } Note that parseFloat will stop at the first invalid character, so this doesn't do much in the way of validation. For instance, if the field contains 15x5, parseFloat will return 15, not NaN. If you need real validation, you'll probably want RegExps to test for valid patterns. A web search should do it, if you need to take it that far. FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jul 29, 12:56 am, Miguel Beltran R. yourpa...@gmail.com wrote: Hi list I have the next code, but how can be made better? var i; var suma=0; var valor; for(i=1; i=24; i++){ valor=$F( 'quincena_'+ i).strip(); if(valor!='' !(isNaN(valor))){ suma+=parseFloat(valor,10); } } -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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] how sum value from input?
Hi list I have the next code, but how can be made better? var i; var suma=0; var valor; for(i=1; i=24; i++){ valor=$F( 'quincena_'+ i).strip(); if(valor!='' !(isNaN(valor))){ suma+=parseFloat(valor,10); } } -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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] problem with ajax IE8 encoding
Hi list I load data using AJAX calls, work fine on FF, but on IE8 show bad characters. The header docuement: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=utf-8 meta http-equiv=X-UA-Compatible content=IE=8 / [Headers from server using Firebug] Encabezados de la Respuesta Server Zope/(Zope 2.11.1-final, python 2.4.4, win32) ZServer/1.1 Date Tue, 28 Jul 2009 01:08:28 GMT Content-Length 2254 Content-Type text/html; charset=utf-8 [Response from server using Firebug] div id=objetivo_busqueda_resultado class=tabla_resultado form class=tabla_encabezadoul li class=titulolabelRenlon/label/li li class=titulo noimprimirlabelAcción/label/li li class=titulolabelProyecto/label/li li class=titulolabelObjetivo/label/li li class=titulolabelNombre/label/li /ul/form /div IE8 show _Acción_ instance _Acción_ [Ajax call] document.observe('sic:proyecto',function(evt){ var s = evt.memo.campo_llenar || ''; var a = new Ajax.Updater('estado', 'carga_datos.htm', { evalScripts: true, parameters: {control: 'datos_proyecto', ejercicio_id:$F('ejercicio_id') ,campo_llenar: s ,proyecto: $F('proyecto'+s)} }); a=null; }); why IE8 show the incorrect response with encoding utf8? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: Form submit not working on IE
2009/7/9 JC mims1...@gmail.com Ok so I modifed the function to suggestions on 1 and 2 just incase: function AutosaveForm(formthis){ var alertTimerid = 0; new Form.Observer(formthis, 0.3, function(){ clearTimeout (alertTimerid); alertTimerid = setTimeout (function(){ formthis.request({ onComplete: function(){alert('Form data saved!');} }); }, 1000); }); } 3 was my first guess but I can't find any duplicates. I even went as far are renaming the form to aardvark something thats def not sharing that name/id with some other element and it still is a no go. The form itself has name and ID specified as the same, I tried removing the name, and then the ID to make sure it wasn't some funky conflict there and still the same issue. Any other ideas? on server side can you add a log? create a file when request is recived with request information. or using some debug (like firebug) for see what page is request. for debug the problem. I had a problem using IE8 + Zope 2.11 I maded a request to print.htm - request http://fooserver.com/app/dir1/print.htm Using FF the request was http://fooserver.com/app/dir1/data/print.htm what is correct. The actual page where made the page is http://fooserver.com/app/dir1/data/index.htm So at last change the request from print.htm to data/print.htm. (Zope can handle with this without problem. how not find data in data, go up a level -dir1- and load data/print.htm) --~--~-~--~~~---~--~~ 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: [OT] differences with content-type?
The recommend content-type is 'applicacion/javascript' or 'application/ecmascript' 'text/javascript' and 'text/ecmascript' are obsolete http://www.rfc-editor.org/rfc/rfc4329.txt 2009/7/6 Miguel Beltran R. yourpa...@gmail.com If use in my code (using zope) response.setHeader('content-type', 'applicaction/x-javascript') exists some differences to response.setHeader('content-type', 'text/javascript') I mean, to the browser really _think_ what it the same? Another question. If my server say what myjavascript.js is 'applicaction/x-javascript' and me html code is script src=myjavascript.js type=text/javascript/script have some problem? is different to FF or IE or Op? Sorry by Off-Topic -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: problem with library Window 1.3 overflow
,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'}); } --~--~-~--~~~---~--~~ 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] [OT] differences with content-type?
If use in my code (using zope) response.setHeader('content-type', 'applicaction/x-javascript') exists some differences to response.setHeader('content-type', 'text/javascript') I mean, to the browser really _think_ what it the same? Another question. If my server say what myjavascript.js is 'applicaction/x-javascript' and me html code is script src=myjavascript.js type=text/javascript/script have some problem? is different to FF or IE or Op? Sorry by Off-Topic -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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] problem with library Window 1.3 overflow
Hi again list I show a dialog before to load the real information, but when the second window is loaded, the CSS value from attribute overflow is hidden. If not show the first dialog (Dialgo.info) the second have overflow=auto; someone have this problem before? var x4=Dialog.info(h3Loading.../h3, { top: 50, left:100, showProgress: true, destroyOnClose: true, className: alert_lite, //bluelighting, // width:160, zIndex: 90, }); var win = new Window({ id:vId+_ventana, className: bluelighting, width:Iwidth, height:Iheight, zIndex: 100, resizable: true, minimizable: false, maximizable: false, destroyOnClose: true, title: vId, draggable:true, wiredDrag: true ,onBeforeShow : function(){Dialog.closeInfo();} }); -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: Form.request() file upload problem in ie6
2009/7/3 Alex McAuley webmas...@thecarmarketplace.com Ajax request will not send files :S Sorry! how make then gmail? When I add a attachment, after a seconds gmail show me what is uploaded --~--~-~--~~~---~--~~ 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: bug? or I made something wrong using fire
2009/6/27 T.J. Crowder t...@crowdersoftware.com I've written up a couple of things about closures that may be helpful, and specifically that walk you through this business of references vs. values: http://blog.niftysnippets.org/2008/02/closures-are-not-complicated.html http://blog.niftysnippets.org/2008/03/closures-by-example.html Hi T.J. Today at last I readed your blog. Based on your explanation I changed my function to this and work perfectly, many thanks. document.observe('dom:loaded', function(){ function observaEvento(evento){ elm = $(evento); if (elm) { elm.observe('change', function(evt) { console.log(call to: %s, 'sic:'+evento); document.fire('sic:'+evento); }); } } observaEvento('proyecto'); observaEvento('material'); }); --~--~-~--~~~---~--~~ 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] problem with overrideMimeType encoding
I use this option (fault mssql2000, this use in work) and using IE8 with 1.6.1-rc3, but IE8 never made the request to server. (I see the log on web server). Work fine with FF. I try add support to IE8 now because other versions sucks CSS support onCreate: function(resp) { resp.transport.overrideMimeType(text/html; charset=ISO-8859-1); }, If remove work fine the request some change with 1.6.1? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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] question from newbie, how add parameters?
Hi list if have a variable like this switch (a){ case 1: vparams = {option1: 100, option2: one}break; case 2 vparams = {option1: 100}break; case n vparams = {option1: 100, option2: one: option3: option2 }break; } vparams= {vparams, onComplete: function(){Diaglog.closeInfo();}}; make error, show me Error: invalid object initializer hehe I need learn a lot of javascript :P how call this type of variable (vparams)? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: question from newbie, how add parameters?
2009/6/29 Rick Waldron waldron.r...@gmail.com You code was rife with syntax errors... I posted a demo of the corrected switch statement here: http://jsbin.com/ataka there is also some basic event stuff to show it in action Rick Thanks Rick, but I want know how append a option to vparams. this option will be the same whatever how many options before asigned the final result what is want is vparam = {option1: 100, option2:one, onComplete: function(){...}} or vparam = {option1: 100, onComplete: function(){...}} vparam = {option1: 100, option2:one, option3:option2, onComplete: function(){...}} --~--~-~--~~~---~--~~ 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: question from newbie, how add parameters?
2009/6/29 Rick Waldron waldron.r...@gmail.com After the switch, add this: vparams['your_additional_property'] = 'additional property's value'; I hope this is what you mean... Thanks, this help me --~--~-~--~~~---~--~~ 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] problem with library Window 1.3
Hi again list My code http://pastie.org/528853 I want when the window is loaded (I use setAjaxContent) close the info dialog, but the screen no show anything. Using firebug I see the indo dialog and the window. The line Diaglog.closeInfo(); show error Error: logged_in_setup is not defined -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: problem with library Window 1.3
Forget all. a stupid error I write Diaglog instance Dialog (note a g after a) 2009/6/29 Miguel Beltran R. yourpa...@gmail.com Hi again list My code http://pastie.org/528853 I want when the window is loaded (I use setAjaxContent) close the info dialog, but the screen no show anything. Using firebug I see the indo dialog and the window. The line Diaglog.closeInfo(); show error Error: logged_in_setup is not defined -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: bug? or I made something wrong using fire
2009/6/27 T.J. Crowder t...@crowdersoftware.com Hi, Your two examples are not identical. In the one using 'proyecto' literally, your if statement will always be true because you're not using $, you're using if('proyecto') where to be identical to the x1 version you would need if($('proyecto')) Sorry another mistake in the mail, but again the real function is fine :P I don't know why that would make any difference since presumably the element does exist (otherwise the literal example wouldn't work), but it's a difference. I'd suggest you take this code: 001: document.observe('dom:loaded', function(){ 002: var x1, elm; 003: x1='proyecto'; 004: 005: elm = $(x1); 006: if (elm) { 007: elm.observe('change', function(evt) { 008: document.fire('sic:'+x1); 009: }); 010: } 011: }); And use a debugger like Firebug or similar to put a breakpoint on line 6 and another one on line 8, and see what you see. Is 'elm' undefined on line 6? Does document.fire on line 8 get called when the change happens? Using firebug show me what elm is the correct element, but... This are my custom events document.observe('sic:proyecto',function(evt){ var s = evt.memo.campo_llenar || '';console.log(s); var a = new Ajax.Updater('estado', 'carga_datos.htm', { evalScripts: true, parameters: {control: 'datos_proyecto', ejercicio_id:$F('ejercicio_id') ,campo_llenar: s ,proyecto: $F('proyecto'+s)} }); a=null; }); document.observe('sic:material',function(evt){ var s = evt.memo.campo_llenar || '';console.log(s); var a = new Ajax.Updater('estado', 'carga_datos.htm', { evalScripts: true, parameters: {control: 'datos_material', ejercicio_id: $F('ejercicio_id') ,campo_llenar: s ,material: $F('material'+s)} }); a=null; }); first put only one observe (proyecto) and work fine, later add the second observe (material), here is where the thing go crazy Using firebug I see what when the event change is called by proyecto this call 'sic:material' ¿uh? document.observe('dom:loaded', function(){ var x1, elm; x1='proyecto'; elm = $(x1); if (elm) { elm.observe('change', function(evt) { document.fire('sic:'+x1); }); } x1='material'; elm = $(x1); if (elm) { elm.observe('change', function(evt) { document.fire('sic:'+x1); }); } }); if change to this, work fine var x2; x2='material'; elm = $(x2); if (elm) { elm.observe('change', function(evt) { document.fire('sic:'+x2); }); } --~--~-~--~~~---~--~~ 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] bug? or I made something wrong using fire
Hi list I have a custom event document.observe('sic:proyecto',function(evt){ alert(22); }); Using this way not fire document.observe('dom:loaded', function(){ var x1; x1='proyecto'; if($(x1))$(x1).observe('change',function(evt){document.fire('sic:'+x1);}); }); But if change to this work document.observe('dom:loaded', function(){ if('proyecto')$('proyecto').observe('change',function(evt){document.fire('sic:proyecto');}); }); the only difference is 'sic'+x1 to 'sic:proyecto' -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: bug? or I made something wrong using fire
2009/6/26 Tobie Langel tobie.lan...@gmail.com You're missing the semi-colon (:). Best, Tobie Is a mistake in the mail but my real function is well formed, see my two functions when was copy from original --~--~-~--~~~---~--~~ 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 use fire + bind/curry?
There are too many permutations here to find correct way by trial and error ; ) You haven't really said what it is you're trying to do, or at least what you expect event handler to be - its `this`, its `arguments`, etc. Perhaps, you want something like this: $('element1').observe('change', function(ev) { document.fire('space:observer', { element: ev.element() }); }); ... document.observe('space:observer', function(ev) { console.log('event: %o, element: %o', ev, ev.memo.element); }); [...] -- kangax How always, you help is great kangax. Thanks a lot. this is exactly what I wanted. My apologies because the manual say exactly this, but I not see before this. --~--~-~--~~~---~--~~ 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 use fire + bind/curry?
2009/6/11 Miguel Beltran R. yourpa...@gmail.com Hi list Trying to do made more functions generics now I try with fire option. But this not work ('element1').observe('change', function(evt){document.fire.curry(evt.element()).('space:observer');}); ('element1').observe('change', function(evt){document.fire.bind(evt.element()).('space:observer');}); ('element1').observe('change', function(evt){document.fire.('space:observer').curry(evt.element());}); ('element1').observe('change', function(evt){document.fire.('space:observer').bind(evt.element());}); document.observe(''space:observer',function(evt,esto){ console.dir(evt); //this return the event console.log('*'); console.dir(esto); //this return nothing console.log('-');console.dir(this); //this return the document object }); is possible do it? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida if this is not possible can someone give a sugestion to make from another way? Thanks --~--~-~--~~~---~--~~ 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] how use fire + bind/curry?
Hi list Trying to do made more functions generics now I try with fire option. But this not work ('element1').observe('change', function(evt){document.fire.curry(evt.element()).('space:observer');}); ('element1').observe('change', function(evt){document.fire.bind(evt.element()).('space:observer');}); ('element1').observe('change', function(evt){document.fire.('space:observer').curry(evt.element());}); ('element1').observe('change', function(evt){document.fire.('space:observer').bind(evt.element());}); document.observe(''space:observer',function(evt,esto){ console.dir(evt); //this return the event console.log('*'); console.dir(esto); //this return nothing console.log('-');console.dir(this); //this return the document object }); is possible do it? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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] [OT] someone know a good book from certificates x509
Hi list, first my apologize for this off-topic, but I asked to lot people and noone can help me. Using a OpenSSL -request, and convert to p12) (in Slackware) + Windows 2003 -certificate valid againts my CA Windows - create a lot certificates. My certificates have one year before expirate -six months ago- and now need how revalidate or whatever thing I need do. So, someone know a book what explain how do it? A book covering certificates for windows? Or a book that has examples certificates for windows? Thanks a lot and my apologize again -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: add more paramaters to call on a observe?
Aren't you using an object instance method? Function#curry won't preserve context (so if you use this within the method, it will refer to the wrong object). For this case no need use this. --~--~-~--~~~---~--~~ 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 insert() appears to lose inline javascript when using IE over remote desktop
2009/5/29 T.J. Crowder t...@crowdersoftware.com @Miguel: ...because parameter position need be string No, it doesn't. When you use that style of insert, you're handing it an object (in this case, via an object literal) where the name(s) of the property on the object dictate where the content is put. bottom is a property name, which you can either put in quotes or not. These two object literals are identical: {bottom: 'blah blah blah'} {'bottom': 'blah blah blah'} The second one is also valid JSON (the first is not, although most JSON parsers will let you get away with it.) Sometimes you need to use a string for the property name, if the name you want to use is a reserved word like 'class' or 'var'. mmhh... that weird, I thought was read on the manual what option bottom need be a string, but not can found now --~--~-~--~~~---~--~~ 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: add more paramaters to call on a observe?
(And again, if you didn't need context, you could use Function#curry [3] and the event would be the last parameter.) Thanks T.J., with curry has enough --~--~-~--~~~---~--~~ 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 insert() appears to lose inline javascript when using IE over remote desktop
$('body').insert({bottom:html}); maybe there was an error when you did the example because parameter position need be string $('body').insert({'bottom':html} --~--~-~--~~~---~--~~ 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: Adding a input box
'value':'var1 default value'}); maybe no correct closing values chage to 'value':'var1', default:'value'}); --~--~-~--~~~---~--~~ 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.Updater add instead of update?
2009/5/10 T.J. Crowder t...@crowdersoftware.com Hi, I want instead update, add the second span to status, but if I use Insert option, add outside status. like this div id=status span id=x1/span /div span id=x2/span What did you give for the insertion option? Because this: No remember, maybe after new Ajax.Updater(target, url, { insertion: 'bottom' }); ...will insert within the target (at the bottom), not after it. E.g., it should do what you want. Yeah, I changed the second AjaxUpdater for use this option and work now!!! :D Ah. something important is what the call to Ajax.Updater return javascript code too. Your code examples are using the evalScripts option, which means any inline script tags within them will be processed (via String#evalScripts). Were you having a problem? It's probably worth reviewing the updater[1] and String#evalScripts[2] docs, there are some caveats around scripts. No problem really, except I forget what the script (both: first and second) clean status. because this sometimes not work the second script. After read you respond, I realize my mistake, Thanks to all. --~--~-~--~~~---~--~~ 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] Ajax.Updater add instead of update?
Hi list My html is div id=status /div I need insert into status some lines with span id=x1, span id=x2 The span tag come from a Ajax.Updater. document.observe('sic:vale',function(evt){ datos_transaccion = function(){ var b = new Ajax.Updater('status', 'carga_datos.htm', { evalScripts: true, parameters: {control: 'datos_transaccion', ejercicio_id:$F('ejercicio_id'), vale: $F('vale')} }); b=null; } var a = new Ajax.Updater('status', 'carga_datos.htm', { evalScripts: true, parameters: {control: 'datos_vale', ejercicio_id: $F('ejercicio_id'), condicion_desde: 3, condicion_hasta: 4, vale: $F('vale')}, onComplete: datos_transaccion }); //a=null; }); I want instead update, add the second span to status, but if I use Insert option, add outside status. like this div id=status span id=x1/span /div span id=x2/span How can have something like this? div id=status span id=x1 /span span id=x2/span /div Ah. something important is what the call to Ajax.Updater return javascript code too. some clue? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: Keypress event
2009/5/9 Alex McAuley webmas...@thecarmarketplace.com you seem to have not read my post . Firefox wont listen on DIv/span/li elements... i know it works on textarea / input values. div/span/li can have focus? Is a bug from IE o FF? some other browser what do? --~--~-~--~~~---~--~~ 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] Ajax with charset iso-8859-1
Hi list Here in my job the system use MS Sql Server 2000 what not have support utf-8, so I need work with ISO-8859-1. Using Ajax this send the parameters with encoding utf-8, after read a lots post I tried with the options modifica: function(evt){ evt.stop(); console.log(estro a modifica); $('estado').update(cargando...); var req = $('main_form').request({ encoding: 'iso-8859-1', onCreate: function(resp) { resp.transport.overrideMimeType(text/html; charset=ISO-8859-1); } }); req=null; } but not work :( User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Accepttext/javascript, text/html, application/xml, text/xml, */* Accept-Languagees-mx,es;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encodinggzip,deflate Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive300 Connectionkeep-alive X-Requested-WithXMLHttpRequest X-Prototype-Version1.6.0.3 Content-Typeapplication/x-www-form-urlencoded; charset=UTF-8 -- still use utf-8 can someone give me a tip? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 with charset iso-8859-1
2009/4/24 Miguel Beltran R. yourpa...@gmail.com Hi list Here in my job the system use MS Sql Server 2000 what not have support utf-8, so I need work with ISO-8859-1. Using Ajax this send the parameters with encoding utf-8, after read a lots post I tried with the options modifica: function(evt){ evt.stop(); console.log(estro a modifica); $('estado').update(cargando...); var req = $('main_form').request({ encoding: 'iso-8859-1', onCreate: function(resp) { resp.transport.overrideMimeType(text/html; charset=ISO-8859-1); } }); req=null; } but not work :( User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Accepttext/javascript, text/html, application/xml, text/xml, */* Accept-Languagees-mx,es;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encodinggzip,deflate Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive300 Connectionkeep-alive X-Requested-WithXMLHttpRequest X-Prototype-Version1.6.0.3 Content-Typeapplication/x-www-form-urlencoded; charset=UTF-8 -- still use utf-8 can someone give me a tip? After made more test I found what the problem is with serialize() if my field have a á (without quotes) serialize return %C3%A1 and I expect %E1 (1) (1) http://www.w3schools.com/TAGS/ref_urlencode.asp --~--~-~--~~~---~--~~ 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 with charset iso-8859-1
2009/4/24 Miguel Beltran R. yourpa...@gmail.com 2009/4/24 Miguel Beltran R. yourpa...@gmail.com Hi list Here in my job the system use MS Sql Server 2000 what not have support utf-8, so I need work with ISO-8859-1. Using Ajax this send the parameters with encoding utf-8, after read a lots post I tried with the options modifica: function(evt){ evt.stop(); console.log(estro a modifica); $('estado').update(cargando...); var req = $('main_form').request({ encoding: 'iso-8859-1', onCreate: function(resp) { resp.transport.overrideMimeType(text/html; charset=ISO-8859-1); } }); req=null; } but not work :( User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Accepttext/javascript, text/html, application/xml, text/xml, */* Accept-Languagees-mx,es;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encodinggzip,deflate Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive300 Connectionkeep-alive X-Requested-WithXMLHttpRequest X-Prototype-Version1.6.0.3 Content-Typeapplication/x-www-form-urlencoded; charset=UTF-8 -- still use utf-8 can someone give me a tip? After made more test I found what the problem is with serialize() if my field have a á (without quotes) serialize return %C3%A1 and I expect %E1 (1) (1) http://www.w3schools.com/TAGS/ref_urlencode.asp Or someone know how decode a string from encodeURIcomponent (this use prototype rigth?) in python? more exactly zope 2.11 --~--~-~--~~~---~--~~ 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 detect change in field value
2009/4/3 ColinFine colin.f...@pace.com On Apr 3, 4:27 am, Miguel Beltran R. yourpa...@gmail.com wrote: Hi list I want three thing 1: have a window with a table filled with many options and descriptions: OK 2: fill hide1 field when field1 value has enter manually: OK 3: fill hide1 field when field1 value has change using code js: FAIL Unfortunately, the events (onclick etc) are all specified in the HTML specification to react to user-land only, not to changes from script. I can see three possibilities for you: 1. Make your code that sets the field also call the handler itself. (Probably a bad idea, but workable) 2. Set a timed observer, as Maarten suggests. (Seems an awfully big cost) 3. I have never tried it, but I would think that you could define a Prototype custom event [1], fire it from your setting code and observe for it as well as for click. [1] http://www.prototypejs.org/api/element/fire Colin Thanks Maaten and Colin I had already thought about the solutions 1 and 2, but I dislike The third solution does not understand. I did this but it does not work: using fire: document.observe('sic:proyecto',function(evt){ console.log(entro a sic proyecto); }); $('proyecto').observe('change',function(evt{ Element.fire('sic:proyecto'); }); I tried to test enter data manually but the function not call the fire, so less with the function Firebug shows that the error is: element is null element.dispatchEvent(event) line 4071 I use 1.6.0.3 -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 detect change in field value
using fire: document.observe('sic:proyecto',function(evt){ console.log(entro a sic proyecto); }); $('proyecto').observe('change',function(evt{ Element.fire('sic:proyecto'); }); Sorry, I find the error: change Element to document $('proyecto').observe('change' ,function(evt{ document.fire('sic:proyecto'); }); and the automatic function add the same line Thanks again. --~--~-~--~~~---~--~~ 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] how detect change in field value
Hi list I have the follow code: HTML: form input type=text name=field1 id=field1 / input type=hidden name=hide1 id=hide1 / a href=# id=field1_showoptionsshow options/a /form JS: myclass=Class.create(); myclass.addMethods({ showoptions: function(){ //show options using windows_js_1.3 //In the windows change the value from field1 }, getData: function(evt){ var number=evt.element().value; //made a ajax request and fill hide1 field looking number how key } }); document.observe('dom:loaded', function(){ $('field1_showoptions').observe('click', myclass.showoptions); $('field1').observe('change', myclass.getData); }); I want three thing 1: have a window with a table filled with many options and descriptions: OK 2: fill hide1 field when field1 value has enter manually: OK 3: fill hide1 field when field1 value has change using code js: FAIL Someone can give me a tip? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: press enter and go to next field visible
2009/3/9 RobG rg...@iinet.net.au On Mar 10, 10:20 am, Miguel Beltran R. yourpa...@gmail.com wrote: Hi list How can do it when I press automatic change to next field visible? the field can be input=text or input=select. Use the tab key, it navitates through visible form controls by default - no script required. Thanks Rob, but I want when press enter key (ascii 13) have the same behavior what tab key Now I made this function avanza_campo(evt){ var el=evt.element(); while(1){ var el2=el.next('input, select, button, submit'); console.log(cambiando de el='%s' a el2='%s', el.id, el2.id); if(el2.type=='hidden'){ el=el2; }else{ return true; } if(el==evt.element())return false; } } But not work how I expect, Starting in input id=material el2 is fondo - cuenta - undefined, no return input with id=vale lilabel for=materiala id=material_window href=#Material/a/label input type=text id=material name=material size=5 / span id=material_porgastar/span span id=material_nombre/span input type=hidden id=fondo name=fondo / input type=hidden id=cuenta name=cuenta / /li lilabel for=valeVale/label input type=text id=vale name=vale size=5 /li -- Rob -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: Builder.js not loading?
I little suggestion Checking the source you have Domain Name Selection inside a div, follow html suggestion for correct use I think what is better change to h4 or h5 tags. Sorry my english. My native langueje is spanish. 2009/2/12 Andrew aara...@gmail.com Thank you very much for the help, as well as the compliment! :-p -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: better way to change to nextfield
var key = evt.which || evt.keyCode; Afaik, you don't need to check `which` when observing `keydown` (as it's only populated in `keypress`) Thanks hehe, I copied the example but really I dont understand what evt.which do --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] [OT] better way to change to nextfield
Hi list, I have the next code. can be done better? [code[ var el_back; $('main_form').select('*').each(function(el){ if(el.type=='text' || el.type=='select-one'){ el.observe('focus', function(evt){evt.element().select()}); if(el_back){ el_back.observe('keydown', function(evt){ var key = evt.which || evt.keyCode; if(key==Event.KEY_RETURN){ evt.stop(); el.focus(); } }); }; el_back=el; } }) -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: update two container by one ajax call
2008/11/21 tushersuvro [EMAIL PROTECTED] Hey. Everyone! how r u? um having trouble in updating two container (ids) in one ajax call. the function here I use is protoype's updater function. Suppose there is two ids div id=1somethinf/div there are some code here. there are some code here. there are some code here. there are some code here. there are some code here. there are some code here. there are some code here. there are some code here. there are some code here. there are some code here. div id=2another bunch of code/div form name=samplefrm method=post action=javascript:get (document.getElementById('samplefrm')); change to form name=samplefrm id=samplefrm method=post action=results.htm input type=text name=textfield id=textfield value / input type=button name=srch value=submit / /form Now from the if submit button is pressed, two ids in above will be updated with two different contents with one ajax call. can it be done with prototype? Thnaks. Tushersuvro Yes, can do it check onSuccess something like this script type=text/javascript window.observe('dom:loaded', function (){ $('samplefrm').observe('submit', function(evt){ var req=$('samplefrm').request({ onSuccess: function(response){ $('div1').update(some value); $('div2').update(other value); } }) }) }) /script -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $('tableid').down('tbody').insert(tr, 'top') working but...
2008/11/20 jason maina [EMAIL PROTECTED] While building ontop of this, a new issue comes up, I want to replace a whole row with controls like an inplace editor only that im not editing a given cell at a time im editing a whole record as displayed on the interface. Have used the following codes getting errors: - Element(trID).replace(tr) //tr is a dynamically contructed row with cells and data now an ID has been included to the rows element.parentNode is null - $('TableID').down('tbody').replace(tr) //replaces the whole tbody section for the tr loosing all other data in the section as expected Now im lost, someone please show me the way Maybe https://developer.mozilla.org/en/DOM/element.replaceChild --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] prototype/scriptaculous have resize images?
Hi list prototype/scriptaculous have resize images? like http://extjs.com/deploy/dev/examples/resizable/basic.html -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] can combine bind and defer?
Checking http://proto-scripty.wikidot.com/prototype:how-to-using-unobtrusive-javascriptand http://proto-scripty.wikidot.com/prototype:how-to-hooking-events not say if is possible combine bind and defer. -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: OT: help with dinamic links and observe
Code from Zope table dtml-in somequery tr tddtml-field3;/td tda href=javascipt: aFunction(dtml-field1;,dtml-field2;)dtml-field1;-dtml-field2;/a/td -- observe what call aFunction with two params /tr /dtml-in /table after render table tr tdValue1/td tda href=javascript: aFtunction(801,1)801-1/a/td /tr tr tdValue5/td tda href=javascript: aFtunction(801,1)818-1/a/td /tr tr tdValue78/td tda href=javascript: aFtunction(801,1)803-2/a/td /tr /table 2008/10/31 T.J. Crowder [EMAIL PROTECTED] Hi, Not sure what you're trying to do, can you expand on that a bit? (And *wow* is that a depressing sig line... Que' deprimente!) -- T.J. Crowder tj / crowder software / com On Oct 31, 9:19 pm, Miguel Beltran R. [EMAIL PROTECTED] wrote: Hi list I use Zope for programing. Using a loop inser varius rows, example tr tdname1/tdtda href=javascript: modify(1,123)My name/a/td tdname1/tdtda href=javascript: modify(1,44)My name/a/td ... /tr How can do it the same using observe and dom:loaded? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] OT: help with dinamic links and observe
Hi list I use Zope for programing. Using a loop inser varius rows, example tr tdname1/tdtda href=javascript: modify(1,123)My name/a/td tdname1/tdtda href=javascript: modify(1,44)My name/a/td ... /tr How can do it the same using observe and dom:loaded? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Howto debug prototype
Maybe with http://www.mozilla.org/projects/venkman/ 2008/10/31 Martín Marqués [EMAIL PROTECTED] 2008/10/31 T.J. Crowder [EMAIL PROTECTED]: Hi, It sounds like this is more about script.aculo.us[1] than Prototype, but the answer's largely the same: Using a debugger. There's some useful links on the unofficial wiki's resources page: http://proto-scripty.wikidot.com/resources FYI, Firebug is less happy with Firefox 3 + Prototype than it was with Firefox 2 + Prototype, but it does still work, and using a fully- patched Firefox 3 seems to help quite a lot compared with earlier versions of 3.0. I have found that firebug doesn't give me much information with firefox 3. With Firefox 2 I used to get unvaluable info. -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programador, Administrador -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] prototype and iframe
Hi list I have the next code but not work, iframe show nothing what I doing wrong? html ... body div id=content div id=form_search form target=iframe_show.../form /div div id=show iframe id=iframe_show name=iframe_show/iframe /div /div script var muestra = function(m_id, m_modulo, m_modo){ var element = $(m_id); element.update('cargando...'); new Ajax.Updater(element, 'muestra.html', { method: 'get', parameters: {modulo:m_modulo, modo:m_modo} }); } document.observe('dom:loaded', function(){ muestra('iframe_show', 'taller_busca', 'nada'); } /script /body /html -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---