How do I Set Text of Container?

This is a discussion on How do I Set Text of Container? within the Macromedia Dreamweaver forums in Adobe Tools category; 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 ...

Go Back   Application Development Forum > Adobe Tools > Macromedia Dreamweaver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-06-2008, 11:46 AM
lazybones99
Guest
 
Default How do I Set Text of Container?

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!

Reply With Quote
  #2  
Old 09-07-2008, 08:17 AM
Murray *ACE*
Guest
 
Default Re: How do I Set Text of Container?

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!
>


Reply With Quote
  #3  
Old 09-07-2008, 09:03 PM
lazybones99
Guest
 
Default Re: How do I Set Text of Container?

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?

Reply With Quote
  #4  
Old 09-08-2008, 09:21 AM
Murray *ACE*
Guest
 
Default Re: How do I Set Text of Container?

> 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?
>


Reply With Quote
  #5  
Old 09-08-2008, 10:17 PM
lazybones99
Guest
 
Default Re: How do I Set Text of Container?

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....




Reply With Quote
  #6  
Old 09-09-2008, 07:51 AM
Murray *ACE*
Guest
 
Default Re: How do I Set Text of Container?

> 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....
>
>
>
>


Reply With Quote
  #7  
Old 09-09-2008, 08:35 AM
Joe Makowiec
Guest
 
Default Re: How do I Set Text of Container?

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
Reply With Quote
  #8  
Old 09-10-2008, 12:27 PM
lazybones99
Guest
 
Default Re: How do I Set Text of Container?

Same link as before...
http://www.megazilla.com/



Reply With Quote
  #9  
Old 09-10-2008, 01:02 PM
Murray *ACE*
Guest
 
Default Re: How do I Set Text of Container?

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/
>
>
>


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:16 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.