Forums

This topic is locked

Dual List/Menu value Editor

Posted 19 Aug 2001 14:49:31
1
has voted
19 Aug 2001 14:49:31 Bruno Mairlot posted:
Hi all,

it's me again <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

I'm facing a problem and DW source code can't help me.

I would like to use the same control that you can find while editing List/Menu values. (If you select a &lt;select&gt; tag, in the property inspector, you may see the "List Values..." button that allows you to define Text AND value of the menu.

You may also find a 3-way example in the Create Recordset in UltraDev -&gt; Advanced Mode -&gt; The parameter liste. There you have the Name,Default Value, Code column.

The PHPRecordset doesn't contain any HTML code, only js, and it doesn't help a lot
<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
I find this UI very nice and intuitive and would like to do the same in my extension. I've browsed for the full configuration directory but can't find any clue about the html/js file that would handle this.

Thanks for any help

"First they laugh at you, then they fight you, then you Win..." Ghandi

Replies

Replied 19 Aug 2001 19:52:37
19 Aug 2001 19:52:37 Waldo Smeets replied:
Maehdros,

You are looking for a MM Parameter List Grid Control. I used one on my recordset to flash variables extension that is currently in beta: www.udzone.com/beta/rs2flashvars_0.5.mxp

We have an extension that inserts the grid into your page in Dreamweaver (www.UDzone.com/go?330). Unfortunately it still requres lots of handcoding to add + and - buttons and up and down buttons. I think my beta extension might be a nice example. I stripped it down from a Live Object.

Let me know when you need help.

Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 19 Aug 2001 20:08:20
19 Aug 2001 20:08:20 Bruno Mairlot replied:
It is indeed what I was looking for. Thanks !

But, where is it documented ? What about API ? How to add/del/update entry ? To which event does it respond (probably onChange...) ?

Macromedia could have done better here...It's the same with the MM:TreeControl object. The API is very limited, you've got to do everything by hand.

I wonder if I shouldn't write a little extension that would contain a TreeControl API.

BTW, when I was looking for the parameter grid list, I found a file from Macromedia that contains an API for the &lt;select&gt; object. Very nice and very useful, but I think Macromedia should talk more about these API that every developper should know about.

I implemented exactly the same control that you find in "Jump To Menu" Command. It took me some time because It's the first time I play with it, but would I have known about it before, it's countless hours that I could have saved.<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

"First they laugh at you, then they fight you, then you Win..." Ghandi
Replied 19 Aug 2001 20:27:08
19 Aug 2001 20:27:08 Waldo Smeets replied:
I have to agree with you that there is almost no documentation. It's all a matter of looking at what other extensions did and give it a try yourself.

BTW: in your first post you mentioned that the PHPRecordset does not contain any HTMLcode. This is because that is localted in the commands directory: the recordset behavior in fact is a command. Have a look at what the js refers to and which commands it calls and find them in that directory.

Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 25 Aug 2001 23:29:59
25 Aug 2001 23:29:59 Bruno Mairlot replied:
Damn !

I've tried to use this control, but it's almost unusable...

I can't catch any event !!

All you can do is use innerHTML and outerHTML properties. At least with MM:TREECONTROL you've got onChange event. But here, nothing, nada, rien <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

And to add to frustration, when I was almost finished with my new extension the layer bug came again to knock at my door !

I don't know what to do...

"First they laugh at you, then they fight you, then you Win..." Ghandi

Reply to this topic