Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1328 How can I capture the server response to a FORM submission so I can edit it, and then display it in a different frame?

You are here: irt.org | FAQ | JavaScript | Form | Q1328 [ previous next ]

Have the server return javascript, then you can do what you want with it, for example the following Perl code returns JavaScript which updates another frame:

#!/usr/bin/perl -w

my $bid = 123.45;

print "Content-type: text/html\n";

print '<script language="JavaScript"><!--';
print 'bid = \'$bid\'' ;
print 'top.otherframe.document.open()' ;
print 'top.otherframe.document.write(bid)' ;
print 'top.otherframe.document.close()' ;
print '//--></script>' ;

©2018 Martin Webb