From: stephane B <is...@ne...> - 2003-02-04 18:59:57
|
sorry , i'm so unexperienced with javascript ... and i've made a strong = coding error (it seems) ... in fact when u use setHTML("something"); u have to do ... <a href=3D'javascript:DeleteLayer()'>hello</a> and not <a = href=3D"javascript:DeleteLayer()"> it cost an error .... sorry ... so sorry ... :-) stephane B ----- Original Message -----=20 From: Doug Melvin=20 To: stephane B ; dyn...@li...=20 Sent: Tuesday, February 04, 2003 10:54 PM Subject: Re: [Dynapi-Help] simple question I can't really tell fomr you code.. (you didn't include enough to be = sure) The attached code works just fine. Try attaching you HTML files when you are really lost.. For most of us salty old dogs a simple glance at your code will tell = use what we need to tell you to help you on your way.. Remember that you do not need to inlcude your whole damned project.. just the code you are having problems with. PLEASE! use a file attachment.. that way we don't have to search = through all of your code to find the question. :-) The two files show two methods.. comments can be found in the files ----- Original Message ----- From: "stephane B" <is...@ne...> To: <dyn...@li...> Sent: Tuesday, February 04, 2003 6:20 AM Subject: [Dynapi-Help] simple question > Hello, > i'm new to dynapi ... wonderful project .... > i have a simple beginner question ... > i ve created a simple layr by this way : > var dlyr =3D new DynLayer(null,400,200,400,500); > > i can delete it in html code using : > <a href=3D"javascript:DeleteLayer()">Delete layer</a> // fonction = to delete > > but i'm wondering how to create a bouton (link) to be able to delete = it in > the layer that i ve created .... > > dlyr.setHTML ("<a href=3D"javascript:DelteLayer()">Delete = layer</a>"); > doesn't work.... > > what is the good code to this kind of thing .... > > thanks a lot .... > > stephane B > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 = See! > http://www.vasoftware.com > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |