Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 Forum
 
  Forum  DotNetNuke Modu...  janet.RandomIma...  XHTML output
Previous Previous
 
Next Next
New Post 10/26/2007 9:15 AM
  koolworld
2 posts


XHTML output 

Hi, i am trying to get the RandomImage module to validate for XHTML, the following is what RandomImage is outputing:

<TABLE cellSpacing="0" cellPadding="0" width=95 height=95" border="0" background="/Portals/0/frontpage-top-left-images/15.jpg" title="Herda SW"><tr><td width="95" height="65"><img src="/desktopmodules/janet.randomimage/spacer.gif" border="0" width="95" height="65"></td></tr><tr><td width=95 height=30 align=center></td></tr></TABLE>

There are a couple issues:
1. The <TABLE and </TABLE> tags needs to be lowercase
2. the height attribute has a closing " but not an opening one
3. The img tag for the spacer doesn't have an alt tag.
4. The CSS link tag is inserted within the body of the page rather than in the head section which XHTML doesn't like.

Are you able to update the module or do you provide a source version so that we can update it?

Thanks, Dan.

 
New Post 10/26/2007 9:48 AM
  neil
109 posts
www.janetsystems.co.uk


Re: XHTML output 

Hello Dan,

I have attended to items 1 to 3, not sure how item 2 slipped in there. I'll test and package this afternoon.

Regarding 4. that's the problem with modules supplying their own CSS. I'll check to see whether the CSS reference needs to be in the default front facing file. If not to clear that one the best way would be to take the reference out of the janet.RandomImage.ascx file, locally and add relevant referenes into your skin.

Neil

 
New Post 10/26/2007 10:33 AM
  koolworld
2 posts


Re: XHTML output 

Hi Neil, thanks for getting back to me so quickly!

I see your point about the Module CSS, i did infact take out the reference from the .ascx file and all seemed to work as normal so that should solve it. There were a couple of other issues with the output and XHTML:

1. cellSpacing and cellPadding attributes shoule all be in lowercase.
2. the width, height and align values should be in quotes.
3. the img tag should close itself using />

I think that's it, hopefully this should make it XHTML compliant which would be very good.

Thanks again for your support.

Dan.

 
New Post 10/26/2007 10:48 AM
  neil
109 posts
www.janetsystems.co.uk


Re: XHTML output 

Hello Dan,

I'll do your extras too.

Neil

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke Modu...  janet.RandomIma...  XHTML output
  

DotNetNuke Website Hosting
Custom DotNetNuke skins
eCommerce
Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Wednesday, August 20, 2008