embperl and JSON

2015-03-30 Thread Donavon
e JSON; # imports encode_json, decode_json, to_json and from_json. $fdat{test} = "test"; $json= encode_json(\%fdat); $escmode = 0; $http_headers_out{'Content-Type'} = "application/json; charset=utf-8"; print OUT $json; -] Thank You, ~Donavon ---

Re: embperl and JSON

2015-04-02 Thread Donavon
CGI.pm to populate %fdat? In my script I am just using %fdat. I am not loading nor using CGI.pm. Any documentation that I have seen online refer to embperl and CGI.pm as separate, so unless I load CGI.pm or use "multipart/form-data" it should be a different issue. Am I missing s

Re: AW: embperl and JSON

2015-04-09 Thread Donavon
Thank You. How can this be set for a single embperl .epl file? I only need to process JSON in one file and leave the fdat processing normal for the hundreds of other files. Thank You, ~Donavon On 4/8/2015 3:52 AM, rich...@ecos.de wrote: Hi, Embperl use CGI.pm only for multipart/formdata

Re: Question concerning REST

2016-06-17 Thread Donavon
Hello. We would like to create an API using REST and EMBPERL. Did you come up with a working solution to implement REST with embperl? Thank You, ~Donavon On 8/27/2015 6:40 AM, Jean-Christophe Boggio wrote: Le 24/08/2015 19:57, Jim Howard a écrit : Darn. My only other bit of advice was

EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Donavon
Are there any suggestion for optimizing and / or speeding this up? Thank You, ~Donavon djler...@yahoo.com [$ while ( ($ID) = $sth->fetchrow) $] [- %opts = (); $opts{ID} = $ID; $opts{title} = "Modal Title"; $opts{footer} = "Modal Footer"; $opts{frameSrc} = "file.epl&

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-08-26 Thread Donavon
my understanding that generally, templates are done in Embperl::Object. But when doing it that way, your template is stored in your base Embperl::Object file, as Embperl code, rather than having everything stored in a database. Of course, that has the a

EMBPERL: accepting json

2016-09-02 Thread Donavon
GI.pm internally to process forms encoded with multipart/form-data" and that get processed into %fdat. Is there a way to disable this behavior dynamically per page to accept application/json data. Thanks, ~Donavon

Re: EMBPERL: accepting json

2016-09-08 Thread Donavon
pts accepting these calls to specific directories. |varformData ={"data1":a,"data2":b,"data3":c};$.ajax({dataType:"json",contentType :"application/json; charset=UTF-8",url:'/folder1/doSomething1.epl',data :formData,success:function(response)

Re: EMBPERL: accepting json

2016-09-08 Thread Donavon
doSomething1.epl',data </tt><tt>:formData,success:function(response){CurrentArray=response;}}); ||doSomething1.epl| doesn't receive the JSON data as %fdat. %fdat is empty. On 9/8/2016 10:18 AM, Ruben Safir wrote: On 09/08/2016 01:04 PM, Donavon wrote: I agree with all of

Re: EMBPERL: accepting json

2016-09-08 Thread Donavon
e:"json", contentType:"application/json; charset=UTF-8", url:'/folder1/doSomething1.epl', </pre><tt>data:formData, success:function(response){ CurrentArray=response; } }); </tt><tt> On 9/8/2016 10:21 AM, Neil Gunton wrote: Donavon w

Re: EMBPERL: accepting json

2016-09-08 Thread Donavon
t;Content-type", "application/x-www-form-urlencoded");' is not always possible. A lot of things RESTful seem to use application/json. On 9/8/2016 12:22 PM, Neil Gunton wrote: Donavon wrote: If I use Embperl to receive JSON data. That's where the issue arises. |

Complete example of EMBPERL_OPTIONS?

2016-09-13 Thread Donavon
Can somebody please provide a complete (working) example of how EMBPERL_OPTIONS are set for a single .epl file or directory. Thank You, ~Donavon - To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org For additional

Re: Complete example of EMBPERL_OPTIONS?

2016-09-15 Thread Donavon
*When I try this:* .htaccess EMBPERL_OPTIONS optDisableFormData = 256 *I get this error**:* In /var/log/httpd/error_log: .htaccess: EMBPERL_OPTIONS takes one argument On 9/13/2016 3:46 PM, Donavon wrote: Can somebody please provide a complete (working) example of how EMBPERL_OPTIONS are

Re: EMBPERL: accepting json Working Example

2016-09-20 Thread Donavon
nstalled Suggested changes and modifications are greatly appreciated. I still need to get GET, PATCH and DELETE working. Thank You and I HOPE this comes in handy to others!!! ~Donavon *.htaccess* EMBPERL_OPTIONS 256 *base.html* Hello World!!! var url = "json

Passing encrypted base64 encoded value via href and then decode and decrypt on receiving page not working

2017-01-31 Thread Donavon
ipher->decrypt() part. Any suggestions? Could it be an embperl issue or perl issue? Thank You, ~Donavon *temp.epl* [- use JSON; # imports encode_json, decode_json, to_json and from_json. use MIME::Base64; use Mycopa::Encrypt; $encrypt= new Mycopa::Encrypt()

perl / embperl -- IPC::Open3

2014-05-19 Thread Donavon Lerman
Hello. I have a sample program in 2 formats perl & embperl. The perl version works as a CGI but the embperl version does not work. Any suggestions or pointers to solutions would be appreciated OS: Linux version 2.6.35.6-48.fc14.i686.PAE (...) (gcc version 4.5.1 20100924 (Red Hat 4.5.1-

perl / embperl -- IPC::Open3 (with readable code)

2014-05-19 Thread Donavon Lerman
Ack... Sorry about the last email with unreadable code. My email system does something strange with some text. Here is the email again with readable code. Hello. I have a sample program in 2 formats perl & embperl. The perl version works as a CGI but the embperl version does not work. Any su

Re: perl / embperl -- IPC::Open3 (with readable code)

2014-05-22 Thread Donavon Lerman
With the help of user ikegami over at stackoverflow. The following solutions works. [- use warnings; use strict; use IPC::Open3; use POSIX; $http_headers_out{'Content-Type'} = "text/plain"; my $cmd = 'ls'; open(my $fh, '>', '/dev/null') or die $!; dup2(fileno($fh), 1) or die $! if

Re Disable STDOUT

2014-05-28 Thread Donavon Lerman
This is great... "You can send it to a file (e.g. /dev/null): open FH, "/dev/null" ; select (FH) ; # send STDOUT to FH Is that what you want? Gerald" Is there a way to set STDOUT back embperl OUT and to the browser after this? ~Donavon

Using CSS / JS in execute

2015-02-27 Thread Donavon Lerman
Is there a way to use the CSS or JS of the calling .epl in the .epl that is called via execute? Thank You, ~Donavon - To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org For additional commands, e-mail: embperl-h