Link to home
Start Free TrialLog in
Avatar of Rowby Goren
Rowby GorenFlag for United States of America

asked on

Dreamweaver won't let me paste head scripts from one page to another

I  never noticed this issue until  receintly in Dreamweaver MX 2004

I have a javascript menu system on a test page that I need to transfer to another html page.

WHile it lets me COPY the section -- it will not let me paste it into another header section.

I can copy the material into another non-dreamweave document (such as Word or notepad), but it will not let me copy it into another dreamweaver html header.

As a test I left out the opening and closing javascript statements -- and dreamwever did indeed let me copy it to the other document's header.  

I assume there is a setting that I must change in preferences?   Or what else?

Here is an example  of the code that would not copy and paste:

 <script language="JavaScript">
<!--
Foobar
}
//-->
</script>

I know I have been able to copy and paste before -- but not anymore!

Thanks

Rowby
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

try open your page in HTML mode, then do a copy there.... then try paste it to your target page? (also try to paste it to notepad for testing...)

I think this should works!
Avatar of webwoman
webwoman

Is it a template? You most likely will NOT be able to do things like that in a new page based on a template.
Avatar of Rowby Goren

ASKER

Hi

No it's not a template.  And I think I have tried a version of ryancy's suggestion.  But I'll try again.

I"m thinking it *might* be an anti-virus program not javascript -- because when I leave out the begninning and ending of the script (the p <script language="JavaScript"> portions, I am able to make the copy.  

But I'll do some more testing.   On another computer at a client today.

Stay tuned!

Rowby
Hi,

Ok, this is the 3rd time I see someone having this problem and my solution is this:

The solution that is basically to clear the configurations for dreamweaver.

C:\Documents and Settings\<Your account name>\Application Data\Macromedia\Dreamweaver MX 2004\Configuration

To acertain if this is the case, you can simply test it by moving the configuration folder to somewhere else. If it still doesnt work, simply put it back.

When your config folder is not there, Dreamweaver will auto-recreate it again, thus fixing any error that occured earlier.

Now my dreamweaver works fine again without having to reinstall it.

I could have looked through what is the problematic file, but i guessed it was easier to simply replace the configuration folder completely. Nothing much in there if u are only using basic dreamweaver functions. Just that you have to recreate the site cache once for all the sites again(quite fast).

Your sites' settings should not be affected. (ie Site name, FTP settings etc)

Cheers!

My earlier fix:
https://www.experts-exchange.com/questions/21272503/Dreamweaver-MX-2004-crashing-on-Search-Replace.html
HI

Unfortunatley it didn't work :(  

But your suggestion is excellent and I will keep it in mind when something similar (or the same) happens again in Dreamweaver.  I am going to test the issue on the same file with a different copy of dreamweaver on Monday to see if my problem is Dreamweaver related, or if it has something to do with my local computer (I suspect perhaps overly aggressive anti-virus software.)

Your suggestion is appreciated and will be filed away!

Rowby
ASKER CERTIFIED SOLUTION
Avatar of Havin_it
Havin_it

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hey, thanks for the A! What worked for you in the end?
The external script.  Especially since the script needs to be on multiple pages.
By the way, sky99yahoo -- thanks for your suggestion too.