SitePoint Sponsor |
|
User Tag List
Results 1 to 8 of 8
Thread: IE working, FF not.
-
Sep 26, 2007, 20:46 #1
- Join Date
- Jun 2002
- Location
- Buenos Aires, Argentina
- Posts
- 361
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
IE working, FF not.
IE working:
Code:document.getElementById('status/one').value='B';
My SOHO: http://www.contactopuro.com.ar
-
Sep 26, 2007, 21:23 #2
Mind posting more code.
-
Sep 27, 2007, 09:04 #3
- Join Date
- Nov 2004
- Location
- Nelson BC
- Posts
- 2,310
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Definition of ID attribute:
String that specifies or receives any alphanumeric string that begins with a letter. The underscore (_) can also be used.
So - no slashes /
-
Sep 27, 2007, 12:18 #4
Originally Posted by jimfraser
Your wrong.
-
Sep 27, 2007, 12:53 #5
- Join Date
- Nov 2004
- Location
- Nelson BC
- Posts
- 2,310
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Care to expand on that?
I got my info from:
http://msdn2.microsoft.com/en-us/library/ms533880.aspx
Also, w3c validator has this to say:
Code:Line 3, Column 13: character "/" is not allowed in the value of attribute "ID". <a id="status/one">test</a>
-
Sep 27, 2007, 13:13 #6Care to expand on that?
. That’s not his problem, it works in all major browsers. He needs to post more code so we can see what's causing his script not to work.
-
Oct 9, 2007, 08:36 #7
- Join Date
- Jun 2002
- Location
- Buenos Aires, Argentina
- Posts
- 361
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:<input name="status/editar/cantidades_de_ejemplo/9" type="text" value="S"> <img src="iconos/ico_borrar.gif" alt="Borrar" width="16" height="16" border="0" onClick="document.getElementById('status/editar/cantidades_de_ejemplo/9').value='B';">
Thanks!My SOHO: http://www.contactopuro.com.ar
-
Oct 9, 2007, 08:51 #8
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Code:Error: document.getElementById("status/editar/cantidades_de_ejemplo/9") has no properties Source File: http://www.reev.halconweb.com.ar/prueba_cantidades.php Line: 1
And the reason? You have defined a NAME for that element but not an ID.
Bookmarks