Adobe Dreamweaver Forums



Last 10 THreads :         Dreamweaver CS4 Beta Uninstaller? (Last Post : _Burn_ - Replies : 0 - Views : 1 )           »          Div or iFrame resize depending on content. (Last Post : Nancy O - Replies : 5 - Views : 7 )           »          Flex and ColdFusion web services (Last Post : jfb00 - Replies : 1 - Views : 2 )           »          Advanced datagrid using Remote Objects (Last Post : rkcy - Replies : 5 - Views : 6 )           »          Flickering tooltip in bottom right corner (Last Post : aperitech - Replies : 4 - Views : 5 )           »          Change Font on Buttons (Last Post : CJ KY - Replies : 0 - Views : 1 )           »          RoboHelp & Knowledge Bases (Last Post : lmarden - Replies : 2 - Views : 3 )           »          catching errors from remotely invoked processes (Last Post : Amy Blankenship - Replies : 3 - Views : 4 )           »          A question for the gurus (Last Post : Amy Blankenship - Replies : 1 - Views : 2 )           »          Naming Layers CS4 Mac (Last Post : Type & Art - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , ,



Reply
  #1 (permalink)  
Old 09-06-2008, 05:08 PM
lazybones99
 
Posts: n/a
Diggs:
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
Sponsored Links
  #2 (permalink)  
Old 09-07-2008, 02:20 PM
Murray *ACE*
 
Posts: n/a
Diggs:
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 (permalink)  
Old 09-08-2008, 02:19 AM
lazybones99
 
Posts: n/a
Diggs:
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 (permalink)  
Old 09-08-2008, 02:26 PM
Murray *ACE*
 
Posts: n/a
Diggs:
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 (permalink)  
Old 09-09-2008, 03:24 AM
lazybones99
 
Posts: n/a
Diggs:
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 (permalink)  
Old 09-09-2008, 01:02 PM
Murray *ACE*
 
Posts: n/a
Diggs:
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 (permalink)  
Old 09-09-2008, 01:41 PM
Joe Makowiec
 
Posts: n/a
Diggs:
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 (permalink)  
Old 09-10-2008, 05:35 PM
lazybones99
 
Posts: n/a
Diggs:
Default Re: How do I Set Text of Container?

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



Reply With Quote
  #9 (permalink)  
Old 09-10-2008, 06:15 PM
Murray *ACE*
 
Posts: n/a
Diggs:
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

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
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk