You need to Register for free and Login to post a message in the forum.

Forum

IMG ‘closing tag’ being omitted
Last Post 2010-04-27 08:55 AM by sped. 12 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2009-12-18 12:09 AM  

I have a problem with an IMG ‘closing tag’ being omitted from code for a Container.

 

I've added the following line of code in the Container - links.ascx :

< h3 >< img alt="Links" border="0" src="<% =SkinPath %>images/links.gif" />< /h3 >

 

 

The problem is the IMG closing tag is being omitted when it is rendered within the browser, therefore it is not validating with w3

It is being rendered as follows:

< h3 >< img alt="Links" border="0" src="<% =SkinPath %>images/links.gif" >< /h3 >

 

 

Is there any way to prevent the IMG closing tag from being omitted so it is correct HTML markup and also validates correctly?

 

Thanks



Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2009-12-18 10:43 AM  
I have not come across that problem before - Could you attach your container?

It sounds as though there maybe a mistake in the html somewhere.

The best way to check is to use Visual Web Developer Express, with the container file open in VWD go to the View menu / Error List - check to see if it gives you any errors


Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2009-12-19 05:09 AM  
Hi Lee,

I’ve attached the container file for your viewing.

 

Thanks


1121894944471.zip

spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2010-02-01 01:01 AM  

Any idea why the IMG closing tag is being omitted when rendered?

Thanks



Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9005
Avatar

--
2010-02-02 01:27 AM  
Is this any img tag, or one specifically?



Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2010-02-02 03:12 AM  

It only occurs with the image tag in the Container (as attached in the earlier reply).

Thanks



spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2010-02-23 01:11 AM  

Any ideas on how to resolve this issue?

Thanks

 



spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2010-03-23 01:29 AM  
would anyone be so kind to help solve this issue?

thanks


WinXnetUser is Offline
Nuke Master
Nuke Master
Posts:130
Avatar

--
2010-03-24 01:41 PM  
try changing editor area to Basic Text Box and selecting raw (I have had good luck with this).

Experiment with the different render modes if this does not work.

GeishaMX ^_^


http://www.winxnet.com Emerson Bruce - http://chayadigital.wordpress.com
spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2010-03-26 01:59 AM  
thanks for your reply WinXnet, but this issue is related to the code within a Container; not adding images in the FCKeditor.


Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2010-04-12 04:40 PM  
looking at the code in your attachment, I'm not sure why this is happening. I have not come across an image tag losing its closing tag.

Do you have a link to a live website where we can view an example of this in action?

Have you tried
< img alt="Relevant Links" border="0" src="< % =SkinPath %>images/relevantlinks.gif " >< / img >


so you place an actual closing img tag rather than / >

I have never had to do that before, but it could be worth a try, thanks,


Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
kaushalUser is Offline
Posts:40
Avatar

--
2010-04-15 01:47 PM  
just try once to render container without writing the SkinPath to make sure - that is not creating any problem. Your might get some work-a-round then:

Relevant Links


Mocrosoft MVP [.NET/ASP.NET]
spedUser is Offline
Nuke Active Member
Nuke Active Member
Posts:29

--
2010-04-27 08:55 AM  
For some unknown reason the issue has corrected itself even though no changes were made – it’s now validating correctly.
I will advise if it resurfaces.

Thank you to everyone that had a look at this for me.


You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds