in reply to Re^3: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
in thread CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
Sorry to all of you, but it's not working. Let me clear myself, I wanna write a CGI script, which would do following.
# required modules use CGI; use CGI::Ajax; # html generation depending upon session info # begining html code if ($session-start) print $cgi->p("user no" . $session->id); else print $cgi->p("guest"); # remaining html code # ajax call my $pjx = new CGI::Ajax( 'exported_func' => \&perl_func); print $pjx->build_html($cgi, \&htm);
I am finding it difficult to generate HTML content with session info, and forward it to Ajax call
If it wouldn't have been Ajax call, then, manipulating HTML content depending upon session info was easy part for me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
by Anonymous Monk on Sep 02, 2013 at 00:01 UTC | |
by msinfo (Sexton) on Sep 02, 2013 at 01:13 UTC | |
by Anonymous Monk on Sep 02, 2013 at 02:33 UTC | |
by Anonymous Monk on Sep 02, 2013 at 02:38 UTC | |
by poj (Abbot) on Sep 02, 2013 at 07:13 UTC | |
by msinfo (Sexton) on Sep 03, 2013 at 18:35 UTC | |
by Anonymous Monk on Sep 04, 2013 at 03:35 UTC |