| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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! |
|
#2
| |||
| |||
| 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! > |
|
#3
| |||
| |||
| 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? |
|
#4
| |||
| |||
| > 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? > |
|
#5
| |||
| |||
| 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.... |
|
#6
| |||
| |||
| > 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.... > > > > |
|
#7
| |||
| |||
| 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 |
|
#8
| |||
| |||
| |
|
#9
| |||
| |||
| 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/ > > > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.