[Proto-Scripty] Re: document.observe etc for multiple forms?
Kangaz, Not a good idea with many elements. Better would be: document.observe('click', function(e, el) { if (el = e.findElement('.classname')) { // do stuff. `el` now references clicked element } }); 'just a little more help please! Could you please spell out how the original code below would change using your approach. I cannot get it right at the moment. document.observe(dom:loaded, function () { $$('.sectionform').invoke('observe', 'click', function(evt) { evt.stop(); getData(evt.element().form); }); }); --~--~-~--~~~---~--~~ 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: document.observe etc for multiple forms?
Kangax, I have still not understood this. The following works but why? I do not use el which references the clicked element .. document.observe('click', function(e, el) { if (el = e.findElement('.sectionform')) { // do stuff. `el` now references clicked element e.stop(); getData(e.element().form); } }) Cheers Geoff On Jan 16, 1:06 am, kangax kan...@gmail.com wrote: On Jan 15, 6:15 pm, Richard Quadling rquadl...@googlemail.com wrote: [...] You could add the same class to each element and ... $$('.classname').invoke('observe', 'click', function(ev) { ... }); Not a good idea with many elements. Better would be: document.observe('click', function(e, el) { if (el = e.findElement('.classname')) { // do stuff. `el` now references clicked element } }); [...] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] I think i found a bug in IE6(not yet test in IE7), it will throw a error when I create a instance object in sub window use the Class defined by its opener.
Hi guys, The following is my environment Windows2000 English Professional Prototype's version is 1.6.0.3, IE6.0.2800.1106 test fail Firefox2.0.0.20 test ok The following is my code snippet in window named 'A' : SomeClass = Class.create(); in window named 'B' : SomeClass = opener.SomeClass; new SomeClass(...); The following is result in IE6 throw a error Invalid procedure call or argument in Firefox2 just ok. Who can tell me why ? --~--~-~--~~~---~--~~ 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: Best way to apply an effect on page load?
That works fine TJ, thank you! I really appreciate the help. Matt On Jan 15, 5:17 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi Edd, Just to confuse issues slightly, wouldn’t it be better to use #map instead of #each? Why? He isn't using the return value, so no need to create the return array. One concern in both cases, though, is whether Effect.SlideDown will be bothered by the extra parameter provided by both #each and #map's calls to the iterator. According to the scripty docs, it expects the element and an optional options object, whereas #each and #map will pass it the element and the element's index in the array. Oops. - grin- So perhaps better to replace .each(Effect.SlideDown); ...in the various examples with something more expicit: .each(function(elm) { Effect.SlideDown(elm); }); ...or something like that. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 15, 3:19 pm, redheat ecouch...@googlemail.com wrote: TJ, Just to confuse issues slightly, wouldn’t it be better to use #map instead of #each? Edd P.S., I haven’t tested, so #map may not work. If you know there will only be one and don't mind if the effect applies to all of them if (for whatever reason) there's more than one, Enumerable#each makes for a concise bit of code: document.observe(dom:loaded, function() { $('editProducts').select('div.test').each(Effect.SlideDown); }); --~--~-~--~~~---~--~~ 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: asynchronous file upload
Does anyone have good examples or links to how to work with a progress bar if you select an iframe solution? On Jan 15, 4:49 pm, jason maina jason.ma...@gmail.com wrote: Thanks joe, I wouldn't mind getting my hands on your code work, currently trying to understand SWFUpload flash/javascript. Dont worry to much about the documentation i will ask where things get to hit the rocks. Kind regards Jason On Thu, Jan 15, 2009 at 5:26 PM, joe t. thooke...@gmail.com wrote: If you can't utilize a Flash solution, the only other way is an IFRAME. i had a need for this too, and spent a long time developing quite an elaborate Prototype-based JS class for the client side, and a PHP handler on the server side. If you're interested, let me know and i'll be happy to share (i'll have to work on more detailed docs though). Maybe it'll be useful, maybe not. -joe t. On Jan 14, 10:58 am, jason maina jason.ma...@gmail.com wrote: Hi all, Cutting to the chase, how do I do an asynchronous file upload, been googling all day with nothing really positive, may be been looking in all the wrong places. Assistance will be Kind regards Jason --~--~-~--~~~---~--~~ 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: asynchronous file upload
Im using php/mysql on the back-end On Fri, Jan 16, 2009 at 2:01 PM, Peter De Berdt peter.de.be...@pandora.bewrote: On 16 Jan 2009, at 11:39, Stucture_Ulf wrote: Does anyone have good examples or links to how to work with a progress bar if you select an iframe solution? You didn't say what framework/backend language you are using. When it comes to Rails, the only way to do it as far as I know is by adding the mongrel_progress plugin to mongrel and serving your app that way. You need full access to the VPS/server to do it. http://mongrel.rubyforge.org/wiki/UploadProgress Flash-based uploaders are a lot easier, they monitor upload progress clientside and don't need serverside hacks nor a periodical updater firing off requests every few seconds to monitor progress. I doubt there's any ready-made just-plug-something-in solution out there, because you really need to understand what you are actually doing. For SWFUpload gotchas in Rails applications, I'm referring to a thread I participated in a while ago detailing all the steps needed to take to get SWFUpload to work seamlessly with Rails 2. Most of the stuff that's in there will probably apply to other frameworks too (maybe a slightly different implementatio). If the javascript and tips are totally gibberish for you, I would go for a simple non-ajax upload until you're more familiar with clientside web technology. http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/45f70281a5992fa7 Best regards Peter De Berdt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: asynchronous file upload
OK, what about: http://www.google.com/search?client=safarirls=en-usq=php+upload+progressie=UTF-8oe=UTF-8 On 16 Jan 2009, at 14:04, jason maina wrote: Im using php/mysql on the back-end On Fri, Jan 16, 2009 at 2:01 PM, Peter De Berdt peter.de.be...@pandora.be wrote: On 16 Jan 2009, at 11:39, Stucture_Ulf wrote: Does anyone have good examples or links to how to work with a progress bar if you select an iframe solution? You didn't say what framework/backend language you are using. When it comes to Rails, the only way to do it as far as I know is by adding the mongrel_progress plugin to mongrel and serving your app that way. You need full access to the VPS/server to do it. http://mongrel.rubyforge.org/wiki/UploadProgress Flash-based uploaders are a lot easier, they monitor upload progress clientside and don't need serverside hacks nor a periodical updater firing off requests every few seconds to monitor progress. I doubt there's any ready-made just-plug-something-in solution out there, because you really need to understand what you are actually doing. For SWFUpload gotchas in Rails applications, I'm referring to a thread I participated in a while ago detailing all the steps needed to take to get SWFUpload to work seamlessly with Rails 2. Most of the stuff that's in there will probably apply to other frameworks too (maybe a slightly different implementatio). If the javascript and tips are totally gibberish for you, I would go for a simple non- ajax upload until you're more familiar with clientside web technology. http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/45f70281a5992fa7 Best regards Peter De Berdt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] IE 8 Beta 2 Overflow Problem
Hey, guys! I need help and it's very urgent. Here's the description of problem. I've got one div which has got huge overflow (I made it that way so it comes IE7 compatible) and the overflow is hidden by CSS. Now, I want to do some some Effect.toggle('blind') on that div. Each browser except IE 8 Beta 2, does this normally. But IE 8 (sadly) stretches the div all the way down to the end of overflow and blinds it up. I just want to make it not stretch down to the end of overflow. IE7 interprets this OK too, but I don't know what's wrong with IE8. Any help? --~--~-~--~~~---~--~~ 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: I think i found a bug in IE6(not yet test in IE7), it will throw a error when I create a instance object in sub window use the Class defined by its opener.
On Jan 16, 3:10 am, Eric smcdl6...@gmail.com wrote: [...] Who can tell me why ? Prototype doesn't have much support for cross-frame scripting. Some things work and some don't. If you could attach a minimal test case, I'll look into what exactly is going on. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] FF throws an error saying $('note_cursor') has no properties.
When i try to run a sample to understand how prototype.js works i see a problem with Fire Fox. Following is the code var d = $('note_cursor'); d.addClassName('active'); FF throws an error saying $('note_cursor') has no properties. While this works fine in IE6. Can any one please help to debug 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-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.Request
FOR IE 7 AJAX.REQUEST IS NOT GETTING VALUES UPDATED FROM SERVER.I NEED TO SERVE THE CURRENT SERVER TIME AND SOME OTHER VALUES FROM SERVER AS A JSON STRING .THIS PART OF THE MY SCRIPT IS WORKING WELL WITH FIREFOX OPERA NETSCAPE .BUT WITH IE IT ALWAYS SHOWS THE VALUES SAME AS THE FIRST AJAX CALL DURING THE PAGE LOAD.THE FREEQUENCY FOR AJAX CALL IS 5 SECOND. ANY HAVE AN IDEA .PLEASE SEND 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] prototype differed answer to request
Dear All, I am trying to implement a web UI for a web service that provides XML requests to get synchronously some state values for example, /state1/get XML request to change some state values for example /state1/up and a NOTIFY request for which it will only answer when the state change for example /state1/notify My understanding is that prototype can handle multiple requests. The problem I am facing is that some requests seem to be stuck while a notify request is pending. Moreover when I get an answer for a pending notify, it looks like all requests that were stucked, are sent but in a out of order. Is there a limitation with prototype with request like notify ? Is there a way to cancel/abort a pending request ? Thanks, Christophe --~--~-~--~~~---~--~~ 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: FF throws an error saying $('note_cursor') has no properties.
Hi, Can you post a minimal but complete example demonstrating the problem? That code is fine (it assumes the element will exist, but sometimes that's a safe[ish] assumption, and of course $() _does_ work correctly on Firefox. So it'll be something about the page structure, when this is being done (inline or in an event), etc. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 16, 8:33 am, Felcita Edwin felcita.rajakum...@gmail.com wrote: When i try to run a sample to understand how prototype.js works i see a problem with Fire Fox. Following is the code var d = $('note_cursor'); d.addClassName('active'); FF throws an error saying $('note_cursor') has no properties. While this works fine in IE6. Can any one please help to debug 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-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 differed answer to request
Hi Christophe, Is there a limitation with prototype with request like notify ? Not in _Prototype_. But there are lots of limitations around concurrent requests imposed by various browser and server implementations. Most browsers will only ever process two concurrent requests to the same server, queuing the others. I don't know that anyone (IE, Firefox, etc.) _documents_ that they will guarantee to process the queued requests in the order that you initiated them (and you certainly can't count on them _completing_ in order). Separately, some servers implement a similar limitation on concurrent requests from the same client, and again, I'd be surprised (especially once you get into a scaling situation with a server farm) if you could rely on concurrent requests being processed strictly in order of initiation. In situations where you need the requests processed in a strict order, you'll need to implement a queue in your client-side code and wait for the result of one request before initiating the next. And you'll probably need to only rely on having one request satisfied at a time, although in most cases you could have two. Note that all this is not just Ajax requests. This applies to page loads involving lots of images, style sheets, script files, etc. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 16, 12:26 pm, cb christophe.ba...@gmail.com wrote: Dear All, I am trying to implement a web UI for a web service that provides XML requests to get synchronously some state values for example, /state1/get XML request to change some state values for example /state1/up and a NOTIFY request for which it will only answer when the state change for example /state1/notify My understanding is that prototype can handle multiple requests. The problem I am facing is that some requests seem to be stuck while a notify request is pending. Moreover when I get an answer for a pending notify, it looks like all requests that were stucked, are sent but in a out of order. Is there a limitation with prototype with request like notify ? Is there a way to cancel/abort a pending request ? Thanks, Christophe --~--~-~--~~~---~--~~ 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: asynchronous file upload
I'm using php/mysql as well. On Jan 16, 2:32 pm, Peter De Berdt peter.de.be...@pandora.be wrote: OK, what about: http://www.google.com/search?client=safarirls=en-usq=php+upload+pro... On 16 Jan 2009, at 14:04, jason maina wrote: Im using php/mysql on the back-end On Fri, Jan 16, 2009 at 2:01 PM, Peter De Berdt peter.de.be...@pandora.be wrote: On 16 Jan 2009, at 11:39, Stucture_Ulf wrote: Does anyone have good examples or links to how to work with a progress bar if you select an iframe solution? You didn't say what framework/backend language you are using. When it comes to Rails, the only way to do it as far as I know is by adding the mongrel_progress plugin to mongrel and serving your app that way. You need full access to the VPS/server to do it. http://mongrel.rubyforge.org/wiki/UploadProgress Flash-based uploaders are a lot easier, they monitor upload progress clientside and don't need serverside hacks nor a periodical updater firing off requests every few seconds to monitor progress. I doubt there's any ready-made just-plug-something-in solution out there, because you really need to understand what you are actually doing. For SWFUpload gotchas in Rails applications, I'm referring to a thread I participated in a while ago detailing all the steps needed to take to get SWFUpload to work seamlessly with Rails 2. Most of the stuff that's in there will probably apply to other frameworks too (maybe a slightly different implementatio). If the javascript and tips are totally gibberish for you, I would go for a simple non- ajax upload until you're more familiar with clientside web technology. http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/... Best regards Peter De Berdt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: FF throws an error saying $('note_cursor') has no properties.
Whoops -- that should have said In InternetExplorer getElementById incorrectly returns elements based on the name attribute as well as the id attribute. On Jan 16, 10:47 am, Tom twalp...@gmail.com wrote: Since the code thats failing is so simple, I'm going to guess that 'note_cursor' is actually the name of an element in your document and not its id. getElementById (which $ calls) incorrectly returns elements based on the name attribute as well as the id attribute. Because of this if in your document you have input name='note_cursor' then $('note_cursor') will return the input element in IE6 but in FF it will not. On Jan 16, 12:33 am, Felcita Edwin felcita.rajakum...@gmail.com wrote: When i try to run a sample to understand how prototype.js works i see a problem with Fire Fox. Following is the code var d = $('note_cursor'); d.addClassName('active'); FF throws an error saying $('note_cursor') has no properties. While this works fine in IE6. Can any one please help to debug 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-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: FF throws an error saying $('note_cursor') has no properties.
Thanks guys for your replies.. I got the problem resolved. It was because the function was being called before the DOM gets loaded. Thanks again!! Felcita On Sat, Jan 17, 2009 at 12:19 AM, Tom twalp...@gmail.com wrote: Whoops -- that should have said In InternetExplorer getElementById incorrectly returns elements based on the name attribute as well as the id attribute. On Jan 16, 10:47 am, Tom twalp...@gmail.com wrote: Since the code thats failing is so simple, I'm going to guess that 'note_cursor' is actually the name of an element in your document and not its id. getElementById (which $ calls) incorrectly returns elements based on the name attribute as well as the id attribute. Because of this if in your document you have input name='note_cursor' then $('note_cursor') will return the input element in IE6 but in FF it will not. On Jan 16, 12:33 am, Felcita Edwin felcita.rajakum...@gmail.com wrote: When i try to run a sample to understand how prototype.js works i see a problem with Fire Fox. Following is the code var d = $('note_cursor'); d.addClassName('active'); FF throws an error saying $('note_cursor') has no properties. While this works fine in IE6. Can any one please help to debug 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-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 differed answer to request
Thanks for your informative reply. In my case I think I should have only at most two concurrent request at any time. But what I really need is to be able to abort a pending notify request. If I can, then I will have at mot one request at a time. Basically I will have a pending notify request until the server replies to it. But if I need to change a state from the client, I need to abort the notify request, change the state and then send a new notify request. Is it possible to abort a pending request from thr prototype framework ? How do ajax application manage to get informed of server side events ? Do they all rely on polling method ? Thanks, Christophe On Jan 16, 7:01 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi Christophe, Is there a limitation with prototype with request like notify ? Not in _Prototype_. But there are lots of limitations around concurrent requests imposed by various browser and server implementations. Most browsers will only ever process two concurrent requests to the same server, queuing the others. I don't know that anyone (IE, Firefox, etc.) _documents_ that they will guarantee to process the queued requests in the order that you initiated them (and you certainly can't count on them _completing_ in order). Separately, some servers implement a similar limitation on concurrent requests from the same client, and again, I'd be surprised (especially once you get into a scaling situation with a server farm) if you could rely on concurrent requests being processed strictly in order of initiation. In situations where you need the requests processed in a strict order, you'll need to implement a queue in your client-side code and wait for the result of one request before initiating the next. And you'll probably need to only rely on having one request satisfied at a time, although in most cases you could have two. Note that all this is not just Ajax requests. This applies to page loads involving lots of images, style sheets, script files, etc. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 16, 12:26 pm, cb christophe.ba...@gmail.com wrote: Dear All, I am trying to implement a web UI for a web service that provides XML requests to get synchronously some state values for example, /state1/get XML request to change some state values for example /state1/up and a NOTIFY request for which it will only answer when the state change for example /state1/notify My understanding is that prototype can handle multiple requests. The problem I am facing is that some requests seem to be stuck while a notify request is pending. Moreover when I get an answer for a pending notify, it looks like all requests that were stucked, are sent but in a out of order. Is there a limitation with prototype with request like notify ? Is there a way to cancel/abort a pending request ? Thanks, Christophe --~--~-~--~~~---~--~~ 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: My Element.inserts are coming out strangely... please give me a nudge?
On Jan 16, 4:09 pm, Ian R i...@fairmountfair.com wrote: [...] wrap: function() { var prev_value = this.orientation == 'horizontal' ? 'larr;' : 'uarr;'; var next_value = this.orientation == 'horizontal' ? 'rarr;' : 'darr;'; prev_value = prev_value.unescapeHTML(); next_value = next_value.unescapeHTML(); //make a new div for the top var w = new Element('div',{'class':'listwrap'}); var h = this.el.select('h1'); var h = this.el.down('h1'); [...] P.S. `unescapeHTML` should work. I'm not sure what could be the problem there. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: reserved words for prototype and/or scriptaculous?
On Jan 17, 12:30 am, ColinFine colin.f...@pace.com wrote: [...] but if you want it to be more general, you can say getData(evt.element().up('form')) All form controls have a form property that is a reference to the form they are in, so why not: getData(evt.element().form)) -- Rob --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---