473,385 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

**** 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
2 1664
"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


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Victor | last post by:
Hi, I have some sample XML and an XSD below I have written. The XSD almost does what I want. What I need is some way of enforcing that AT LEAST TWO of the attributes "TestAttribute" are "X". ...
4
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
1
by: fl | last post by:
I am running ASPNET on my local machine. I have a problem when I try to connect to a SQL server database table. The data looks good when I right click SqlDataAdapter1 to preview the data. When F5...
4
by: Dotcom | last post by:
I have an ASP.NET application that is mysteriously acquiring height and width attributes on a particular IMG element on multiple pages. This is not being caused by someone editing or uploading new...
2
by: Daren Hawes | last post by:
Hi I need to add an attribute to a Textbox to make it read only. To add a CSS I use DeptDate.Attributes("Class") = "textInput" That adds 'Class="textinput"', but the readonly is like..
5
by: mabond | last post by:
Hi all This question is one of "theory" rather than a search for the specifics of a solution. I need some pointers as to how to proceed with my project. Here goes. My application allows the...
2
by: prabhupr | last post by:
Hi Folks I was reading this article (http://www.dotnetbips.com/articles/displayarticle.aspx?id=32) on "Custom Attribute", written by Bipin. The only thing I did not understand in this article...
12
by: Jon Slaughter | last post by:
is there any way to simply add an attribute like feature to a function/method definition? say I create a function like function Test() { //.... }
5
by: WP | last post by:
Hello, I need to communicate with a db2 database from a java program and this java program needs to check which "user tables" there are. I came up with the following query which I tried in Control...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.