Advertisement

05.20.2008 at 05:50AM PDT, ID: 23416885
[x]
Attachment Details

How can I add an <object> tag to an XHTML Strict document whilst preserving validation

Asked by save9 in Extensible HTML (XHTML), Miscellaneous Web Development, Hypertext Markup Language (HTML)

Tags: XHTML 1.0 STRICT, PHP, JAVASCRIPT, Firefox 2.0, IE6/7, http://sponsor.50000steps.co.uk/

On the page http://sponsor.50000steps.co.uk/, there's a Flash applet embedded in the document using an <object> tag. however, the Object tag uses some attributes which are not part of XHTML 1.0 Strict (but which are still needed by the Flash).

How can I embed the Flash applet, preserve the attributes (or the data within them) and be able to validate the document?

In case it helps, I'm running PHP on the same server.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
<div class="section_two_item" id="post-one">
	<h3>Donate now and help me raise funds for the Alzheimers' Society!</h3>
	<p>Donation is quick, easy and secure by going to my fundraising page at: 
	<a href="http://www.justgiving.com/50000steps" title="Make a donation securely at JustGiving.com">www.justgiving.com/50000steps</a>.</p>
	<object type="application/x-shockwave-flash" 
		allowScriptAccess="always" 
		allowNetworking="all" 
		height="230" 
		width="150" 
		align="middle" 
		data="http://www.justgiving.com/widgets/jgwidget.swf" 
		flashvars="EggId=1095882&IsMS=0">
	<param name="movie" value="http://www.justgiving.com/widgets/jgwidget.swf" />
	<param name="allowScriptAccess" value="always" />
	<param name="allowNetworking" value="all" />
	<param name="quality" value="high" />
	<param name="wmode" value="transparent" />
	<param name="flashvars" value="EggId=1095882&IsMS=0" />
	<param name="bgcolor" value="#ffffff" />
	</object>
</div>
[+][-]05.20.2008 at 05:51AM PDT, ID: 21605621

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible HTML (XHTML), Miscellaneous Web Development, Hypertext Markup Language (HTML)
Tags: XHTML 1.0 STRICT, PHP, JAVASCRIPT, Firefox 2.0, IE6/7, http://sponsor.50000steps.co.uk/
Sign Up Now!
Solution Provided By: Roonaan
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628