Author |
Topic  |
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 25 October 2002 : 16:37:09
|
'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<a href=""http://forum.snitz.com"" target=""_blank"" tabindex=""-1""><acronym title=""Powered By: " & strVersion & """>"
if strShowImagePoweredBy = "1" then
Response.Write getCurrentIcon("logo_powered_by.gif||","Powered By: " & strVersion,"")
else
Response.Write "Snitz Forums 2000"
end if
Response.Write "</acronym></a></font></td>" & vbNewline '## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
target,tabindex elements and <font></font> tags do not pass the HTML4.01/CSS test at W3C site.
Changing the code as below passes the test. Will it be a violation of the Agreement, if the code is modified as below:
Rem -START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
dim strPoweredBy
if strShowImagePoweredBy = "1" then
strPoweredBy = getCurrentIcon("logo_powered_by.gif||", "Powered By: " & strVersion, "")
else
strPoweredBy = "Snitz Forums 2000"
end if
Response.Write (vbNewLine & _
" <TD ALIGN=""right"">" & vbNewLine & _
" <A HREF=""Javascript:openNewWindow('http://forum.snitz.com')"">" & vbNewLine & _
" <ACRONYM title=""Powered By: " & strVersion & """>" & strPoweredBy & "</ACRONYM>" & vbNewLine & _
" </A>" & vbNewLine & _
" </TD>")
Rem -END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Code for function openNewWindow looks like this
function openNewWindow(url)
{ popupWin = window.open(url, 'new_page') }
|
Edited by - GauravBhabu on 25 October 2002 16:42:00 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 25 October 2002 : 17:06:33
|
Why re-write it in JavaScript then ?? .... shouldn't you just fix the current code ?
But a very interesting topic, since when does target and <font> violate the rules, or are they just noting that the tags/attirb's are deprecated ? |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 25 October 2002 : 18:49:08
|
quote: Originally posted by laser
Why re-write it in JavaScript then ?? .... shouldn't you just fix the current code ?
Can you suggest an alternative.
quote:
But a very interesting topic, since when does target and <font> violate the rules, or are they just noting that the tags/attirb's are deprecated ?
This is the message I get
quote: Below are the results of attempting to parse this document with an SGML parser.
Line 221, column 26: <TD ALIGN="left"><font> ^Error: element "FONT" not defined in this HTML version
--------------------------------------------------------------------------------
Sorry, this document does not validate as HTML 4.01 Strict.
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 25 October 2002 : 19:04:08
|
quote: Originally posted by GauravBhabu
Can you suggest an alternative.
What's wrong with the way it is ? .. except for :
tabindex The tabindex attribute specifies an integer that defines the rank in the tabbing order for the specified element when you use the keyboard to navigate (tab through) a page. This attribute is poorly supported.
The code seems fine the way it is, it works (I only tested in IE6), but the syntax looks fine.
quote:
This is the message I get
[quote]Below are the results of attempting to parse this document with an SGML parser.
Line 221, column 26: <TD ALIGN="left"><font> ^Error: element "FONT" not defined in this HTML version
--------------------------------------------------------------------------------
Sorry, this document does not validate as HTML 4.01 Strict.
Yes, but this isn't the only line that does <td><font> I think the checker chucked a wobbly   |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 25 October 2002 : 19:22:04
|
quote: What's wrong with the way it is ? .. except for : tabindex The tabindex attribute specifies an integer that defines the rank in the tabbing order for the specified element when you use the keyboard to navigate (tab through) a page. This attribute is poorly supported.
I thinking you are missing the point. I never said there is something wrong with the code or it does not work
quote:
The code seems fine the way it is, it works (I only tested in IE6), but the syntax looks fine.
There is not much of a code or syntex to discuss in these statements. So a request, please don't raise that issue.
I am converting the code to CSS and also trying to make it HTML4.01 Strict Compliant. Since I am getting errors when testing. My question is should the attributes or elements used in these be kept as is or they can be changed as long as the requirement of showing the "Powered by Logo/Text" is fulfilled in the similar manner as intended originally.
|
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 25 October 2002 : 19:27:39
|
quote: Originally posted by laser What's wrong with the way it is ? .. except for :
tabindex The tabindex attribute specifies an integer that defines the rank in the tabbing order for the specified element when you use the keyboard to navigate (tab through) a page. This attribute is poorly supported.
The code seems fine the way it is, it works (I only tested in IE6), but the syntax looks fine.
tabindex = number [CN] This attribute specifies the position of the current element in the tabbing order for the current document. This value must be a number between 0 and 32767. User agents should ignore leading zeros.
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 25 October 2002 : 19:46:36
|
Yes, I understand your original statement of :
quote:
target,tabindex elements and <font></font> tags do not pass the HTML4.01/CSS test at W3C site.
I'm simply stating that those are valid syntax. tabindex is the only questionable one here, but I can't see the point of rewriting to a JavaScript call when the code would work fine with the removal of the tabindex attribute. Wouldn't that make it comply ? |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 25 October 2002 : 20:02:06
|
quote:
Below are the results of attempting to parse this document with an SGML parser.
Line 226, column 50: ... t:openNewWindow('http://forum.snitz.com')" target="_blank"> ^Error: there is no attribute "TARGET" for this element (in this HTML version)
--------------------------------------------------------------------------------
Sorry, this document does not validate as HTML 4.01 Strict.
I get the error for target element, but with javascript it validates correctly and link opens in a new window
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 25 October 2002 : 20:08:38
|
But you can't use TARGET with a JavaScript link, you only use TARGET as an attribute of the A tag.
So ...
... t:openNewWindow('http://forum.snitz.com')" target="_blank">
obviously doesn't work, but ...
<a href="blah" target"_blank">
should work fine. Just make sure that blah is a proper http reference and not a JavaScript call. |
 |
|
work mule
Senior Member
   
USA
1358 Posts |
Posted - 25 October 2002 : 21:45:04
|
I think the objective of GauravBhabu's post is that he's modifying the code inbetween the comments and needs some clarification about how to interpret the following comments: REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
He needs to make changes inbetween the comments to become compliant with standards which when reading the comments literally would mean it violates the license. However his point is that he's not trying to eliminate the functionality or purpose of that code, just in how it's written.
|
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 25 October 2002 : 22:47:31
|
http://www.w3schools.com/tags/tag_font.asp
I can't say officially, but I know I would not have any concern about a site that changed the code to conform to strict XHTML. Of course, I've always advocated this whole link thing should be optional anyway :) I'm sure someone who can speak for Snitz will jump in here. |
====== Doug G ====== Computer history and help at www.dougscode.com |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 26 October 2002 : 00:22:37
|
quote: Originally posted by laser
But you can't use TARGET with a JavaScript link, you only use TARGET as an attribute of the A tag. So ...
... t:openNewWindow('http://forum.snitz.com')" target="_blank">
obviously doesn't work, but ...
<a href="blah" target"_blank">
should work fine. Just make sure that blah is a proper http reference and not a JavaScript call.
Use of target does not validate either way. The statement I posted was just to show how the target is handled by W3C Validator
quote: Originally posted by work mule I think the objective of GauravBhabu's post is that he's modifying the code inbetween the comments and needs some clarification about how to interpret the following comments: REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
He needs to make changes inbetween the comments to become compliant with standards which when reading the comments literally would mean it violates the license. However his point is that he's not trying to eliminate the functionality or purpose of that code, just in how it's written.
Exactly
|
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 26 October 2002 : 01:41:04
|
quote: Originally posted by Doug G
http://www.w3schools.com/tags/tag_font.asp
I can't say officially, but I know I would not have any concern about a site that changed the code to conform to strict XHTML. Of course, I've always advocated this whole link thing should be optional anyway :) I'm sure someone who can speak for Snitz will jump in here.
I hope so. |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 27 October 2002 : 06:47:58
|
Waiting for an answer... <bump> |
Edited by - GauravBhabu on 29 October 2002 09:39:38 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 29 October 2002 : 09:59:07
|
I don't see any problem as long as the links display and function as they are supposed to.
|
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 29 October 2002 : 10:11:24
|
Thanks HuwR. This is how have modified the code.
Rem -START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
dim strPoweredBy
if strShowImagePoweredBy = "1" then
strPoweredBy = getCurrentIcon("logos/logo_powered_by.gif||", "Powered By: " & strVersion, "")
else
strPoweredBy = "Snitz Forums 2000"
end if
Response.Write (vbNewLine & _
" <TD ALIGN=""right"">" & vbNewLine & _
" <A HREF=""http://forum.snitz.com"" onclick=""openNewWindow(this.href);return false;"" tabindex=""" & GetTabIndex(lngTabIndex) & """>" & vbNewLine & _
" <ACRONYM title=""Powered By: " & strVersion & """>" & strPoweredBy & "</ACRONYM>" & vbNewLine & _
" </A>" & vbNewLine & _
" </TD>")
Rem -END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT |
 |
|
Topic  |
|