Skip to main content
September 6, 2008
Question

How do I Set Text of Container?

  • September 6, 2008
  • 3 replies
  • 501 views
I want my "submit" button to change the text of the "block01" container, but I get an error message in Internet Explorer 6. I used a Dreamweaver CS3 behavior for this. Before the error message pops up, you can breifly see that my new text does appear in the container, but you have to watch close because it only appears for a half a second.

The website is www.megazilla.com

I have never used CSS before, so I am probably doing something very basic wrong.

I uploaded the index.htm file and the megazilla.css file. I can't see any other files in my Dreamweaver file list.

I am using Dreamweaver CS3.
Thanks in advance!
This topic has been closed for replies.

3 replies

Inspiring
September 8, 2008
> What else should I do?

Sounds like you have done everything properly. But just to be sure can you
show us the resulting HTML (no need for the javascript)?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"lazybones99" <webforumsuser@macromedia.com> wrote in message
news:ga1tlt$a2p$1@forums.macromedia.com...
> How would I do this differently?
> I created a form container using the form icon on the forms tab,
> Then I clicked the icon for a button and gave it a name,
> Then I made some divs outside of the form,
> then I opened the behavior pallate,
> Then selected the button and clicked "+" to make a new behavior,
> Then I put in both of the parameters that are asked for in the Dreamweaver
> "Set Text of Container" screen:
> 1) is the Container box, where I used the drop down menu to pick my
> container,
> 2) is the New HTML box, where I typed in some text.
> There was nothing else to enter on that screen.....
>
> What else should I do?
> Does it have to be hand-coded, or can I use the Dreamweaver menu system
> and
> mouse to do everything?
> Does the form container need a style or a behavior?
>

September 9, 2008
I tried pasting the code here, but I got an error message saying there are censored words in my post. It doesn't tell me which words are censored.

Can you just view the html by clicking VIEW and then SOURCE in Internet Explorer?

I appreciate your help very much....


September 8, 2008
How would I do this differently?
I created a form container using the form icon on the forms tab,
Then I clicked the icon for a button and gave it a name,
Then I made some divs outside of the form,
then I opened the behavior pallate,
Then selected the button and clicked "+" to make a new behavior,
Then I put in both of the parameters that are asked for in the Dreamweaver "Set Text of Container" screen:
1) is the Container box, where I used the drop down menu to pick my container,
2) is the New HTML box, where I typed in some text.
There was nothing else to enter on that screen.....

What else should I do?
Does it have to be hand-coded, or can I use the Dreamweaver menu system and mouse to do everything?
Does the form container need a style or a behavior?
Inspiring
September 7, 2008
You are trying to submit a form without an action attribute. That's why you
are getting the error.

<input name="Submit" type="submit" id="Submit"
onclick="MM_setTextOfLayer('block01','','THIS HAS BEEN CHANGED BY SUBMIT
BUTTON')" value="Submit" />

But this will not work, since the form will either submit to itself or to
another page, and in either case, you will no longer be able to see the
'changed' message.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"lazybones99" <webforumsuser@macromedia.com> wrote in message
news:g9u8kv$bsi$1@forums.macromedia.com...
>I want my "submit" button to change the text of the "block01" container,
>but I
> get an error message in Internet Explorer 6. I used a Dreamweaver CS3
> behavior
> for this. Before the error message pops up, you can breifly see that my
> new
> text does appear in the container, but you have to watch close because it
> only
> appears for a half a second.
>
> The website is www.megazilla.com
>
> I have never used CSS before, so I am probably doing something very basic
> wrong.
>
> I uploaded the index.htm file and the megazilla.css file. I can't see any
> other files in my Dreamweaver file list.
>
> Thanks in advance!
>