Hello,
I am trying to send data from javascript and read data back from my
cgi module with this:
SendSyncRequest = function(RequestURL, RequestContent)
{
var request = new XMLHttpRequest();
request.open('GET', RequestURL, false);
request.setRequestHeader('Content-Type', 'text/html
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:
Hello,
I am trying to send data from javascript and read data back from my
cgi module with this:
SendSyncRequest = function(RequestURL, RequestContent)
{
var request = new XMLHttpRequest();
request.open('GET', RequestURL, false)
On Mon, Oct 17, 2011 at 3:55 PM, Michael Van Canneyt
wrote:
> As far as I know, this will always be empty, for the simple reason that the
> request is executed asynchronously. You must attach a callback which is
> executed once the request is ready, and read ResponseText after that.
Ah, no, my pr
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:
On Mon, Oct 17, 2011 at 3:55 PM, Michael Van Canneyt
wrote:
As far as I know, this will always be empty, for the simple reason that the
request is executed asynchronously. You must attach a callback which is
executed once the request is
On Mon, Oct 17, 2011 at 4:01 PM, Michael Van Canneyt
wrote:
> ? AFAIK xhttprequest is never synchronous...
It is synchronous if the third parameter of open is set to false:
http://www.w3.org/TR/XMLHttpRequest/#the-open-method
client . open(method, url, async, user, password)
The asynchronous f
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:
On Mon, Oct 17, 2011 at 4:01 PM, Michael Van Canneyt
wrote:
? AFAIK xhttprequest is never synchronous...
It is synchronous if the third parameter of open is set to false:
http://www.w3.org/TR/XMLHttpRequest/#the-open-method
client .
On Mon, Oct 17, 2011 at 4:11 PM, Michael Van Canneyt
wrote:
> Ehm. I think that the problem is elsewhere. Content is only accepted with
> the POST method.
Why? Is this a limitation from HTTP?
If I change to POST then I can no longer select my module, neither
"?module=MainPage" nor "/MainPage" wo
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:
On Mon, Oct 17, 2011 at 4:11 PM, Michael Van Canneyt
wrote:
Ehm. I think that the problem is elsewhere. Content is only accepted with
the POST method.
Why? Is this a limitation from HTTP?
Yes.
If I change to POST then I can no lo
On Mon, Oct 17, 2011 at 4:33 PM, Michael Van Canneyt
wrote:
> Yes.
I see ... simply encoding the data differently from what I originally
wanted and feeding it to a GET field worked fine.
> You must specify an action. A single path component is treated as an action.
> ?module=MainPage&Action=MyAc
Hello,
I see that when my CGI raises an exception we get a nice error message
with a stack trace as a response.
Is it possible to put some logging messages into this error response too?
I know I can simply put logging info into log files in the server, but
it looks like it would be handy to be a
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:
On Mon, Oct 17, 2011 at 4:33 PM, Michael Van Canneyt
wrote:
Yes.
I see ... simply encoding the data differently from what I originally
wanted and feeding it to a GET field worked fine.
Also a solution :-)
You must specify an act
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:
Hello,
I see that when my CGI raises an exception we get a nice error message
with a stack trace as a response.
Is it possible to put some logging messages into this error response too?
With some custom coding, it should be possible,
The issue reporter gave this example:
select ORDERNO as OrderNo from ORDERS as Orders;
It does parse AS, but only for a field.
Michael Van Canneyt replied:
TSQLParser implements SQL syntax as used in Firebird, and firebird does
not allow AS for a tablename, just append the alias.
The correct synt
On Mon, 17 Oct 2011, Reinier Olislagers wrote:
The issue reporter gave this example:
select ORDERNO as OrderNo from ORDERS as Orders;
It does parse AS, but only for a field.
Michael Van Canneyt replied:
TSQLParser implements SQL syntax as used in Firebird, and firebird does
not allow AS for a
Haskell lets you define functions like thrice, which accepts an element of
type a and returns a list of the element repeated three times, for any data
type a.
thrice :: a -> [a]
thrice x = [x, x, x]
I know the answer involves generics, but the docs don't offer examples using
Free Pascal's built-i
Does Free Pascal have anonymous functions that you can pass around, e.g. to
a sort(compare : function, arr : array) function?
If not, does anyone know any hacks to accomplish this?
Cheers,
Andrew Pennebaker
www.yellosoft.us
___
fpc-pascal maillist -
In our previous episode, Andrew Pennebaker said:
> thrice :: a -> [a]
> thrice x = [x, x, x]
>
> I know the answer involves generics, but the docs don't offer examples using
> Free Pascal's built-in generic types.
There is no built in list type, generic or not, and no way to define new
operators.
Can this be done with arrays? I didn't mean to be too specific; I'd be happy
with any generic collection that could do this.
Cheers,
Andrew Pennebaker
www.yellosoft.us
On Mon, Oct 17, 2011 at 6:08 PM, Marco van de Voort wrote:
> In our previous episode, Andrew Pennebaker said:
> > thrice :: a
But, but, the docs imply that this is the syntax for a function that returns
an array of bytes.
fpc ios7crypt.pas
ios7crypt.pas(3,25) Error: Type identifier expected
ios7crypt.pas(3,25) Fatal: Syntax error, ";" expected but "ARRAY" found
Fatal: Compilation aborted
$ cat ios7crypt.pas
program IOS7
On 17-10-2011 20:57, Michael Van Canneyt wrote:
>> Would it make sense to reopen this bug?
>
> ? Eh ? If indeed it is accepted, then yes please.
>
> Quite strange, because I implemented the SQL parser based on the
> official Firebird server docs. And it definitely was not allowed.
>
> But I'll t
2011/10/18 Andrew Pennebaker :
> But, but, the docs imply that this is the syntax for a function that returns
> an array of bytes.
>
Where in the docs did you read this?
Vincent
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.fr
21 matches
Mail list logo