Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copied Behaviors and Interactions don't work until edited?

Status
Not open for further replies.

mjrh

Instructor
Jun 2, 2001
34
CA
Hello,

I created pages for a web course with Course Builder interactions in DW4. They worked fine. Then the client changed their mind on the layout [haven't we all been there?]. Fortunately, I used tables to contain the text, images and interactions so I went page by page copying the table from the old pages to the new. But when I tested the new pages, the interactions did not work? In MS Explorer 6, the page would display but an error message appears at the bottom of the screen which says "Error
on Page." I noticed that if I open the page in DW4, click on the edit button for the CB interactions, change nothing, exited, then the interactions works. Also, on most pages I have a DW Behavior as a button which launches a Popup Message. It too is ‘re-activated' and works after I open and close its edit functions.

My conclusion is that DW needs to ‘reactivate' something on each page. If I cannot find a quick fix, I will go page by page and do the open-and-close bit but it would be nice to how to avoid this situation next time.

Your experience and help would be much appreciated.

Cheers,

Michel
 
Hello Michel!

First of all, I would suggest you to use Templates next time you design site. Templates help you to make changes very easily and fast. Read help on Templates to find out more.

Second, if you have sign &quot;Error on Page&quot; that means that you probably have JavaScript error. Most JS have two things - first one is the script itself and the other one is the event that calls the script to proceed. First part DW usually puts at the top of the page between the HEAD tags. And the second one puts in the places from which it should be called. For example, if press button to do something DW puts onClick=&quot;ScriptName(params)&quot; in the button tag. <input type=&quot;submit&quot; onClick=&quot;NewWin()&quot;>

Now let's see what you've done. You copied new tables to replace old ones. Have you copied both parts of your script? It seems that no. Open any page that doesn't work properly now and check if
1) you have main script part between HEAD tags and
2) that the button have the event caller - should be something like onClick=&quot;BlaBlaBla()&quot;

If doesn't help post the URL so we can see what's wrong.

Good Luck!
 
Thank you Eugene,

Your advise helped me diagnose the problem. Things now work OK.

Cheers,

Michel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top