Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I Set Text of Container?

Guest
Sep 06, 2008 Sep 06, 2008
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!
TOPICS
Server side applications
503
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 07, 2008 Sep 07, 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!
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2008 Sep 07, 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 08, 2008 Sep 08, 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?
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 08, 2008 Sep 08, 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....


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 09, 2008 Sep 09, 2008
> Can you just view the html by clicking VIEW and then SOURCE in Internet
> Explorer?

Sure - what's the link?


--
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:ga4mc8$h2e$1@forums.macromedia.com...
>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....
>
>
>
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 10, 2008 Sep 10, 2008
Same link as before...
http://www.megazilla.com/


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2008 Sep 10, 2008
LATEST
There is a fundamental mistake in your logic.

The behavior will dynamically adjust the content on the CURRENT page. When
you click on the submit button the page submits to itself (by default since
you haven't specified a value for the action attribute in the form tag)
which refreshes the page, thereby defeating the action of the SetText
process. Thus, you see the change flash as the page refreshes and then it
goes away.

In other words, there is no way to do this using this approach of setting
the text when the form is submitted.

--
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:ga8si4$ni5$1@forums.macromedia.com...
> Same link as before...
> http://www.megazilla.com/
>
>
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 09, 2008 Sep 09, 2008
On 08 Sep 2008 in macromedia.dreamweaver.appdev, lazybones99 wrote:

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

Yes. Or Opera, or Firefox, or Chrome, or Lynx, ...

Actually, it's easier to do it that way. If I open in Firefox, I see it
in Firefox's neatly-formatted code viewer; I can use the Web Developer
extension to get different views of it or do different things with it, I
can see rendered javascript using the DOM view, ...

On the other hand, if you post it here, I have to read it in my
newsreader, and I hate trying to do that. Invariably, the formatting is
broken, there's no highlighting, and I wind up copying, creating an HTML
file on my desktop and opening that in Firefox.

You get the picture.

There's only so many posts I can answer. So unless something really,
really interests me, if the code is posted to the forum rather than a
link to the page, the odds of me checking it out go way down.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/contact.php
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines