RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Miller, Raul D
Ian Tyndall wrote: > I'm not sure if this has been discussed before, but is it possible to > get a file download as a response from Ajax.Request? I know you can > have response txt or xml, but how would I go about requesting a file > download? Currently I'm requesting the download like this: >

[Rails-spinoffs] how to distinguish between click and drag?

2006-03-15 Thread Rob Clayburn
Hi All I have a sortable list where each contains a link. e.g. link link link How can I go about stopping the click event on the link if the li element has been dragged? Cheers Rob ___ Rails-spinoffs mailing list Rails-spinoffs@lists.ruby

Re: [Rails-spinoffs] prototype.js Event.stopObserving

2006-03-15 Thread Jeremy Kitchen
On Wednesday 15 March 2006 15:38, Jeremy Kitchen wrote: > On Wednesday 15 March 2006 14:42, Ryan Gahl wrote: > > When you create the listeners, assign them to a variable so you have a > > handle by which to remove them... > > > > this.myListener = this.someFunction.bindAsEventListener(this); > > Ev

Re: [Rails-spinoffs] prototype.js Event.stopObserving

2006-03-15 Thread Jeremy Kitchen
On Wednesday 15 March 2006 14:42, Ryan Gahl wrote: > When you create the listeners, assign them to a variable so you have a > handle by which to remove them... > > this.myListener = this.someFunction.bindAsEventListener(this); > Event.observe(this.someElement, "someEvent", this.myListener); > > ...

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ian Tyndall
Ryan Gahl wrote: But as you know, this ties up the browser and gives me little control of the download. I'm wondering, what control of the download do you need? The browser and user should be in control of any file downloads... The information transmitted in this electronic ma

RE: [Rails-spinoffs] prototype.js Event.stopObserving

2006-03-15 Thread Ryan Gahl
When you create the listeners, assign them to a variable so you have a handle by which to remove them... this.myListener = this.someFunction.bindAsEventListener(this); Event.observe(this.someElement, "someEvent", this.myListener); ...now you can do this... Event.stopObserving(this.someElement, "

[Rails-spinoffs] prototype.js Event.stopObserving

2006-03-15 Thread Jeremy Kitchen
anyone have any information on how to effectively use this? Event.observe() doesn't return anything, and nothing I've tried is actually removing the event listeners from the objects. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] In the beginning was The Word and The Word was Content-type: te

RE: [Rails-spinoffs] Adding Elements into the DOM

2006-03-15 Thread Daniel Elmore
Sorry Jeremy, I'll try to remember that. Thanks for your help! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Kitchen Sent: Wednesday, March 15, 2006 4:12 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Adding Elements in

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Andrew Kaspick
oh, a download, thought he was referring to an upload. forget my post. :) On 3/15/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > > But as you know, this ties up the browser and gives me little control > of > > the download. > > > I'm wondering, what control of the download do you need? The browser an

Re: [Rails-spinoffs] Adding Elements into the DOM

2006-03-15 Thread Jeremy Kitchen
when starting a new thread, please do not reply to an existing post, remove all of the content including the subject, and type out your new request. Messages posted this way break the list archives and mail clients that support threading. Instead, please use your MUA's 'new' function. That be

RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ryan Gahl
> But as you know, this ties up the browser and gives me little control of > the download. I'm wondering, what control of the download do you need? The browser and user should be in control of any file downloads... The information transmitted in this electronic mail is intended only for the pers

Re: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Andrew Kaspick
iframes are generally the approach used On 3/15/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > Downloading is a function of the browser itself, not supported in the > XMLHTTP object (you either get text or XML with it)... > > The only way I can think to initiate a file download without tying up > your

[Rails-spinoffs] Adding Elements into the DOM

2006-03-15 Thread Daniel Elmore
Hi, what is the best practice for adding elements into the DOM. InnerHTML? Does prototype provide a better or enhanced way? Thanks! ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-

Re: [Rails-spinoffs] [ANN] New stuff in script.aculo.us trunk

2006-03-15 Thread Lori Olson
On Tuesday, February 21, 2006, at 12:41 PM, Thomas Fuchs wrote: >* Enable in place editor to use RJS (implements a new evalScripts >option for the in place editor), #3490 [thx Richard Livsey] > I've been stuck on this all day. Can anyone give me an example of evalScripts option in the context

RE: [Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ryan Gahl
Downloading is a function of the browser itself, not supported in the XMLHTTP object (you either get text or XML with it)... The only way I can think to initiate a file download without tying up your client instance, is to spawn a tiny popup window which initiates the download. But... that's a pop

[Rails-spinoffs] Ajax request for file downloads

2006-03-15 Thread Ian Tyndall
I'm not sure if this has been discussed before, but is it possible to get a file download as a response from Ajax.Request? I know you can have response txt or xml, but how would I go about requesting a file download? Currently I'm requesting the download like this: window.location = '

[Rails-spinoffs] svn.rails-engines.org

2006-03-15 Thread David Newberger
Where did the site go? any eta on it's return? any info on why it is down? David Newberger 651.271.9045 [EMAIL PROTECTED] http://www.davidnewberger.com ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org

Re: [Rails-spinoffs] sub-selection with $

2006-03-15 Thread oo00oo
Perfect ! Thanks :) document.getElementsByClassName('li0', 'ssnav'); ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] sub-selection with $

2006-03-15 Thread Nicolas Terray
document.getElementsByClassName('li0', 'ssnav'); On 3/15/06, oo00oo <[EMAIL PROTECTED]> wrote: > Thanks > but I have 2 class ( li0 ) one under div "main" and another under div > "subnav" > > So what I need is more $('ssnav').getElementsByClassName('li0'); > > But return the error > Error : $("ssna

Re: [Rails-spinoffs] sub-selection with $

2006-03-15 Thread oo00oo
Thanks but I have 2 class ( li0 ) one under div "main" and another under div "subnav" So what I need is more $('ssnav').getElementsByClassName('li0'); But return the error Error : $("ssnav").getElementsByClassName is not a function So, how select it ? Hi oo00oo (!) "name" is not a standard

Re: [Rails-spinoffs] sub-selection with $

2006-03-15 Thread Nicolas Terray
Hi oo00oo (!) "name" is not a standard attribute for li elements. You should use class instead. Then with prototype : var my_elements = document.getElementsByClassName('li0'); Hope this helps, Nicolas Terray On 3/15/06, oo00oo <[EMAIL PROTECTED]> wrote: > Hello, > > I have 2 navigations ( mainn

[Rails-spinoffs] sub-selection with $

2006-03-15 Thread oo00oo
Hello, I have 2 navigations ( mainnav and subnav ) with 2 lists List have same names ( li0 li1 li2 ) What is the best way to select li1 of subnav with prototype 1.4 in this case ? I just want to hide/show it Thanks ___ Rails-spinoffs mai