SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
-
May 16, 2004, 11:48 #1
- Join Date
- May 2004
- Location
- Atlanta
- Posts
- 1
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
XHTML Strict Javascript and Form ID
I am trying to right form with XHTML strict.
Can anyone suggest how to change javascript names to ids.
I have following script:
Code:function changeImageInfo(imageURL,title) { document.big_image.src = imageURL; document.image_form.image_title.value = title; }
Would it be right if I will change it to:
Code:function changeImageInfo(imageURL,title) { document.getElementById('big_image').src = imageURL; document.getElementById('image_form'); document.getElementById('image_title').value = title; }
-
May 23, 2004, 01:00 #2
- Join Date
- Aug 2003
- Location
- san francisco, ca
- Posts
- 198
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
are you trying to get the script to work? or are you trying to get the xhtml to validate
Web Slave
-
Jun 1, 2004, 06:47 #3
- Join Date
- Jan 2004
- Location
- Florida
- Posts
- 20
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by colinr
How do I fix this?
-
Jun 1, 2004, 07:22 #4
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
but since "language" is not an xhtml attribute I'm stuck.
Code:<script type="text/javascript"></script>
-
Jun 1, 2004, 18:26 #5
- Join Date
- Jan 2004
- Location
- Florida
- Posts
- 20
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Paul O'B
YES! thank you, thank you, thank you!
Bookmarks