HighDots Forums  

Set Text of Container to HTML not working

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Set Text of Container to HTML not working in the Macromedia Dreamweaver forum.



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

Default Set Text of Container to HTML not working - 07-24-2008 , 10:28 AM






I have a div tag named "theAnswer" on a page. When the user clicks the
"Submit" button, I want some text to appear inside the div that has HTML
formatting.

The HTML code for the text I want to appear is below:

You are correct!  We are committed to conducting business with
the highest degree of integrity, complying with legal standards and
regulations and serving others with respect, fairness and
caring.&nbsp;&nbsp;Click here for <a href="javascript:;"
onClick="MM_openBrWindow('../docs/

Ethics_Standard_1.pdf','','scrollbars=yes,resizabl e=yes,width=790,height=57?5')"
Quote:
More
Info</a> or click Continue.


After I put in the Behavior to "Set Text > Set Text of Container to", choose
the correct Div tag, and paste the above into the "New HTML" field, when I
click the Submit button, I get the following appearing in the div "theAnswer"
exactly how it appears below as text without it being actual formatted HTML.


You are correct!&nbsp; We are committed to conducting business with
the highest degree of integrity, complying with legal standards and
regulations and serving others with respect, fairness and
caring.&nbsp;&nbsp;Click here for <a href="javascript:;"
onClick="MM_openBrWindow('../docs/

Ethics_Standard_1.pdf','','scrollbars=yes,resizabl e=yes,width=790,height=57?5')"
Quote:
More
Info</a> or click Continue.

It's not formatted as HTML, it just comes out exactly what the coding is.
Why?!




Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Set Text of Container to HTML not working - 07-24-2008 , 10:31 AM






Let's see the page, please.

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


"Jim Rehmann" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I have a div tag named "theAnswer" on a page. When the user clicks the
"Submit" button, I want some text to appear inside the div that has HTML
formatting.

The HTML code for the text I want to appear is below:

You are correct!&nbsp; We are committed to conducting business with
the highest degree of integrity, complying with legal standards and
regulations and serving others with respect, fairness and
caring.&nbsp;&nbsp;Click here for <a href="javascript:;"
onClick="MM_openBrWindow('../docs/

Ethics_Standard_1.pdf','','scrollbars=yes,resizabl e=yes,width=790,height=57?5')"
More
Info</a> or click Continue.


After I put in the Behavior to "Set Text > Set Text of Container to",
choose
the correct Div tag, and paste the above into the "New HTML" field, when I
click the Submit button, I get the following appearing in the div
"theAnswer"
exactly how it appears below as text without it being actual formatted
HTML.


You are correct!&nbsp; We are committed to conducting business with
the highest degree of integrity, complying with legal standards and
regulations and serving others with respect, fairness and
caring.&nbsp;&nbsp;Click here for <a href="javascript:;"
onClick="MM_openBrWindow('../docs/

Ethics_Standard_1.pdf','','scrollbars=yes,resizabl e=yes,width=790,height=57?5')"
More
Info</a> or click Continue.

It's not formatted as HTML, it just comes out exactly what the coding is.
Why?!




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

Default Re: Set Text of Container to HTML not working - 07-24-2008 , 10:41 AM



Quote:
After I put in the Behavior to "Set Text > Set Text of Container to
It sounds like that behavior is setting the text...not the HTML via
something like innerHTML

-Darrel



Reply With Quote
  #4  
Old   
Jim Rehmann
 
Posts: n/a

Default Re: Set Text of Container to HTML not working - 07-24-2008 , 11:09 AM



I think I want to approach this from a different direction. I'm going to make the div tag invisible, and then make it visible once the user clicks on Submit.

Reply With Quote
  #5  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Set Text of Container to HTML not working - 07-24-2008 , 11:18 AM



Either way, we'd need to see your code.

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


"Jim Rehmann" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I think I want to approach this from a different direction. I'm going to
make the div tag invisible, and then make it visible once the user clicks
on Submit.


Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Set Text of Container to HTML not working - 07-24-2008 , 11:19 AM



SetText works by setting the innerHTML, dood.

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


"darrel" <notreal (AT) notreal (DOT) com> wrote

Quote:
After I put in the Behavior to "Set Text > Set Text of Container to

It sounds like that behavior is setting the text...not the HTML via
something like innerHTML

-Darrel


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 - 2008, Jelsoft Enterprises Ltd.