Go to Post You will "generously donate" your game pieces into your opponent's goal. - johnr [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2006, 22:10
musicgal musicgal is offline
Registered User
AKA: Ashley
FRC #1730 (Team Driven)
Team Role: Webmaster
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lee's Summit, Missouri
Posts: 18
musicgal has a spectacular aura aboutmusicgal has a spectacular aura about
Send a message via AIM to musicgal
html issue

I'm the head of the website division of my team's website, which has been pretty cool, since we're a rookie team and starting from scratch. We've been working primarily in dreamweaver, and then I go back and edit the code as needed. I've been trying to validate my page, because I think that's pretty important. I've gotten all the errors cleaned up except one. It comes up saying that there is no attribute "onclick." I have multiple lines of code that all are similar to this....

<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif" onclick="MM_popupMsg('MESSAGE HERE')">24</font>

Basically it's a calendar that when you click on the date it displays the message. Anyway, for some reason dreamweaver stuck the "onclick" inside the font tag, which I know is the problem. But I'm not sure where to put the "onclick" tag. And is the problem due to the fact that the onclick is on text, instead of a link or anchor?

I hope that made sense. If anyone has any advice, I'd greatly appreciate it.
  #2   Spotlight this post!  
Unread 25-01-2006, 22:16
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: html issue

The reason "onclick" is not validating is because it is a Javascript element, and not really part of the web standards. Technically, you should be using Javascript to add the event handler to that node, instead of including it in the HTML. However, this is super-complicated and not really necessary.

If you <i>really</i> are worried about web standards, you wouldn't be using a <FONT> tag in the first place. Putting styling information in HTML is so 1999 . I know you're using Dreamweaver, but CSS (Cascading Style Sheets) are really the wave of the Internet-future. Give the w3 site a bit of a read; it's pretty interesting.

I wouldn't worry too much about validating. Technically, your code isn't "broken" in any way. It's just not as perfect as it could be.
  #3   Spotlight this post!  
Unread 25-01-2006, 22:27
musicgal musicgal is offline
Registered User
AKA: Ashley
FRC #1730 (Team Driven)
Team Role: Webmaster
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lee's Summit, Missouri
Posts: 18
musicgal has a spectacular aura aboutmusicgal has a spectacular aura about
Send a message via AIM to musicgal
Re: html issue

Hm, thanks, that is a good point. I know we probably should go to CSS, but....I am just really really attached to dreamweaver.
  #4   Spotlight this post!  
Unread 25-01-2006, 22:41
Rohan_DHS Rohan_DHS is offline
Registered User
AKA: Kayla's big bro...
FRC #1620 (Robolution)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Pickering, Ontario, Canada
Posts: 408
Rohan_DHS is a glorious beacon of lightRohan_DHS is a glorious beacon of lightRohan_DHS is a glorious beacon of lightRohan_DHS is a glorious beacon of lightRohan_DHS is a glorious beacon of light
Send a message via MSN to Rohan_DHS
Re: html issue

well you can do CSS in Dreamweaver too..and I believe that Macromedia has put more features or something in Dreamweaver 8 with regards to CSS
__________________
Rohan K
2008: Alumni, Helper
2007: Webmaster, Alumni
2006: Team Captain, Driver, Electrical/Electronics Head
2005: Safety Captain
  #5   Spotlight this post!  
Unread 25-01-2006, 23:02
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,572
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: html issue

I do like how web standards are going (putting more emphasis on CSS).

For the reasons that I can think of right now:
1. You can see the source and see the text you want without styling getting in the way.
2. On screen readers will not be confused.
3. CSS is fairly safe between browsers
4. You can allow users to choose between different styling sheets.
  #6   Spotlight this post!  
Unread 26-01-2006, 00:19
swiatek's Avatar
swiatek swiatek is offline
Site Designer/webmaster
AKA: BRiAN
FRC #1552 (Cougarbot)
Team Role: Webmaster
 
Join Date: Oct 2005
Location: Niwot
Posts: 14
swiatek has a little shameless behaviour in the past
Send a message via AIM to swiatek
Re: html issue

First things first; the <font> tag has depreciated a few years ago--replaced with the likes of <div> and <span>.

