fix problem with changing of the plot/accessions when no other selections have yet...
[sgn.git] / cgi-bin / forum / return_comments.pl
blob25aaacf8b4500ca9bd276ad8316a18decbc1f6ba
1 #!/usr/bin/perl
2 use strict;
4 # this script is for ajax use. It just returns the comment html, nothing else.
6 print "Content-type: text/html\n\n";
10 use CXGN::Page;
11 use CXGN::DB::Connection;
13 my $page = CXGN::Page->new();
14 my $dbh = CXGN::DB::Connection->new();
16 my %things = $page->get_all_encoded_arguments();
19 use CXGN::People::PageComment;
20 my $referer = $things{referer} ||= $page->{request}->uri()."?".$page->{request}->args();
21 my $pg = CXGN::People::PageComment->new($dbh, $things{type},$things{id});
22 $pg->set_refering_page($referer);
23 my $ch = $pg->get_html();
25 print $ch;