I've been following Quang's participations and I think his question is
perfectly valid; I guess he's thinking on the ugly code that might
result after he concatenates several non-trivial form and layout
elements (tables with format, forms and cells possibly generated from
server-side script, etc). I've done things like that and one of the
minor problems that, however, gives me the most headaches, is the
imposibility for code editors to render the syntax inside javascript's
quote marks. This leads to unexpected single and double quotes
problems, uneven parentheses, etc...

Quang: just as an idea, but, maybe you could use XML for <script> to
avoid huge, unmanageable strings?

Regards,

Dario

DM> yes.

DM> var myLayer = DynAPI.document.addChild(new
DM> DynLayer('myLayer',100,100,200,200));
DM> var myHTMLString = "<form name='theform' onsubmit='www.whatever.com'>"
DM>   +"Name:<input type=text name='userName'>"
DM>   +"<input type=submit value='clickme'>"
DM>   +"</form>"
DM>   +"<img src=myimage1.gif>"
DM>   +"<img src=myimage2.gif>"
DM>   +"<img src=myimage3.gif>"
DM>   +"<img src=myimage4.gif>"
DM>   +"<img src=myimage5.gif>"
DM>   +"<img src=myimage6.gif>"
DM>   +"<img src=myimage7.gif>"
DM>   +"<img src=myimage8.gif>"
DM>   +"<img src=myimage9.gif>"
DM>   +"<img src=myimage10.gif>"
DM>   +"<img src=myimage11.gif>"
DM>   +"<img src=myimage12.gif>"
DM>   +"<img src=myimage13.gif>";

DM>  myLayer.setHTML(myHTMLString);


DM> So let's see.. we have some _HTML_ (var myHTMLString) and we want it to be
DM> in a _LAYER_ (var myLayer).
DM> We use setHTML to _SET_THE_HTML_ of the _LAYER_ to be the _HTML_ we have
DM> created in var myHTMLString.

DM> I'm trying not to be rude here, but, what they hell are you talking about?
DM> Your question still makes no sense. Have you actually tried to create a
DM> layer and set the HTML or have you been hired by my co-workers to drive me
DM> nutz?
DM> (Please.. do not take offense to anything I say, I am simply trying to help
DM> you, but don't know what I am helping you with)


DM> ----- Original Message -----
DM> From: "Quang Nguyen" <[EMAIL PROTECTED]>
DM> To: <[EMAIL PROTECTED]>
DM> Sent: Monday, November 19, 2001 5:48 PM
DM> Subject: Re: [Dynapi-Help] How do you fill up a layer?


>> For example, let's supposed you want a layer to have a form, a few dozen
>> pictures, and a submit button, how will you do that? Will you still use
>> setHTML()?
>>
>>
>>
>>
>> ----Original Message Follows----
>> From: "Doug Melvin" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Subject: Re: [Dynapi-Help] How do you fill up a layer?
>> Date: Mon, 19 Nov 2001 15:21:12 -0500
>>
>> I think you need to be more specific.
>> The rest of us use myLayer.setHTML() to set HTML,
>> and the layer can still be manipulated just fine.
>>
>> You are going to have to provide far more details as to your problem
DM> before
>> we can help your.
>> soirry.
>> ----- Original Message -----
>> From: "Quang Nguyen" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Monday, November 19, 2001 3:10 PM
>> Subject: Re: [Dynapi-Help] How do you fill up a layer?
>>
>>
>>  > Yeah but you can't manipulate the layers anymore...
>>  >
>>  >
>>  > ----Original Message Follows----
>>  > From: "Doug Melvin" <[EMAIL PROTECTED]>
>>  > To: "Quang Nguyen" <[EMAIL PROTECTED]>,
>> <[EMAIL PROTECTED]>
>>  > Subject: Re: [Dynapi-Help] How do you fill up a layer?
>>  > Date: Mon, 19 Nov 2001 14:42:29 -0500
>>  >
>>  > uh, yes?
>>  > What's the problem?
>>  > If you want <div>HTML</div>
>>  > then use inline layers
>>  > ----- Original Message -----
>>  > From: "Quang Nguyen" <[EMAIL PROTECTED]>
>>  > To: <[EMAIL PROTECTED]>
>>  > Sent: Monday, November 19, 2001 2:24 PM
>>  > Subject: [Dynapi-Help] How do you fill up a layer?
>>  >
>>  >
>>  >  > In the first DYNAPI, I used to create my own layer and fill them up
>> with
>>  > a
>>  >  > LOT of HTML. In the second DYNAPI, it seems that you have to use
>> setHTML.
>>  > Is
>>  >  > this really the only way?
>>  >  >
>>  >  > _________________________________________________________________
>>  >  > Get your FREE download of MSN Explorer at
>>  > http://explorer.msn.com/intl.asp
>>  >  >
>>  >  >
>>  >  > _______________________________________________
>>  >  > Dynapi-Help mailing list
>>  >  > [EMAIL PROTECTED]
>>  >  > https://lists.sourceforge.net/lists/listinfo/dynapi-help
>>  >
>>  >
>>  >
>>  > _________________________________________________________________
>>  > Get your FREE download of MSN Explorer at
>> http://explorer.msn.com/intl.asp
>>  >
>>  >
>>  > _______________________________________________
>>  > Dynapi-Help mailing list
>>  > [EMAIL PROTECTED]
>>  > https://lists.sourceforge.net/lists/listinfo/dynapi-help
>>  >
>>
>>
>> _______________________________________________
>> Dynapi-Help mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/dynapi-help
>>
>>
>> _________________________________________________________________
>> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>>
>>
>> _______________________________________________
>> Dynapi-Help mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/dynapi-help


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



-- 
Best regards,
 Darío                            mailto:[EMAIL PROTECTED]



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to