you can change the code in Dreamweaver. If Dreamweaver 'sticks' your onclick message inside or wherever you don't want it to be, simple copy n paste.

The dependancy on Dreamweaver is incredible. What You See Is What You Get editors should really die off and start to fade away because all they promote are bad coding standards. It's considered horrible code to be using tables for your layout structure as well as <font> for all text issues. Sure you can use a WYSIWYG editor that implements CSS for you--blam. But you still have no idea of what you're doing. If you want to do web design / coding right, get a book. You need to learn the languages as well as become acquainted with coding techniques used for layouts.

Granted, IE does not support CSS as well as FF, but that's poor development of the IE browser on Microsoft's part. Keep in mind while coding for browser compatability, do not scale back to depreciated tags or informal code just to appease one browser's likings-- build your site the way it should be coded and hack away untill you can make the best out of it.
__________________
team 1552
  #7   Spotlight this post!  
Unread 26-01-2006, 17:17
DarkJedi613's Avatar
DarkJedi613 DarkJedi613 is offline
Running Riot
AKA: Patrick Cloke
FRC #0358 (Hauppauge Robotic Eagles) FRC #1493 (RPI/Albany High School)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2003
Location: Hauppauge, N.Y.
Posts: 455
DarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to behold
Send a message via AIM to DarkJedi613 Send a message via MSN to DarkJedi613 Send a message via Yahoo to DarkJedi613
Re: html issue

I don't think tables are depreciated (in other words its not "bad" to use them - keep in mind that they render differently in different browsers though).

Remember though that not everyone has the time to learn how to code and must depend on Dreamweaver/Frontpage/etc. Afterall if it works, does it really matter if it was made by hand or in a WYSIWYG editor?
__________________
2003 - 2006 President, Coach, Webmaster Team358.org
2008 Mentor, Team 1493

Team Search | (Updated: 1-16-08)

FIRSTsearch
  #8   Spotlight this post!  
Unread 27-01-2006, 18:56
Dan Zollman's Avatar
Dan Zollman Dan Zollman is offline
7
FRC #1712 (Dawgma)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2005
Location: Ardmore, PA
Posts: 392
Dan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond repute
Re: html issue

It still wouldn't make sense to replace certain elements with divs or spans if you're not writing the code fully with CSS, or to change that one tag to be XHTML Strict valid when you're writing the rest of the site with HTML 4.0 Transitional. Consistency is more important.

And it's not necessarily "not as perfect as it could be". It's true it's not valid, but you should have a reason for wanting it to be valid. Otherwise, it's perfect if it's what you need it to be.

I would say that if the onclick attribute is what you really want, keep it. In general, I do agree that less attributes and more CSS is better--just don't use it if you have a strong preference for older HTML.
__________________
Product design student at Rensselaer
Web designer/consultant
FIRST alum, Dawgma 1712

dan.zollman - at - gmail.com
  #9   Spotlight this post!  
Unread 27-01-2006, 23:15
swiatek's Avatar
swiatek swiatek is offline
Site Designer/webmaster
AKA: BRiAN
FRC #1552 (Cougarbot)
Team Role: Webmaster
 
Join Date: Oct 2005
Location: Niwot
Posts: 14
swiatek has a little shameless behaviour in the past
Send a message via AIM to swiatek
Re: html issue

Quote:
I don't think tables are depreciated (in other words its not "bad" to use them - keep in mind that they render differently in different browsers though).
No, of course not. Tables probibly wont ever depreciate unless they're replaced by a better coding technique (essentially, reinventing tables ). I'm just stating that using tables for your whole site's framework/backbone is considered poor coding practice these days.

Quote:
It still wouldn't make sense to replace certain elements with divs or spans if you're not writing the code fully with CSS, or to change that one tag to be XHTML Strict valid when you're writing the rest of the site with HTML 4.0 Transitional. Consistency is more important.
True Which is why the push for converting over to full XHTML & CSS code is becoming greater and greater. Can't really avoid standards.
__________________
team 1552
  #10   Spotlight this post!  
