HighDots Forums  

Code not executing as expected

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Code not executing as expected in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Redwoof
 
Posts: n/a

Default Code not executing as expected - 11-26-2004 , 09:34 AM






During the production of a training aid I am using "layers" to allow the
student to enteract with displays graphically shown. I am having difficulty
getting the code controlling the "show/hide" to consistently function as
written. For example:

<input type="button" name="requestcreate" value="Creating New Request"
onClick="MM_showHideLayers('Layer1','','show','req uestnew','','show','requestlis
t1','','hide','requestcreate','','show','requested iting','','hide','requestlist'
,'','hide','requestselect','','hide','requestdetai ls','','hide')">

is not showing the layer "requestcreate".

This seems to be a problem with layers. Some times they work and sometimes
they don't. I do not see a pattern of when it works and when it does not, other
than it does not work most of the time. Has anyone one else run into this
problem and have they found a solution? Does anyone know why this is a
reoccuring problem.


I am running Dreamweaver 4. No upgrade available in the near term.

Thanks,:camera;


Reply With Quote
  #2  
Old   
Brandon Taylor
 
Posts: n/a

Default Re: Code not executing as expected - 11-26-2004 , 09:59 AM






Remeber, JavaScript is object-oriented - you have two elements named
'requestcreate'.

Change the name of your form to something else, and your layer show/hide
will work. Also double check for images that have the name attribute set to
'requestcreate' as they will also be affected by the show/hide method.

HTH,
bT

"Redwoof" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
During the production of a training aid I am using "layers" to allow the
student to enteract with displays graphically shown. I am having
difficulty
getting the code controlling the "show/hide" to consistently function as
written. For example:

input type="button" name="requestcreate" value="Creating New Request"
onClick="MM_showHideLayers('Layer1','','show','req uestnew','','show','requestlis
t1','','hide','requestcreate','','show','requested iting','','hide','requestlist'
,'','hide','requestselect','','hide','requestdetai ls','','hide')"

is not showing the layer "requestcreate".

This seems to be a problem with layers. Some times they work and sometimes
they don't. I do not see a pattern of when it works and when it does not,
other
than it does not work most of the time. Has anyone one else run into this
problem and have they found a solution? Does anyone know why this is a
reoccuring problem.


I am running Dreamweaver 4. No upgrade available in the near term.

Thanks,:camera;




Reply With Quote
  #3  
Old   
Redwoof
 
Posts: n/a

Default Re: Code not executing as expected - 11-26-2004 , 10:27 AM



HTH,
Very good! Its working fine now as well as a few others I was having problems
with.

I have run into this problem before and changed names to get things to work -
and I did it this time at the very beginning of the problem. I am using a lot
of layers and have tried to keep a rather ridged naming convention going to
help with updates. I think I just didn't change the name enough because this
time I used a nonsensical character combination - and Voila! Now I just have
to create a log for the other 75 layers of nonsensical name.

Thanks for the help.
KDH
:camera;:brokenheart;


Reply With Quote
  #4  
Old   
Brandon Taylor
 
Posts: n/a

Default Re: Code not executing as expected - 11-26-2004 , 11:34 AM



You're welcome.

bT

"Redwoof" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
HTH,
Very good! Its working fine now as well as a few others I was having
problems
with.

I have run into this problem before and changed names to get things to
work -
and I did it this time at the very beginning of the problem. I am using a
lot
of layers and have tried to keep a rather ridged naming convention going
to
help with updates. I think I just didn't change the name enough because
this
time I used a nonsensical character combination - and Voila! Now I just
have
to create a log for the other 75 layers of nonsensical name.

Thanks for the help.
KDH
:camera;:brokenheart;




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.