Skip to main content
Inspiring
July 9, 2018
Answered

Set Text of Container making Dreamweaver crash

  • July 9, 2018
  • 2 replies
  • 713 views

So I'm working on this page where I have three separate divs. In Div 1 is a list of names. Div two is supposed to contain the contact information and div 3 has an image. I have it set that when you click on one of the items in DIV 1 the image in DIV  changes thanks to the swap behavior. Now, I've done it before where I can swap content using "Set Text of Container" and that's what I'm trying to do in DIV2. So when you click on a list item in DIV 1 the image changes DIV 3 and the text changes in DIV 2 .

My problem is that whenever I try to add the "Set Text..." behavior Dreamweaver crashes. I have refreshed, rebooted and so on, still it crashes. Does anyone know of a different way I can swap the text in DIV 2 onClick? It's a lot of text with different styling so I can't use something as simple as this: Tryit Editor v3.5 . Unless there's a way to use that and also style the various headers and links that need to be displayed. 

This topic has been closed for replies.
Correct answer KathleenODell

I used a modified version of this: Edit fiddle - JSFiddle and was able to get it to work. It's not exactly what I wanted, but it will work for now.

2 replies

KathleenODellAuthorCorrect answer
Inspiring
July 9, 2018

I used a modified version of this: Edit fiddle - JSFiddle and was able to get it to work. It's not exactly what I wanted, but it will work for now.

Jon Fritz
Community Expert
Community Expert
July 9, 2018

There are many ways to do what you want (there should be 4-5 people along shortly to give you 8-10 ways to do it), but I suspect DW is just choking on code errors, and changing the method may not change the results for you.

Have you validated your code to make sure you aren't doing something silly, like using the same IDs in multiple containers on the same page?

Run the validation tool under File > Validate > Current Document (W3C) or go to http://validator.w3.org/nu to get a listing of any issues you might have in your crashing page.

DW requires your code to be clean and valid. Cleaning up code missteps might just clear up the issue for you.

Inspiring
July 9, 2018

I have validated the code. That's not the issue. And literally, it happens right when I click on the behavior. As in, it hasn't even been added. I go to behaviors, scroll to the one I want, click it and the program crashes. I can add other versions of the "set text" such as status bar and text field. It's only when I try to click on the "of container" that it crashes. I'm going to check it on another computer to see if that's the issue.

Jon Fritz
Community Expert
Community Expert
July 9, 2018