I'm not sure if this would be the problem, but in your perl code, you don't
need to specify the javascript: protocol in the onload attribute.
have you tried doing this in netscape, you can check the javascript console
for errors at least.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Hershel
> Robinson
> Sent: 26 April 2001 15:36
> To: [EMAIL PROTECTED]
> Subject: [Dynapi-Help] Loading to a Frame
>
>
> DynAPI gurus,
>
> I understand that I can't use a LoadPanel for a really large URL, because
> there is a limit to the URL size. I am trying instead to use a Form and
> send the results to a Frame. It is not, however, working. This
> is my main
> page:
>
> <HTML>
> <HEAD>
> <TITLE>Office Builder</TITLE>
> </HEAD>
> <FRAMESET ROWS="100%,0%">
> <FRAME NAME="MainFrame" SRC="build.html">
> <FRAME NAME="SaveFrame">
> </FRAMESET>
> </HTML>
>
> This the JavaScript in build.html:
>
> // loadFinished is called when the HTML is changed by the following
> // setHTML function
> /// loadWin happens to be a LoadPanel
> // I use for other purposes. I used it here just because it's handy
> loadWin.loadFinished=function() {
> loadWin.doc.SaveForm.submit()
> alert("submitted it")
> }
> loadWin.setHTML(
> "<FORM NAME='SaveForm' TARGET='SaveFrame' ACTION="+cgiprog+">"+
> "<INPUT TYPE=HIDDEN NAME=Function value=savefloorplan>"+
> "<INPUT TYPE=HIDDEN NAME=OtherData value=OtherData>"+
> "<INPUT TYPE=SUBMIT NAME='SubmitButton'>"+
> "</FORM>")
>
> parent.MainFrame.saveFinished=function() {
> alert("parent.MainFrame.saveFinished")
> // evaluate results ...
> }
>
> This is my Perl code:
>
> output("alert('Floor plan $fpname successfully saved.') ",1);
>
> sub output {
> $data = $_[0];
> chop $data;
> print "Content-type: text/html\n\n<HTML><BODY";
> if ($_[1]) {
> print "
> ONLOAD='javascript:alert(parent.MainFrame.saveFinished);parent.Mai
> nFrame.sav
> eFinished()'";
> }
> print <<"STOP";
> >
> <FORM NAME="OutputForm">
> <INPUT NAME='Output' SIZE=100 TYPE=TEXT VALUE="$data">
> </FORM>
> </BODY>
> </HTML>
> STOP
> }
>
>
> When I run the thing, I do see the "submitted it" alert come up,
> but that's
> about it. Any help is much appreciated, including suggestions of
> alternative ways to do the whole thing!
>
> Hershel Robinson
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help