By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,948 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,948 IT Pros & Developers. It's quick & easy.

Netscape doesn't understand "user's attributes", am I right!?

P: n/a
**** Post for FREE via your newsreader at post.usenet.com ****

When I try to use a created attribute for the tag "input", it works fine
with IE 6, but it seems not to be recognized by Netscape 7.1... Are my
thoughts right??

That's what I mean:
I did that in a html code:
<input type="text" name="inputname" required="true">
(Note: I created the attribute "required")

So, through javascript, (in IE6) I can access it like this...
if (document.forms[0].inputname.requerido == "true")
{ doSomething()
}
(it works just the way I expected)

got it??

With Netscape 7.1, this code doesn't work... Is that a way Netscape deals
with unkown attributes?

That's all...
"Valeu a atenção!" :)
Netto


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Netto" <rc*****@yahoo.com> schrieb im Newsbeitrag
news:3f********@post.usenet.com...
**** Post for FREE via your newsreader at post.usenet.com ****

When I try to use a created attribute for the tag "input", it works fine
with IE 6, but it seems not to be recognized by Netscape 7.1... Are my
thoughts right??

That's what I mean:
I did that in a html code:
<input type="text" name="inputname" required="true">
(Note: I created the attribute "required")

So, through javascript, (in IE6) I can access it like this...
if (document.forms[0].inputname.requerido == "true")
{ doSomething()
}
(it works just the way I expected)

got it??

With Netscape 7.1, this code doesn't work... Is that a way Netscape deals
with unkown attributes?
I can't answer this question but I have 2 hints for you:
[...]
<input type="text" name="inputname" required="true">
[...]
if (document.forms[0].inputname.requerido == "true")
[...]

IE6 seems to be really multilanguage?? ;-)

This one is more serious:

var requiredfields = new Array("inputname1", "inputname2", "inputname3");
for(var i=0; i<requiredfields.length; i++)
{ doSomething()
}

HTH
Markus
Jul 20 '05 #2

P: n/a


Netto wrote:
**** Post for FREE via your newsreader at post.usenet.com ****

When I try to use a created attribute for the tag "input", it works fine
with IE 6, but it seems not to be recognized by Netscape 7.1... Are my
thoughts right??

That's what I mean:
I did that in a html code:
<input type="text" name="inputname" required="true">
(Note: I created the attribute "required")


use
inputObject.getAttribute('required')
that works with Netscape 6/7 and with IE

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.