Jordi is back!
This looks very IE specific. Does it actually work in NS as well?
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jordi -
> IlMaestro - Ministral
> Sent: 12 May 2001 16:05
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Help] Loading to a Frame
>
>
> You can use this trick: asume we've got a hidden frame called
> 'comms' and a
> function called dataSent().
>
> function sendStuff(stuff) {
> with(parent.comms.document) {
> open()
> writeln("<frameset onLoad='parent.dataSent()'>")
> writeln("<frame name=dumb src='about:blank'>")
> writeln("<frame name=data src='data.cgi?'"+stuff+">")
> writeln("</frameset>")
> close()
> }
> }
>
>
> Hershel Robinson wrote:
>
> > Jeff, thanks for writing--I didn't notice your post until today.
> >
> > The problem is the URL. I want to send a LOT of data to the
> CGI. I receive
> > back a very small page. I was advised to abandon LoadPanel and
> try to send
> > the results to a Frame, but I can not get the frame's onLoad event to
> > trigger my JavaScript function.
> >
> > If you have any ideas on this, I would be grateful.
> >
> > Hershel
> > ----- Original Message -----
> > From: "jeff" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 26, 2001 11:47 PM
> > Subject: Re: [Dynapi-Help] Loading to a Frame
> >
> > > Hi,
> > > Is the problem that your url is too long, or is it that you
> are trying to
> > get
> > > too much data back? In my tests LoadPanel can accept 32K of
> data without a
> > > problem, 64K seems to run the browser out of memory though.
> > > Jeff
> > >
> > > Hershel Robinson wrote:
> > >
> > > > 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
> >
> > _________________________________________________________
> > 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
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help