Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | JavaScript | Form | Q1328 [ previous next ]

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?

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>' ;

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.