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