thanks for the logic. it has worked for me. i really appreciate for your effort
now the problem i have. resluts come in popup window. and want to print resluts on page with no popup. i tried to change it from
to#!/usr/bin/perl # test1.pl use strict; use JSON; use CGI; my $q = new CGI; my $json = encode_json( { msg => "Time now is ".localtime } ); print $q->header( -type => 'application/json' ),$json;
#!/usr/bin/perl use JSON; use CGI; my $q = new CGI; my $json = encode_json( { msg => "Time now is ".localtime } ); print "Content-type: text/html\n\n"; print $json;
so am getting undefined as error
because if use print $q->header( -type => 'application/json' ),$json; that means its going to bring a popup window. cgi header generates popup window
In reply to Re^2: submit data without reload
by bigup401
in thread submit data without reload
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |