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.MainFrame.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

Reply via email to