Got it
bobef
bobef at abv-nospam.bg
Sun Mar 30 23:51:41 PDT 2008
> the only problem seems documentiations and examples
I know, but I am not likely to write documentation. That's where the original documentation comes in handy. One needs to be familiar with HTMLayout anyway...
> how to get or set element value, I can not understand that some times some methods work fine, but some times failed.
Well this is because of how HTMLayout works. Generally you you HElement.value for elements like <input> and <select> and for normal elements like <div> <etc> you use the (inner/outer)(HTML/Text) methods. Sometimes you can use these for inputs as well.
yidabu Wrote:
>
> Thanks! bobef, HTMLayout is a wonderful library, the only problem seems documentiations and examples, e.g. how to get or set element value, I can not understand that some times some methods work fine, but some times failed.
>
>
> On Thu, 27 Mar 2008 08:17:27 -0400
> bobef <bobef at abv-nospam.bg> wrote:
>
> > Sorry, I wasn't around :)
> >
> > I use elePlaintext.innerText usually. It works fine for me. Your solution is also fine, but it uses the JSON structure.
> >
> > yidabu Wrote:
> >
> > > just:
> > > (*plaintext.value).toString
> > >
> > > On Wed, 19 Mar 2008 20:43:05 +0800
> > > yidabu <yidabu.nospam at gmail.com> wrote:
> > >
> > > >
> > > > It's too slowly to open dsource form from China this time, so I ask here :)
> > > >
> > > > get user changed value of input control, just element.elementText,
> > > > but how to get user changed value of plaintext control ?
> > > >
> > > > I tried methods below, all failed:
> > > >
> > > > elePlaintext.attribute("value")); //old value
> > > > elePlaintext.elementText); //nothing ?
> > > > elePlaintext.innerText); //nothine ?
> > > > elePlaintext.innerHTML); //old value
> > > > elePlaintext.outerHTML); //old value
>
>
> --
> yidabu <yidabu.nospam at gmail.com>
> DÓïÑÔ¡¡ÖÐÎÄÖ§³Ö(D Chinese Support)
> http://www.d-programming-language-china.org/
> http://bbs.d-programming-language-china.org/
> http://dwin.d-programming-language-china.org/
> http://scite4d.d-programming-language-china.org/
More information about the Digitalmars-d-dwt
mailing list