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
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
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
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
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
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
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
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
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 -
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
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
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 !!!
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
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,
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
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
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
17 matches
Mail list logo