I'm afraid I don't follow your trasin of thought ----- Original Message ----- From: "Byrne, Gerald (euler:eti)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 3:52 AM Subject: RE: Re[3]: [Dynapi-Help] How do you fill up a layer?
Dan Steinman-------------------------------------------------------------------- ------------------------- In the current paradigm, creation works similarly to Java does. You create a GUI object, and add that to some other object. ---------------------------------------------------------------------------- ----------------- Could a set of objects be build for creating HTML pages using a similar Java style. Perhaps a DynHTML model that could be used to construct the HTML page, which can then be applied using something like MyLayer.setDynHTML()? Ged. > -----Original Message----- > From: Quang Nguyen [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, November 20, 2001 12:02 AM > To: [EMAIL PROTECTED] > Subject: Re[3]: [Dynapi-Help] How do you fill up a layer? > > I should thanks Dan Steinman for telling me a much cleaner solution: > Here is another way that seems to work really well! > > > <html> > </head><body bgcolor="#ffffff"> > <div ID="myLayer">hajskdhkjas dashdkjahsdjasd </div> > <script> > d = new DynLayer(); > d.setID('mylayer'); > //Not sure what that d.assignElement is for. > //d.assignElement(is.ie?document.all.mylayer:document.layers.mylayer); > </script> > </body></html> > > > > The original email sent by Dan Steinman: > > > The reason for DynAPI to create the layer/div is to make it easier. > There's > nothing stopping you from creating your layers > manually, and then attaching them to a DynLayer afterwords like so: > > <div id='mylayer'></div> > <script> > d = new DynLayer(); > d.setID('mylayer'); > d.assignElement(is.ie?document.all.mylayer:document.layers.mylayer); // > assignElement is re-introduced in 2.6 > </script> > > In the current paradigm, creation works similarly to Java does. You > create > a GUI object, and add that to some other object. > Dynlayer needs to know what object to be created in, be it another layer, > or > the document. It wouldn't be a good idea for the > constructor to create the browser element (during "new DynLayer()") > because > it would have to be created again when you add it to > another layer (nesting). And things have been optimized so that the layer > > is only created when all it's size/location/color has > been finalized so to reduce unneeded processing. > > Regards, > Dan Steinman > > > > ----Original Message Follows---- > From: "Quang Nguyen" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: Re[2]: [Dynapi-Help] How do you fill up a layer? > Date: Mon, 19 Nov 2001 23:54:22 +0000 > > XML eh? I will think about it. > > PS: I was trying to say exactly what you wrote, but I just couldn't find > the > words. Thank you for helping me develop my English. > > > > ----Original Message Follows---- > From: Darío Vasconcelos <[EMAIL PROTECTED]> > Reply-To: Darío Vasconcelos <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re[2]: [Dynapi-Help] How do you fill up a layer? > Date: Mon, 19 Nov 2001 17:43:04 -0600 > > 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 > > > _________________________________________________________________ > 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 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help