![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Doctype problem
Hi,
I am developing webpages by creating templates through dreamweaver. I use asp code. I just discovered that when I view the source code through a browser, the doctype doesn't appear. The webmaster checked the asp code and said it was fine. Could the missing doctype declaration be linked somehow to the templates? Will creating pages based upon templates somehow hide code and make other code visible when viewing source code in a browser? Here is a mockup where you can view the code from a browser: http://library.colostate-pueblo.edu/.../circ/test.asp Here is the code from dreamweaver code view: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <% '************************************************* ***************************** '* * '* Below is the log of changes for file: subPageAbout.dwt * '* * '* DATE USER ID HISTORY * '* -------------------------------------------------------------------------* '* 081807 Pardue Template * '* * '************************************************* ***************************** %> <!-- #include virtual = "/cgi-bin/ObjRotator.asp"--> <% Response.CacheControl = "no-cache" %> <% Response.AddHeader "Pragma", "no-cache" %> <% Response.Expires = -1 %> <%Set RandomObj = new ObjRotator%> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="../../../Templates/subPageAbout.dwt" codeOutsideHTMLIsLocked="true" --> <head> Thanks, ktpardue |
|
|||
|
Re: Doctype problem
"ktpardue" <webforumsuser@macromedia.com> wrote in message
news:g7t6le$j9p$1@forums.macromedia.com... > Hi, > I am developing webpages by creating templates through dreamweaver. I use > asp > code. I just discovered that when I view the source code through a > browser, the > doctype doesn't appear. The webmaster checked the asp code and said it was > fine. Could the missing doctype declaration be linked somehow to the > templates? > Will creating pages based upon templates somehow hide code and make other > code > visible when viewing source code in a browser? Here is a mockup where you > can > view the code from a browser: > > http://library.colostate-pueblo.edu/.../circ/test.asp > > Here is the code from dreamweaver code view: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <% > '************************************************* ***************************** > '* > * > '* Below is the log of changes for file: subPageAbout.dwt * > '* > * > '* DATE USER ID HISTORY > * > > -------------------------------------------------------------------------* > '* 081807 Pardue Template > * > '* > * > '************************************************* ***************************** > %> > <!-- #include virtual = "/cgi-bin/ObjRotator.asp"--> > <% Response.CacheControl = "no-cache" %> > <% Response.AddHeader "Pragma", "no-cache" %> > <% Response.Expires = -1 %> > <%Set RandomObj = new ObjRotator%> > > <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin > template="../../../Templates/subPageAbout.dwt" > codeOutsideHTMLIsLocked="true" > --> > <head> Move the DTD declaration between the ASP code and the <html ...> element and see how it goes. As a side note, you may want to pick another doctype as your markup is not "clean" enough for "strict". -- Thierry Articles and Tutorials: http://www.TJKDesign.com/go/?0 -- http://developer.yahoo.com/ helps you build applications and mashups |
|
|||
|
Re: Doctype problem
<!-- InstanceBegin template="../../../Templates/subPageAbout.dwt" Is the Templates folder in the root level of this Local Site Folder? Is the Local Site Folder defined to the folder containing this site's "homepage"? the above should be this in a normal situation: <!-- InstanceBegin template="/Templates/subPageAbout.dwt" a site root relative path, not a document relative path pointing three folder levels up. -- Alan Adobe Community Expert, dreamweaver http://www.adobe.com/communities/experts/ |
|
|||
|
Re: Doctype problem
Hi, thanks for the reply. First, thanks for pointing out the transitional vs.
the strict. I inherited this site and have set people on it to clean up the deprecated code. Meanwhile, I will reset it to transitional. The whole darn site is in transition anyway as we move from table based layout to css and content management. I have to manage the mess that is interim. Secondly, I tried moving the declaration after the asp code and still it was no-go. Can't figure this one out. The template code is wrong, though, as another pointed out, so I am going to fix that and attack the declaration problem again. If you have any more ideas on what I could do, reply again. Thanks, KT Pardue |
|
|||
|
Re: Doctype problem
"ktpardue" <webforumsuser@macromedia.com> wrote in message
news:g7v3tq$nvb$1@forums.macromedia.com... > Hi, thanks for the reply. First, thanks for pointing out the transitional > vs. > the strict. I inherited this site and have set people on it to clean up > the > deprecated code. Meanwhile, I will reset it to transitional. The whole > darn > site is in transition anyway as we move from table based layout to css and > content management. I have to manage the mess that is interim. Secondly, I > tried moving the declaration after the asp code and still it was no-go. > Can't > figure this one out. The template code is wrong, though, as another > pointed > out, so I am going to fix that and attack the declaration problem again. > If you > have any more ideas on what I could do, reply again. I don't use templates so I can't help you with this, but you may want to repost using a different subject line. Good luck with this -- Thierry Articles and Tutorials: http://www.TJKDesign.com/go/?0 -- http://developer.yahoo.com/ helps you build applications and mashups |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|