PDA

View Full Version : Dreamweaver problem - auto convert uppercase



gaydemon
07-23-2008, 01:51 AM
Having a hard time with Dreamweaver with one small thing.

It keeps converting a Java Script line from all lower case to first letter uppercase.

It should be:

onsubmit="return SearchSections()

But it keeps changing it to:

onSubmit="return SearchSections()

Which of course breaks xhtml standards and wont validate.

Any ideas why it keeps doing it?

(some more details: This is using dreamweaver templates, the main template is correct and shows only lowercase. but at some point the pages using that template automatically converts to uppercase for "onSubmit". The main template never changes, only the pages that use it. To fix it, i have to remove the code, save the template. then enter the code again and save again. This then works for a while but keeps coming back. probably when i update something else on the template.)

gaydemon_jr
07-23-2008, 04:14 AM
Bjorn, I always thought you should put java script into a seperate file and link to it with xhtml.

So if you put all that script into a .js file and do <link src="file.js... you will be able to get the document to validate.

I think for java script standards the caps are how it should be you see.

Nicedreams
07-23-2008, 09:03 AM
This took me forever to figure out too, hated having to change them all the time.

This is with Dreamweaver 8

Edit menu... Tag Libraries.. There are all the tags, find the ones you want to change. Like the one you are looking for is most likely under HTML tags, then form. Select the tag and hit lowercase for the Attribute case box.

Jimmy

gaydemon
07-23-2008, 10:39 AM
THANK YOU THANK YOU!

Yes thats it. I had no idea. I use CS3, but its still the same options.

Thats insane, it means Dreamweaver by default produces invalid HTML.


This took me forever to figure out too, hated having to change them all the time.

This is with Dreamweaver 8

Edit menu... Tag Libraries.. There are all the tags, find the ones you want to change. Like the one you are looking for is most likely under HTML tags, then form. Select the tag and hit lowercase for the Attribute case box.

Jimmy

gaydemon
07-23-2008, 10:40 AM
Yes, the full java script is in a external file, but its the form field which calls that external java function. "onsubmit" is a form element, otherwise yes it would have made sense to do that.



Bjorn, I always thought you should put java script into a seperate file and link to it with xhtml.

So if you put all that script into a .js file and do <link src="file.js... you will be able to get the document to validate.

I think for java script standards the caps are how it should be you see.