Forums
This topic is locked
Bug found while altering visibility of layers
Posted 23 Aug 2001 17:07:00
1
has voted
23 Aug 2001 17:07:00 Bruno Mairlot posted:
Hi all,I would like to have your opinion.
When designing complex UI for extension, there is an option that consist in implementing a serie of Tab, that contains lots of option (PD Mxi creator is a good example).
You do that by designing different layers with the DIV tag.
If the user click on one the Tab you have, then you change visibility attribute of all of layer so that the new page is being visible and all other are hidden.
Up to now, I'm right, aren't I ?
So this is what I've done. And I observed a very strange behavior of DW and UD.
Inside the page layer, I have some input tag (textfield, select, ...)
I happens that when I change some properties of these input, well they are not anymore hidden with the rest of the layer when I change the visibility.
This is very curious, and does anyone has ever heard about such a thing ?
Is this a DW/UD bug or is it me that forget something ?
"First they laugh at you, then they fight you, then you Win..." Ghandi
Replies
Replied 23 Aug 2001 23:54:46
23 Aug 2001 23:54:46 Bruno Mairlot replied:
Well, as this was quite urgent, I found the solution, or should I say the problem.
In my extension I had two main layer that contained each two layer, one for the background and the other for the form.
<pre id=code><font face=courier size=2 id=code>
+-- layer1 ---------+
| +----sub1----+ |
| | | |
| +------------+ |
| +----sub2----+ |
| | | |
| +------------+ |
+-------------------+
</font id=code></pre id=code>
What I did was to alter visibility on the two sub-layer, without handling the main layer.
So I changed the code and it works fine now.
I post this message in case someone else have the same problem.
Bruno
"First they laugh at you, then they fight you, then you Win..." Ghandi
In my extension I had two main layer that contained each two layer, one for the background and the other for the form.
<pre id=code><font face=courier size=2 id=code>
+-- layer1 ---------+
| +----sub1----+ |
| | | |
| +------------+ |
| +----sub2----+ |
| | | |
| +------------+ |
+-------------------+
</font id=code></pre id=code>
What I did was to alter visibility on the two sub-layer, without handling the main layer.
So I changed the code and it works fine now.
I post this message in case someone else have the same problem.
Bruno
"First they laugh at you, then they fight you, then you Win..." Ghandi
Replied 24 Aug 2001 16:44:33
24 Aug 2001 16:44:33 Waldo Smeets replied:
You could look at Massimo's code for making atabbing interface. I used it in my conditional region 2 extension and was facing the same problem as you. I do not remember exactly how I solved it but you might want to have a look at ut: conditional region 2.
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>
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 24 Aug 2001 17:33:18
24 Aug 2001 17:33:18 Bruno Mairlot replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I do not remember exactly how I solved it but you might want to have a look at ut: conditional region 2.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I think I have it, but I don't remember having seen tab, maybe I've got the wrong extension...I'll look once again, just to make sure...
Massimo's code can be found on massimocorner.com ?
"First they laugh at you, then they fight you, then you Win..." Ghandi
I do not remember exactly how I solved it but you might want to have a look at ut: conditional region 2.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I think I have it, but I don't remember having seen tab, maybe I've got the wrong extension...I'll look once again, just to make sure...
Massimo's code can be found on massimocorner.com ?
"First they laugh at you, then they fight you, then you Win..." Ghandi
Replied 24 Aug 2001 17:38:22
24 Aug 2001 17:38:22 Waldo Smeets replied:
Yes, lots of his extensions use the code. But mine also uses his code (he allows you to as long as you credit him). So when you have the Conditional Region 2 extension you can also see Massimo his code.
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>
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 24 Aug 2001 18:13:10
24 Aug 2001 18:13:10 Bruno Mairlot replied:
He he,
I thought I had this extension, but It was Advanced Conditional Region...
Conditional Region 2 is very nice indeed. Unfortunately, I hadn't heard about this code before I start the extension, so this part of the code is finished and seems to work.
But I'll know for the next time.
Thanks for the help
"First they laugh at you, then they fight you, then you Win..." Ghandi
I thought I had this extension, but It was Advanced Conditional Region...
Conditional Region 2 is very nice indeed. Unfortunately, I hadn't heard about this code before I start the extension, so this part of the code is finished and seems to work.
But I'll know for the next time.
Thanks for the help
"First they laugh at you, then they fight you, then you Win..." Ghandi