Maybe a more detailed explanation?


two frames: on names mainFrame (tee hee) and the other named controlFrame

in mainFrame you have your DHTML PLUS two functions:
requestData() and
processData()

function requestData(){
    top.frames.controlFrame.location = "/getdata.asp?arg1=arp&arg2=blagem";
}

processData(argString){
    ...
    process the returned string
    ...
}

--------------------------
in controlFrame is loaded some asp

in your asp, do whatever you need to do, when you are ready to return your
values:

response.write "<html><head>"
response.write "<script language=javascript>"

response.write "function PassValues(){top.frames.mainFrame.processData(" &
myString & ");}"

response.write "</script></head>"

response.write "<body onload=PassValues()>"
response.write "</body></html>"


now, when you asp is done, and has written the 'document' to the web
browser,
the body will call PassValues() which will call processData() passing the
data to be proccessed.


----- Original Message -----
From: "Frederick Samson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 7:58 AM
Subject: RE: [Dynapi-Help] LoadPanel as a messenger


> >A perhaps more suitable solution would be to use a frameset, and return
> > >the response in a textarea wrapper (like what you said in number 2, but
> > >using a frame not a loadpanel). NS4 can get the contents of a textarea.
>
> I am not sure that I understand : I create a frameset with an invisible
> frame. The invisible frame HTML is going to change over the time with the
> output generated by an ASP script. That output has to contain whatever
> information needed to dispatch the results to the destination layers on
the
> other frame.
>
> 1- But how do I send a request (using JavaScript) to the ASP script in a
> manner that will change the HTML in the invisible frame? With a LoadPanel
I
> just call 'setURL'. Remember that I need some queueing mecanism so that
all
> request reach the server at some time
>
> 2- Upon HTML reception how the invisible frame can get to life and start
> dispatching the results? Using the onLoad event?
>
> Thanks!
>
> Frederick Samson
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


---
Outgoing mail is certified Virus Free by AVG Free Edition
Download at: http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to