|
|
|
| I have a form name and it wont validate I get the error there is no
attribute "name"
but my jscript requires a form name see code
document.comments_form.email.value = getCookie("mtcmtmail");
is there away to get around this?
Many Thanks
| |
|
| Russ wrote:
> I have a form name and it wont validate I get the error there is no
> attribute "name"
> but my jscript requires a form name see code
> document.comments_form.email.value = getCookie("mtcmtmail");
>
> is there away to get around this?
>
> Many Thanks
>
>
>
Hi
Can you supply the url to your form so we can see what the validator says?
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
|
| here is the url
http://www.wittmannwebweaving.com/test/test.html
"jojo" <jojo@zoot3.com> wrote in message
news:c2jto2$3q5$3@forums.macromedia.com...
> Russ wrote:
>
>
> Hi
>
> Can you supply the url to your form so we can see what the validator says?
>
> --
> Cheers jojo
> Team Macromedia Member Volunteer for Dreamweaver MX
> ----------------------------------------------------
> Extending Knowledge, Daily.
> http://www.communityMX.com/
> ----------------------------------------------------
| |
|
| Russ wrote:
> here is the url
> http://www.wittmannwebweaving.com/test/test.html
Hi
It is because of your doc type, you are using xhtml strict and the name
element does not exist in that specification.
The name attribute is an html attribute *that can be used in
transitional xhtml for backward compliance*. For strict xhtml you should
use only the id attribute, name will validate in transitional xhtml and
html only.
HTH
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
|
| BTW, this is the name attribute as a whole, not just in forms.
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
|
| I would like to use strict, is there a fix for the javascript?
document.comments_form.email.value = getCookie("mtcmtmail");
where .comments_form is the name of the form?
"jojo" <jojo@zoot3.com> wrote in message
news:c2jv78$5p6$2@forums.macromedia.com...
> BTW, this is the name attribute as a whole, not just in forms.
>
> --
> Cheers jojo
> Team Macromedia Member Volunteer for Dreamweaver MX
> ----------------------------------------------------
> Extending Knowledge, Daily.
> http://www.communityMX.com/
> ----------------------------------------------------
| |
|
| Hi
When you use strict you are using XML rather than html and you need to
take entities and such like into consideration. You should be looking at
using CDATA blocks, javascript contains characters that cannot exist
outside CDATA blocks in xml.
Xml is a different ball game altogether than html.
You could check out this URL it should help
http://devedge.netscape.com/viewsou...l-style-script/
--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
----------------------------------------------------
| |
| Juan Zamudio 2004-03-09, 6:28 am |
| Russ wrote:
> I would like to use strict, is there a fix for the javascript?
> document.comments_form.email.value = getCookie("mtcmtmail");
>
> where .comments_form is the name of the form?
>
> "jojo" <jojo@zoot3.com> wrote in message
> news:c2jv78$5p6$2@forums.macromedia.com...
>
>
>
>
Besides jojo's excelent link, you can use
document.getElemetById("elementid").value=getCookie("mtcmtmail");
Juan Zamudio
| |
|
| million thanks both of you...jaun it worked like A charm
"Juan Zamudio" <jmzl@hola.com> wrote in message
news:c2k66l$gjl$1@forums.macromedia.com...
> Russ wrote:
> Besides jojo's excelent link, you can use
> document.getElemetById("elementid").value=getCookie("mtcmtmail");
>
> Juan Zamudio
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |