View Single Post
  #1   Spotlight this post!  
Unread 28-03-2008, 04:31
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Test new TBA feature

Quote:
Originally Posted by fimmel View Post
try changing the last 2 characters to the iframe from:
Code:
/>
to:
Code:
></iframe>
that fixed cutting the rest of the page off on my site

...forest
I don't know why the XML tag shorthand was used, especially considering that iframes have been depreated, and the whole rest of the tag isn't valid XML anyways.

You MUST (rfc 2119) encode attributes with their entitles. This means replace the & with &amp; as shown:
Code:
<iframe src="http://www.thebluealliance.net/tbatv/iframe_playlist.php?frontcolor=ffcc00&amp;backcolor=660000&amp;lightcolor=ffff00&amp;year=2007&amp;team=177" frameborder="0" height="470" width="395" scrolling="no"></iframe>
This holds for both HTML and XML.

Teams use the XHTML format, team 237 for example, with invalid XML. The only reason no XML error parser errors show up is because browsers will not use an XML parser unless application/xhtml+xml is sent in the Content-type header (sending documents as text/html will make browsers use the standards mode SGML parser). Don't get me wrong, XHTML is great, I use an XSL parser to make edits to my teams website, you can't do that with plain old HTML

Iframes are really hackish, it would be much better to create a custom flash player that will grab the team list, instead of coding it in HTML loaded from an iframe, or link to the list of videos otherwise.

Last edited by Nibbles : 28-03-2008 at 04:34.
Reply With Quote