Unread 28-01-2006, 16:07
Dan Zollman's Avatar
Dan Zollman Dan Zollman is offline
7
FRC #1712 (Dawgma)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2005
Location: Ardmore, PA
Posts: 392
Dan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond repute
Re: html issue

Quote:
Originally Posted by swiatek
No, of course not. Tables probibly wont ever depreciate unless they're replaced by a better coding technique (essentially, reinventing tables ). I'm just stating that using tables for your whole site's framework/backbone is considered poor coding practice these days.
A big idea behind XHTML is semantic coding: Tables should be used for information that takes the form of a table, such as a list of products, descriptions, and prices. Unfortunately, it's still tricky to make complex, 3-column web pages using CSS that look right on all browsers.
__________________
Product design student at Rensselaer
Web designer/consultant
FIRST alum, Dawgma 1712

dan.zollman - at - gmail.com
  #11   Spotlight this post!  
Unread 02-02-2006, 19:15
musicgal musicgal is offline
Registered User
AKA: Ashley
FRC #1730 (Team Driven)
Team Role: Webmaster
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lee's Summit, Missouri
Posts: 18
musicgal has a spectacular aura aboutmusicgal has a spectacular aura about
Send a message via AIM to musicgal
Re: html issue

Thanks for the advice to add in the css. I added the style sheet, spent 2 hours deleting font tags haha, and now every works great, validates, and kinda looks better too...

I agree css is a pretty good way to go at times, but somethings are just accomplished better with tables. To each their own?
  #12   Spotlight this post!  
Unread 02-02-2006, 20:19
DarkJedi613's Avatar
DarkJedi613 DarkJedi613 is offline
Running Riot
AKA: Patrick Cloke
FRC #0358 (Hauppauge Robotic Eagles) FRC #1493 (RPI/Albany High School)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2003
Location: Hauppauge, N.Y.
Posts: 455
DarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to behold
Send a message via AIM to DarkJedi613 Send a message via MSN to DarkJedi613 Send a message via Yahoo to DarkJedi613
Re: html issue

Quote:
Originally Posted by swiatek
Tables probibly wont ever depreciate unless they're replaced by a better coding technique (essentially, reinventing tables ).
:cough: CSS 3 :/cough:
__________________
2003 - 2006 President, Coach, Webmaster Team358.org
2008 Mentor, Team 1493

Team Search | (Updated: 1-16-08)

FIRSTsearch
  #13   Spotlight this post!  
Unread 02-02-2006, 22:32
swiatek's Avatar
swiatek swiatek is offline
Site Designer/webmaster
AKA: BRiAN
FRC #1552 (Cougarbot)
Team Role: Webmaster
 
Join Date: Oct 2005
Location: Niwot
Posts: 14
swiatek has a little shameless behaviour in the past
Send a message via AIM to swiatek
Re: html issue

Quote:
Thanks for the advice to add in the css. I added the style sheet, spent 2 hours deleting font tags haha, and now every works great, validates, and kinda looks better too...

I agree css is a pretty good way to go at times, but somethings are just accomplished better with tables. To each their own?
Well that's good! Glad you got some CSS in there. Whatever floats your boat.

Quote:
:cough: CSS 3 :/cough:
:cough:^ignorant^:cough:

I still stand by my statment. Re-read? Tables for data use wont ever depreciate unless they're replaced by a better coding technique which wouldn't be a form of CSS. Using tables for data, coded in CSS, is too inefficient.

Table use for layouts has been a thing of the past (refering to the standards here) and have had CSS layout alternatives since the first CSS rev.
__________________
team 1552
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heroes of Engineering Comic: Dean is the December Issue Vince Dean Kamen's Inventions 5 01-12-2005 12:00
**FIRST EMAIL**/FIRST Newsletter, 2005 Issue #1 Rich Wong FIRST E-Mail Blast Archive 1 23-02-2005 18:34
html Tutorial AIBob Website Design/Showcase 9 30-01-2005 17:30
openFIRST Looking for someone with basic HTML skills Timothy D. Ginn FIRST-related Organizations 2 29-12-2004 22:23
Any good HTML editors available? PMGRACER Website Design/Showcase 23 07-06-2003 21:02


All times are GMT -5. The time now is 16:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi