Re: [Proto-Scripty] Re: Progressive update messages from single request

2009-12-11 Thread Alex McAuley
in your ajax request file ?php ini_set('output_buffering',0); // make sure the output_buffering directive is not set high ob_start(); // before anything is echoed to the screen for($i=0;$i10;$i++) { echo('liPrinting Line '.$i.'/li'); ob_flush(); flush(); sleep(1); // sleep for

[Proto-Scripty] Re: A class called Queue()

2009-12-11 Thread david
Hi Cyril, I think first that it's in the prototype core group that you should ask such a question. it's at: http://groups.google.com/group/prototype-core?hl=fr Next, it's at scripteka: http://scripteka.com/ that you should send any extension to prototype. I think in case the extension is very

Re: [Proto-Scripty] Re: Check a mouse button

2009-12-11 Thread Frédéric
Le vendredi 11 décembre 2009 12:48, david a écrit : You do well, but for the mouseup, it should not be set to any element other document, so when you release the mouse button, the document will see this event. And don't forget to create the mousemove mouseup at mousedown event. And delete

[Proto-Scripty] File output

2009-12-11 Thread bill
I am a relative AJAX neophyte and a complete newbe to prototype. I have an application that successively loads a series of php pages into the same div without problem using Ajax.updater. The last php script, instead of generating html, writes a file to the output in OpenOffice Writer format

[Proto-Scripty] Re: File output

2009-12-11 Thread speedpac...@gmail.com
I'm not sure if it's the right way to do, but I just do an http call (just link to the url), and make sure that my PHP script returns the appropiate headers for the browser to download the file rather than open it inline... I don't think you need ajax for this... On Dec 11, 3:10 pm, bill

Re: [Proto-Scripty] Re: File output

2009-12-11 Thread Alex McAuley
Ajax cannot process a file download in the same way it cannot process a file upload... You have to output the link and make the user click it Alex Mcauley http://www.thevacancymarket.com - Original Message - From: speedpac...@gmail.com To: Prototype script.aculo.us

Re: [Proto-Scripty] Re: File output

2009-12-11 Thread Brian Williams
you would be exactly right. and to protect from hot linking then check the http referrer or a session variable and if that fails then redirect to a landing page. you want to investigate the following header info //cache controlling header(Cache-Control: public); //force download

Re: [Proto-Scripty] Re: File output

2009-12-11 Thread Alex McAuley
I'm not often wrong but i am right this time !!! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Brian Williams To: prototype-scriptaculous@googlegroups.com Sent: Friday, December 11, 2009 2:52 PM Subject: Re: [Proto-Scripty] Re: File output you

[Proto-Scripty] Re: File output

2009-12-11 Thread speedpac...@gmail.com
he replied to my mail :p I guess we're all right this time - what a wonderful world it is ;) On Dec 11, 4:08 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: I'm not often wrong but i am right this time !!! Alex Mcauleyhttp://www.thevacancymarket.com   - Original Message -  

[Proto-Scripty] Autocompleter does not work in FireFox 3.5.5

2009-12-11 Thread mjk
The error must be coming from another method that retrieves 'element'. I have not really tried to debug this. Wondering if anyone else has had this problem, and how they remedied it. The HTML html head meta http-equiv=Content-Type content=text/html; charset=utf-8/ script type=text/javascript

[Proto-Scripty] Re: Autocompleter does not work in FireFox 3.5.5

2009-12-11 Thread T.J. Crowder
Hi, I have not really tried to debug this. Always makes me eager to jump in and spend my time helping. ;-) But the error is obvious enough in this case: You're trying to access the DOM from inline script, which won't work; the DOM doesn't exist when that script is executed. You need to use

Re: [Proto-Scripty] Re: File output

2009-12-11 Thread bill
speedpac...@gmail.com wrote: he replied to my mail :p I guess we're all right this time - what a wonderful world it is ; I haven't replied at all, until now. On Dec 11, 4:08 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: I'm not often wrong but i am right this time !!!

Re: [Proto-Scripty] Re: File output

2009-12-11 Thread Alex McAuley
Not always m8 but thanks for the confidence! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: bill To: prototype-scriptaculous@googlegroups.com Sent: Friday, December 11, 2009 9:38 PM Subject: Re: [Proto-Scripty] Re: File output

[Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-11 Thread disccomp
A good reason to get out of the habit of using document.write, is that it is NOT supported by XHTML.[1] [1] http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Re: Autocompleter does not work in FireFox 3.5.5

2009-12-11 Thread joe t.
Always makes me eager to jump in and spend my time helping. ;-) Nice. Just tossing in: Alternately, the script block that has the active part can be placed at the end of the document, so the DOM elements are loaded by the time the browser reaches that script tag. You knew that, but OP maybe

[Proto-Scripty] Re: Progressive update messages from single request

2009-12-11 Thread joe t.
Alex, Thanks for the sample. i must be missing a piece somewhere though... http://pastie.org/739926 From that single Ajax.Request, the client delays, and after the PHP is done running, i get the complete output in one block. What i'd anticipated was that in each loop, the flush() would somehow

[Proto-Scripty] Uploading an image with Ajax.request

2009-12-11 Thread Andy Daykin
Hello, I was wondering if this is possible to do: I want to upload an image using Ajax.request like such: var form = $('addimage'); new Ajax.Request('http://myurl.com/uploadImage.php', { method: 'post', parameters: { image: $(form['image']).getValue() } } So far I haven't been able