Skip Menu |

This queue is for tickets about the CGI-Ajax CPAN distribution.

Report information
The Basics
Id: 15089
Status: resolved
Priority: 0/
Queue: CGI-Ajax

People
Owner: bct [...] cpan.org
Requestors: yunmo [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.591
Fixed in: (no value)



Subject: The generated hyper code could not be run separately.
The hyper code generated with perl with CGI::Ajax could not be run separately when I saved the hyper code (HTML file with JavaScript). Since there is no relationship with the server once the hyper code has been generated with the cgi, the hyper code contains only the javascript and HTML lines. Therefore, it work without the server when the generated HTML file is saved.
Download CK.cgi
application/octet-stream 1.1k

Message body not shown because it is not plain text.

RT-Send-CC: bpederse [...] cpan.org
[guest - Sun Oct 16 22:43:55 2005]: Show quoted text
> The hyper code generated with perl with CGI::Ajax could not be run > separately when I saved the hyper code (HTML file with JavaScript). > > Since there is no relationship with the server once the hyper code has > been generated with the cgi, the hyper code contains only the > javascript and HTML lines. Therefore, it work without the server > when the generated HTML file is saved. >
This doesn't make any sense. CGI::Ajax is a server-side Perl module - it is not supposed to be used to generate HTML. If you capture the HTML and try to run it independently of CGI::Ajax, it won't run because you have severed the link between the Perl code and the response from the server. I'm closing this request. If I have totally missed the point of your request, please submit a more verbose request. BCT
[BCT - Mon Oct 17 11:13:22 2005]: Show quoted text
> [guest - Sun Oct 16 22:43:55 2005]: >
> > The hyper code generated with perl with CGI::Ajax could not be run > > separately when I saved the hyper code (HTML file with JavaScript). > > > > Since there is no relationship with the server once the hyper code has > > been generated with the cgi, the hyper code contains only the > > javascript and HTML lines. Therefore, it work without the server > > when the generated HTML file is saved. > >
> > This doesn't make any sense. CGI::Ajax is a server-side Perl module - > it is not supposed to be used to generate HTML. If you capture the HTML > and try to run it independently of CGI::Ajax, it won't run because you > have severed the link between the Perl code and the response from the > server. > > I'm closing this request. If I have totally missed the point of your > request, please submit a more verbose request. > > BCT
I appreciate your reply. Before I used CGI::Ajax, I had learnt some basics of Ajax which can run locally and therefore I thought the generated HTML by CGI can run locally though the JavaScript if there is no request to the server. Anyway, thank you very much for your great work. M.Y.