> I want to create a proof of concept that gives the possibility to refresh
> only parts of a DHTML page after some user input. Exemple : the
> user makes
> some choices with input controls and click a button. An HTTP Get
> request is
> sent using a single [invisible] LoadPanel (the messenger) and an
> ASP script
> return the result. That result may contain HTML for many
> DynLayers so each
> result specify it's recipient. The LoadPanel subclass (the messenger)
> interpret the result and distribute the results. After it may
> process with
> the next query.
>
> My questions are :
>
> 1- After a call to setURL on the LoadPanel, how can I be notified
> when the
> result has been received? I could then use getHTML, interpret it and
> distribute the result BEFORE the LoadPanel send the next query.
There is a problem with this, you cannot do getHTML on a LoadPanel in
Netscape 4. The DynAPI is cheating in Netscape 4 because when you setHTML it
keeps a copy of the HTML that can be returned by getHTML. However using the
LoadPanel doesn't call setHTML.
> 2- Any suggestion on how I could encode the pairs of {Recipient,
> HTML}. It
> should be easy and fast to parse. Would it be a good idea to return many
> forms with one TextBox (Recipient : DynLayer name) and one
> TextArea (HTML)
> and then iterate in the LoadPanel's document's forms?
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.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help